stdioext: Add tentative support for Plan9.
[gnulib.git] / ChangeLog
1 2012-02-03  Bruno Haible  <bruno@clisp.org>
2
3         stdioext: Add tentative support for Plan9.
4         * lib/stdio-impl.h: Include <errno.h>.
5         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
6         * lib/freadable.c (freadable): Likewise.
7         * lib/fwritable.c (fwritable): Likewise.
8         * lib/fbufmode.c (fbufmode): Likewise.
9         * lib/freading.c (freading): Likewise.
10         * lib/fwriting.c (fwriting): Likewise.
11         * lib/freadptr.c (freadptr): Likewise.
12         * lib/freadseek.c (freadptrinc): Likewise.
13         * lib/freadahead.c (freadahead): Likewise.
14         * lib/fpurge.c (fpurge): Likewise.
15         * lib/fseeko.c (rpl_fseeko): Likewise.
16         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
17         Reported by Jens Staal <staal1978@gmail.com>.
18
19 2012-02-02  Jim Meyering  <meyering@redhat.com>
20
21         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
22         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
23         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
24         not even to try to add the attribute.  Instead, add a pragma to suppress
25         the suggestion/warning.
26
27 2012-01-31  Karl Berry  <karl@gnu.org>
28
29         setstate doc: typo.
30         * doc/posix-functions/setstate.texi (setstate): { not (.
31
32 2012-01-31  Bruno Haible  <bruno@clisp.org>
33
34         popen: Make more robust on Windows.
35         * lib/popen.c: On native Windows, use the _popen based code even if
36         HAVE_POPEN is set.
37         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
38         environment variable on native Windows.
39
40 2012-01-30  Bruno Haible  <bruno@clisp.org>
41
42         pclose: Fix typo.
43         * lib/stdio.in.h (pclose): Fix typo in warning message.
44
45 2012-01-30  Bruno Haible  <bruno@clisp.org>
46
47         doc about getlogin_r, setstate.
48         * doc/posix-functions/getlogin_r.texi: List the incompatible
49         declaration problem under "not fixed by gnulib".
50         * doc/posix-functions/setstate.texi: Mention incompatible declaration
51         problem on Solaris 11 and other platforms.
52
53 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
54             Bruno Haible  <bruno@clisp.org>
55
56         poll tests: Make test more robust.
57         * tests/test-poll.c: Include macros.h.
58         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
59         return value of various I/O operations.
60         * modules/poll-tests (Files): Add tests/macros.h.
61
62 2012-01-30  Bruno Haible  <bruno@clisp.org>
63
64         sys_stat: Fix support for mingw64 and MSVC.
65         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
66         header files already do it.
67         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
68         stat itself.
69         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
70
71 2012-01-30  Bruno Haible  <bruno@clisp.org>
72
73         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
74         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
75         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
76
77 2012-01-29  Bruno Haible  <bruno@clisp.org>
78
79         quotearg: Fix test failure on MacOS X 10.5.
80         * tests/test-quotearg-simple.c: Include localcharset.h.
81         (main): If the locale encoding is not ASCII, bypass the tests of
82         locale_quoting_style and clocale_quoting_style.
83         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
84
85 2012-01-29  Jim Meyering  <meyering@redhat.com>
86
87         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
88         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
89         detect uses of canonicalize_file_name.
90
91 2012-01-28  Bruno Haible  <bruno@clisp.org>
92
93         test-framework-sh: Fix test failure with AIX 7.1 diff.
94         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
95         in column 1, like 'diff -c' does.
96         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
97         whether 'diff -u' is used. Instead, test whether the output contains
98         some '@' character.
99
100 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
101
102         strtoimax: eliminate need for stdint.h, inttypes.h checks
103         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
104         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
105         the prerequisites for a recently-introduced strtoimax test.
106         I guess this might cause strtoimax to be replaced when not
107         strictly necessary on older hosts, but this shouldn't introduce
108         any bugs and it should make Emacs 'configure' faster on typical
109         modern hosts.  Problem discovered when importing the latest gnulib
110         to an Emacs test version.
111         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
112
113 2012-01-28  Bruno Haible  <bruno@clisp.org>
114
115         sys_time: Override 'struct timeval' on some native Windows platforms.
116         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
117         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
118         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
119         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
120         needs to be overridden.
121         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
122         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
123         * tests/test-sys_select.c: Check that the tv_sec member has the same
124         size as a 'time_t'.
125         * tests/test-sys_time.c: Likewise.
126         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
127         is set, set also REPLACE_GETTIMEOFDAY.
128         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
129         convert the resulting 'struct timeval' before returning.
130         * lib/select.c: Include <sys/time.h>.
131         (select, timeval): Undefine at the right place.
132         * modules/select (Depends-on): Add sys_time.
133         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
134         some Windows platforms.
135         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
136
137 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
138
139         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
140         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
141         an integer.
142         * lib/fcntl.c (dupfd): Likewise.
143         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
144
145 2012-01-28  Bruno Haible  <bruno@clisp.org>
146
147         fcntl: Avoid compilation error on native Windows.
148         * modules/fcntl (Depends-on): Add 'close'.
149
150 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
151
152         select, poll, isatty: Avoid warnings on x86_64 mingw64.
153         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
154         pointer to an integer.
155         * lib/poll.c (IsConsoleHandle): Likewise.
156         * lib/isatty.c (IsConsoleHandle): Likewise.
157
158 2012-01-28  Jim Meyering  <meyering@redhat.com>
159
160         doc: clarify README-release
161         * top/README-release: Clarify: you should make a point to have
162         the latest stable versions of build tools in your PATH, and the
163         reference to buildreq is solely for its list of tool names, not
164         for its minimal-functional version numbers.
165         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
166
167         maint.mk: use more readable (yet functionally equivalent) quoting
168         It is common to quote a single quote in a single quoted string like
169         this:  '...'\''...'.  Unless you know the idiom, that looks like
170         gibberish, so prefer to double-quote the string when possible.
171         Then you can use a more readable, lone single quote: "...'..."
172         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
173         "don't" is more readable than the equivalent 'don'\''t'.
174         (sc_cast_of_x_alloc_return_value): Likewise.
175         (sc_cast_of_alloca_return_value): Likewise.
176         (sc_makefile_path_separator_check): Similar: use ":" in '...',
177         rather than '\'':'\''.
178
179 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
180
181         stdalign: relax _Alignof and tighten _Alignas test
182         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
183         as it was too strict: alignof must divide offsetof, but it need
184         not equal offsetof.  Inspired by Joseph S. Myers's comment
185         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
186         Conversely, tighten the _Alignas test a bit, as the resulting
187         alignment must be exactly 8.
188
189 2012-01-27  Bruno Haible  <bruno@clisp.org>
190
191         stdalign: Document the last change.
192         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
193
194 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
195
196         stdalign: check that alignof and offsetof are consistent
197         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
198         Problem reported for gnulib by Richard W.M. Jones in
199         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
200
201 2012-01-27  Jim Meyering  <meyering@redhat.com>
202
203         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
204         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
205         convert a sequence with gaps to the minimal containing range.
206         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
207         * tests/test-update-copyright.sh: Test for this.
208         The FSF confirmed it is ok to do this, assuming there is at
209         least one significant change per year in the affected range:
210         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
211
212 2012-01-26  Bruno Haible  <bruno@clisp.org>
213
214         pipe2: refine doc about thread-safety
215         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
216         multithread-safety problem.
217         * doc/glibc-functions/accept4.texi: Likewise.
218
219 2012-01-26  Bruno Haible  <bruno@clisp.org>
220
221         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
222         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
223         In the test program, include <fcntl.h>, for O_RDONLY.
224
225 2012-01-26  Eric Blake  <eblake@redhat.com>
226
227         pipe2: document lack of thread-safety in replacement
228         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
229         issue in replacement.
230         * doc/glibc-functions/accept4.texi (accept4): Likewise.
231         Based on a report by Eric Wong.
232
233 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
234             Bruno Haible  <bruno@clisp.org>
235
236         malloca: Avoid warnings on x86_64 mingw64.
237         * lib/malloca.c: Include <stdint.h>.
238         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
239         * modules/malloca (Depends-on): Add stdint.
240         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
241
242 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
243
244         obstack: remove __STDC__ conditionals
245         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
246         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
247         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
248         m4/include_next.m4 as the only gnulib-maintained places that still
249         refer to __STDC__.
250
251 2012-01-24  Bruno Haible  <bruno@clisp.org>
252
253         havelib: Modern quoting.
254         * build-aux/config.rpath: Quote 'like this', not `like this', as per
255         the recent change to the GNU coding standards.
256
257 2012-01-24  Bruno Haible  <bruno@clisp.org>
258
259         stdint: Improve support for Android.
260         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
261         Reported by Simon Josefsson <simon@josefsson.org>.
262
263 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
264
265         doc: omit trailing empty lines from INSTALL etc.
266         * doc/Makefile (INSTALL): Omit trailing empty lines.
267         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
268         omit trailing empty lines.  This simplifies the build procedure.
269
270 2012-01-23  Jim Meyering  <meyering@redhat.com>
271
272         tests: avoid spurious warnings about gl_sockets_startup
273         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
274         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
275         reporting a "statement with no effect".
276         * tests/test-accept.c (main): Mark as "(void)".
277         * tests/test-accept4.c (main): Likewise.
278         * tests/test-bind.c (main): Likewise.
279         * tests/test-connect.c (main): Likewise.
280         * tests/test-getpeername.c (main): Likewise.
281         * tests/test-getsockname.c (main): Likewise.
282         * tests/test-getsockopt.c (main): Likewise.
283         * tests/test-listen.c (main): Likewise.
284         * tests/test-recv.c (main): Likewise.
285         * tests/test-recvfrom.c (main): Likewise.
286         * tests/test-send.c (main): Likewise.
287         * tests/test-sendto.c (main): Likewise.
288         * tests/test-setsockopt.c (main): Likewise.
289         * tests/test-shutdown.c (main): Likewise.
290
291 2012-01-21  Bruno Haible  <bruno@clisp.org>
292
293         locale-fr.m4: Fix for Android.
294         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
295         failure of the test program on Bionic libc.
296
297 2012-01-21  Jim Meyering  <meyering@redhat.com>
298
299         bootstrap: fail when bootstrap_post_import_hook fails
300         Otherwise, it's far too easy to miss diagnostics emitted
301         between gnulib-tool's output and that of running configure.
302         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
303
304 2012-01-17  Jim Meyering  <meyering@redhat.com>
305
306         maint: enable sc_trailing_blank
307         * build-aux/pmccabe.css: Remove trailing blanks.
308         * doc/acl-cygwin.txt: Likewise.
309         * doc/gnu-oids.texi: Likewise
310         * cfg.mk: Enable sc_trailing_blank.
311         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
312
313 2012-01-17  Jim Meyering  <meyering@redhat.com>
314
315         maint: enable sc_prohibit_openat_without_use
316         * cfg.mk: Enable sc_prohibit_openat_without_use.
317         Exempt lib/selinux-at.c.
318
319 2012-01-17  Jim Meyering  <meyering@redhat.com>
320
321         maint: enable sc_prohibit_cloexec_without_use
322         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
323         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
324
325 2012-01-17  Jim Meyering  <meyering@redhat.com>
326
327         maint: enable sc_prohibit_intprops_without_use
328         * cfg.mk: Enable sc_prohibit_intprops_without_use
329         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
330
331 2012-01-17  Jim Meyering  <meyering@redhat.com>
332
333         maint: enable sc_prohibit_hash_pjw_without_use
334         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
335         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
336         to match any use of \<hash_pjw\>, i.e., not necessarily with a
337         following " (".
338
339 2012-01-17  Jim Meyering  <meyering@redhat.com>
340
341         maint: enable double-word-prohibiting rule
342         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
343         Exempt three files.
344
345 2012-01-17  Jim Meyering  <meyering@redhat.com>
346
347         maint: remove empty lines at EOF, but excluding modules/*
348         Apply syntax rules at home as well as abroad.  Most changes
349         were induced by running this:
350           make srcdir=. _build-aux=build-aux -f top/maint.mk \
351             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
352             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
353         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
354         Exempt modules/* and two binary files.
355         Also exempt doc/INSTALL*, per request from Bruno Haible.
356         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
357         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
358         * doc/Copyright/request-assign.future: Likewise.
359         * doc/Copyright/request-disclaim.changes: Likewise.
360         * doc/INSTALL: Likewise.
361         * doc/INSTALL.ISO: Likewise.
362         * doc/INSTALL.UTF-8: Likewise.
363         * doc/acl-cygwin.txt: Likewise.
364         * doc/acl-resources.txt: Likewise.
365         * doc/fdl-1.2.texi: Likewise.
366         * doc/fdl-1.3.texi: Likewise.
367         * doc/fdl.texi: Likewise.
368         * lib/argp-pin.c: Likewise.
369         * lib/round.c: Likewise.
370         * lib/unicase/u16-totitle.c: Likewise.
371         * lib/unictype/block_test.c: Likewise.
372         * lib/uninorm/canonical-decomposition.c: Likewise.
373         * m4/README: Likewise.
374         * m4/relocatable-lib.m4: Likewise.
375         * tests/test-isnand-nolibm.c: Likewise.
376         * tests/test-isnand.c: Likewise.
377         * tests/uninorm/NormalizationTest.txt: Likewise.
378
379 2012-01-17  Jim Meyering  <meyering@redhat.com>
380
381         maint: add framework to run syntax-check rules against gnulib sources
382         * cfg.mk: New file, to disable all currently-failing tests.
383         We'll enable them one by one, as they are made to pass.
384         * Makefile (sc_maint): New rule.
385
386 2012-01-21  Bruno Haible  <bruno@clisp.org>
387
388         stdint: Add support for Android.
389         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
390         include the system's <stdint.h>.
391         Reported by Simon Josefsson <simon@josefsson.org>.
392
393 2012-01-19  Jim Meyering  <meyering@redhat.com>
394
395         bootstrap: add bootstrap_post_import_hook
396         Bison does still need something like the gnulib_mk_hook whose
397         invocation I had to remove along with slurp in commit 767ccd40.
398         Technically, we could get along without it, but doing so would
399         have required living with a warning and a mandatory post-bootstrap
400         automake rerun.
401         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
402         (bootstrap_post_import_hook): New function.
403         Invoke it after gnulib-tool --import and before autoreconf.
404
405 2012-01-18  Jim Meyering  <meyering@redhat.com>
406
407         gitlog-to-changelog: don't use "no_"-prefixed variable name
408         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
409         to enable both --cluster and --no-cluster.  Change variable name,
410         s/\$no_cluster/$cluster/, and reverse usage to match.
411
412         gitlog-to-changelog: use "||", not "or" in expressions
413         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
414         expressions.
415
416 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
417
418         gitlog-to-changelog: new option --no-cluster
419         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
420         clustering of adjacent commit messages.
421
422 2012-01-17  Jim Meyering  <meyering@redhat.com>
423
424         maint: spell file systems with two words, not one
425         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
426         two words, not one.
427
428 2012-01-16  Jim Meyering  <meyering@redhat.com>
429
430         bootstrap: add a FIXME comment to ensure we eventually remove the hack
431         * build-aux/bootstrap (gnulib_tool_options): Add comment.
432
433 2012-01-16  Eric Blake  <eblake@redhat.com>
434
435         bootstrap: cater to autoconf 2.59
436         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
437         is not available.
438
439         bootstrap: properly check for libtool
440         * build-aux/bootstrap (libtoolize): Also run libtool when older
441         usage is detected.
442
443 2012-01-15  Bruno Haible  <bruno@clisp.org>
444
445         Improve support for MSVC 9.
446         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
447         clashes on MSVC.
448         * lib/fcntl.in.h: Likewise.
449         * lib/stdlib.in.h: Likewise.
450         * lib/sys_stat.in.h: Likewise.
451
452 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
453
454         gnupload: we hold the master copy of this script now
455         For motivation and more information, see:
456         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
457         * build-aux/gnupload: Make it clear in the heading comments that the
458         master copy of this file is maintained by gnulib.  Since we are at
459         it, bump its copyright year and ...
460         ($scriptversion): ... the date in its version.
461         ($usage): Patches and bug reports should be sent to the gnulib list,
462         not the automake one.
463         * config/srclist.txt: Don't try to sync 'gnupload' from automake
464         anymore.
465
466 2012-01-15  Bruno Haible  <bruno@clisp.org>
467
468         Fix module 'random'.
469         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
470         initstate, setstate are declared.
471
472 2012-01-14  Bruno Haible  <bruno@clisp.org>
473
474         Tests for module 'random'.
475         * modules/random-tests: New file.
476         * tests/test-random.c: New file, based on tests/test-random_r.c.
477
478         New module 'random'.
479         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
480         declarations.
481         * lib/random.c: New file, based on glibc/stdlib/random.c.
482         * m4/random.m4: New file.
483         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
484         HAVE_RANDOM.
485         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
486         * modules/random: New file.
487         * config/srclist.txt: Add an entry for random.c.
488         * doc/posix-functions/random.texi: Mention the 'random' module.
489         * doc/posix-functions/initstate.texi: Likewise.
490         * doc/posix-functions/setstate.texi: Likewise.
491         * doc/posix-functions/srandom.texi: Likewise.
492
493 2012-01-12  Bruno Haible  <bruno@clisp.org>
494
495         random_r: Use common idioms.
496         * lib/random_r.c: Include <stdlib.h> first.
497
498         random_r: Override incompatible API on AIX, OSF/1.
499         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
500         Override the system function if REPLACE_RANDOM_R is 1.
501         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
502         and OSF/1, set REPLACE_RANDOM_R.
503         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
504         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
505         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
506         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
507         * doc/glibc-functions/random_r.texi: Likewise.
508         * doc/glibc-functions/setstate_r.texi: Likewise.
509
510         random_r: Support for MSVC 9.
511         * lib/random_r.c: Include stdint.h, not inttypes.h.
512
513 2012-01-12  Eric Blake  <eblake@redhat.com>
514
515         inet_ntop: guard extra work by IF_LINT
516         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
517         better code generation when not checking for warnings.
518         Suggested by Paul Eggert and Jim Meyering.
519
520         strptime: fix regression on mingw
521         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
522         Fix regression.  Reported by Bruno Haible.
523
524 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
525             Bruno Haible  <bruno@clisp.org>
526
527         copy-file: add error-code-returning variant.
528         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
529         (qcopy_file_preserving): New declaration.
530         * lib/copy-file.c (qcopy_file_preserving): Renamed from
531         copy_file_preserving. Change return type to 'int'. Don't emit an error
532         message here.
533         (copy_file_preserving): New function.
534         * tests/test-copy-file.c: Include <stdlib.h>.
535         (main): Test qcopy_file_preserving if the environment variable
536         NO_STDERR_OUTPUT is set.
537         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
538         with NO_STDERR_OUTPUT
539         * tests/test-copy-file-2.sh: Likewise.
540
541 2012-01-10  Bruno Haible  <bruno@clisp.org>
542
543         copy-file: Use 'quote' module consistently.
544         * lib/copy-file.c (copy_file_preserving): Use quote().
545
546         copy-file: Refactor.
547         * lib/copy-file.c: Include quote.h.
548         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
549         message here.
550         * modules/copy-file (Depends-on): Add quote.
551
552         acl: Export qcopy_acl.
553         * lib/acl.h (qcopy_acl): New declaration.
554         * lib/copy-acl.c (qcopy_acl): Make non-static.
555
556         acl: Rename a local variable.
557         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
558
559         acl: Align return values of copy_acl and qcopy_acl.
560         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
561         maybe < -1.
562
563 2012-01-11  Eric Blake  <eblake@redhat.com>
564
565         strptime: silence gcc warnings
566         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
567         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
568         Reported by Daniel P. Berrange.
569
570         inet_ntop: silence gcc warning
571         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
572         Reported by Daniel P. Berrange.
573
574 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
575
576         getloadavg test: skip the test on GNU/Linux without /proc mounted
577         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
578         file.  When /proc is not mounted, it always fails with ENOENT.
579         * tests/test-getloadavg.c (main): Treat ENOENT return code from
580         getloadavg(3) the same way as ENOSYS and ENOTSUP.
581
582 2012-01-10  Bruno Haible  <bruno@clisp.org>
583
584         regex: Avoid link error on MSVC 9.
585         * modules/regex (Depends-on): Add wctype.
586
587 2012-01-10  Bruno Haible  <bruno@clisp.org>
588
589         doc: Mention --with-tests option.
590         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
591         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
592         --with-tests.
593         Reported by Reuben Thomas.
594
595 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
596
597         users.txt: order package names lexicographically.
598         * users.txt: Order package names lexicographically.
599
600 2012-01-10  Jim Meyering  <meyering@redhat.com>
601
602         maint.mk: fix description in comment
603         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
604
605         ignore-value: remove deprecated ignore_ptr function
606         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
607         * NEWS: Note this.
608
609 2012-01-09  Jim Meyering  <meyering@redhat.com>
610
611         test-init.sh: avoid a subshell
612         * tests/test-init.sh: Remove protective subshell.
613         Suggested by Bernhard Voelker.  While a subshell is normally
614         required to protect against older shells (Solaris, FreeBSD) that
615         warn about a missing program before performing redirection, the
616         shell-selection tests performed by init.sh probably exclude any
617         offending shell.
618
619 2012-01-08  Bruno Haible  <bruno@clisp.org>
620
621         setlocale tests: Avoid test failure on Solaris 11 2011-11.
622         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
623         variable.
624
625 2012-01-08  Bruno Haible  <bruno@clisp.org>
626
627         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
628         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
629         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
630         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
631         macro.
632         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
633         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
634         * lib/spawn_faction_addopen.c: Add workaround implementation if
635         HAVE_WORKING_POSIX_SPAWN.
636         * modules/spawn (Makefile): Substitute
637         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
638         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
639         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
640         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
641         (Depends-on): Update conditions.
642         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
643         the Solaris 11 bug.
644
645 2012-01-08  Bruno Haible  <bruno@clisp.org>
646
647         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
648         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
649         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
650         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
651         macro.
652         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
653         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
654         * lib/spawn_faction_adddup2.c: Add workaround implementation if
655         HAVE_WORKING_POSIX_SPAWN.
656         * modules/spawn (Makefile): Substitute
657         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
658         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
659         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
660         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
661         (Depends-on): Update conditions.
662         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
663         the Solaris 11 bug.
664
665 2012-01-08  Bruno Haible  <bruno@clisp.org>
666
667         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
668         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
669         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
670         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
671         HAVE_WORKING_POSIX_SPAWN.
672         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
673         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
674         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
675         * lib/spawn_faction_addclose.c: Add workaround implementation if
676         HAVE_WORKING_POSIX_SPAWN.
677         * modules/spawn (Makefile): Substitute
678         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
679         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
680         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
681         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
682         (Depends-on): Update conditions.
683         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
684         the Solaris 11 bug.
685
686 2012-01-08  Bruno Haible  <bruno@clisp.org>
687
688         doc: Update for Solaris 11 2011-11.
689         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
690         * m4/printf.m4: Update comments.
691
692 2012-01-08  Bruno Haible  <bruno@clisp.org>
693
694         mktime: Avoid compilation error on Solaris 11.
695         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
696
697 2012-01-08  Bruno Haible  <bruno@clisp.org>
698
699         doc: Small fix.
700         * doc/posix-headers/nl_types.texi: Correct platforms list.
701
702 2012-01-08  Simon Josefsson  <simon@josefsson.org>
703
704         Add lgpl-3.0 module.
705         * MODULES.html.sh (Support for building documentation): Add
706         lgpl-3.0.
707         * modules/lgpl-3.0: New file.
708
709 2012-01-08  Jim Meyering  <meyering@redhat.com>
710
711         select.c: indent with spaces, not TABs
712         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
713
714 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
715
716         quotearg: do not use grave accent for left quote
717         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
718         locale_quoting_style.
719         (quotearg_buffer_restyled): Fix example.
720         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
721
722 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
723
724         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
725         Most programs do not have translation catalogs for English and much
726         less separate catalogs for British and American English.  Drop the
727         suggestion to translators about these two, and provide it
728         automatically for Unicode locales.  Like most programs, even those
729         using American English, we use single quotation marks.  This conflicts
730         with the American typographic convention, but works better when you
731         cite the entire error message within double quotes.  It also tries not
732         to clash with established practice and with what non-gnulib programs
733         will usually do.
734         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
735         using an UTF-8 or GB-18030 locale.  The list of other locales with
736         quotes was provided by Bruno Haible.
737         (quotearg_buffer_restyled): Adjust instructions to translators.
738         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
739         text, since this would be wrong when using Unicode.
740         * modules/quotearg: Depend on c-strcaseeq.
741
742 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
743
744         quotearg: fix Wikipedia link
745         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
746
747 2012-01-07  Simon Josefsson  <simon@josefsson.org>
748
749         Fix for mingw with MSVC9.
750         * m4/ld-version-script.m4: Check that compiler rejects version
751         scripts with syntax errors.  Reported by Bruno Haible
752         <bruno@clisp.org>.
753
754 2012-01-06  Bruno Haible  <bruno@clisp.org>
755
756         Talk about "native Windows API", not "Woe32".
757         * lib/accept4.c: Update comments to mention native Windows.
758         * lib/execute.c: Likewise.
759         * lib/fatal-signal.c: Likewise.
760         * lib/localcharset.c: Likewise.
761         * lib/nanosleep.c: Likewise.
762         * lib/nl_langinfo.c: Likewise.
763         * lib/pclose.c: Likewise.
764         * lib/pipe-filter-gi.c: Likewise.
765         * lib/pipe-filter-ii.c: Likewise.
766         * lib/pipe.c: Likewise.
767         * lib/pipe2.c: Likewise.
768         * lib/popen.c: Likewise.
769         * lib/progreloc.c: Likewise.
770         * lib/relocatable.c: Likewise.
771         * lib/sigaction.c: Likewise.
772         * lib/sigprocmask.c: Likewise.
773         * lib/spawn-pipe.h: Likewise.
774         * lib/spawn-pipe.c: Likewise.
775         * lib/spawni.c: Likewise.
776         * lib/stat-time.h: Likewise.
777         * lib/w32spawn.h: Likewise.
778         * tests/test-isatty.c: Likewise.
779         * lib/config.charset: More comments.
780         * doc/gnulib-intro.texi: Mention native Windows.
781         * doc/posix-functions/_Exit_C99.texi: Likewise.
782         * doc/posix-headers/fcntl.texi: Likewise.
783
784 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
785
786         argp: Avoid crash if translator uses % characters in a translation.
787         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
788         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
789
790 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
791
792         doc: C11 and C++11 are now official
793         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
794         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
795         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
796         * modules/stdalign:
797         Replace references to draft C1X to C11, and to draft C++0X to C++11.
798
799 2012-01-06  Bruno Haible  <bruno@clisp.org>
800
801         uc-is-grapheme-break tests: Tweak.
802         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
803         message.
804
805 2012-01-06  Bruno Haible  <bruno@clisp.org>
806
807         test-init.sh: correct the test for diff -u
808         * tests/test-init.sh: Also redirect stdout to /dev/null.
809
810 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
811
812         Use ', not `, for quoting output.
813         * build-aux/announce-gen (usage, sizes, print_news_deltas)
814         (print_changelog_deltas, get_tool_versions, main program):
815         * build-aux/git-version-gen:
816         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
817         * build-aux/move-if-change (help):
818         * build-aux/useless-if-before-free (usage, main program):
819         * check-module (parse_module_file, usage)
820         (find_included_lib_files, check_module):
821         * lib/argmatch.c (main) [TEST]:
822         * lib/argp-help.c (_help):
823         * lib/getopt1.c (main) [TEST]:
824         * lib/git-merge-changelog.c (usage):
825         * lib/xstrtol-error.c (xstrtol_error):
826         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
827         * m4/argz.m4 (gl_FUNC_ARGZ):
828         * m4/bison.m4 (gl_BISON):
829         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
830         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
831         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
832         * m4/fpending.m4 (gl_PREREQ_FPENDING):
833         * m4/gc-random.m4 (gl_GC_RANDOM):
834         * m4/intl.m4 (gt_CHECK_DECL):
835         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
836         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
837         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
838         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
839         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
840         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
841         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
842         * tests/test-dirname.c (main):
843         * tests/test-getpass.c (main):
844         * tests/test-iconvme.c (main):
845         * tests/test-parse-datetime.c (LOG):
846         * tests/test-xstrtoimax.sh:
847         * tests/test-xstrtol.sh:
848         * tests/test-xstrtoll.sh:
849         * tests/test-xstrtoumax.sh:
850         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
851         * top/GNUmakefile (abort-due-to-no-makefile):
852         Quote 'like this', not `like this', as per the recent change to
853         the GNU coding standards.
854
855 2012-01-05  Bruno Haible  <bruno@clisp.org>
856
857         strtoimax: Don't force a replacement on systems where intmax_t is int.
858         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
859         'intmax_t' is not larger than 'int'.
860         Reported by Pádraig Brady <P@draigBrady.com>.
861
862 2012-01-05  Bruno Haible  <bruno@clisp.org>
863
864         doc: Mention NetBSD bugs.
865         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
866         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
867
868 2012-01-05  Bruno Haible  <bruno@clisp.org>
869
870         strtoumax tests: Enhance tests.
871         * tests/test-strtoumax.c (main): Add tests for large values.
872
873 2012-01-05  Bruno Haible  <bruno@clisp.org>
874
875         strtoimax: Work around AIX 5.1 bug.
876         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
877         definition.
878         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
879         Set HAVE_STRTOIMAX.
880         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
881         REPLACE_STRTOIMAX.
882         * modules/inttypes-incomplete (Makefile.am): Substitute
883         REPLACE_STRTOIMAX.
884         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
885         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
886         (Depends-on): Update conditions.
887         * tests/test-strtoimax.c (main): Add tests for large values.
888         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
889
890 2012-01-05  Bruno Haible  <bruno@clisp.org>
891
892         inttypes: Modernize.
893         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
894         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
895         (Makefile.am): Update inttypes.h rule.
896
897 2012-01-05  Jim Meyering  <meyering@redhat.com>
898
899         init.sh: don't waste a subshell just to redirect stderr
900         * tests/init.sh: In testing for diff -u and diff -c, use a
901         stderr-redirecting exec inside `...` rather than a subshell.
902
903         test-init.sh: avoid failure on HP-UX 11.00
904         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
905         resolves to diff -c or cmp.  Reported by Bruno Haible.
906
907 2012-01-05  Bruno Haible  <bruno@clisp.org>
908
909         Tests for module 'strtoull'.
910         * modules/strtoull-tests: New file.
911         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
912
913 2012-01-05  Bruno Haible  <bruno@clisp.org>
914
915         Tests for module 'strtoll'.
916         * modules/strtoll-tests: New file.
917         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
918
919 2012-01-05  Bruno Haible  <bruno@clisp.org>
920
921         Tests for module 'strtoul'.
922         * modules/strtoul-tests: New file.
923         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
924
925 2012-01-05  Bruno Haible  <bruno@clisp.org>
926
927         Tests for module 'strtol'.
928         * modules/strtol-tests: New file.
929         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
930
931 2012-01-04  Jim Meyering  <meyering@redhat.com>
932
933         test-init.sh: accommodate Solaris 5.10's different diff -u output
934         * tests/test-init.sh: Also exempt @@ lines from the comparison
935         of diff output, since Solaris 5.10 and GNU diff formats differ.
936         Reported by Stefano Lattarini.
937
938 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
939
940         test-posixtm: don't assume signed integer wraparound
941         * tests/test-posixtm.c (main): Don't assume wraparound semantics
942         after signed integer overflow.  Inspired by (though it may not
943         fix) Bruno Haible's bug report in
944         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
945
946         Spell out "Windows 9x" and "Windows XP".
947         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
948         "Windows 9x" and "WinXP" with "Windows XP".
949
950 2012-01-04  Jim Meyering  <meyering@redhat.com>
951
952         test-vc-list-files-cvs.sh: remove obsolete comment
953         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
954         double exit.  Now that's all encapsulated via skip_ and Exit.
955
956 2012-01-04  Bruno Haible  <bruno@clisp.org>
957
958         Talk about "native Windows API", not "Win32".
959         * lib/classpath.c: Update comments to mention native Windows.
960         * lib/csharpexec.c: Likewise.
961         * lib/dup2.c: Likewise.
962         * lib/error.c: Likewise.
963         * lib/fcntl.c: Likewise.
964         * lib/filename.h: Likewise.
965         * lib/findprog.c: Likewise.
966         * lib/get-rusage-as.c: Likewise.
967         * lib/get-rusage-data.c: Likewise.
968         * lib/getpagesize.c: Likewise.
969         * lib/javaexec.c: Likewise.
970         * lib/msvc-inval.c: Likewise.
971         * lib/msvc-nothrow.c: Likewise.
972         * lib/nanosleep.c: Likewise.
973         * lib/nonblocking.c: Likewise.
974         * lib/printf-parse.c: Likewise.
975         * lib/setlocale.c: Likewise.
976         * lib/sigaction.c: Likewise.
977         * lib/strerror_r.c: Likewise.
978         * lib/tmpdir.c: Likewise.
979         * lib/vasnprintf.c: Likewise.
980         * lib/w32spawn.h: Likewise.
981         * lib/waitpid.c: Likewise.
982         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
983         * m4/locale-ar.m4: Likewise.
984         * m4/locale-fr.m4: Likewise.
985         * m4/locale-ja.m4: Likewise.
986         * m4/locale-tr.m4: Likewise.
987         * m4/locale-zh.m4: Likewise.
988         * m4/printf.m4: Likewise.
989         * tests/test-cloexec.c: Likewise.
990         * tests/test-copy-acl.sh: Likewise.
991         * tests/test-copy-file.sh: Likewise.
992         * tests/test-file-has-acl.sh: Likewise.
993         * tests/test-set-mode-acl.sh: Likewise.
994         * tests/test-dup-safer.c: Likewise.
995         * tests/test-dup2.c: Likewise.
996         * tests/test-dup3.c: Likewise.
997         * tests/test-fcntl.c: Likewise.
998         * tests/test-nonblocking-pipe.h: Likewise.
999         * tests/test-nonblocking-socket.h: Likewise.
1000         * tests/test-pipe.c: Likewise.
1001         * tests/test-pipe2.c: Likewise.
1002         * tests/test-spawn-pipe-child.c: Likewise.
1003         * doc/acl-resources.txt: Likewise.
1004         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1005         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
1006         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
1007         * lib/localcharset.c: Update comments to mention native Windows.
1008         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1009         * lib/localename.c: Likewise.
1010         * lib/progreloc.c: Likewise.
1011         * lib/relocatable.c: Likewise.
1012         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1013         (windows_compute_revents): Renamed from win32_compute_revents.
1014         (windows_compute_revents_socket): Renamed from
1015         win32_compute_revents_socket.
1016         * lib/select.c: Update comments to mention native Windows.
1017         (windows_poll_handle): Renamed from win32_poll_handle.
1018         * m4/threadlib.m4: Update comments to mention native Windows.
1019         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
1020         --enable-threads=windows instead of --enable-threads=win32. Set
1021         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
1022         * lib/glthread/lock.h: Update comments to mention native Windows.
1023         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
1024         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
1025         USE_WIN32_THREADS.
1026         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
1027         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
1028         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
1029         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
1030         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
1031         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
1032         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
1033         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
1034         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
1035         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
1036         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
1037         * tests/test-tls.c: Likewise.
1038         Rationale:
1039         Microsoft renamed the "Win32 API" to "Windows API", as it is available
1040         on both 32-bit and 64-bit Windows systems.
1041         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
1042         line of distinction is between "native Windows" on one side and Unix/
1043         POSIX systems on the other side. More details in
1044         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
1045         Suggested by Paul Eggert.
1046
1047 2012-01-03  Bruno Haible  <bruno@clisp.org>
1048
1049         isatty: Support for MSVC 9.
1050         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
1051         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
1052         (_isatty_nothrow): New function.
1053         (isatty): Use it instead of _isatty.
1054         (IsConsoleHandle): Add comment, from Paolo Bonzini.
1055         * lib/poll.c (IsConsoleHandle): Likewise.
1056         * lib/select.c (IsConsoleHandle): Likewise.
1057         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
1058         (gl_PREREQ_ISATTY): New macro.
1059         * modules/isatty (Depends-on): Add msvc-inval.
1060         (configure.ac): Invoke gl_PREREQ_ISATTY.
1061
1062 2012-01-03  Jim Meyering  <meyering@redhat.com>
1063
1064         maint.mk: remove temporary transition aid from over 1.5 years ago
1065         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
1066         purpose was to aid in the transition (avoiding silent malfunction)
1067         from that old name to the new _sc_search_regexp.  This shim was
1068         added by commit 219c504b.
1069
1070         init.sh: do not try to accommodate compare arguments starting with "-"
1071         * tests/init.sh (compare_dev_null_): Do not try to accommodate
1072         compare arguments that start with "-".  Besides, we do not worry
1073         about this when invoking diff or cmp; why start now with sed?
1074         Using "--" to separate options from argument would trigger sed
1075         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
1076         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
1077
1078 2012-01-02  Bruno Haible  <bruno@clisp.org>
1079
1080         Enhance tests for module 'isatty'.
1081         * modules/isatty-tests (Depends-on): Add pipe-posix.
1082         * tests/test-isatty.c: Include <fcntl.h>.
1083         (DEV_NULL): New macro.
1084         (main): Test the resut of isatty() also on regular files, pipes, and
1085         /dev/null.
1086
1087         New module 'isatty'.
1088         * lib/unistd.in.h (isatty): New declaration.
1089         * lib/isatty.c: New file, based on an idea of
1090         Bastien Roucariès <roucaries.bastien@gmail.com>.
1091         * m4/isatty.m4: New file.
1092         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
1093         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
1094         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
1095         REPLACE_ISATTY.
1096         * modules/isatty: New file.
1097         * doc/posix-functions/isatty.texi: Mention the new module.
1098         Suggested by Paolo Bonzini.
1099
1100 2012-01-02  Bruno Haible  <bruno@clisp.org>
1101
1102         canonicalize: Tweak 2011-12-29 commit.
1103         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
1104         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
1105
1106 2012-01-02  Jim Meyering  <meyering@redhat.com>
1107
1108         gitlog-to-changelog: describe input syntax in --help output
1109         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
1110
1111         gitlog-to-changelog: fix typo in --help: show backslash before email @
1112         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
1113         in sources, but not in actual output.
1114
1115 2011-12-30  Jim Meyering  <meyering@redhat.com>
1116
1117         gitlog-to-changelog: don't malfunction when name contains %-directive
1118         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
1119         in a name string cause trouble.  E.g., with a user name of "%s",
1120         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
1121
1122 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
1123
1124         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
1125         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
1126         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
1127         the "  (tiny change)" notation that is appended to the standard
1128         ChangeLog "date  name  email" header line.
1129
1130 2012-01-01  Jim Meyering  <meyering@redhat.com>
1131
1132         test-framework-sh: init.sh: fix "make dist" failure
1133         When using gnulib-tool's --with-tests option and any module that
1134         depends on test-framework-sh, "make dist" would fail due to the
1135         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
1136         in the gltests directory, and not in the gllib/ directory.
1137         One way to work around that is to move the EXTRA_DIST += init.sh
1138         from the primary module to the -tests one:
1139         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
1140         * modules/test-framework-sh (Makefile.am): ...not here.
1141         Reported by Tom G. Christensen in
1142         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
1143
1144         version-etc: update copyright year reported by --version
1145         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
1146
1147 2011-12-31  Pádraig Brady  <P@draigBrady.com>
1148
1149         canonicalize: only stat() if required
1150         * lib/canonicalize.c (canonicalize_filename_mode):
1151         Avoid calling l?stat() when both CAN_MISSING,
1152         and CAN_NOLINKS are set, as we neither need
1153         to resolve symlinks or test component existence.
1154
1155 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
1156
1157         doc: cover st_ino issues once; add OpenVMS etc.
1158         * doc/posix-functions/stat.texi (stat):
1159         * doc/posix-functions/lstat.texi (lstat):
1160         * doc/posix-functions/fstatat.texi (fstatat):
1161         * doc/posix-functions/fstat.texi (fstat):
1162         Move general 'struct stat' stuff to sys_stat.texi,
1163         leaving behind a pointer.
1164         * doc/posix-headers/sys_stat.texi (sys/stat.h):
1165         Merge duplicate info about 'struct stat' problems into here.
1166         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
1167         and suggest partial workarounds.
1168
1169         same-inode: port to OpenVMS
1170         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
1171         three st_ino values.
1172
1173 2011-12-30  Pádraig Brady  <P@draigBrady.com>
1174
1175         canonicalize: fix references to stat() and lstat()
1176         * lib/canonicalize.c (canonicalize_filename_mode):
1177         Ensure references always resolve to a replacement
1178         function if required (even via a macro).
1179
1180 2011-12-30  Jim Meyering  <meyering@redhat.com>
1181
1182         gitlog-to-changelog: remove a little duplication
1183         * build-aux/gitlog-to-changelog (main): Grep @lines once,
1184         rather than twice.
1185
1186 2011-12-29  Pádraig Brady  <P@draigBrady.com>
1187
1188         canonicalize: add support for not resolving symlinks
1189         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
1190         indicate we don't want to follow symlinks.  Also
1191         provide CAN_MODE_MASK to aid setting these existing
1192         mutually exclusive values.
1193         * lib/canonicalize.c (canonicalize_filename_mode):
1194         Extract the flags from can_mode parameter, which
1195         are currently just used to select between stat()
1196         and lstat().  Also ensure that mutually exclusive
1197         values are flagged immediately as invalid.
1198         * tests/test-canonicalize.c: Verify symlinks are
1199         not followed, and that invalid flag combinations
1200         are diagnosed.
1201
1202 2011-12-25  Jim Meyering  <meyering@redhat.com>
1203
1204         gitlog-to-changelog: do not clump multi-paragraph entries
1205         Identical header lines (date,name,email+coauthors) are suppressed,
1206         thus putting all entries with those same characteristics under
1207         a single header.  However, when a log entry consists of two or
1208         more paragraphs, it may not be clear where it starts and ends.
1209         This change makes it so that such an entry is always separated
1210         from others by a header line, even when that header would
1211         otherwise be suppressed.
1212         * build-aux/gitlog-to-changelog: Implement the above.
1213         Inspired by a related request from Stefano Lattarini in
1214         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
1215
1216 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1217
1218         announce-gen: fix `cmd' typo in diagnostic
1219         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
1220         diagnostic: a missing '$' meant that the command was not output.
1221
1222 2011-12-23  Jim Meyering  <meyering@redhat.com>
1223
1224         test-framework-sh: distribute init.sh
1225         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
1226         Otherwise, "make -C gnulib-tests check" (at least in grep) would
1227         fail due to the lack of init.sh.
1228
1229         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
1230         * modules/atexit-tests: Rather than listing tests/init.sh,
1231         now that there's a module for it, simply depend on that new module.
1232         * modules/closein-tests: Likewise.
1233         * modules/exclude-tests: Likewise.
1234         * modules/getcwd-tests: Likewise.
1235         * modules/perror-tests: Likewise.
1236         * modules/pread-tests: Likewise.
1237         * modules/pwrite-tests: Likewise.
1238         * modules/vc-list-files-tests: Likewise.
1239         * modules/verify-tests: Likewise.
1240         * modules/xalloc-die-tests: Likewise.
1241         * modules/xstrtoimax-tests: Likewise.
1242         * modules/xstrtol-tests: Likewise.
1243         * modules/xstrtoll-tests: Likewise.
1244         * modules/xstrtoumax-tests: Likewise.
1245         * modules/yesno-tests: Likewise.
1246
1247 2011-12-22  Jim Meyering  <meyering@redhat.com>
1248
1249         test-framework-sh: add minimal tests of init.sh's compare function
1250         * modules/test-framework-sh-tests: New file.
1251         * tests/test-init.sh: New file.
1252
1253         test-framework-sh: new module
1254         * modules/test-framework-sh: New file.
1255         * MODULES.html.sh (Support for maintaining and releasing projects):
1256         List it.
1257
1258         init.sh: do not emit simulated diff output to stderr
1259         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
1260
1261 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
1262
1263         .gitignore: ignore gnulib.dvi and regex.info
1264         * doc/.gitignore:add gnulib.dvi and regex.info
1265
1266 2011-12-22  Jim Meyering  <meyering@redhat.com>
1267
1268         init.sh: correct previous change
1269         * tests/init.sh (compare): My previous change was wrong.
1270         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
1271
1272         init.sh: avoid unwarranted test failure when using "set -e"
1273         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
1274         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
1275         a use like "compare exp out" would get evoke an unconditional failure.
1276
1277 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
1278
1279         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
1280         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
1281         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
1282         autoreconf that did not.
1283         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
1284         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
1285
1286 2011-12-17  Jim Meyering  <meyering@redhat.com>
1287
1288         bootstrap: remove some now-unneeded code
1289         This script arose back when gnulib-tool was young.
1290         Since then, it has seen improvements that render much of this
1291         script unnecessary.  In particular, it can now make symlinks
1292         to the files it uses.  Also, I no longer see as much value in
1293         marking files as read-only via comments.
1294         If you relied on the symlink-creation feature of the preceding
1295         version of this script, you can get most of that functionality
1296         by adding the --symlink option to the definition of
1297         gnulib_tool_option_extras in your bootstrap.conf file.
1298         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
1299         Run autopoint and libtoolize *before* gnulib-tool.
1300         After it, run an abbreviated autoreconf, rather than a loop around
1301         all tools.
1302         (slirp, bt_mark_as_generated): Remove functions.
1303
1304 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1305
1306         ftoastr: fix typo
1307         * lib/ftoastr.h: Fix misspelling in comment.
1308
1309 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
1310
1311         * top/README-release: fix punctuation.
1312
1313 2011-12-17  Jim Meyering  <meyering@redhat.com>
1314
1315         bootstrap: correct the recent buildreq change
1316         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
1317         had no effect.
1318         * build-aux/bootstrap (buildreq): Bracket each search term with
1319         "*...*", so that the shell "case" statement works as intended.
1320         Add comments.
1321
1322 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
1323
1324         build: let bootstrap resort to wget when downloading .po files
1325         * build-aux/bootstrap (download_po_files): Fallback to wget when
1326         downloading the .po files via rsync fails.  This is necessary to
1327         bootstrap from behind a strict firewall.
1328
1329 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
1330
1331         stdint: don't assume C++11 when compiling with g++
1332         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
1333         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
1334         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
1335         work also in C++ before C++11, as that improperly inhibits
1336         generating a substitute stdint.h for that case.
1337
1338 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
1339
1340         alloca: protect comment from gnulib-tool
1341         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
1342         that gnulib-tool doesn't think it's a license, and munge it to
1343         say "GCC version 3".
1344
1345 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
1346
1347         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
1348         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
1349         $(abs_top_builddir) instead of $(top_builddir).
1350
1351 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
1352
1353         strftime-tests: also test nanoseconds
1354         * tests/test-strftime.c (T): Add a test of %N.
1355
1356 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
1357
1358         inttypes, stdint: add C++11 support
1359         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
1360         when including inttypes.h and stdint.h.  Support this change to
1361         the standard.
1362         * doc/posix-headers/inttypes.texi (inttypes.h):
1363         * doc/posix-headers/stdint.texi (stdint.h): Document this.
1364         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
1365         Define if not defined already, for the benefit of pre-C++11 hosts.
1366         Define the standard format macros (e.g., PRId8) always.
1367         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
1368         Likewise, if __cpluspus.  Define the standard constant and limit
1369         macros (e.g., INT8_C, INT8_MAX) always.
1370         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
1371         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
1372         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
1373         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
1374         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
1375         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
1376         Likewise.
1377
1378 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
1379
1380         nonblocking tests: Fix test failure on Linux/PPC.
1381         Suggested by Prerna Saxena in
1382         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
1383         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
1384         Set to 1100000.
1385
1386 2011-12-12  Jim Meyering  <meyering@redhat.com>
1387
1388         argmatch: don't hard-code `' when listing valid option arguments
1389         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
1390         use the quote function to add quotes.  Use fputs rather than
1391         fprintf for the format string with no format directive.
1392
1393 2011-12-07  Eric Blake  <eblake@redhat.com>
1394
1395         bootstrap: detect tools required by gnulib-tool
1396         * build-aux/bootstrap (buildreq): Provide minimum implicit
1397         dependencies.
1398         * DEPENDENCIES: Mention patch as a prereq.
1399
1400 2011-12-04  Bruno Haible  <bruno@clisp.org>
1401
1402         sethostname: Port to Windows platforms.
1403         * lib/sethostname.c: Provide an alternate implementation for Windows
1404         platforms.
1405         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
1406         (main): Skip the test if sethostname() fails with EPERM. On Windows
1407         platforms, don't check the result of gethostname().
1408
1409 2011-12-04  Bruno Haible  <bruno@clisp.org>
1410             Jim Meyering  <meyering@redhat.com>
1411
1412         tests: Avoid spurious error message on platforms without mktemp program.
1413         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
1414
1415 2011-12-04  Bruno Haible  <bruno@clisp.org>
1416
1417         sethostname: Fix documentation.
1418         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
1419         "not fixed" section.
1420
1421 2011-12-03  Bruno Haible  <bruno@clisp.org>
1422
1423         gnulib-tool: Verify that the License field is present and non-empty.
1424         * gnulib-tool (func_get_license_raw): New function, extracted from
1425         func_get_license.
1426         (func_get_license): Use it. Warn if the module is not a test module and
1427         has no license.
1428         Suggested by Jim Meyering.
1429
1430 2011-12-03  Bruno Haible  <bruno@clisp.org>
1431
1432         sethostname tests: Fix link error on mingw.
1433         * tests/test-sethostname1.c: New file, extracted from
1434         tests/test-sethostname.c.
1435         * tests/test-sethostname2.c: New file, extracted from
1436         tests/test-sethostname.c.
1437         * tests/test-sethostname.c: Remove file.
1438         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
1439         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
1440         (Depends-on): Add gethostname.
1441         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
1442         Link the latter with $(GETHOSTNAME_LIB).
1443
1444         sethostname tests: Fix compilation error on mingw.
1445         * tests/test-sethostname.c: Don't include <sys/types.h>.
1446         (geteuid): Use a dummy value without uid_t.
1447         * modules/sethostname-tests (Depends-on): Remove sys_types.
1448
1449         sethostname tests: Avoid a gcc warning.
1450         * tests/test-sethostname.c (main): Remove an unused variable.
1451
1452         Tweak last commit.
1453         * modules/sethostname-tests (Files): Sort by decreasing importance.
1454         (configure.ac): Check for geteuid.
1455         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
1456         the test when there's nothing to test. Drop an unnecessary cast.
1457         Improve an error message. Verify that the final sethostname() call
1458         succeeds.
1459
1460 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1461
1462         Add a test suite for the sethostname module.
1463         * modules/sethostname-tests: New file.  A test program
1464         for the sethostname module.
1465         * tests/test-sethostname.c: Likewise.
1466
1467 2011-12-03  Bruno Haible  <bruno@clisp.org>
1468
1469         Tweak last commit.
1470         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
1471         Fix preprocessor directives indentation. Fix typos.
1472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
1473         * modules/unistd (Makefile): Likewise.
1474
1475 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1476
1477         Integrate the sethostname module into unistd.
1478         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
1479         into the unistd.h header.
1480         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
1481         preprocessor directives.
1482         * modules/unistd: Setup the Makefile substitutions of the
1483         SETHOSTNAME preprocessor directives.
1484
1485 2011-12-03  Bruno Haible  <bruno@clisp.org>
1486
1487         Tweak last commit.
1488         * lib/sethostname.c: Don't include <string.h>.
1489         (sethostname): No need to copy the argument string to the stack. Don't
1490         call clearerr. Preserve errno when fprintf failed.
1491         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
1492         Don't invoke AC_REPLACE_FUNCS.
1493         * modules/sethostname (Link): Remove empty section.
1494         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
1495         failure problem.
1496
1497 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1498
1499         New module 'sethostname'.
1500         * lib/sethostname.c (sethostname): New file.  Provide sethostname
1501         for systems that lack it.
1502         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
1503         sethostname declaration and function.
1504         * modules/sethostname: New file.  Define the sethostname module.
1505
1506 2011-12-03  Bruno Haible  <bruno@clisp.org>
1507
1508         Tweak last commit.
1509         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
1510
1511 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1512
1513         Split the HOST_NAME_MAX detection into a separate m4 macro.
1514         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
1515         macro so it can be used by the pending sethostname module.
1516
1517 2011-12-03  Bruno Haible  <bruno@clisp.org>
1518
1519         Fix module descriptions syntax.
1520         * modules/argv-iter (License): Fix syntax.
1521         * modules/di-set (License): Likewise.
1522         * modules/ino-map (License): Likewise.
1523         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
1524
1525 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
1526
1527         stdalign: port to Clang 3.0
1528         Problem reported by Simon Josefsson in
1529         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
1530         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
1531         which has <stdalign.h> but which does not define alignof.
1532         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
1533
1534 2011-12-01  Eric Blake  <eblake@redhat.com>
1535
1536         mktempd: silence dd usage
1537         * build-aux/mktempd (rand_bytes): Silence dd.
1538
1539 2011-11-30  Simon Josefsson  <simon@josefsson.org>
1540
1541         manywarnings: Don't mention gcc version in docstring.
1542         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
1543         Jim Meyering <meyering@redhat.com>.
1544
1545 2011-11-30  Jim Meyering  <meyering@redhat.com>
1546
1547         hash: mark a few floating point constants with "f" suffix
1548         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
1549         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
1550         floating point constants with "f", since they're destined to be
1551         saved/used as "float"s.
1552
1553 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
1554
1555         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
1556         * tests/test-float.c (test_long_double): Correct and re-enable the
1557         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
1558
1559 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
1560
1561         Avoid subtracting two pointers that don't point into the same block.
1562         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
1563         only pointers into the same memory block are subtracted. We cannot
1564         assume that sizeof (ptrdiff_t) == sizeof (void *).
1565
1566 2011-11-29  Eric Blake  <eblake@redhat.com>
1567
1568         maint.mk: add syntax check for use of compare from init.sh
1569         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
1570         moved here from coreutils.
1571
1572         manywarnings: drop -Wunsuffixed-float-constants
1573         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
1574         '1.0D', which is the only way to silence this warning for 'double'.
1575
1576 2011-11-29  Jim Meyering  <meyering@redhat.com>
1577
1578         hash: mark compute_bucket_size with the pure attribute
1579         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
1580
1581         quotearg, propername: correct pragma guard expression
1582         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
1583         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
1584
1585 2011-11-28  Jim Meyering  <meyering@redhat.com>
1586
1587         propername: do not mark proper_name with the const attribute
1588         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
1589         since it examines data pointed to by its parameter.
1590         * lib/propername.c (proper_name): Instead, add a pragma to suppress
1591         the suggestion from -Wsuggest-attribute=const.
1592
1593         propername: mark one more function as const
1594         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
1595
1596 2011-11-27  Jim Meyering  <meyering@redhat.com>
1597
1598         mark functions with const and pure attributes
1599
1600         Mark functions per suggestions from gcc-4.6 when using these options:
1601         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
1602         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
1603         Follow these guidelines: when possible, apply the attribute to
1604         an extern declaration, not to its definition.  Apply it to the
1605         definition only when the definition is static.
1606         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
1607         * lib/argv-iter.h (argv_iter_n_args): Likewise.
1608         * lib/base64.h (isbase64): Likewise.
1609         * lib/basename-lgpl.c (last_component, base_len): Likewise.
1610         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
1611         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
1612         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
1613         (c_tolower, c_toupper): Likewise.
1614         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
1615         * lib/chdir-long.c (find_non_slash): Likewise.
1616         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
1617         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
1618         * lib/file-type.h (file_type): Likewise.
1619         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
1620         * lib/filevercmp.c (verrevcmp): Likewise.
1621         * lib/freadahead.h (freadahead): Likewise.
1622         * lib/fts.c (fts_maxarglen): Likewise.
1623         * lib/hash-pjw.h (hash_pjw): Likewise.
1624         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
1625         * lib/hash.c (is_prime, next_prime): Likewise.
1626         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
1627         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
1628         (hash_table_ok, hash_get_first, hash_string): Likewise.
1629         (compute_bucket_size): Likewise.
1630         * lib/i-ring.h (i_ring_empty): Likewise.
1631         * lib/isnan.c (isnanl): Likewise.
1632         * lib/math.h (isnanl, rpl_isnanl): Likewise.
1633         * lib/memcasecmp.h (memcasecmp): Likewise.
1634         * lib/memchr2.h (memchr2): Likewise.
1635         * lib/memcmp2.h (memcmp2): Likewise.
1636         * lib/parse-datetime.y (lookup_zone): Likewise.
1637         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
1638         [!WINDOWS_SOCKETS]: Likewise.
1639         * lib/strnlen1.h (strnlen1): Likewise.
1640         * lib/uniwidth.in.h (uc_width): Likewise.
1641         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
1642         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
1643         (quoting_options_from_style): Add a comment.
1644         * lib/propername.h (proper_name): Add a comment.
1645
1646 2011-11-27  Bruno Haible  <bruno@clisp.org>
1647
1648         Remove unused macros from !_LIBC code in glibc-borrowed files.
1649         * lib/fnmatch.c (STRCOLL): Remove macro.
1650         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
1651         * lib/glob.c (__stat, __readdir64): Remove macros.
1652         * lib/tempname.c (__open64, __xstat64): Remove macros.
1653         Suggested by Paul Eggert.
1654
1655 2011-11-27  Bruno Haible  <bruno@clisp.org>
1656
1657         getcwd: Fix link error on MSVC 9.
1658         * modules/getcwd (Depends-on): Add readdir, rewinddir.
1659
1660 2011-11-27  Bruno Haible  <bruno@clisp.org>
1661
1662         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
1663         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
1664         HAVE_OPENDIR is 0.
1665         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
1666         HAVE_CLOSEDIR is 0.
1667         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
1668         is 0.
1669         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
1670
1671 2011-11-27  Bruno Haible  <bruno@clisp.org>
1672
1673         getcwd: Fix bug from 2011-08-17.
1674         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
1675         platforms that need it.
1676         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
1677         code of 4 to be a failure, not a success. This ensures that
1678         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
1679
1680 2011-11-27  Bruno Haible  <bruno@clisp.org>
1681
1682         binary-io tests: Avoid test failure on mingw when libtool is used.
1683         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
1684         Don't verify the size of t-bin-out1.tmp here.
1685         * tests/test-binary-io.sh: Verify it here.
1686         Reported by Simon Josefsson.
1687
1688 2011-11-26  Bruno Haible  <bruno@clisp.org>
1689
1690         Fix conflict between two instantiations of module 'unistd'.
1691         * gnulib-tool (func_emit_autoconf_snippet): Substitute
1692         ${include_guard_prefix} also in the autoconf snippet.
1693         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
1694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
1695         GNULIB_UNISTD_H_GETOPT.
1696         * modules/getopt-posix (configure.ac): Set the
1697         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
1698         * modules/getopt-gnu (configure.ac): Likewise.
1699         * modules/unistd (Makefile.am): Change the substitution value of
1700         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
1701         Reported by Simon Josefsson.
1702
1703 2011-11-25  Bruno Haible  <bruno@clisp.org>
1704
1705         pagealign_alloc: Doc and comments.
1706         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
1707         module.
1708         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
1709
1710 2011-11-25  Jim Meyering  <meyering@redhat.com>
1711
1712         test-update-copyright.sh: avoid false-positive failure
1713         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
1714         around false positive failure on Cygwin/Windows.  The latter was
1715         matching erroneously-created files with names like
1716         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
1717
1718 2011-11-25  Simon Josefsson  <simon@josefsson.org>
1719
1720         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
1721         * m4/valgrind-tests.m4: Check that the parameters that will be
1722         used works, not just a subset of them.  Reported by Bruno Haible
1723         <bruno@clisp.org>.
1724
1725 2011-11-24  Jim Meyering  <meyering@redhat.com>
1726
1727         test-stdalign.c: comment out long double tests
1728         * tests/test-stdalign.c: Don't try to reduce alignment of long double
1729         variables.  That provokes errors like this from gcc-4.7.0 20111124:
1730         error: '_Alignas' specifiers cannot reduce alignment of \
1731         'static_longdouble_alignas'.
1732
1733 2011-11-22  Jim Meyering  <meyering@redhat.com>
1734
1735         init.sh: make "compare /dev/null FILE" output more readable
1736         * tests/init.sh (compare_): Document the preferred order of arguments.
1737         (emit_diff_u_header_): New function.
1738         (compare_dev_null_): Emit a simulated diff, rather than just the
1739         contents of the unexpected file.  Suggestion from Bruno Haible.
1740
1741 2011-11-21  Jim Meyering  <meyering@redhat.com>
1742             Eric Blake  <eblake@redhat.com>
1743
1744         init.sh: work around OSF/1 5.1's mishandling of /dev/null
1745         * tests/init.sh: Make our compare function slightly more portable.
1746         Reported by Bruno Haible in
1747         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
1748
1749 2011-11-21  Simon Josefsson  <simon@josefsson.org>
1750
1751         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
1752         before using it, in code that ends up in config.h.
1753
1754 2011-11-20  Bruno Haible  <bruno@clisp.org>
1755
1756         getcwd: Work around getcwd bug on AIX 5..7.
1757         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
1758         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
1759         Use a different value for gl_cv_func_getcwd_path_max. Move the
1760         definition of HAVE_PARTLY_WORKING_GETCWD from here...
1761         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
1762         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
1763         Define HAVE_MINIMALLY_WORKING_GETCWD.
1764         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
1765         where it is not even minimally working, that is, on AIX.
1766         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
1767         m4/getcwd-path-max.m4.
1768         (main): Update exit code computation.
1769         * doc/posix-functions/getcwd.texi: Mention list of platforms where
1770         getcwd does not handle long file names.
1771
1772 2011-11-20  Bruno Haible  <bruno@clisp.org>
1773
1774         getcwd: Fix bug from 2009-09-10.
1775         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
1776         like "no".
1777
1778 2011-11-20  Simon Josefsson  <simon@josefsson.org>
1779
1780         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
1781
1782 2011-11-20  Bruno Haible  <bruno@clisp.org>
1783
1784         fma tests: Avoid shadowing local variables.
1785         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
1786         expected.
1787
1788 2011-11-20  Bruno Haible  <bruno@clisp.org>
1789
1790         copysignf tests: Fix.
1791         * tests/test-copysignf.c: Fix signature check.
1792
1793 2011-11-20  Bruno Haible  <bruno@clisp.org>
1794
1795         fma: Remove unused code.
1796         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
1797         unused macros.
1798
1799 2011-11-20  Bruno Haible  <bruno@clisp.org>
1800
1801         sethostname: Fix doc about AIX.
1802         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
1803         sethostname; it has it.
1804
1805         sethostname: Mention more portability problems.
1806         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
1807         problem.
1808         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1809
1810 2011-11-19  Bruno Haible  <bruno@clisp.org>
1811
1812         Depend on module fcntl-h when AT_FDCWD is used.
1813         * modules/utimens (Depends-on): Add fcntl-h.
1814         * modules/areadlinkat (Depends-on): Likewise.
1815         * modules/areadlinkat-with-size (Depends-on): Likewise.
1816         * modules/faccessat (Depends-on): Likewise.
1817         * modules/fchmodat (Depends-on): Likewise.
1818         * modules/fchownat (Depends-on): Likewise.
1819         * modules/getcwd (Depends-on): Likewise.
1820         * modules/mkdirat (Depends-on): Likewise.
1821         * modules/mkfifoat (Depends-on): Likewise.
1822         * modules/readlinkat (Depends-on): Likewise.
1823         * modules/symlinkat (Depends-on): Likewise.
1824         * modules/dup2-tests (Depends-on): Likewise.
1825         * modules/fdutimensat-tests (Depends-on): Likewise.
1826         * modules/futimens-tests (Depends-on): Likewise.
1827
1828 2011-11-19  Bruno Haible  <bruno@clisp.org>
1829
1830         euidaccess: Update a comment.
1831         * lib/euidaccess.c: Update comment about platforms with faccessat.
1832
1833 2011-11-19  Bruno Haible  <bruno@clisp.org>
1834
1835         openat: Fix file list.
1836         * modules/openat (Files): Remove lib/at-func.c.
1837
1838 2011-11-19  Bruno Haible  <bruno@clisp.org>
1839
1840         fstatat: Simplify.
1841         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
1842         gnulib should define rpl_fstatat, there is a
1843         "#define fstatat rpl_fstatat" in <sys/stat.h>.
1844
1845 2011-11-19  Bruno Haible  <bruno@clisp.org>
1846
1847         Ensure 'inline' can be used in tests/test-utimens-common.h.
1848         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
1849         * modules/futimens-tests (configure.ac): Likewise.
1850         * modules/utimens-tests (configure.ac): Likewise.
1851         * modules/utimensat-tests (configure.ac): Likewise.
1852
1853 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1854
1855         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
1856         not hash_insert0.
1857         (hash_insert_if_absent): Doc fix.
1858
1859 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1860
1861         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
1862
1863 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1864
1865         test-getcwd: disambiguate exit status
1866         * tests/test-getcwd.c (test_long_name): Return 0..7.
1867         (main): Exit with an unambiguous exit status.  The old
1868         code yielded a mysterious mixture of two failure codes.
1869
1870         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
1871         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
1872         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
1873         rpl_fstatat or fstatat.  This should fix the other problem
1874         reported by Kai Habel in
1875         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1876         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
1877         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
1878         and I reproduced it on a Solaris 8 host we still have in production.
1879
1880 2011-11-18  Jim Meyering  <meyering@redhat.com>
1881
1882         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
1883         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
1884         Add a sentence to the comment.
1885         (hash_insert0): New function that simply calls hash_insert_if_absent.
1886         * lib/hash.h (hash_insert_if_absent): Declare it.
1887         (hash_insert0): Add deprecation attribute.
1888         (_GL_ATTRIBUTE_DEPRECATED): Define.
1889         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
1890         not hash_insert0.
1891         * NEWS: Mention it, even though it's not really an incompatible change.
1892
1893 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
1894
1895         openat: avoid compilation failure due to lack of <errno.h> inclusion
1896         * lib/openat.c: Include <errno.h>.
1897
1898 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1899
1900         * modules/getcwd (Depends-on): Add fdopendir.
1901         This fixes one of the two problems reported by Kai Habel in
1902         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1903
1904         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
1905         stdalign problem reported by Ian Beckwith in
1906         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
1907         * modules/crypto/gc-arcfour (Depends-on):
1908         Depend conditionally on crypto/arcfour.
1909         * modules/crypto/gc-arctwo (Depends-on):
1910         Depend conditionally on crypto/arctwo.
1911         * modules/crypto/gc-des (Depends-on):
1912         Depend conditionally on crypto/des.
1913         * modules/crypto/gc-hmac-md5 (Depends-on):
1914         Depend conditionally on crypto/hmac-md5.
1915         * modules/crypto/gc-hmac-sha1 (Depends-on):
1916         Depend conditionally on crypto/hmac-sha1.
1917         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
1918         * modules/crypto/gc-md4 (Depends-on):
1919         Depend conditionally on crypto/md4.
1920         * modules/crypto/gc-md5 (Depends-on):
1921         Depend conditionally on crypto/md5.
1922         * modules/crypto/gc-rijndael (Depends-on):
1923         Depend conditionally on crypto/rijndael.
1924         * modules/crypto/gc-sha1 (Depends-on):
1925         Depend conditionally on crypto/sha1.
1926         * modules/crypto/gc-arcfour:
1927         * modules/crypto/gc-arctwo:
1928         * modules/crypto/gc-des:
1929         * modules/crypto/gc-hmac-md5:
1930         * modules/crypto/gc-hmac-sha1:
1931         * modules/crypto/gc-md2:
1932         * modules/crypto/gc-md4:
1933         * modules/crypto/gc-md5:
1934         * modules/crypto/gc-rijndael:
1935         * modules/crypto/gc-sha1:
1936         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
1937         now that the conditional dependencies do the work for us.
1938
1939 2011-11-17  Jim Meyering  <meyering@redhat.com>
1940
1941         tests: factor st_ctime-comparison out of two headers
1942         * tests/test-utimens-common.h (ctime_compare): Define.
1943         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
1944         * tests/test-lutimens.h (test_lutimens): Likewise.
1945         * tests/test-utimens.h (test_utimens): Likewise.
1946
1947         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
1948         Invoke the test program via an init.sh-using wrapper.
1949         * tests/test-getcwd.sh: New file.
1950         * modules/getcwd-tests (Files): Add it.
1951         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
1952
1953 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
1954
1955         gitlog-to-changelog: support multi-author commits.
1956         The FSF cares about keeping track of all authors of patches to its
1957         projects, but Git doesn't provide obvious support for multi-author
1958         changesets. Consensus seems to be forming around the use of extra
1959         Signed-off-by inspired lines in the log message formatted as
1960         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
1961         multi-author commits between version control systems.
1962         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
1963         log message and output in standard ChangeLog multi-author format.
1964         Reported by Peter Rosin <peda@lysator.liu.se>
1965
1966 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
1967             Bruno Haible  <bruno@clisp.org>
1968
1969         Fix some modules' file list.
1970         * modules/fstatat (Files): Add m4/lstat.m4.
1971         * modules/openat (Files): Likewise.
1972         * modules/unlinkat (Files): Likewise.
1973
1974 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
1975
1976         maint.mk: fix tight-scope.mk generation in VPATH builds.
1977         * top/maint.mk (tight-scope.mk): Make sure to prefix file
1978         reference with $(srcdir) so that the file is found correctly even
1979         when running `make syntax-check' in a VPATH build.
1980
1981 2011-11-13  Bruno Haible  <bruno@clisp.org>
1982             Jim Meyering  <meyering@redhat.com>
1983
1984         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
1985         * tests/init.sh (compare): Remove "No differences encountered" or
1986         synonymous output from the 'diff' program.
1987
1988 2011-11-13  Bruno Haible  <bruno@clisp.org>
1989
1990         Makefile: Tweak indentation.
1991         * Makefile: Use tab as first character in every line that contains rule
1992         commands.
1993
1994 2011-11-13  Bruno Haible  <bruno@clisp.org>
1995
1996         Syntax check for copyright statements.
1997         * check-copyright: New file.
1998         * Makefile (sc_check_copyright): New rule.
1999
2000 2011-11-13  Simon Josefsson  <simon@josefsson.org>
2001
2002         * build-aux/git-version-gen: Add --prefix to configure the tag
2003         match string.
2004
2005 2011-11-13  Simon Josefsson  <simon@josefsson.org>
2006
2007         * build-aux/git-version-gen: Add --help and --version.
2008
2009 2011-11-12  Jim Meyering  <meyering@redhat.com>
2010
2011         revamp the other test-exclude?.sh scripts to use init.sh, too
2012         * tests/test-exclude1.sh: Use init.sh.
2013         * tests/test-exclude2.sh: Likewise.
2014         * tests/test-exclude3.sh: Likewise.
2015         * tests/test-exclude4.sh: Likewise.
2016         * tests/test-exclude5.sh: Likewise.
2017         * tests/test-exclude6.sh: Likewise.
2018         * tests/test-exclude7.sh: Likewise.
2019         * tests/test-exclude8.sh: Likewise.
2020         * modules/exclude-tests (Files): List init.sh.
2021
2022         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
2023         These shell scripts ignored failure of the binary test-exclude,
2024         so making the latter return 77 didn't cause them to be skipped.
2025         * tests/test-exclude5.sh: Exit with test-exclude's error status
2026         when that program fails.  Revamp to use init.sh.
2027         * tests/test-exclude2.sh: Likewise.
2028
2029         test-exclude: fix a typo
2030         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
2031
2032 2011-11-11  Bruno Haible  <bruno@clisp.org>
2033
2034         obstack: Fix compilation error on MSVC 9.
2035         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
2036
2037 2011-11-11  Jim Meyering  <meyering@redhat.com>
2038
2039         test-exclude: skip tests rather than failing on deficient systems
2040         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
2041         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
2042         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
2043         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
2044
2045 2011-11-10  Bruno Haible  <bruno@clisp.org>
2046
2047         ptsname_r test: Avoid gcc warning on glibc systems.
2048         * tests/test-ptsname_r.c (null_ptr): New function.
2049         (test_errors): Use it.
2050
2051 2011-11-10  Bruno Haible  <bruno@clisp.org>
2052
2053         ptsname_r: Avoid compilation error on OSF/1 5.1.
2054         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
2055         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
2056         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
2057         function is not declared or incompatibly declared.
2058         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
2059         * modules/ptsname_r (Depends-on, configure.ac): Update.
2060         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
2061
2062 2011-11-10  Bruno Haible  <bruno@clisp.org>
2063
2064         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
2065         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
2066         When cross-compiling, guess yes on all platforms except AIX.
2067         Reported by Ludovic Courtès <ludo@gnu.org>.
2068
2069 2011-11-09  Bruno Haible  <bruno@clisp.org>
2070
2071         ptsname_r tests: Fix bugs.
2072         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
2073         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
2074
2075 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2076
2077         fstatat: work with cross-compilation
2078         Problem reported by Ludovic Courtès in
2079         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
2080         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
2081         "cross-compiling" and assume the bug is present.  Replace
2082         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
2083         an inverted sense, to be more conservative about our assumptions.
2084         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
2085
2086 2011-11-09  Bruno Haible  <bruno@clisp.org>
2087
2088         Improve MODULES.html output.
2089         * modules/mkfifoat (Description): Use the word "function".
2090         * modules/readlinkat (Description): Likewise.
2091         * modules/symlinkat (Description): Likewise.
2092
2093 2011-11-09  Eric Blake  <eblake@redhat.com>
2094
2095         ptsname_r-tests: new test module
2096         * modules/ptsname_r-tests: New module.
2097         * tests/test-ptsname_r.c: New file.
2098
2099         ptsname_r: new module
2100         * modules/ptsname_r: New module.
2101         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
2102         * lib/ptsname.c (__ptsname_r): Split...
2103         * lib/ptsname_r.c: ...into new file.
2104         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2105         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
2106         * modules/stdlib (Makefile.am): Substitute witnesses.
2107         * lib/stdlib.in.h (ptsname_r): Declare it.
2108         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
2109         * MODULES.html.sh (Misc): Likewise.
2110         * modules/ptsname (Depends-on): Alter dependency.
2111         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
2112
2113 2011-11-09  Jim Meyering  <meyering@redhat.com>
2114
2115         announce-gen: be more concise when there's only one URL+tarball
2116         * build-aux/announce-gen (get_tool_versions): When you distribute
2117         only one type of tarball, combine the first two "Here are..."
2118         sections and make the key-checking grammar independent of
2119         how many tarballs there are.
2120
2121 2011-11-09  Eric Blake  <eblake@redhat.com>
2122
2123         openpty: provide a stub on mingw
2124         * lib/pty.in.h (includes): Provide forward declarations.
2125         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
2126
2127         raise: fix mingw handling of SIGPIPE
2128         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
2129
2130 2011-11-08  Bruno Haible  <bruno@clisp.org>
2131
2132         More conditional dependencies.
2133         * modules/faccessat (Depends-on): Add conditions.
2134         * modules/fchmodat (Depends-on): Likewise.
2135         * modules/fchownat (Depends-on): Likewise.
2136         * modules/fstatat (Depends-on): Likewise.
2137         * modules/mkfifoat (Depends-on): Likewise.
2138         * modules/readlinkat (Depends-on): Likewise.
2139         * modules/symlinkat (Depends-on): Likewise.
2140         * modules/unlinkat (Depends-on): Likewise.
2141         * modules/utimensat (Depends-on): Likewise.
2142         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
2143         * modules/linkat (Depends-on): Refine the conditions.
2144         * modules/renameat (Depends-on): Likewise.
2145
2146 2011-11-08  Bruno Haible  <bruno@clisp.org>
2147
2148         faccessat: Move AC_LIBOBJ invocation to module description.
2149         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
2150         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
2151         invocation from here...
2152         * modules/faccessat (configure.ac): ... to here. Invoke
2153         gl_PREREQ_FACCESSAT.
2154
2155 2011-11-08  Bruno Haible  <bruno@clisp.org>
2156
2157         faccessat: Simplify autoconf macro.
2158         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
2159         gl_FUNC_EUIDACCESS.
2160
2161 2011-11-08  Bruno Haible  <bruno@clisp.org>
2162
2163         renameat: Fix dependencies.
2164         * modules/renameat (Depends-on): Add stdbool.
2165
2166 2011-11-08  Bruno Haible  <bruno@clisp.org>
2167
2168         mkfifoat: Fix module description.
2169         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
2170         not gl_UNISTD_MODULE_INDICATOR.
2171
2172 2011-11-08  Bruno Haible  <bruno@clisp.org>
2173
2174         fstatat: Remove unused dependency.
2175         * modules/fstatat (Depends-on): Remove fstat.
2176
2177 2011-11-08  Simon Josefsson  <simon@josefsson.org>
2178
2179         GNUmakefile: behave when Makefile is missing.
2180         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
2181
2182 2011-11-08  Bruno Haible  <bruno@clisp.org>
2183
2184         openat: Conditionalize dependencies.
2185         * lib/openat.c: Reduce the scope of some #includes.
2186         * modules/openat (Depends-on): Add conditions.
2187
2188 2011-11-07  Jim Meyering  <meyering@redhat.com>
2189
2190         maint.mk: extract GPG key ID without using a temporary file
2191         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
2192         without using a temporary file.  Based on a suggestion from Werner Koch
2193         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
2194
2195 2011-11-07  Eric Blake  <eblake@redhat.com>
2196
2197         grantpt: fix typo
2198         * lib/stdlib.in.h (grantpt): Check correct function.
2199
2200         maint.mk: silence new syntax check
2201         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
2202
2203 2011-11-06  Bruno Haible  <bruno@clisp.org>
2204
2205         Doc about floating-point and math API.
2206         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
2207         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
2208
2209 2011-11-06  Bruno Haible  <bruno@clisp.org>
2210
2211         stdalign tests: Skip the test when compiled by Sun C.
2212         * tests/test-stdalign.c (main): Skip the test on Sun C.
2213
2214 2011-11-06  Bruno Haible  <bruno@clisp.org>
2215
2216         ansi-c++-opt: Complete the 2011-06-05 change.
2217         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
2218         does not support namespaces, set the variable to "no", not to ":".
2219
2220 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2221
2222         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
2223
2224 2011-11-06  Bruno Haible  <bruno@clisp.org>
2225
2226         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
2227         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
2228         (minus_zerol) [HP-UX]: New macro.
2229         (unary_minus) [HP-UX]: New function.
2230         (copysignl) [HP-UX]: Use unary_minus function.
2231
2232 2011-11-06  Bruno Haible  <bruno@clisp.org>
2233
2234         ldexp, ldexpf, ldexpl: Enhance tests.
2235         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
2236         and tests/test-ldexpl.c.
2237         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
2238         LDEXP, MIN_EXP, MAX_EXP): New macros.
2239         Include test-ldexp.h.
2240         (main): Just call test_function.
2241         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
2242         infinity.h, nan.h.
2243         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
2244         MAX_EXP): New macros.
2245         Include test-ldexp.h.
2246         (x, y): Remove variables.
2247         (main): Just call test_function.
2248         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
2249         infinity.h, nan.h.
2250         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
2251         MAX_EXP): New macros.
2252         Include test-ldexp.h.
2253         (x, y): Remove variables.
2254         (main): Just call test_function.
2255         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
2256         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
2257         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
2258         (Depends-on): Add isnand-nolibm, signbit, float.
2259         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
2260         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
2261         (Depends-on): Add isnanf-nolibm, signbit, float.
2262
2263 2011-11-06  Bruno Haible  <bruno@clisp.org>
2264
2265         math tests: Cosmetics.
2266         * tests/test-math-c++.cc: Reorder declarations.
2267
2268 2011-11-05  Bruno Haible  <bruno@clisp.org>
2269
2270         fma*: Simplify test.
2271         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
2272         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
2273
2274         Tests for module 'fmal'.
2275         * modules/fmal-tests: New file.
2276         * tests/test-fmal1.c: New file.
2277         * tests/test-fmal2.c: New file.
2278
2279         New module 'fmal'.
2280         * lib/math.in.h (fmal): New declaration.
2281         * lib/fmal.c: New file.
2282         * m4/fmal.m4: New file.
2283         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
2284         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
2285         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
2286         REPLACE_FMAL.
2287         * modules/fmal: New file.
2288         * doc/posix-functions/fmal.texi: Mention the new module and the various
2289         bugs.
2290
2291         Tests for module 'fmaf'.
2292         * modules/fmaf-tests: New file.
2293         * tests/test-fmaf1.c: New file.
2294         * tests/test-fmaf2.c: New file.
2295
2296         New module 'fmaf'.
2297         * lib/math.in.h (fmaf): New declaration.
2298         * lib/fmaf.c: New file.
2299         * m4/fmaf.m4: New file.
2300         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
2301         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
2302         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
2303         REPLACE_FMAF.
2304         * modules/fmaf: New file.
2305         * doc/posix-functions/fmaf.texi: Mention the new module and the various
2306         bugs.
2307
2308         Tests for module 'fma'.
2309         * modules/fma-tests: New file.
2310         * tests/test-fma1.c: New file.
2311         * tests/test-fma1.h: New file.
2312         * tests/test-fma2.c: New file.
2313         * tests/test-fma2.h: New file.
2314
2315         New module 'fma'.
2316         * lib/math.in.h (fma): New declaration.
2317         * lib/fma.c: New file.
2318         * m4/fma.m4: New file.
2319         * m4/fegetround.m4: New file.
2320         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
2321         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
2322         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
2323         REPLACE_FMA.
2324         * modules/fma: New file.
2325         * doc/posix-functions/fma.texi: Mention the new module and the various
2326         bugs.
2327
2328         Extend gl_MATHFUNC.
2329         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
2330         Support 'void' as argument type.
2331         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
2332
2333 2011-11-05  Jim Meyering  <meyering@redhat.com>
2334
2335         maint.mk: also prohibit inclusion of dirent.h without use
2336         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
2337
2338 2011-11-05  Bruno Haible  <bruno@clisp.org>
2339
2340         ldexpl tests: Avoid test failure on MSVC 9.
2341         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
2342         value. Needed in order to enforce the conversion from a value greater
2343         than LDBL_MAX to Infinity.
2344
2345 2011-11-05  Bruno Haible  <bruno@clisp.org>
2346
2347         New modules 'at-internal', 'openat-h', split off from module 'openat'.
2348         * modules/at-internal: New file, extracted from modules/openat.
2349         * modules/openat-h: New file.
2350         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
2351         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
2352         * modules/openat (Description): Add reference to POSIX function.
2353         (Files): Remove lib/openat.h, lib/openat-proc.c.
2354         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
2355         intprops, unistd.
2356         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
2357         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
2358         gl_FCNTL_MODULE_INDICATOR.
2359         (Include): Remove unistd.h, openat.h.
2360         * modules/areadlinkat (Files): Add lib/at-func.c.
2361         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2362         openat-die, openat-h, save-cwd.
2363         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
2364         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2365         openat-die, openat-h, save-cwd, unistd.
2366         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
2367         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2368         openat-h, save-cwd. Remove fcntl-h, openat.
2369         * modules/fchmodat (Files): Remove lib/openat.h.
2370         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2371         openat, stdbool, unistd.
2372         * modules/fchownat (Files): Remove lib/openat.h.
2373         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2374         openat, stdbool, sys_stat.
2375         * modules/fdopendir (Files): Remove lib/openat-priv.h,
2376         lib/openat-proc.c.
2377         (Depends-on): Add at-internal.
2378         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
2379         * modules/fstatat (Files): Remove lib/openat.h.
2380         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
2381         stdbool, unistd.
2382         * modules/fts (Depends-on): Add openat-h.
2383         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
2384         openat.
2385         * modules/mkdirat (Files): Remove lib/openat.h.
2386         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2387         openat, stdbool, sys_stat.
2388         * modules/mkfifoat (Files): Add lib/at-func.c.
2389         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2390         openat-h, save-cwd. Remove fcntl-h, openat.
2391         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
2392         * modules/readlinkat (Files): Add lib/at-func.c.
2393         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2394         openat-h, save-cwd. Remove fcntl-h, openat.
2395         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
2396         openat.
2397         * modules/selinux-at (Files): Add lib/at-func.c.
2398         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2399         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
2400         * modules/symlinkat (Files): Add lib/at-func.c.
2401         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2402         openat-h, save-cwd. Remove fcntl-h, openat.
2403         * modules/unlinkat (Files): Remove lib/openat.h.
2404         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
2405         stdbool.
2406         * modules/utimensat (Files): Add lib/at-func.c.
2407         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
2408         openat-die, openat-h, save-cwd.
2409         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
2410         * modules/fdutimensat-tests (Depends-on): Add openat.
2411         * modules/fstatat-tests (Depends-on): Add openat-h.
2412         * modules/readlinkat-tests (Depends-on): Add openat.
2413         * modules/symlinkat-tests (Depends-on): Add openat.
2414
2415 2011-11-05  Bruno Haible  <bruno@clisp.org>
2416
2417         openat: Include <stdbool.h>.
2418         * lib/openat.c: Include <stdbool.h>.
2419
2420 2011-11-04  Bruno Haible  <bruno@clisp.org>
2421
2422         fchownat, renameat, unlinkat: Fix dependencies.
2423         * modules/fchownat (Depends-on): Add fstatat.
2424         * modules/renameat (Depends-on): Likewise.
2425         * modules/unlinkat (Depends-on): Likewise.
2426
2427 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
2428
2429         openat: remove direct dependency on dirent
2430         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
2431         and hasn't been needed ever since fdopendir was split into its own
2432         module on 2009-08-31.
2433         * modules/openat (Depends-on): Remove dirent.
2434
2435 2011-11-04  Bruno Haible  <bruno@clisp.org>
2436
2437         renameat: Optimize code size.
2438         * modules/renameat (configure.ac): Don't compile at-func2.c if
2439         REPLACE_RENAMEAT is 1.
2440
2441 2011-11-04  Bruno Haible  <bruno@clisp.org>
2442
2443         openat tests: Fix file list.
2444         * modules/openat-tests (Files): Add tests/test-open.h.
2445
2446 2011-11-04  Bruno Haible  <bruno@clisp.org>
2447
2448         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
2449         * modules/fchmodat (Depends-on): Add openat-die.
2450         * modules/fchownat (Depends-on): Likewise.
2451         * modules/linkat (Depends-on): Likewise.
2452         * modules/renameat (Depends-on): Likewise.
2453         * modules/openat (Depends-on): Add dirent.
2454
2455 2011-11-04  Jim Meyering  <meyering@redhat.com>
2456
2457         at-func*.c: fix comments
2458         * lib/at-func2.c: Correct/improve first-line comment.
2459         * lib/at-func.c: Correct grammar in first-line comment.
2460
2461 2011-11-04  Bruno Haible  <bruno@clisp.org>
2462
2463         New module 'mkdirat', split off from module 'openat'.
2464         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
2465         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
2466         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
2467         * modules/mkdirat: New file, extracted from modules/openat.
2468         * modules/openat (Files): Remove lib/mkdirat.c.
2469         (Depends-on): Remove mkdir.
2470         (configure.ac): Remove AC_LIBOBJ of mkdirat.
2471         (Include): Remove <sys/stat.h>.
2472         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
2473         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
2474         tests/test-mkdir.h.
2475         (Depends-on): Remove ignore-value.
2476         (Makefile.am): Remove rules for test-mkdirat.
2477         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
2478         of module 'openat'.
2479         * NEWS: Mention the change.
2480
2481 2011-11-04  Bruno Haible  <bruno@clisp.org>
2482
2483         closedir: Avoid warning on mingw.
2484         * lib/closedir.c: Include <unistd.h>.
2485
2486 2011-11-04  Bruno Haible  <bruno@clisp.org>
2487
2488         New module 'fstatat', split off from module 'openat'.
2489         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
2490         defined.
2491         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
2492         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
2493         gl_FUNC_FSTATAT.
2494         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
2495         * modules/fstatat: New file, extracted from modules/openat.
2496         * modules/openat (Files): Remove lib/fstatat.c.
2497         (Depends-on): Remove lstat.
2498         (configure.ac): Remove AC_LIBOBJ of fstatat.
2499         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
2500         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
2501         tests/test-lstat.h, tests/test-stat.h.
2502         (Depends-on): Remove getcwd-lgpl.
2503         (Makefile.am): Remove rules for test-fstatat.
2504         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
2505         of module 'openat'.
2506         * NEWS: Mention the change.
2507         * modules/getcwd (Depends-on): Add fstatat.
2508         * modules/linkat (Depends-on): Likewise.
2509         * modules/mkfifoat-tests (Depends-on): Likewise.
2510         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
2511
2512 2011-11-03  Bruno Haible  <bruno@clisp.org>
2513
2514         New module 'unlinkat', split off from module 'openat'.
2515         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
2516         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
2517         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
2518         * modules/unlinkat: New file, extracted from modules/openat. Correct
2519         the dependency conditions.
2520         * modules/openat (Files): Remove lib/unlinkat.c.
2521         (Depends-on): Remove rmdir, unlink.
2522         (configure.ac): Remove AC_LIBOBJ of unlinkat.
2523         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
2524         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
2525         tests/test-rmdir.h, tests/test-unlink.h.
2526         (Depends-on): Remove unlinkdir.
2527         (Makefile.am): Remove rules for test-unlinkat.
2528         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
2529         of module 'openat'.
2530         * NEWS: Mention the change.
2531         * modules/linkat-tests (Depends-on): Add unlinkat.
2532         * modules/mkfifoat-tests (Depends-on): Likewise.
2533         * modules/readlinkat-tests (Depends-on): Likewise.
2534
2535 2011-11-02  Bruno Haible  <bruno@clisp.org>
2536
2537         New module 'fchmodat', split off from module 'openat'.
2538         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
2539         defined.
2540         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
2541         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
2542         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
2543         * modules/fchmodat: New file, extracted from modules/openat.
2544         * modules/openat (Files): Remove lib/fchmodat.c.
2545         (configure.ac): Remove AC_LIBOBJ of fchmodat.
2546         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
2547         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
2548         (Makefile.am): Remove rules for test-fchmodat.
2549         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
2550         of module 'openat'.
2551         * NEWS: Mention the change.
2552
2553 2011-11-02  Jim Meyering  <meyering@redhat.com>
2554
2555         putenv: indent #definition of "environ" to placate cppi
2556         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
2557
2558         gitlog-to-changelog: provide a ChangeLog-repair mechanism
2559         Git logs are often treated as immutable, because editing them
2560         changes the SHA1 checksums of all descendants.  Thus, errors in
2561         git logs tend to stay there forever.  However, when we generate
2562         a ChangeLog file -- typically for distribution -- from that git log,
2563         we can actually make corrections in the generated file.  The key
2564         lies in recording in machine-readable/applicable form the desired
2565         corrections.  See --help for description and an example.
2566         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
2567         (usage): Describe it; alphabetize option descriptions.
2568         (main): Honor the new option, carefully.
2569
2570 2011-11-01  Jim Meyering  <meyering@redhat.com>
2571
2572         gitlog-to-changelog: avoid an infloop
2573         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
2574         that ends up being empty.
2575
2576 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2577
2578         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
2579         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
2580         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
2581         contains (possibly-quoted) backslashes.  This should avoid
2582         all-too-common shell bugs if COMPLICATED contains backslashes in
2583         the "wrong" places.  Reported by David Evans in
2584         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
2585         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
2586         because we want ASCII ranges.  Is there some reason we don't use
2587         the C locale everywhere in this script?
2588         (func_module, top level): Avoid unwanted pathname expansion when
2589         $repo_url_prefix or $repo_url_suffix_repl contain shell
2590         metacharacters like '?' and '*'.
2591
2592 2011-11-01  Bruno Haible  <bruno@clisp.org>
2593
2594         fchownat: Improve description.
2595         * modules/fchownat (Description): Add link to function.
2596
2597 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2598
2599         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
2600         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
2601         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
2602         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
2603
2604 2011-11-01  Bruno Haible  <bruno@clisp.org>
2605
2606         alignof: Avoid collision with stdalign module.
2607         * lib/alignof.h (alignof): Remove macro.
2608         * NEWS: Mention the change.
2609         Reported by Paul Eggert.
2610
2611 2011-11-01  Bruno Haible  <bruno@clisp.org>
2612
2613         New module 'fchownat', split off from module 'openat'.
2614         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
2615         defined.
2616         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
2617         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
2618         invoke gl_FUNC_FCHOWNAT.
2619         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
2620         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
2621         * modules/fchownat: New file, extracted from modules/openat.
2622         * modules/openat (Files): Remove lib/fchownat.c.
2623         (Depends-on): Remove lchown.
2624         (configure.ac): Remove AC_LIBOBJ of fchownat.
2625         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
2626         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
2627         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
2628         (Depends-on): Remove mgetgroups, usleep, stat-time.
2629         (configure.ac): Remove test for getegid.
2630         (Makefile.am): Remove rules for test-fchownat.
2631         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
2632         of module 'openat'.
2633         * NEWS: Mention the change.
2634
2635 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
2636
2637         stdalign: port better to MSVC and to Sun C 5.11
2638         This fixes some of the problems reported by Bruno Haible in
2639         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
2640         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
2641         shortcomings of MSVC and of Sun C 5.11.
2642         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
2643         around __declspec arg.
2644         * modules/stdalign-tests (Files): Add tests/macros.h.
2645         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
2646         Include macros.h, for ASSERT.
2647         (DECLARE_ALIGNED): Remove.
2648         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
2649         to catch bug), and to 1 if not (simplifies the rest of the code).
2650         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
2651         (CHECK_AUTO): Remove.
2652         (CHECK_ALIGNED): Check only the alignment of the static vars,
2653         since auto var alignment isn't supported by Sun C 5.11.
2654         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
2655         ASSERT failures are easier to diagnose.
2656
2657 2011-10-31  Bruno Haible  <bruno@clisp.org>
2658
2659         doc about some IRIX 5.3 problems.
2660         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
2661         on IRIX 5.3.
2662         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
2663         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
2664         5.3.
2665         * doc/posix-functions/grantpt.texi: Likewise.
2666         * doc/posix-functions/unlockpt.texi: Likewise.
2667         * doc/posix-functions/lgamma.texi: Likewise.
2668         * doc/posix-functions/nextafter.texi: Likewise.
2669         * doc/posix-functions/remainder.texi: Likewise.
2670         * doc/posix-functions/select.texi: Mention misplaced declaration on
2671         IRIX 5.3.
2672         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2673
2674 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
2675
2676         gitlog-to-changelog: fix git-log invocation.
2677         git-log mishandles date strings before 1970-01-01 UTC, and there is
2678         no use to specify --since=1970-01-01 by default anyway.
2679         * build-aux/gitlog-to-changelog: By default, when no --since option
2680         was given, do not specify explicit --since option to git-log.
2681
2682 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
2683
2684         gitlog-to-changelog: new option --append-dot.
2685         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
2686         first non-blank line of each commit message terminated with a dot.
2687
2688 2011-10-30  Bruno Haible  <bruno@clisp.org>
2689
2690         ffsl, ffsll: Avoid compilation error due to 'restrict'.
2691         * lib/ffsl.h: Include <config.h>.
2692         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
2693
2694 2011-10-30  Jim Meyering  <meyering@redhat.com>
2695
2696         GNUmakefile: reenable "make syntax-check" for most projects
2697         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
2698         build-aux variable", "syntax-check" would do nothing but succeed with
2699         the "No version control files detected..." diagnostic (unless you
2700         happened to override _build-aux via cfg.mk).
2701         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
2702         to precede inclusion of maint.mk.  Otherwise, these variables would
2703         be used undefined in any project that does not override the default.
2704
2705 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
2706
2707         gitlog-to-changelog: treat a message with only blank lines as empty.
2708         * build-aux/gitlog-to-changelog: Move the code that removes leading and
2709         trailing blank lines before the code that issues a warning about an
2710         empty commit message.
2711
2712 2011-10-30  Jim Meyering  <meyering@redhat.com>
2713
2714         test-parse-datetime.c: avoid new DST-related false positive test failure
2715         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
2716         based on the time/date we'll convert, not the current time.
2717         Otherwise, the moment we cross a DST boundary like today's in
2718         Europe, (CEST to CET), that offset ends up being one hour off.
2719
2720 2011-10-27  Bruno Haible  <bruno@clisp.org>
2721
2722         fstat: Tweak documentation.
2723         * modules/fstat (Description): More precise description.
2724
2725 2011-10-27  Bruno Haible  <bruno@clisp.org>
2726
2727         Update documentation regarding 'largefile' module.
2728         * doc/posix-functions/fstat.texi: Tweak wording.
2729         * doc/posix-functions/opendir.texi: Mention that the module fixes the
2730         problems with huge directories and/or small ino_t types.
2731         * doc/posix-functions/readdir.texi: Likewise.
2732         * doc/posix-functions/rewinddir.texi: Likewise.
2733
2734 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
2735
2736         maint.mk: don't maintain a second build-aux variable.
2737         * maint.mk (build_aux): Removed.  The maintainer-makefile module
2738         depends on GNUmakefile, which already maintains a cfg.mk
2739         overridable $(_build-aux) for projects with a non-standard
2740         build-aux directory location, although without the $(srcdir)
2741         prefix.  Use that variable consistently instead of introducing a
2742         second one.  Adjust all call sites.
2743
2744 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
2745
2746         Add stdalign module and use it in other modules.
2747         This is based on a previous proposal by Bruno Haible
2748         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
2749
2750         stdalign: new module
2751         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
2752         * modules/stdalign: New files.
2753         * MODULES.html.sh (c1x_core_properties): Add stdalign.
2754         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
2755
2756         stdalign-tests: new module
2757         * modules/stdalign-tests, tests/test-stdalign.c: New files.
2758
2759         argp: use stdalign
2760         * lib/argp-parse.c: Include <stdalign.h>.
2761         (alignof): Remove.
2762         * modules/argp (Depends-on): Add stdalign.
2763
2764         crypto libraries: use stdalign
2765         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
2766         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
2767         Do not include <stdlib.h> twice, in md4.c.
2768         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
2769         because we are accessing a pointer's bit-pattern, not a size.
2770         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
2771         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
2772         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
2773         * modules/crypto/sha512: Likewise.
2774
2775         sys_socket: use stdalign, not alignof
2776         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
2777         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
2778
2779 2011-10-27  Bruno Haible  <bruno@clisp.org>
2780
2781         raise test: Avoid a test failure on Linux/MIPS.
2782         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
2783         because 99 is a valid signal on Linux/MIPS.
2784
2785 2011-10-27  Bruno Haible  <bruno@clisp.org>
2786
2787         nonblocking tests: Fix test failure on Linux/MIPS.
2788         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
2789         Set to 270000.
2790
2791 2011-10-27  Bruno Haible  <bruno@clisp.org>
2792
2793         utimensat: Work around problem on Linux/hppa.
2794         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
2795         values.
2796         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
2797
2798 2011-10-25  Jim Meyering  <meyering@redhat.com>
2799
2800         maint.mk: fix a bug in sc_prohibit_stddef_without_use
2801         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
2802         after symbols like NULL, size_t, etc.
2803         Reported by Alfred M. Szmidt.
2804
2805         maint.mk: exempt ENODATA from a syntax-check rule
2806         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
2807         from the sc_prohibit_always-defined_macros syntax-check rule.
2808         Add a comment.  See this for more details:
2809         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
2810
2811 2011-10-23  Jim Meyering  <meyering@redhat.com>
2812
2813         fts: close parent dir FD before returning from post-traversal fts_read
2814         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
2815         unlink A, even though an FD open on A remained.  This is suboptimal
2816         (holding a file descriptor open longer than needed), but otherwise not
2817         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
2818         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
2819         that represents a real problem: it causes the removal of A to fail
2820         with e.g., "rm: cannot remove `A': Device or resource busy"
2821
2822         fts visits each directory twice and keeps a cache (fts_fd_ring) of
2823         directory file descriptors.  After completing the final, FTS_DP,
2824         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
2825         cache, but then proceeded to add a new FD to it via the subsequent
2826         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
2827         final file descriptor would be closed only via fts_close's call to
2828         fd_ring_clear.  Now, it is usually closed earlier, via the final
2829         FTS_DP-returning fts_read call.
2830         * lib/fts.c (restore_initial_cwd): New function, converted from
2831         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
2832         Update callers.
2833         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
2834         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
2835
2836 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
2837             Bruno Haible  <bruno@clisp.org>
2838             Jim Meyering  <jim@meyering.net>
2839
2840         readme-release: improve safety of release prep instructions.
2841         * README-release: Don't git pull all branches when only master
2842         is needed for the release process.
2843         Run make maintainer-clean before changing trees and merging.
2844         Don't try to run ./configure right after git pull in case files
2845         that influence the bootstrap process have changed, move the
2846         ./configure step to after running ./bootstrap.
2847         Don't bootstrap "one last time"... it's the first time!
2848
2849 2011-10-22  Bruno Haible  <bruno@clisp.org>
2850
2851         errno, strerror-override: Support for MSVC 10.
2852         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
2853         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
2854         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
2855         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
2856         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
2857         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
2858         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
2859         Assign values compatible with MSVC 10.
2860         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
2861         New macros.
2862         (GNULIB_defined_EWINSOCK): New macro.
2863         * lib/strerror-override.c (strerror_override): Update accordingly.
2864         * lib/strerror-override.h: Likewise.
2865         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
2866         longer equal to the corresponding errno value.
2867         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2868
2869 2011-10-22  Bruno Haible  <bruno@clisp.org>
2870
2871         perror: Recognize when test program crashes.
2872         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
2873         strerror, set gl_cv_func_perror_works to no.
2874         Reported by Daniel Richard G. <skunk@iskunk.org>.
2875
2876         perror: Fix indentation.
2877         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
2878
2879 2011-10-22  Bruno Haible  <bruno@clisp.org>
2880
2881         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
2882         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
2883         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
2884         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
2885         functions, not as a macro.
2886         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
2887         macros.
2888         (isfinite, isinf, isnan, signbit): Check overloaded functions and
2889         absence of macro.
2890         Suggested by Eric Blake.
2891         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2892
2893 2011-10-21  Bruno Haible  <bruno@clisp.org>
2894
2895         relocatable-prog-wrapper: Don't leave object files behind.
2896         * build-aux/install-reloc: Re-synchronize list of .o files to be
2897         removed with list of compilation units.
2898
2899 2011-10-20  Bruno Haible  <bruno@clisp.org>
2900
2901         openpty, posix_openpt: Remove code duplication.
2902         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
2903         * lib/openpty.c: Include <stdlib.h>.
2904         (openpty): Use posix_openpt on all platforms except IRIX.
2905         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
2906
2907 2011-10-20  Bruno Haible  <bruno@clisp.org>
2908
2909         unlockpt: Detect invalid argument.
2910         * lib/unlockpt.c: Include <fcntl.h>.
2911         (unlockpt): Check whether fd is valid, using fcntl().
2912         * modules/unlockpt (Depends-on): Add fcntl-h.
2913
2914 2011-10-20  Bruno Haible  <bruno@clisp.org>
2915
2916         openpty: Avoid compilation error on AIX 6.1.
2917         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
2918
2919 2011-10-20  Bruno Haible  <bruno@clisp.org>
2920
2921         posix_openpt: Support for OpenBSD.
2922         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
2923         (posix_openpt) [OpenBSD]: New code.
2924         * lib/grantpt.c: Include <fcntl.h>.
2925         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
2926         * modules/grantpt (Depends-on): Add fcntl-h.
2927
2928 2011-10-20  Bruno Haible  <bruno@clisp.org>
2929
2930         posix_openpt test: Coding style.
2931         * tests/test-posix_openpt.c: Use GNU coding style.
2932
2933 2011-10-20  Bruno Haible  <bruno@clisp.org>
2934
2935         grantpt: Support --avoid=pt_chown.
2936         * modules/grantpt (Files): Add lib/pty-private.h.
2937
2938 2011-10-20  Bruno Haible  <bruno@clisp.org>
2939
2940         posix_openpt: Fix autoconf macro.
2941         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
2942         unneeded check for _getpty.
2943
2944 2011-10-20  Bruno Haible  <bruno@clisp.org>
2945
2946         openpty: Update comments.
2947         * lib/openpty.c: Add comments about Minix.
2948
2949 2011-10-19  Eric Blake  <eblake@redhat.com>
2950
2951         openpty: relax license
2952         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
2953
2954         pt_chown: use configmake to simplify build
2955         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
2956
2957         ptsname and others: relax license
2958         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
2959         * modules/unlockpt (License): Likewise.
2960         * modules/pt_chown (License): Likewise.
2961         * modules/ptsname (License): Likewise.
2962         * modules/ttyname_r (License): Likewise.
2963
2964 2011-10-19  Jim Meyering  <meyering@redhat.com>
2965
2966         posix_openpt: remove spurious #endif
2967         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
2968
2969 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
2970
2971         maint.mk: Respect $(build_aux) in web-manual rule.
2972         * top/maint.mk (web-manual): Find gen-announce script in user's
2973         $(build_aux) directory instead of hard-coding 'build-aux'.
2974
2975 2011-10-19  Bruno Haible  <bruno@clisp.org>
2976
2977         posix_openpt: Fix compilation error.
2978         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
2979         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
2980         Mention the openpty module as an alternative.
2981
2982 2011-10-19  Bruno Haible  <bruno@clisp.org>
2983
2984         Support for old NeXTstep 3.3 frexp().
2985         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
2986         execution time of the test to 5 seconds.
2987         Reported by Daniel Richard G. <skunk@iskunk.org>.
2988
2989 2011-10-19  Bruno Haible  <bruno@clisp.org>
2990
2991         Support for old NeXTstep 3.3 sed.
2992         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
2993         part, use /.../, not \|...|. Escape periods in the header file name.
2994         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2995         Reported by Daniel Richard G. <skunk@iskunk.org>.
2996
2997 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2998
2999         Support for old NeXTstep 3.3 gcc.
3000         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
3001         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
3002         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
3003         * lib/spawn.in.h (_Restrict_arr_): Likewise.
3004         * lib/regex.h (_Restrict_arr_): Likewise.
3005         * lib/regex_internal.h (re_token_t): Likewise.
3006         * lib/regexec.c (check_node_accept_bytes): Likewise.
3007         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
3008
3009 2011-10-18  Eric Blake  <eblake@redhat.com>
3010
3011         posix_openpt: new module
3012         * modules/posix_openpt: New module.
3013         * m4/posix_openpt.m4: New file.
3014         * lib/posix_openpt.c: Likewise.
3015         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
3016         (gl_STDLIB_H_DEFAULTS): Set defaults.
3017         * modules/stdlib (Makefile.am): Substitute macros.
3018         * lib/stdlib.in.h (posix_openpt): Declare.
3019         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
3020         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
3021         * modules/posix_openpt-tests: New test module.
3022         * tests/test-posix_openpt.c: New test.
3023
3024 2011-10-15  Bruno Haible  <bruno@clisp.org>
3025
3026         xstrtoll: Fix compilation failure.
3027         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
3028         from lib/strtol.c.
3029         * doc/posix-headers/limits.texi: Mention missing numerical limits on
3030         some platforms.
3031         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3032
3033 2011-10-15  Bruno Haible  <bruno@clisp.org>
3034
3035         vasnprintf: Optimize bit search operation.
3036         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
3037         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
3038         gl_DOUBLE_EXPONENT_LOCATION.
3039         * modules/vasnprintf (Files): Add m4/exponentd.m4.
3040         * modules/unistdio/u8-vasnprintf (Files): Likewise.
3041         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
3042         * modules/unistdio/u16-vasnprintf (Files): Likewise.
3043         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
3044         * modules/unistdio/u32-vasnprintf (Files): Likewise.
3045         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
3046         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
3047         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
3048
3049 2011-10-15  Bruno Haible  <bruno@clisp.org>
3050
3051         vasnprintf: Fix comments.
3052         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
3053
3054 2011-10-14  Bruno Haible  <bruno@clisp.org>
3055
3056         Tests for module 'integer_length_ll'.
3057         * modules/integer_length_ll-tests: New file.
3058         * tests/test-integer_length_ll.c: New file.
3059
3060         New module 'integer_length_ll'.
3061         * lib/integer_length_ll.c: New file.
3062         * modules/integer_length_ll: New file.
3063
3064 2011-10-14  Bruno Haible  <bruno@clisp.org>
3065
3066         Tests for module 'integer_length_l'.
3067         * modules/integer_length_l-tests: New file.
3068         * tests/test-integer_length_l.c: New file.
3069
3070         New module 'integer_length_l'.
3071         * lib/integer_length_l.c: New file.
3072         * modules/integer_length_l: New file.
3073
3074 2011-10-14  Bruno Haible  <bruno@clisp.org>
3075
3076         Tests for module 'integer_length'.
3077         * modules/integer_length-tests: New file.
3078         * tests/test-integer_length.c: New file.
3079
3080         New module 'integer_length'.
3081         * lib/integer_length.h: New file.
3082         * lib/integer_length.c: New file.
3083         * modules/integer_length: New file.
3084
3085 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3086
3087         popen: Fix dependency conditions.
3088         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
3089
3090 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3091
3092         perror: Fix autoconf test.
3093         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
3094         <stdlib.h> and <string.h>.
3095
3096 2011-10-14  Bruno Haible  <bruno@clisp.org>
3097
3098         ffsl: Optimize on 64-bit platforms.
3099         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
3100         unrolling.
3101
3102 2011-10-13  Bruno Haible  <bruno@clisp.org>
3103
3104         ffsl: Optimize on 32-bit platforms.
3105         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
3106         use ffs() without a loop.
3107
3108         ffsl, ffsll: Optimize for GCC.
3109         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
3110         * lib/ffsl.c (GCC_BUILTIN): New macro.
3111         * lib/ffsll.c (GCC_BUILTIN): Likewise.
3112
3113 2011-10-13  Bruno Haible  <bruno@clisp.org>
3114
3115         ffs, bcopy, memset: Support symbol renaming via config.h.
3116         * lib/ffs.c: Include <config.h>.
3117         * lib/bcopy.c: Likewise.
3118         * lib/memset.c: Likewise.
3119
3120 2011-10-10  Bruno Haible  <bruno@clisp.org>
3121
3122         atanl: Simplify for platforms where 'long double' == 'double'.
3123         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3124         alternative implementation.
3125         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3126         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3127         * modules/atanl (Depends-on): Add atan. Update conditions.
3128
3129 2011-10-10  Bruno Haible  <bruno@clisp.org>
3130
3131         acosl: Simplify for platforms where 'long double' == 'double'.
3132         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3133         alternative implementation.
3134         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3135         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3136         * modules/acosl (Depends-on): Add acos. Update conditions.
3137
3138 2011-10-10  Bruno Haible  <bruno@clisp.org>
3139
3140         asinl: Simplify for platforms where 'long double' == 'double'.
3141         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3142         alternative implementation.
3143         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3144         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3145         * modules/asinl (Depends-on): Add asin. Update conditions.
3146
3147 2011-10-10  Bruno Haible  <bruno@clisp.org>
3148
3149         tanl: Simplify for platforms where 'long double' == 'double'.
3150         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3151         implementation.
3152         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3153         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3154         * modules/tanl (Depends-on): Add tan. Update conditions.
3155         (configure.ac): Don't compile trigl.c if
3156         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3157
3158 2011-10-10  Bruno Haible  <bruno@clisp.org>
3159
3160         cosl: Simplify for platforms where 'long double' == 'double'.
3161         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3162         implementation.
3163         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3164         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3165         * modules/cosl (Depends-on): Add cos. Update conditions.
3166         (configure.ac): Don't compile sincosl.c and trigl.c if
3167         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3168
3169 2011-10-10  Bruno Haible  <bruno@clisp.org>
3170
3171         sinl: Simplify for platforms where 'long double' == 'double'.
3172         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3173         implementation.
3174         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3175         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3176         * modules/sinl (Depends-on): Add sin. Update conditions.
3177         (configure.ac): Don't compile sincosl.c and trigl.c if
3178         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3179
3180 2011-10-10  Bruno Haible  <bruno@clisp.org>
3181
3182         logl: Simplify for platforms where 'long double' == 'double'.
3183         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3184         implementation.
3185         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3186         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3187         * modules/logl (Depends-on): Add log. Update conditions.
3188
3189 2011-10-10  Bruno Haible  <bruno@clisp.org>
3190
3191         expl: Simplify for platforms where 'long double' == 'double'.
3192         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3193         implementation.
3194         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3195         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3196         * modules/expl (Depends-on): Add exp. Update conditions.
3197
3198 2011-10-10  Bruno Haible  <bruno@clisp.org>
3199
3200         sqrtl: Simplify for platforms where 'long double' == 'double'.
3201         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3202         alternative implementation.
3203         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3204         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3205         * modules/sqrtl (Depends-on): Update conditions.
3206
3207 2011-10-10  Bruno Haible  <bruno@clisp.org>
3208
3209         ldexpl: Simplify for platforms where 'long double' == 'double'.
3210         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3211         alternative implementation.
3212         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3213         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3214         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
3215
3216 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
3217
3218         ffsll: set correct witness
3219         * modules/ffsll (configure.ac): Fix typo.
3220
3221 2011-10-10  Bruno Haible  <bruno@clisp.org>
3222
3223         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
3224         * lib/printf-frexpl.c: Include <config.h>.
3225         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3226         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
3227         second time.
3228         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
3229         gl_LONG_DOUBLE_VS_DOUBLE.
3230         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
3231         conditions.
3232
3233 2011-10-10  Bruno Haible  <bruno@clisp.org>
3234
3235         frexpl: Simplify for platforms where 'long double' == 'double'.
3236         * lib/frexpl.c: Include <config.h>.
3237         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3238         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3239         time.
3240         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3241         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3242         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
3243         * modules/frexpl (Depends-on): Add frexp. Update conditions.
3244         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
3245         conditions.
3246
3247 2011-10-10  Jim Meyering  <meyering@redhat.com>
3248
3249         test-renameat: don't leave behind a temporary file
3250         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
3251           ERROR: files left in build directory after distclean:
3252           ./gltests/test-renameat.too
3253           make[1]: *** [distcleancheck] Error 1
3254         Reported by Tom G. Christensen.
3255
3256 2011-10-09  Bruno Haible  <bruno@clisp.org>
3257
3258         rint: Determine RINT_LIBM correctly on AIX 7.
3259         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
3260         directly, not only through a function pointer. Also accept an optional
3261         4th argument with extra code.
3262         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
3263         rintf() call by gcc when optimizing.
3264
3265         mathfunc.m4: Refactor.
3266         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
3267         m4 variable.
3268
3269 2011-10-09  Bruno Haible  <bruno@clisp.org>
3270
3271         rintl: Simplify for platforms where 'long double' == 'double'.
3272         * lib/rintl.c: Include <config.h>.
3273         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3274         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3275         time.
3276         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3277         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3278         * modules/rintl (Depends-on): Add rint. Update conditions.
3279
3280 2011-10-09  Bruno Haible  <bruno@clisp.org>
3281
3282         roundl: Simplify for platforms where 'long double' == 'double'.
3283         * lib/roundl.c: Include <config.h>.
3284         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3285         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3286         time.
3287         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3288         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3289         * modules/roundl (Depends-on): Add round. Update conditions.
3290
3291 2011-10-09  Bruno Haible  <bruno@clisp.org>
3292
3293         truncl: Simplify for platforms where 'long double' == 'double'.
3294         * lib/truncl.c: Include <config.h>.
3295         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3296         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3297         time.
3298         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3299         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3300         * modules/truncl (Depends-on): Add trunc. Update conditions.
3301
3302 2011-10-09  Bruno Haible  <bruno@clisp.org>
3303
3304         ceill: Simplify for platforms where 'long double' == 'double'.
3305         * lib/ceill.c: Include <config.h>.
3306         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3307         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3308         time.
3309         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3310         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3311         * modules/ceill (Depends-on): Add ceil. Update conditions.
3312
3313 2011-10-09  Bruno Haible  <bruno@clisp.org>
3314
3315         floorl: Simplify for platforms where 'long double' == 'double'.
3316         * lib/floorl.c: Include <config.h>.
3317         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3318         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3319         time.
3320         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3321         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3322         * modules/floorl (Depends-on): Add floor. Update conditions.
3323
3324 2011-10-09  Bruno Haible  <bruno@clisp.org>
3325
3326         rint: Fix ordering constraints.
3327         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
3328         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
3329         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
3330
3331 2011-10-09  Bruno Haible  <bruno@clisp.org>
3332
3333         copysignl: Simplify for platforms where 'long double' == 'double'.
3334         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3335         alternative.
3336         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3337         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3338         * modules/copysignl (Depends-on): Add copysign. Update conditions.
3339
3340 2011-10-09  Bruno Haible  <bruno@clisp.org>
3341
3342         Tests for module 'rintl'.
3343         * modules/rintl-tests: New file.
3344         * tests/test-rintl.c: New file.
3345
3346         New module 'rintl'.
3347         * lib/math.in.h (rintl): New declaration.
3348         * lib/rintl.c: New file.
3349         * m4/rintl.m4: New file.
3350         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
3351         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
3352         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
3353         * modules/rintl: New file.
3354         * tests/test-math-c++.cc: Check the declaration of rintl.
3355         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3356         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
3357         * doc/posix-functions/rintl.texi: Mention the new module.
3358
3359 2011-10-09  Bruno Haible  <bruno@clisp.org>
3360
3361         Tests for module 'rintf'.
3362         * modules/rintf-tests: New file.
3363         * tests/test-rintf.c: New file.
3364
3365         New module 'rintf'.
3366         * lib/math.in.h (rintf): New declaration.
3367         * lib/rintf.c: New file.
3368         * m4/rintf.m4: New file.
3369         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
3370         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
3371         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
3372         * modules/rintf: New file.
3373         * tests/test-math-c++.cc: Check the declaration of rintf.
3374         * doc/posix-functions/rintf.texi: Mention the new module.
3375
3376 2011-10-09  Bruno Haible  <bruno@clisp.org>
3377
3378         rint: Support for MSVC.
3379         * lib/math.in.h (rint): New declaration.
3380         * lib/rint.c: New file.
3381         * m4/rint.m4: New file.
3382         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
3383         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
3384         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
3385         * modules/rint (Description): Fix.
3386         (Files): Add lib/rint.c, m4/rint.m4.
3387         (Depends-on): Add math.
3388         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
3389         gl_MATH_MODULE_INDICATOR.
3390         * tests/test-math-c++.cc: Check the declaration of rint.
3391         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3392         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
3393         * doc/posix-functions/rint.texi: Mention the replacement provided by
3394         the module.
3395
3396         rint tests: More tests.
3397         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
3398         minus-zero.h, infinity.h, nan.h.
3399         (main): Skip the test if the current rounding mode is not standard. Add
3400         tests for negative numbers, minus zero, infinity, NaN.
3401         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
3402         tests/nan.h.
3403         (Depends-on): Add isnand-nolibm.
3404
3405 2011-10-09  Bruno Haible  <bruno@clisp.org>
3406
3407         Tests for module 'copysignl'.
3408         * modules/copysignl-tests: New file.
3409         * tests/test-copysignl.c: New file.
3410
3411         New module 'copysignl'.
3412         * lib/math.in.h (copysignl): New declaration.
3413         * lib/copysignl.c: New file.
3414         * m4/copysignl.m4: New file.
3415         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
3416         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
3417         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
3418         HAVE_COPYSIGNL.
3419         * modules/copysignl: New file.
3420         * tests/test-math-c++.cc: Check the declaration of copysignl.
3421         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3422         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
3423         * doc/posix-functions/copysignl.texi: Mention the new module.
3424
3425 2011-10-09  Bruno Haible  <bruno@clisp.org>
3426
3427         Tests for module 'copysignf'.
3428         * modules/copysignf-tests: New file.
3429         * tests/test-copysignf.c: New file.
3430
3431         New module 'copysignf'.
3432         * lib/math.in.h (copysignf): New declaration.
3433         * lib/copysignf.c: New file.
3434         * m4/copysignf.m4: New file.
3435         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
3436         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
3437         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
3438         HAVE_COPYSIGNF.
3439         * modules/copysignf: New file.
3440         * tests/test-math-c++.cc: Check the declaration of copysignf.
3441         * doc/posix-functions/copysignf.texi: Mention the new module.
3442
3443 2011-10-09  Bruno Haible  <bruno@clisp.org>
3444
3445         Ensure that HAVE_* variables are set to 1 before they are set to 0.
3446         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
3447         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
3448         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3449         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
3450         gl_SIGNAL_H_DEFAULTS.
3451
3452 2011-10-09  Bruno Haible  <bruno@clisp.org>
3453
3454         poll: Make macro safer.
3455         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
3456         ac_cv_header_poll_h is not set.
3457
3458 2011-10-09  Bruno Haible  <bruno@clisp.org>
3459
3460         copysign: Provide replacement.
3461         * lib/math.in.h (copysign): New declaration.
3462         * lib/copysign.c: New file.
3463         * m4/copysign.m4: New file.
3464         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
3465         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
3466         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
3467         HAVE_COPYSIGN.
3468         * modules/copysign (Description): Clarify.
3469         (Files): Add lib/copysign.c, m4/copysign.m4.
3470         (Depends-on): Add math, signbit.
3471         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
3472         gl_MATH_MODULE_INDICATOR.
3473         * tests/test-math-c++.cc: Check the declaration of copysign.
3474         * doc/posix-functions/copysign.texi: Mention the effects of the module
3475         on Minix and MSVC.
3476
3477 2011-10-09  Bruno Haible  <bruno@clisp.org>
3478
3479         isinf: Ensure macro on AIX 5.1.
3480         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
3481         macro.
3482         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
3483
3484 2011-10-09  Bruno Haible  <bruno@clisp.org>
3485
3486         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
3487         * modules/snprintf-posix-tests (configure.ac): Require
3488         gl_LONG_DOUBLE_VS_DOUBLE.
3489         * modules/sprintf-posix-tests (configure.ac): Likewise.
3490         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
3491         * modules/vasprintf-posix-tests (configure.ac): Likewise.
3492         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
3493         * modules/vsprintf-posix-tests (configure.ac): Likewise.
3494         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
3495         tests on platforms where 'long double' is the same as 'double'.
3496         * tests/test-sprintf-posix.h (test_function): Likewise.
3497         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3498         * tests/test-vasprintf-posix.c (test_function): Likewise.
3499
3500         *printf: Fix for platforms where 'long double' == 'double'.
3501         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
3502         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
3503         * modules/dprintf-posix (Files): Add m4/math_h.m4.
3504         * modules/fprintf-posix (Files): Likewise.
3505         * modules/obstack-printf-posix (Files): Likewise.
3506         * modules/snprintf-posix (Files): Likewise.
3507         * modules/sprintf-posix (Files): Likewise.
3508         * modules/vasnprintf (Files): Likewise.
3509         * modules/vasnprintf-posix (Files): Likewise.
3510         * modules/vasprintf-posix (Files): Likewise.
3511         * modules/vdprintf-posix (Files): Likewise.
3512         * modules/vfprintf-posix (Files): Likewise.
3513         * modules/vsnprintf-posix (Files): Likewise.
3514         * modules/vsprintf-posix (Files): Likewise.
3515         * modules/unistdio/u8-vasnprintf (Files): Likewise.
3516         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
3517         * modules/unistdio/u16-vasnprintf (Files): Likewise.
3518         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
3519         * modules/unistdio/u32-vasnprintf (Files): Likewise.
3520         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
3521         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
3522
3523         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
3524         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
3525         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3526         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
3527         'long double'.
3528         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
3529
3530         isinf: Fix for platforms where 'long double' == 'double'.
3531         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3532         Don't blindly assume 80-bit 'long double'.
3533
3534         isfinite: Fix for platforms where 'long double' == 'double'.
3535         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3536         Don't blindly assume 80-bit 'long double'.
3537
3538         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
3539         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
3540         * modules/isfinite-tests (configure.ac): Require
3541         gl_LONG_DOUBLE_VS_DOUBLE.
3542         * modules/isinf-tests (configure.ac): Likewise.
3543         * modules/isnan-tests (configure.ac): Likewise.
3544         * modules/isnanl-tests (configure.ac): Likewise.
3545         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
3546         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
3547         tests on platforms where 'long double' is the same as 'double'.
3548         * tests/test-isinf.c (test_isinfl): Likewise.
3549         * tests/test-isnan.c (test_long_double): Likewise.
3550         * tests/test-isnanl.h (main): Likewise.
3551
3552 2011-10-08  Bruno Haible  <bruno@clisp.org>
3553
3554         Tests for module 'tanhf'.
3555         * modules/tanhf-tests: New file.
3556         * tests/test-tanhf.c: New file.
3557
3558         New module 'tanhf'.
3559         * lib/math.in.h (tanhf): New declaration.
3560         * lib/tanhf.c: New file.
3561         * m4/tanhf.m4: New file.
3562         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
3563         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
3564         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
3565         * modules/tanhf: New file.
3566         * tests/test-math-c++.cc: Check the declaration of tanhf.
3567         * doc/posix-functions/tanhf.texi: Mention the new module.
3568
3569         tanh: Use a .m4 file.
3570         * m4/tanh.m4: New file.
3571         * modules/tanh (Files): Add it.
3572         (configure.ac): Just invoke gl_FUNC_TANH.
3573
3574 2011-10-08  Bruno Haible  <bruno@clisp.org>
3575
3576         Tests for module 'coshf'.
3577         * modules/coshf-tests: New file.
3578         * tests/test-coshf.c: New file.
3579
3580         New module 'coshf'.
3581         * lib/math.in.h (coshf): New declaration.
3582         * lib/coshf.c: New file.
3583         * m4/coshf.m4: New file.
3584         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
3585         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
3586         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
3587         * modules/coshf: New file.
3588         * tests/test-math-c++.cc: Check the declaration of coshf.
3589         * doc/posix-functions/coshf.texi: Mention the new module.
3590
3591         cosh: Use a .m4 file.
3592         * m4/cosh.m4: New file.
3593         * modules/cosh (Files): Add it.
3594         (configure.ac): Just invoke gl_FUNC_COSH.
3595
3596 2011-10-08  Bruno Haible  <bruno@clisp.org>
3597
3598         Tests for module 'sinhf'.
3599         * modules/sinhf-tests: New file.
3600         * tests/test-sinhf.c: New file.
3601
3602         New module 'sinhf'.
3603         * lib/math.in.h (sinhf): New declaration.
3604         * lib/sinhf.c: New file.
3605         * m4/sinhf.m4: New file.
3606         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
3607         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
3608         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
3609         * modules/sinhf: New file.
3610         * tests/test-math-c++.cc: Check the declaration of sinhf.
3611         * doc/posix-functions/sinhf.texi: Mention the new module.
3612
3613         sinh: Use a .m4 file.
3614         * m4/sinh.m4: New file.
3615         * modules/sinh (Files): Add it.
3616         (configure.ac): Just invoke gl_FUNC_SINH.
3617
3618 2011-10-08  Bruno Haible  <bruno@clisp.org>
3619
3620         Tests for module 'atan2f'.
3621         * modules/atan2f-tests: New file.
3622         * tests/test-atan2f.c: New file.
3623
3624         New module 'atan2f'.
3625         * lib/math.in.h (atan2f): New declaration.
3626         * lib/atan2f.c: New file.
3627         * m4/atan2f.m4: New file.
3628         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
3629         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
3630         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
3631         * modules/atan2f: New file.
3632         * tests/test-math-c++.cc: Check the declaration of atan2f.
3633         * doc/posix-functions/atan2f.texi: Mention the new module.
3634
3635         atan2: Use a .m4 file.
3636         * m4/atan2.m4: New file.
3637         * modules/atan2 (Files): Add it.
3638         (configure.ac): Just invoke gl_FUNC_ATAN2.
3639
3640 2011-10-08  Bruno Haible  <bruno@clisp.org>
3641
3642         Tests for module 'atanf'.
3643         * modules/atanf-tests: New file.
3644         * tests/test-atanf.c: New file.
3645
3646         New module 'atanf'.
3647         * lib/math.in.h (atanf): New declaration.
3648         * lib/atanf.c: New file.
3649         * m4/atanf.m4: New file.
3650         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
3651         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
3652         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
3653         * modules/atanf: New file.
3654         * tests/test-math-c++.cc: Check the declaration of atanf.
3655         * doc/posix-functions/atanf.texi: Mention the new module.
3656
3657         atan: Use a .m4 file.
3658         * m4/atan.m4: New file.
3659         * modules/atan (Files): Add it.
3660         (configure.ac): Just invoke gl_FUNC_ATAN.
3661
3662 2011-10-08  Bruno Haible  <bruno@clisp.org>
3663
3664         Tests for module 'acosf'.
3665         * modules/acosf-tests: New file.
3666         * tests/test-acosf.c: New file.
3667
3668         New module 'acosf'.
3669         * lib/math.in.h (acosf): New declaration.
3670         * lib/acosf.c: New file.
3671         * m4/acosf.m4: New file.
3672         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
3673         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
3674         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
3675         * modules/acosf: New file.
3676         * tests/test-math-c++.cc: Check the declaration of acosf.
3677         * doc/posix-functions/acosf.texi: Mention the new module.
3678
3679         acos: Use a .m4 file.
3680         * m4/acos.m4: New file.
3681         * modules/acos (Files): Add it.
3682         (configure.ac): Just invoke gl_FUNC_ACOS.
3683
3684 2011-10-08  Bruno Haible  <bruno@clisp.org>
3685
3686         Tests for module 'asinf'.
3687         * modules/asinf-tests: New file.
3688         * tests/test-asinf.c: New file.
3689
3690         New module 'asinf'.
3691         * lib/math.in.h (asinf): New declaration.
3692         * lib/asinf.c: New file.
3693         * m4/asinf.m4: New file.
3694         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
3695         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
3696         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
3697         * modules/asinf: New file.
3698         * tests/test-math-c++.cc: Check the declaration of asinf.
3699         * doc/posix-functions/asinf.texi: Mention the new module.
3700
3701         asin: Use a .m4 file.
3702         * m4/asin.m4: New file.
3703         * modules/asin (Files): Add it.
3704         (configure.ac): Just invoke gl_FUNC_ASIN.
3705
3706 2011-10-08  Bruno Haible  <bruno@clisp.org>
3707
3708         Tests for module 'tanf'.
3709         * modules/tanf-tests: New file.
3710         * tests/test-tanf.c: New file.
3711
3712         New module 'tanf'.
3713         * lib/math.in.h (tanf): New declaration.
3714         * lib/tanf.c: New file.
3715         * m4/tanf.m4: New file.
3716         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
3717         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
3718         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
3719         * modules/tanf: New file.
3720         * tests/test-math-c++.cc: Check the declaration of tanf.
3721         * doc/posix-functions/tanf.texi: Mention the new module.
3722
3723         tan: Use a .m4 file.
3724         * m4/tan.m4: New file.
3725         * modules/tan (Files): Add it.
3726         (configure.ac): Just invoke gl_FUNC_TAN.
3727
3728 2011-10-08  Bruno Haible  <bruno@clisp.org>
3729
3730         Tests for module 'cosf'.
3731         * modules/cosf-tests: New file.
3732         * tests/test-cosf.c: New file.
3733
3734         New module 'cosf'.
3735         * lib/math.in.h (cosf): New declaration.
3736         * lib/cosf.c: New file.
3737         * m4/cosf.m4: New file.
3738         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
3739         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
3740         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
3741         * modules/cosf: New file.
3742         * tests/test-math-c++.cc: Check the declaration of cosf.
3743         * doc/posix-functions/cosf.texi: Mention the new module.
3744
3745         cos: Use a .m4 file.
3746         * m4/cos.m4: New file.
3747         * modules/cos (Files): Add it.
3748         (configure.ac): Just invoke gl_FUNC_COS.
3749
3750 2011-10-08  Bruno Haible  <bruno@clisp.org>
3751
3752         Tests for module 'sinf'.
3753         * modules/sinf-tests: New file.
3754         * tests/test-sinf.c: New file.
3755
3756         New module 'sinf'.
3757         * lib/math.in.h (sinf): New declaration.
3758         * lib/sinf.c: New file.
3759         * m4/sinf.m4: New file.
3760         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
3761         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
3762         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
3763         * modules/sinf: New file.
3764         * tests/test-math-c++.cc: Check the declaration of sinf.
3765         * doc/posix-functions/sinf.texi: Mention the new module.
3766
3767         sin: Use a .m4 file.
3768         * m4/sin.m4: New file.
3769         * modules/sin (Files): Add it.
3770         (configure.ac): Just invoke gl_FUNC_SIN.
3771
3772 2011-10-08  Bruno Haible  <bruno@clisp.org>
3773
3774         Tests for module 'powf'.
3775         * modules/powf-tests: New file.
3776         * tests/test-powf.c: New file.
3777
3778         New module 'powf'.
3779         * lib/math.in.h (powf): New declaration.
3780         * lib/powf.c: New file.
3781         * m4/powf.m4: New file.
3782         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
3783         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
3784         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
3785         * modules/powf: New file.
3786         * tests/test-math-c++.cc: Check the declaration of powf.
3787         * doc/posix-functions/powf.texi: Mention the new module.
3788
3789         pow: Use a .m4 file.
3790         * m4/pow.m4: New file.
3791         * modules/pow (Files): Add it.
3792         (configure.ac): Just invoke gl_FUNC_POW.
3793
3794 2011-10-08  Bruno Haible  <bruno@clisp.org>
3795
3796         Tests for module 'log10f'.
3797         * modules/log10f-tests: New file.
3798         * tests/test-log10f.c: New file.
3799
3800         New module 'log10f'.
3801         * lib/math.in.h (log10f): New declaration.
3802         * lib/log10f.c: New file.
3803         * m4/log10f.m4: New file.
3804         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
3805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
3806         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
3807         * modules/log10f: New file.
3808         * tests/test-math-c++.cc: Check the declaration of log10f.
3809         * doc/posix-functions/log10f.texi: Mention the new module.
3810
3811         log10: Use a .m4 file.
3812         * m4/log10.m4: New file.
3813         * modules/log10 (Files): Add it.
3814         (configure.ac): Just invoke gl_FUNC_LOG10.
3815
3816 2011-10-08  Bruno Haible  <bruno@clisp.org>
3817
3818         Tests for module 'logf'.
3819         * modules/logf-tests: New file.
3820         * tests/test-logf.c: New file.
3821
3822         New module 'logf'.
3823         * lib/math.in.h (logf): New declaration.
3824         * lib/logf.c: New file.
3825         * m4/logf.m4: New file.
3826         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
3827         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
3828         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
3829         * modules/logf: New file.
3830         * tests/test-math-c++.cc: Check the declaration of logf.
3831         * doc/posix-functions/logf.texi: Mention the new module.
3832
3833         log: Use a .m4 file.
3834         * m4/log.m4: New file.
3835         * modules/log (Files): Add it.
3836         (configure.ac): Just invoke gl_FUNC_LOG.
3837
3838 2011-10-08  Bruno Haible  <bruno@clisp.org>
3839
3840         Tests for module 'expf'.
3841         * modules/expf-tests: New file.
3842         * tests/test-expf.c: New file.
3843
3844         New module 'expf'.
3845         * lib/math.in.h (expf): New declaration.
3846         * lib/expf.c: New file.
3847         * m4/expf.m4: New file.
3848         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
3849         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
3850         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
3851         * modules/expf: New file.
3852         * tests/test-math-c++.cc: Check the declaration of expf.
3853         * doc/posix-functions/expf.texi: Mention the new module.
3854
3855         exp: Use a .m4 file.
3856         * m4/exp.m4: New file.
3857         * modules/exp (Files): Add it.
3858         (configure.ac): Just invoke gl_FUNC_EXP.
3859
3860 2011-10-08  Bruno Haible  <bruno@clisp.org>
3861
3862         Tests for module 'sqrtf'.
3863         * modules/sqrtf-tests: New file.
3864         * tests/test-sqrtf.c: New file.
3865
3866         New module 'sqrtf'.
3867         * lib/math.in.h (sqrtf): New declaration.
3868         * lib/sqrtf.c: New file.
3869         * m4/sqrtf.m4: New file.
3870         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
3871         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
3872         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
3873         * modules/sqrtf: New file.
3874         * tests/test-math-c++.cc: Check the declaration of sqrtf.
3875         * doc/posix-functions/sqrtf.texi: Mention the new module.
3876
3877 2011-10-08  Bruno Haible  <bruno@clisp.org>
3878
3879         Tests: Avoid link failures w.r.t. libintl.
3880         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
3881         $(LIBINTL).
3882         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
3883         $(LIBINTL).
3884         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
3885         against $(LIBINTL).
3886         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
3887         $(LIBINTL).
3888         * modules/openat-tests (Makefile.am): Link test-fchmodat against
3889         $(LIBINTL).
3890         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
3891
3892 2011-10-08  Bruno Haible  <bruno@clisp.org>
3893
3894         pow tests: Defeat compiler optimizations.
3895         * tests/test-pow.c (main): Assign arguments to x and y before use.
3896
3897 2011-10-08  Bruno Haible  <bruno@clisp.org>
3898
3899         gnulib-tool: Improve last commit.
3900         * gnulib-tool (func_modules_transitive_closure): Simplify code.
3901         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
3902         ignore dependencies that are not among the modules list.
3903
3904 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
3905
3906         gnulib-tool: don't follow dependencies to avoided modules
3907         This fixes a bug that is related to the previous one.
3908         * gnulib-tool (func_modules_transitive_closure)
3909         (func_emit_autoconf_snippets):
3910         Check whether a dependency is acceptable before using it.
3911         (--extract-dependencies): Report an error if --avoid is also used,
3912         since this combination of options is not yet supported.
3913
3914         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
3915         Problem reported by Peter Dyballa in
3916         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
3917         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
3918         when echoing "$condition".
3919
3920 2011-10-07  Bruno Haible  <bruno@clisp.org>
3921
3922         Fix documentation about math functions on MacOS X.
3923         * doc/posix-functions/exp2.texi: Don't say the function is missing on
3924         MacOS X 10.5.
3925         * doc/posix-functions/fdim.texi: Likewise.
3926         * doc/posix-functions/feclearexcept.texi: Likewise.
3927         * doc/posix-functions/fegetenv.texi: Likewise.
3928         * doc/posix-functions/fegetround.texi: Likewise.
3929         * doc/posix-functions/feholdexcept.texi: Likewise.
3930         * doc/posix-functions/feraiseexcept.texi: Likewise.
3931         * doc/posix-functions/fesetenv.texi: Likewise.
3932         * doc/posix-functions/fesetround.texi: Likewise.
3933         * doc/posix-functions/fetestexcept.texi: Likewise.
3934         * doc/posix-functions/feupdateenv.texi: Likewise.
3935         * doc/posix-functions/fmax.texi: Likewise.
3936         * doc/posix-functions/fmin.texi: Likewise.
3937         * doc/posix-functions/log2.texi: Likewise.
3938         * doc/posix-functions/modff.texi: Likewise.
3939         * doc/posix-functions/nan.texi: Likewise.
3940         * doc/posix-functions/nanf.texi: Likewise.
3941         * doc/posix-functions/nextafterf.texi: Likewise.
3942         * doc/posix-functions/remquo.texi: Likewise.
3943
3944 2011-10-07  Bruno Haible  <bruno@clisp.org>
3945
3946         modff: Drop assumption about library that defines modff.
3947         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
3948         AC_CHECK_FUNCS.
3949         * modules/modff (Files): Add m4/mathfunc.m4.
3950
3951 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
3952
3953         raise tests: Avoid a GCC warning.
3954         * tests/test-raise.c (handler): Use _Noreturn.
3955
3956 2011-10-07  Bruno Haible  <bruno@clisp.org>
3957
3958         Tests for module 'ldexpf'.
3959         * modules/ldexpf-tests: New file.
3960         * tests/test-ldexpf.c: New file.
3961
3962         New module 'ldexpf'.
3963         * lib/math.in.h (ldexpf): New declaration.
3964         * lib/ldexpf.c: New file.
3965         * m4/ldexpf.m4: New file.
3966         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
3967         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
3968         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
3969         * modules/ldexpf: New file.
3970         * tests/test-math-c++.cc: Check the declaration of ldexpf.
3971         * doc/posix-functions/ldexpf.texi: Mention the new module.
3972
3973 2011-10-06  Bruno Haible  <bruno@clisp.org>
3974
3975         frexpf: Work around problems on IRIX and mingw.
3976         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
3977         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
3978         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
3979         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
3980         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
3981         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
3982         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
3983
3984 2011-10-06  Bruno Haible  <bruno@clisp.org>
3985
3986         fabsf: Drop assumption about library that defines fabsf.
3987         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
3988         AC_CHECK_FUNCS.
3989         * modules/fabsf (Files): Add m4/mathfunc.m4.
3990
3991 2011-10-06  Bruno Haible  <bruno@clisp.org>
3992
3993         frexpf: Drop assumption about library that defines frexpf.
3994         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
3995         'int *', 'float *', 'long double *', 'float', 'long double'.
3996         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
3997         AC_CHECK_FUNCS.
3998         * modules/frexpf (Files): Add m4/mathfunc.m4.
3999
4000         Tests for module 'frexpf'.
4001         * modules/frexpf-tests: New file.
4002         * tests/test-frexpf.c: New file.
4003
4004         New module 'frexpf'.
4005         * lib/math.in.h (frexpf): New declaration.
4006         * lib/frexpf.c: New file.
4007         * m4/frexpf.m4: New file.
4008         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
4009         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
4010         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
4011         * modules/frexpf: New file.
4012         * tests/test-math-c++.cc: Check the declaration of frexpf.
4013         * doc/posix-functions/frexpf.texi: Mention the new module.
4014
4015 2011-10-06  Bruno Haible  <bruno@clisp.org>
4016
4017         math: Sort function declarations of math.in.h.
4018         * lib/math.in.h (frexp, logb): Move declarations.
4019
4020 2011-10-05  Bruno Haible  <bruno@clisp.org>
4021
4022         Tests for module 'modff'.
4023         * modules/modff-tests: New file.
4024         * tests/test-modff.c: New file.
4025
4026         New module 'modff'.
4027         * lib/math.in.h (modff): New declaration.
4028         * lib/modff.c: New file.
4029         * m4/modff.m4: New file.
4030         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
4031         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
4032         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
4033         * modules/modff: New file.
4034         * tests/test-math-c++.cc: Check the declaration of modff.
4035         * doc/posix-functions/modff.texi: Mention the new module.
4036
4037         modf tests: Make test sharper.
4038         * tests/test-modf.c (main): Strengthen upper bound.
4039
4040         modf: Use a .m4 file.
4041         * m4/modf.m4: New file.
4042         * modules/modf (Files): Add it.
4043         (configure.ac): Just invoke gl_FUNC_MODF.
4044
4045 2011-10-05  Bruno Haible  <bruno@clisp.org>
4046
4047         Tests for module 'fmodf'.
4048         * modules/fmodf-tests: New file.
4049         * tests/test-fmodf.c: New file.
4050
4051         New module 'fmodf'.
4052         * lib/math.in.h (fmodf): New declaration.
4053         * lib/fmodf.c: New file.
4054         * m4/fmodf.m4: New file.
4055         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
4056         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
4057         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
4058         * modules/fmodf: New file.
4059         * tests/test-math-c++.cc: Check the declaration of fmodf.
4060         * doc/posix-functions/fmodf.texi: Mention the new module.
4061
4062         fmod: Use a .m4 file.
4063         * m4/fmod.m4: New file.
4064         * modules/fmod (Files): Add it.
4065         (configure.ac): Just invoke gl_FUNC_FMOD.
4066
4067 2011-10-05  Bruno Haible  <bruno@clisp.org>
4068
4069         Tests for module 'fabsf'.
4070         * modules/fabsf-tests: New file.
4071         * tests/test-fabsf.c: New file.
4072
4073         New module 'fabsf'.
4074         * lib/math.in.h (fabsf): New declaration.
4075         * lib/fabsf.c: New file.
4076         * m4/fabsf.m4: New file.
4077         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
4078         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
4079         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
4080         * modules/fabsf: New file.
4081         * tests/test-math-c++.cc: Check the declaration of fabsf.
4082         * doc/posix-functions/fabsf.texi: Mention the new module.
4083
4084         fabs: Use a .m4 file.
4085         * m4/fabs.m4: New file.
4086         * modules/fabs (Files): Add it.
4087         (configure.ac): Just invoke gl_FUNC_FABS.
4088
4089 2011-10-05  Jim Meyering  <meyering@redhat.com>
4090
4091         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
4092         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
4093         ls -lL regression introduced in coreutils-8.12, it does so at the
4094         cost of an additional stat call in the common case.  Besides, now
4095         that the kernel change that prompted commit 95f7c57f has been reverted
4096         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
4097         we have no use for commit 95f7c57f, "file-has-acl: use
4098         acl_extended_file_nofollow if available".
4099
4100 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
4101
4102         file-has-acl: revert unintended change in behavior of ls -L
4103         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
4104         derived from...
4105         (file_has_acl): ...code here.  Call it.
4106         This problem was introduced with 2011-07-22 commit 95f7c57f,
4107         "file-has-acl: use acl_extended_file_nofollow if available".
4108         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
4109
4110 2011-10-03  Bruno Haible  <bruno@clisp.org>
4111
4112         poll: Avoid link errors on MSVC.
4113         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
4114         * modules/poll (Depends-on): Add sockets.
4115         (Link): New section.
4116         * NEWS: Mention the change.
4117         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
4118         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
4119         $(LIB_POLL) instead of $(LIBSOCKET).
4120
4121 2011-10-03  Bruno Haible  <bruno@clisp.org>
4122
4123         sys_select tests: Fix link error on MSVC 9.
4124         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
4125         with $(LIB_SELECT) instead of $(LIBSOCKET).
4126
4127 2011-10-03  Bruno Haible  <bruno@clisp.org>
4128
4129         sys_select: Fix compilation error on mingw.
4130         * lib/sys_select.in.h: On native Windows, include <io.h>.
4131
4132 2011-10-03  Bruno Haible  <bruno@clisp.org>
4133
4134         wmemset: Support for MSVC.
4135         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
4136         whether wmemset() exists.
4137
4138 2011-10-03  Bruno Haible  <bruno@clisp.org>
4139
4140         wmemmove: Support for MSVC.
4141         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
4142         whether wmemmove() exists.
4143
4144 2011-10-03  Bruno Haible  <bruno@clisp.org>
4145
4146         wmemcpy: Support for MSVC.
4147         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
4148         whether wmemcpy() exists.
4149
4150 2011-10-03  Bruno Haible  <bruno@clisp.org>
4151
4152         wmemcmp: Support for MSVC.
4153         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
4154         whether wmemcmp() exists.
4155
4156 2011-10-03  Bruno Haible  <bruno@clisp.org>
4157
4158         wmemchr: Support for MSVC.
4159         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
4160         whether wmemchr() exists.
4161
4162 2011-10-03  Bruno Haible  <bruno@clisp.org>
4163
4164         glthread/*, strsignal: Support for MSVC.
4165         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
4166         including <winsock.h> on MSVC 9.
4167         * lib/glthread/lock.h: Likewise.
4168         * lib/glthread/thread.h: Likewise.
4169         * lib/glthread/tls.h: Likewise.
4170         * lib/glthread/yield.h: Likewise.
4171         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
4172         if HAVE_UNISTD_H is false.
4173         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
4174
4175 2011-10-03  Bruno Haible  <bruno@clisp.org>
4176
4177         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
4178         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
4179         Set to 100000.
4180
4181 2011-10-03  Bruno Haible  <bruno@clisp.org>
4182
4183         acl: Fix specification.
4184         * lib/file-has-acl.c (file_has_acl): Fix specification.
4185
4186 2011-10-03  Bruno Haible  <bruno@clisp.org>
4187
4188         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
4189         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
4190         (compute_curr_prefix, shared_library_fullname,
4191         find_shared_library_fullname, get_shared_library_fullname, relocate):
4192         Use it together with PIC && INSTALLDIR.
4193         Reported by <jojelino@gmail.com>
4194         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
4195
4196 2011-10-01  Jim Meyering  <meyering@redhat.com>
4197
4198         maint.mk: adjust a release-related rule not to require use of gzip
4199         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
4200         Instead, check each file in $(DIST_ARCHIVES).  This is better for
4201         projects that build only .tar.xz files.  Also fix an erroneous test.
4202
4203         test-linkat: don't leave behind a temporary file
4204         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
4205         Otherwise, coreutils' "make distcheck" would fail with this:
4206           Only in /c/cu/tests/torture/coreutils/test/\
4207             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
4208           make[2]: *** [my-distcheck] Error 1
4209
4210         float, math: add omitted file
4211         * lib/itold.c: Add file, required for yesterday's float change.
4212
4213 2011-10-01  Bruno Haible  <bruno@clisp.org>
4214
4215         isinf: Fix for OpenBSD/x86.
4216         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
4217         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
4218         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
4219
4220 2011-10-01  Bruno Haible  <bruno@clisp.org>
4221
4222         isfinite: Fix syntax error in configure test.
4223         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
4224
4225         isfinite: Fix typo.
4226         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
4227         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
4228
4229 2011-10-01  Bruno Haible  <bruno@clisp.org>
4230
4231         nonblocking tests: Fix test failure on Linux/IA-64.
4232         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
4233         Set to 270000.
4234
4235 2011-10-01  Bruno Haible  <bruno@clisp.org>
4236
4237         mkfifoat tests: Fix a test failure on mingw.
4238         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
4239         with error ENOSYS.
4240
4241 2011-09-30  Bruno Haible  <bruno@clisp.org>
4242
4243         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
4244         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
4245         'long double'. Set REPLACE_ITOLD.
4246         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
4247         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
4248         * lib/itold.c: New file.
4249         * modules/float (Files): Add lib/itold.c.
4250         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
4251         (Makefile.am): Substitute REPLACE_ITOLD.
4252         * modules/math (Depends-on): Add float.
4253         (Makefile.am): Substitute REPLACE_ITOLD.
4254         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
4255         * doc/posix-headers/math.texi: Likewise.
4256         * doc/posix-functions/logl.texi: Likewise.
4257
4258 2011-09-30  Bruno Haible  <bruno@clisp.org>
4259
4260         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
4261         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
4262         Set to 140000.
4263
4264 2011-09-30  Bruno Haible  <bruno@clisp.org>
4265
4266         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
4267         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
4268         invocation, say "right after AC_PROG_CC_STDC", not "right after
4269         AC_PROG_CC".
4270         Reported by Gary V. Vaughan <gary@gnu.org>.
4271
4272 2011-09-30  Bruno Haible  <bruno@clisp.org>
4273
4274         Centralize C99 requirement.
4275         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
4276         * modules/stdarg (configure.ac-early): Invoke it instead of
4277         AC_PROG_CC_STDC.
4278         Reported by Gary V. Vaughan and Paul Eggert.
4279
4280 2011-09-29  Bruno Haible  <bruno@clisp.org>
4281
4282         float: Fix LDBL_MAX value on Linux/PowerPC.
4283         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
4284         on Linux/PowerPC.
4285         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
4286         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
4287         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
4288         platform.
4289         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
4290
4291 2011-09-29  Bruno Haible  <bruno@clisp.org>
4292
4293         doc: Improve doc about gl_EARLY.
4294         * doc/gnulib-tool.texi (Initial import): Mention where to place an
4295         AC_PROG_CC_STDC invocation.
4296         Reported by Gary V. Vaughan <gary@gnu.org>.
4297
4298 2011-09-28  Bruno Haible  <bruno@clisp.org>
4299
4300         fgetc, fputc, fread, fwrite tests: Fix link error.
4301         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
4302         on non-MSVC platforms.
4303         * tests/test-fputc.c (main): Likewise.
4304         * tests/test-fread.c (main): Likewise.
4305         * tests/test-fwrite.c (main): Likewise.
4306         Reported by Jim Meyering.
4307
4308 2011-09-27  Bruno Haible  <bruno@clisp.org>
4309
4310         fputc, fwrite tests: Avoid test failure on MSVC.
4311         * tests/test-fgetc.c: Include msvc-inval.h.
4312         (main): Invoke gl_msvc_inval_ensure_handler.
4313         * tests/test-fputc.c: Include msvc-inval.h.
4314         (main): Invoke gl_msvc_inval_ensure_handler.
4315         * tests/test-fread.c: Include msvc-inval.h.
4316         (main): Invoke gl_msvc_inval_ensure_handler.
4317         * tests/test-fwrite.c: Include msvc-inval.h.
4318         (main): Invoke gl_msvc_inval_ensure_handler.
4319         * modules/fgetc-tests (Depends-on): Add msvc-inval.
4320         * modules/fputc-tests (Depends-on): Likewise.
4321         * modules/fread-tests (Depends-on): Likewise.
4322         * modules/fwrite-tests (Depends-on): Likewise.
4323
4324 2011-09-27  Bruno Haible  <bruno@clisp.org>
4325
4326         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
4327         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
4328         (raise): Remove older, duplicated declaration.
4329         (_gl_raise_SIGPIPE): New declaration.
4330         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
4331         (rpl_raise): Remove function.
4332         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
4333         a gnulib-defined SIGPIPE here.
4334         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
4335         'sigprocmask' has detected missing signal-blocking and the module
4336         'sigpipe' is enabled.
4337         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4338
4339 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
4340
4341         base64-tests: avoid memory leak
4342         * tests/test-base64.c (main): Plug memory leak.
4343
4344         base32: new module
4345         * modules/base32: New module.
4346         * lib/base32.c: New file.
4347         * lib/base32.h: Likewise.
4348         * m4/base32.m4: Likewise.
4349         * modules/base32-tests: New test.
4350         * tests/test-base32.c: Likewise.
4351         * MODULES.html.sh (Misc): Mention it.
4352
4353 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
4354
4355         gnulib: use more-standard license notice wording
4356         * gnulib-tool (func_emit_copyright_notice): When emitting a
4357         license notice into a file, use the standard wording as suggested
4358         by the current information for GNU maintainers, except say "file"
4359         rather than "program".  The new wording gives a license version
4360         number, which addresses an issue raised by Glenn Morris in
4361         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
4362         * m4/onceonly.m4: Use that same wording here, too.
4363
4364         dup2: minor simplification
4365         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
4366         as lib/dup2.c no longer uses 'inline'.
4367
4368 2011-09-25  Bruno Haible  <bruno@clisp.org>
4369
4370         strings: Fix compilation error on MSVC.
4371         * lib/strings.in.h: Include <stddef.h> for size_t.
4372
4373 2011-09-25  Bruno Haible  <bruno@clisp.org>
4374
4375         fflush et al.: Document limitation on MSVC.
4376         * doc/posix-functions/fflush.texi: Document possible crash in handling
4377         mode other than DEFAULT_HANDLING.
4378         * doc/posix-functions/fgetc.texi: Likewise.
4379         * doc/posix-functions/fputc.texi: Likewise.
4380         * doc/posix-functions/fread.texi: Likewise.
4381         * doc/posix-functions/fwrite.texi: Likewise.
4382
4383 2011-09-25  Bruno Haible  <bruno@clisp.org>
4384
4385         msvc-inval: Allow three invalid parameter handling modes.
4386         * lib/msvc-inval.h: Don't include <stdlib.h> here.
4387         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
4388         macros.
4389         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
4390         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
4391         SANE_LIBRARY_HANDLING as a no-op.
4392         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
4393         <stdlib.h>.
4394         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
4395
4396 2011-09-25  Bruno Haible  <bruno@clisp.org>
4397
4398         msvc-inval: Make handler multithread-safe.
4399         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
4400         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
4401         declarations.
4402         (gl_msvc_inval_current): New declaration.
4403         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
4404         Operate on the structure returned by gl_msvc_inval_current().
4405         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
4406         Remove varaiables.
4407         (tls_index, tls_initialized): New variables.
4408         (not_per_thread): New variable.
4409         (gl_msvc_inval_current): New function.
4410         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
4411         returned by gl_msvc_inval_current().
4412
4413 2011-09-25  Bruno Haible  <bruno@clisp.org>
4414
4415         msvc-inval: Install handler globally.
4416         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
4417         !_MSC_VER.
4418         (gl_msvc_invalid_parameter_handler): Remove declaration.
4419         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
4420         declarations.
4421         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
4422         Install the handler globally, don't uninstall it.
4423         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
4424         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
4425         currently valid, call RaiseException instead.
4426         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
4427         for !_MSC_VER.
4428
4429 2011-09-25  Bruno Haible  <bruno@clisp.org>
4430
4431         strerror_r-posix: Fix for MSVC 9.
4432         * lib/strerror_r.c (local_snprintf): New function.
4433         (snprintf): Define to local_snprintf, not to _snprintf.
4434
4435 2011-09-25  Bruno Haible  <bruno@clisp.org>
4436
4437         ftruncate: Support for MSVC 9.
4438         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
4439         (chsize_nothrow): New function.
4440         (chsize): Redefine as a macro.
4441         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
4442         * modules/ftruncate (Depends-on): Add msvc-inval.
4443
4444 2011-09-25  Bruno Haible  <bruno@clisp.org>
4445
4446         New module 'fstat'.
4447         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
4448         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
4449         * lib/fchdir.c (rpl_fstat): Remove function.
4450         * m4/fstat.m4: New file.
4451         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
4452         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
4453         declared.
4454         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
4455         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
4456         * modules/fstat: New file.
4457         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
4458         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
4459         is set.
4460         * doc/posix-functions/fstat.texi: Mention the new module and the
4461         problem on MSVC.
4462         * NEWS: Mention the change.
4463         * modules/acl (Depends-on): Add fstat.
4464         * modules/chdir-safer (Depends-on): Likewise.
4465         * modules/chown (Depends-on): Likewise.
4466         * modules/copy-file (Depends-on): Likewise.
4467         * modules/fchdir (Depends-on): Likewise.
4468         * modules/fdopendir (Depends-on): Likewise.
4469         * modules/fopen (Depends-on): Likewise.
4470         * modules/fts (Depends-on): Likewise.
4471         * modules/getcwd (Depends-on): Likewise.
4472         * modules/isapipe (Depends-on): Likewise.
4473         * modules/linkat (Depends-on): Likewise.
4474         * modules/lseek (Depends-on): Likewise.
4475         * modules/mkdir-p (Depends-on): Likewise.
4476         * modules/open (Depends-on): Likewise.
4477         * modules/openat (Depends-on): Likewise.
4478         * modules/read-file (Depends-on): Likewise.
4479         * modules/renameat (Depends-on): Likewise.
4480         * modules/utimens (Depends-on): Likewise.
4481
4482 2011-09-25  Bruno Haible  <bruno@clisp.org>
4483
4484         linkat: Fix compilation on MSVC 9.
4485         * lib/linkat.c: Don't include <stdint.h>.
4486
4487 2011-09-25  Bruno Haible  <bruno@clisp.org>
4488
4489         fclose: Support for MSVC 9.
4490         * lib/fclose.c: Include msvc-inval.h.
4491         (fclose_nothrow): New function.
4492         (rpl_fclose): Use it.
4493         * modules/fclose (Depends-on): Add msvc-inval.
4494         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
4495
4496 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
4497
4498         dup2: minor simplifications
4499         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
4500         that it's a performance win.
4501         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
4502         ! defined __CYGWIN__)" to "ifdef F_GETFL".
4503
4504 2011-09-24  Jim Meyering  <meyering@redhat.com>
4505
4506         test-futimens: avoid a warning from gcc -Wshadow
4507         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
4508         to avoid a shadowing warning.
4509
4510 2011-09-24  Bruno Haible  <bruno@clisp.org>
4511
4512         fdopen: Support for MSVC 9.
4513         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
4514         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
4515         * lib/fdopen.c: Include msvc-inval.h.
4516         (fdopen_nothrow): New function.
4517         (rpl_fdopen): Use it.
4518         * modules/fdopen (Depends-on): Add msvc-inval.
4519         * modules/fclose-tests (Depends-on): Add fdopen.
4520         * modules/fflush-tests (Depends-on): Likewise.
4521         * modules/fgetc-tests (Depends-on): Likewise.
4522         * modules/fputc-tests (Depends-on): Likewise.
4523         * modules/fread-tests (Depends-on): Likewise.
4524         * modules/freopen-tests (Depends-on): Likewise.
4525         * modules/fseeko-tests (Depends-on): Likewise.
4526         * modules/ftello-tests (Depends-on): Likewise.
4527         * modules/fwrite-tests  (Depends-on): Likewise.
4528         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
4529
4530 2011-09-24  Bruno Haible  <bruno@clisp.org>
4531
4532         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
4533         * modules/fgetc-tests (Depends-on): Add unistd.
4534         * modules/fputc-tests (Depends-on): Likewise.
4535         * modules/fread-tests (Depends-on): Likewise.
4536         * modules/fwrite-tests (Depends-on): Likewise.
4537
4538 2011-09-24  Bruno Haible  <bruno@clisp.org>
4539
4540         dup: Simplify autoconf test.
4541         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
4542         on gl_MSVC_INVAL's result.
4543
4544 2011-09-24  Bruno Haible  <bruno@clisp.org>
4545
4546         Tests for function fwrite().
4547         * modules/fwrite-tests: New file.
4548         * tests/test-fwrite.c: New file.
4549         * modules/stdio-tests (Depends-on): Add fwrite-tests.
4550
4551         Tests for function fread().
4552         * modules/fread-tests: New file.
4553         * tests/test-fread.c: New file.
4554         * modules/stdio-tests (Depends-on): Add fread-tests.
4555
4556         Activate fputc tests.
4557         * modules/stdio-tests (Depends-on): Add fputc-tests.
4558
4559         Enhance fgetc, fputc tests.
4560         * tests/test-fgetc.c (main): Also test the stream's error indicator.
4561         * tests/test-fputc.c (main): Likewise.
4562
4563 2011-09-24  Bruno Haible  <bruno@clisp.org>
4564
4565         write: Support for MSVC 9.
4566         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4567         is not 1.
4568         * lib/write.c (write_nothrow): New function.
4569         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
4570         not 1. Use write_nothrow.
4571         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
4572         invalid parameter handler.
4573         (gl_PREREQ_WRITE): New macro.
4574         * modules/write (Depends-on): Add msvc-inval.
4575         (configure.ac): Invoke gl_PREREQ_WRITE.
4576         * doc/posix-functions/write.texi: Mention the problem on MSVC.
4577
4578 2011-09-24  Bruno Haible  <bruno@clisp.org>
4579
4580         read: Fix last commit.
4581         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
4582
4583 2011-09-24  Bruno Haible  <bruno@clisp.org>
4584
4585         dup2: Fix last commit.
4586         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
4587         (rpl_dup2): Disable fcntl workaround on native Windows.
4588
4589         sigprocmask: Make code safer.
4590         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
4591         section that changes macro definitions for this compilation unit.
4592
4593 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
4594
4595         dup2: clarify by coalescing Windows-specific material
4596         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
4597         "msvc-nothrow.h"' to the Windows-specific section, so that the
4598         Emacs source need not contain these include files.
4599         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
4600         Windows-specific fixes into this function rather than just the
4601         nothrow fix, as this shortens and clarifies the code.  Always
4602         define as a function, as that's a bit cleaner than having it be
4603         sometimes a function and sometimes a macro.
4604         (rpl_dup2): Move the Windows-specific stuff out of here and into
4605         ms_windows_dup2.  Don't protect the Haiku-related fix with
4606         "#if !defined __linux__", as the same code also works around
4607         a Linux kernel bug, and it doesn't add any system calls on any
4608         platform.  Add comment about FreeBSD 6.1.
4609
4610         sigprocmask: move #include directive
4611         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
4612         Windows-specific section, so that the Emacs source need not
4613         contain msvc-inval.h.
4614
4615 2011-09-23  Bruno Haible  <bruno@clisp.org>
4616
4617         read: Support for MSVC 9.
4618         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4619         is not 1.
4620         * lib/read.c (read_nothrow): New function.
4621         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
4622         read_nothrow.
4623         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
4624         invalid parameter handler.
4625         (gl_PREREQ_READ): New macro.
4626         * modules/read (Depends-on): Add msvc-inval.
4627         (configure.ac): Invoke gl_PREREQ_READ.
4628         * doc/posix-functions/read.texi: Mention the problem on MSVC.
4629
4630 2011-09-23  Bruno Haible  <bruno@clisp.org>
4631
4632         close: Support for MSVC 9.
4633         * lib/close.c: Include <errno.h>, msvc-inval.h.
4634         (close_nothrow): New function.
4635         (rpl_close): Use it.
4636         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
4637         invalid parameter handler.
4638         * modules/close (Depends-on): Add msvc-inval.
4639         * modules/dup2-tests (Depends-on): Add close.
4640         * modules/dup3-tests (Depends-on): Likewise.
4641         * modules/fcntl-tests (Depends-on): Likewise.
4642         * modules/spawn-pipe-tests (Depends-on): Likewise.
4643         * modules/unistd-safer-tests (Depends-on): Likewise.
4644         * doc/posix-functions/close.texi: Mention the problem on MSVC.
4645
4646 2011-09-23  Bruno Haible  <bruno@clisp.org>
4647
4648         New module 'dup'.
4649         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
4650         Allow replacement.
4651         * lib/dup.c: New file.
4652         * lib/fchdir.c (rpl_dup): Remove function.
4653         * m4/dup.m4: New file.
4654         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
4655         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
4656         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
4657         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
4658         * modules/dup: New file.
4659         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
4660         'dup' module is in use.
4661         * modules/fdopendir (Depends-on): Add dup.
4662         * modules/fdutimensat-tests (Depends-on): Likewise.
4663         * modules/fts (Depends-on): Likewise.
4664         * modules/futimens-tests (Depends-on): Likewise.
4665         * modules/posix_spawnp-tests (Depends-on): Likewise.
4666         * modules/unistd-safer-tests (Depends-on): Likewise.
4667         * modules/utimens-tests (Depends-on): Likewise.
4668         * doc/posix-functions/dup.texi: Mention the new module and the problem
4669         on MSVC.
4670
4671 2011-09-23  Bruno Haible  <bruno@clisp.org>
4672
4673         getdtablesize: Support for MSVC 9.
4674         * lib/getdtablesize.c: Include msvc-inval.h.
4675         (_setmaxstdio_nothrow): New function.
4676         (_setmaxstdio): Redefine it.
4677         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
4678         * modules/getdtablesize (Depends-on): Add msvc-inval.
4679         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
4680
4681 2011-09-23  Bruno Haible  <bruno@clisp.org>
4682
4683         signal-h: Rename from signal.
4684         * modules/signal-h: Renamed from modules/signal.
4685         * modules/pthread_sigmask (Depends-on): Update.
4686         * modules/raise (Depends-on): Likewise.
4687         * modules/sigaction (Depends-on): Likewise.
4688         * modules/sigpipe (Depends-on): Likewise.
4689         * modules/sigprocmask (Depends-on): Likewise.
4690         * modules/sys_select (Depends-on): Likewise.
4691         * modules/signal-h-tests: Renamed from modules/signal-tests.
4692         (Files, Depends-on, Makefile.am): Update.
4693         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
4694         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
4695         (Files, Makefile.am): Update.
4696         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
4697         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
4698         * modules/signal: New placeholder file.
4699         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
4700         * doc/posix-headers/signal.texi: Update.
4701         * NEWS: Mention the change.
4702
4703 2011-09-23  Bruno Haible  <bruno@clisp.org>
4704
4705         sigprocmask: Avoid crashes through signal() on MSVC 9.
4706         * lib/sigprocmask.c: Include msvc-inval.h.
4707         (signal_nothrow): New function.
4708         (signal): Redefine it.
4709         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
4710         * modules/sigprocmask (Depends-on): Add msvc-inval.
4711         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
4712
4713 2011-09-23  Bruno Haible  <bruno@clisp.org>
4714
4715         Tests for module 'raise'.
4716         * modules/raise-tests: New file.
4717         * tests/test-raise.c: New file.
4718
4719         raise: Support for MSVC.
4720         * lib/signal.in.h (raise): New declaration.
4721         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
4722         for native Windows platforms.
4723         * m4/raise.m4: New file.
4724         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
4725         HAVE_RAISE, REPLACE_RAISE.
4726         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
4727         REPLACE_RAISE.
4728         * modules/raise (Status, Notice): Remove fields.
4729         (Files): Add m4/raise.m4.
4730         (Depends-on): Add signal, msvc-inval.
4731         (configure.ac): Use the common idioms.
4732         (Maintainer): Add me.
4733         * tests/test-signal-c++.cc: Check the signature of raise.
4734         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
4735
4736 2011-09-23  Bruno Haible  <bruno@clisp.org>
4737
4738         pipe2: Fix compilation on pre-C99 compilers.
4739         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
4740
4741 2011-09-23  Bruno Haible  <bruno@clisp.org>
4742
4743         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
4744         * lib/msvc-nothrow.h: New file.
4745         * lib/msvc-nothrow.c: New file.
4746         * m4/msvc-nothrow.m4: New file.
4747         * modules/msvc-nothrow: New file.
4748         * lib/dup2.c: Include msvc-nothrow.h.
4749         (rpl_dup2): No need to protect _get_osfhandle call here.
4750         * lib/accept4.c: Include msvc-nothrow.h.
4751         * lib/error.c: Likewise.
4752         * lib/fcntl.c: Likewise.
4753         * lib/lseek.c: Likewise.
4754         * lib/nonblocking.c: Likewise.
4755         * lib/poll.c: Likewise.
4756         * lib/read.c: Likewise.
4757         * lib/select.c: Likewise.
4758         * lib/sockets.h: Likewise.
4759         * lib/sockets.c: Likewise.
4760         * lib/stdio-read.c: Likewise.
4761         * lib/stdio-write.c: Likewise.
4762         * lib/write.c: Likewise.
4763         * lib/w32sock.h: Likewise.
4764         * lib/w32spawn.h: Likewise.
4765         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
4766         * lib/fsync.c: Likewise.
4767         * lib/isapipe.c: Likewise.
4768         * modules/dup2 (Depends-on): Add msvc-nothrow.
4769         * modules/accept4 (Depends-on): Likewise.
4770         * modules/error (Depends-on): Likewise.
4771         * modules/fcntl (Depends-on): Likewise.
4772         * modules/lseek (Depends-on): Likewise.
4773         * modules/nonblocking (Depends-on): Likewise.
4774         * modules/poll (Depends-on): Likewise.
4775         * modules/read (Depends-on): Likewise.
4776         * modules/select (Depends-on): Likewise.
4777         * modules/sockets (Depends-on): Likewise.
4778         * modules/sigpipe (Depends-on): Likewise.
4779         * modules/write (Depends-on): Likewise.
4780         * modules/accept (Depends-on): Likewise.
4781         * modules/bind (Depends-on): Likewise.
4782         * modules/connect (Depends-on): Likewise.
4783         * modules/gethostname (Depends-on): Likewise.
4784         * modules/getpeername (Depends-on): Likewise.
4785         * modules/getsockname (Depends-on): Likewise.
4786         * modules/getsockopt (Depends-on): Likewise.
4787         * modules/ioctl (Depends-on): Likewise.
4788         * modules/listen (Depends-on): Likewise.
4789         * modules/recv (Depends-on): Likewise.
4790         * modules/recvfrom (Depends-on): Likewise.
4791         * modules/send (Depends-on): Likewise.
4792         * modules/sendto (Depends-on): Likewise.
4793         * modules/setsockopt (Depends-on): Likewise.
4794         * modules/shutdown (Depends-on): Likewise.
4795         * modules/socket (Depends-on): Likewise.
4796         * modules/execute (Depends-on): Likewise.
4797         * modules/spawn-pipe (Depends-on): Likewise.
4798         * modules/flock (Depends-on): Likewise.
4799         * modules/fsync (Depends-on): Likewise.
4800         * modules/isapipe (Depends-on): Likewise.
4801         * tests/test-cloexec.c: Include msvc-nothrow.h.
4802         * tests/test-dup-safer.c: Likewise.
4803         * tests/test-dup2.c: Likewise.
4804         * tests/test-dup3.c: Likewise.
4805         * tests/test-fcntl.c: Likewise.
4806         * tests/test-pipe.c: Likewise.
4807         * tests/test-pipe2.c: Likewise.
4808         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
4809         * modules/unistd-safer-tests (Depends-on): Likewise.
4810         * modules/dup2-tests (Depends-on): Likewise.
4811         * modules/dup3-tests (Depends-on): Likewise.
4812         * modules/fcntl-tests (Depends-on): Likewise.
4813         * modules/pipe-posix-tests (Depends-on): Likewise.
4814         * modules/pipe2-tests (Depends-on): Likewise.
4815
4816 2011-09-23  Bruno Haible  <bruno@clisp.org>
4817
4818         dup2: Make code more maintainable.
4819         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
4820         (rpl_dup2): Use it.
4821         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
4822         * modules/dup2 (configure.ac): Invoke it.
4823         Reported by Paul Eggert.
4824
4825 2011-09-23  Bruno Haible  <bruno@clisp.org>
4826
4827         msvc-inval: Fix compilation error.
4828         * lib/msvc-inval.h: Include <excpt.h>.
4829
4830 2011-09-23  Bruno Haible  <bruno@clisp.org>
4831
4832         mkdir: Tweak for MSVC 9.
4833         * lib/sys_stat.in.h: Update comments.
4834         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
4835
4836         Tests for module 'chdir'.
4837         * modules/chdir-tests: New file.
4838         * tests/test-chdir.c: New file.
4839
4840         New module 'chdir'.
4841         * modules/chdir: New file.
4842         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
4843         (chdir): New declaration.
4844         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
4845         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
4846         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
4847         * tests/test-unistd-c++.cc: Check signature of chdir.
4848         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
4849         * modules/chdir-long (Depends-on): Add chdir.
4850         * modules/fchdir (Depends-on): Likewise.
4851         * modules/rename (Depends-on): Likewise.
4852         * modules/savewd (Depends-on): Likewise.
4853
4854         rmdir: Support for mingw, MSVC 9.
4855         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
4856         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
4857
4858         getcwd: Tweak for MSVC 9.
4859         * lib/unistd.in.h: Update comments.
4860         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
4861
4862 2011-09-22  Bruno Haible  <bruno@clisp.org>
4863
4864         strerror_r-posix: Avoid a link error on MSVC.
4865         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
4866         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
4867
4868 2011-09-22  Bruno Haible  <bruno@clisp.org>
4869
4870         select: Avoid link errors on MSVC.
4871         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
4872         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
4873         * modules/pselect (Link): Likewise.
4874         * NEWS: Mention the change.
4875         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
4876         test-select-stdin against $(LIB_SELECT).
4877         * modules/pselect-tests (Makefile.am): Link test-pselect against
4878         $(LIB_SELECT).
4879
4880 2011-09-22  Bruno Haible  <bruno@clisp.org>
4881
4882         select: Avoid compilation error on MSVC.
4883         * lib/select.c: Don't include <stdbool.h>.
4884
4885 2011-09-21  Bruno Haible  <bruno@clisp.org>
4886
4887         Consolidate all uses of PATH_MAX in *.m4 files.
4888         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
4889         macros.
4890         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
4891         and gl_PATHMAX_SNIPPET.
4892         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4893         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4894         * modules/chdir-long (Files): Add m4/pathmax.m4.
4895         * modules/getcwd (Files): Likewise.
4896
4897 2011-09-21  Bruno Haible  <bruno@clisp.org>
4898
4899         ftruncate: Un-deprecate, concentrate on Win32 support.
4900         * modules/ftruncate (Status, Notice): Remove sections.
4901         (Depends-on): Add largefile.
4902         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
4903         non-mingw platforms.
4904         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
4905         include <io.h>.
4906         * modules/perror-tests (Depends-on): Add ftruncate.
4907         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
4908         'ftruncate' module.
4909
4910 2011-09-21  Bruno Haible  <bruno@clisp.org>
4911
4912         Add dependencies to new dirent related modules.
4913         * modules/opendir (Depends-on): Add closedir.
4914         * modules/getcwd (Depends-on): Add opendir, closedir.
4915         * modules/dirent-safer-tests (Depends-on): Likewise.
4916         * modules/fdopendir-tests (Depends-on): Likewise.
4917         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
4918         * modules/renameat-tests (Depends-on): Likewise.
4919
4920 2011-09-21  Bruno Haible  <bruno@clisp.org>
4921
4922         opendir: Avoid compilation error on mingw.
4923         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
4924         * modules/opendir (Depends-on): Add unistd.
4925
4926 2011-09-21  Bruno Haible  <bruno@clisp.org>
4927
4928         ftruncate tests: Avoid a test failure on mingw.
4929         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
4930
4931 2011-09-21  Bruno Haible  <bruno@clisp.org>
4932
4933         select tests: Avoid test failures on OSF/1 5.1 and mingw.
4934         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
4935         native Windows.
4936
4937 2011-09-21  Bruno Haible  <bruno@clisp.org>
4938
4939         New module 'fdopen'.
4940         * lib/stdio.in.h (fdopen): New declaration.
4941         * lib/fdopen.c: New file.
4942         * m4/fdopen.m4: New file.
4943         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
4944         REPLACE_FDOPEN.
4945         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
4946         REPLACE_FDOPEN.
4947         * modules/fdopen: New file.
4948         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
4949         * tests/test-stdio-c++.cc: Check signature of fdopen.
4950         * doc/posix-functions/fdopen.texi: Mention the new module.
4951
4952 2011-09-21  Bruno Haible  <bruno@clisp.org>
4953
4954         unlockpt tests: Avoid test failure on NetBSD 5.1.
4955         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
4956         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
4957
4958 2011-09-21  Bruno Haible  <bruno@clisp.org>
4959
4960         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
4961         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
4962         * tests/test-getlogin_r.c (main): Likewise.
4963
4964 2011-09-20  Bruno Haible  <bruno@clisp.org>
4965
4966         time tests: Don't require pid_t.
4967         * doc/posix-headers/time.texi: Revert last change.
4968         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
4969         * tests/test-time.c: Comment out the check for pid_t.
4970
4971 2011-09-20  Bruno Haible  <bruno@clisp.org>
4972
4973         fsync tests: Avoid a test failure on mingw.
4974         * tests/test-fsync.c (main): Allow a failure with EIO.
4975
4976 2011-09-20  Bruno Haible  <bruno@clisp.org>
4977
4978         euidaccess: Update comments.
4979         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
4980
4981 2011-09-20  Bruno Haible  <bruno@clisp.org>
4982
4983         Ensure EBADF returns for socket functions on mingw.
4984         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
4985         descriptor is invalid.
4986         * lib/bind.c (rpl_bind): Likewise.
4987         * lib/connect.c (rpl_connect): Likewise.
4988         * lib/getpeername.c (rpl_getpeername): Likewise.
4989         * lib/getsockname.c (rpl_getsockname): Likewise.
4990         * lib/getsockopt.c (rpl_getsockopt): Likewise.
4991         * lib/listen.c (rpl_listen): Likewise.
4992         * lib/recv.c (rpl_recv): Likewise.
4993         * lib/recvfrom.c (rpl_recvfrom): Likewise.
4994         * lib/send.c (rpl_send): Likewise.
4995         * lib/sendto.c (rpl_sendto): Likewise.
4996         * lib/setsockopt.c (rpl_setsockopt): Likewise.
4997         * lib/shutdown.c (rpl_shutdown): Likewise.
4998
4999 2011-09-20  Bruno Haible  <bruno@clisp.org>
5000
5001         select tests: EBADF tests.
5002         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
5003         test_bad_fd): New functions.
5004         (test_function): Invoke also test_bad_fd.
5005
5006 2011-09-20  Bruno Haible  <bruno@clisp.org>
5007
5008         Tests for module 'posix_spawn_file_actions_addopen.
5009         * modules/posix_spawn_file_actions_addopen-tests: New file.
5010         * tests/test-posix_spawn_file_actions_addopen.c: New file.
5011
5012         Tests for module 'posix_spawn_file_actions_adddup2'.
5013         * modules/posix_spawn_file_actions_adddup2-tests: New file.
5014         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
5015
5016         Tests for module 'posix_spawn_file_actions_addclose'.
5017         * modules/posix_spawn_file_actions_addclose-tests: New file.
5018         * tests/test-posix_spawn_file_actions_addclose.c: New file.
5019
5020 2011-09-20  Bruno Haible  <bruno@clisp.org>
5021
5022         Tests for module 'unlockpt'.
5023         * modules/unlockpt-tests: New file.
5024         * tests/test-unlockpt.c: New file.
5025         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
5026
5027         Tests for module 'grantpt'.
5028         * modules/grantpt-tests: New file.
5029         * tests/test-grantpt.c: New file.
5030         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
5031
5032 2011-09-20  Bruno Haible  <bruno@clisp.org>
5033
5034         freopen tests: EBADF tests.
5035         * tests/test-freopen.c: Include errno.h, unistd.h.
5036         (main): Add tests for EBADF, commented out for the moment.
5037
5038         fclose tests: EBADF tests.
5039         * tests/test-fclose.c (main): Add tests for EBADF.
5040
5041         fflush tests: EBADF tests.
5042         * tests/test-fflush.c: Include errno.h, macros.h.
5043         (main): Add tests for EBADF.
5044
5045         ftello tests: EBADF tests.
5046         * tests/test-ftello4.sh: New file.
5047         * tests/test-ftello4.c: New file.
5048         * modules/ftello-tests (Files): Add them.
5049         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
5050
5051         fseeko tests: EBADF tests.
5052         * tests/test-fseeko4.sh: New file.
5053         * tests/test-fseeko4.c: New file.
5054         * modules/fseeko-tests (Files): Add them.
5055         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
5056
5057         Tests for function fputc().
5058         * modules/fputc-tests: New file.
5059         * tests/test-fputc.c: New file.
5060         * modules/stdio-tests (Depends-on): Add fputc-tests.
5061
5062         Tests for function fgetc().
5063         * modules/fgetc-tests: New file.
5064         * tests/test-fgetc.c: New file.
5065         * modules/stdio-tests (Depends-on): Add fgetc-tests.
5066
5067         Tests for function fdopen().
5068         * modules/fdopen-tests: New file.
5069         * tests/test-fdopen.c: New file.
5070         * modules/stdio-tests (Depends-on): Add fdopen-tests.
5071
5072         Tests for module 'vdprintf'.
5073         * modules/vdprintf-tests: New file.
5074         * tests/test-vdprintf.c: New file.
5075
5076         Tests for module 'dprintf'.
5077         * modules/dprintf-tests: New file.
5078         * tests/test-dprintf.c: New file.
5079
5080 2011-09-20  Bruno Haible  <bruno@clisp.org>
5081
5082         Tests for module 'ioctl'.
5083         * modules/ioctl-tests: New file.
5084         * tests/test-ioctl.c: New file.
5085
5086 2011-09-20  Bruno Haible  <bruno@clisp.org>
5087
5088         fcntl tests: EBADF tests.
5089         * tests/test-fcntl.c (main): Add more tests for EBADF.
5090
5091 2011-09-20  Bruno Haible  <bruno@clisp.org>
5092
5093         utimensat tests: EBADF tests.
5094         * tests/test-utimensat.c (main): Add tests for EBADF.
5095
5096         renameat tests: EBADF tests.
5097         * tests/test-renameat.c (main): Add tests for EBADF.
5098
5099         mkfifoat tests: EBADF tests.
5100         * tests/test-mkfifoat.c (main): Add tests for EBADF.
5101
5102         readlinkat tests: EBADF tests.
5103         * tests/test-readlinkat.c (main): Add tests for EBADF.
5104
5105         symlinkat tests: EBADF tests.
5106         * tests/test-symlinkat.c (main): Add tests for EBADF.
5107
5108         linkat tests: EBADF tests.
5109         * tests/test-linkat.c (main): Add tests for EBADF.
5110
5111         Tests for module 'faccessat'.
5112         * modules/faccessat-tests: New file.
5113         * tests/test-faccessat.c: New file.
5114
5115         fdopendir tests: EBADF tests.
5116         * tests/test-fdopendir.c (main): Add more tests for EBADF.
5117
5118         openat tests: EBADF tests.
5119         * tests/test-fchownat.c (main): Add tests for EBADF.
5120         * tests/test-fstatat.c (main): Likewise.
5121         * tests/test-mkdirat.c (main): Likewise.
5122         * tests/test-openat.c (main): Likewise.
5123         * tests/test-unlinkat.c (main): Likewise.
5124         * tests/test-fchmodat.c: New file.
5125         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
5126         (Makefile.am): Also run 'test-fchmodat'.
5127
5128 2011-09-20  Bruno Haible  <bruno@clisp.org>
5129
5130         utimens, futimens, fdutimensat tests: EBADF tests.
5131         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
5132
5133         Tests for function fstat().
5134         * modules/fstat-tests: New file.
5135         * tests/test-fstat.c: New file.
5136         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
5137
5138 2011-09-20  Bruno Haible  <bruno@clisp.org>
5139
5140         test-ttyname_r tests: EBADF tests.
5141         * tests/test-ttyname_r.c (main): Add tests for EBADF.
5142
5143         Tests for module 'isatty'.
5144         * modules/isatty-tests: New file.
5145         * tests/test-isatty.c: New file.
5146
5147         Tests for module 'write'.
5148         * modules/write-tests: New file.
5149         * tests/test-write.c: New file.
5150
5151         Tests for module 'read'.
5152         * modules/read-tests: New file.
5153         * tests/test-read.c: New file.
5154
5155         pwrite tests: EBADF tests.
5156         * tests/test-pwrite.c (main): Add tests for EBADF.
5157
5158         pread tests: EBADF tests.
5159         * tests/test-pread.c (main): Add tests for EBADF.
5160
5161         lseek tests: EBADF tests.
5162         * tests/test-lseek.c (main): Add more tests for EBADF.
5163
5164         Tests for module 'ftruncate'.
5165         * modules/ftruncate-tests: New file.
5166         * tests/test-ftruncate.sh: New file.
5167         * tests/test-ftruncate.c: New file.
5168
5169         fsync tests: EBADF tests.
5170         * tests/test-fsync.c (main): Add more tests for EBADF.
5171
5172         fdatasync tests: EBADF tests.
5173         * tests/test-fdatasync.c (main): Add more tests for EBADF.
5174
5175         Tests for module 'fchown'.
5176         * modules/fchown-tests: New file.
5177         * tests/test-fchown.c: New file.
5178
5179         Tests for module 'fchmod'.
5180         * modules/fchmod-tests: New file.
5181         * tests/test-fchmod.c: New file.
5182
5183         fchdir tests: EBADF tests.
5184         * tests/test-fchdir.c (main): Add more tests for EBADF.
5185
5186         dup2 tests: EBADF tests.
5187         * tests/test-dup2.c (main): Add more tests for EBADF.
5188
5189         Tests for module 'dup'.
5190         * modules/dup-tests: New file.
5191         * tests/test-dup.c: New file.
5192
5193         Tests for module 'close'.
5194         * modules/close-tests: New file.
5195         * tests/test-close.c: New file.
5196
5197 2011-09-20  Bruno Haible  <bruno@clisp.org>
5198
5199         Tests for module 'shutdown'.
5200         * modules/shutdown-tests: New file.
5201         * tests/test-shutdown.c: New file.
5202
5203         Tests for module 'setsockopt'.
5204         * modules/setsockopt-tests: New file.
5205         * tests/test-setsockopt.c: New file.
5206
5207         Tests for module 'sendto'.
5208         * modules/sendto-tests: New file.
5209         * tests/test-sendto.c: New file.
5210
5211         Tests for module 'send'.
5212         * modules/send-tests: New file.
5213         * tests/test-send.c: New file.
5214
5215         Tests for module 'recvfrom'.
5216         * modules/recvfrom-tests: New file.
5217         * tests/test-recvfrom.c: New file.
5218
5219         Tests for module 'recv'.
5220         * modules/recv-tests: New file.
5221         * tests/test-recv.c: New file.
5222
5223         Tests for module 'listen'.
5224         * modules/listen-tests: New file.
5225         * tests/test-listen.c: New file.
5226
5227         Tests for module 'getsockopt'.
5228         * modules/getsockopt-tests: New file.
5229         * tests/test-getsockopt.c: New file.
5230
5231         Tests for module 'getsockname'.
5232         * modules/getsockname-tests: New file.
5233         * tests/test-getsockname.c: New file.
5234
5235         Tests for module 'getpeername'.
5236         * modules/getpeername-tests: New file.
5237         * tests/test-getpeername.c: New file.
5238
5239         Tests for module 'connect'.
5240         * modules/connect-tests: New file.
5241         * tests/test-connect.c: New file.
5242
5243         Tests for module 'bind'.
5244         * modules/bind-tests: New file.
5245         * tests/test-bind.c: New file.
5246
5247         accept4 tests: Fix for native Windows.
5248         * tests/test-accept4.c: Include sockets.h.
5249         (main): Invoke gl_sockets_startup.
5250         * modules/accept4-tests (Depends-on): Add sockets.
5251
5252         accept tests: Fix for native Windows.
5253         * tests/test-accept.c: Include sockets.h.
5254         (main): Invoke gl_sockets_startup.
5255         * modules/accept-tests (Depends-on): Add sockets.
5256
5257 2011-09-19  Bruno Haible  <bruno@clisp.org>
5258
5259         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
5260         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
5261         do...while(0).
5262         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
5263         Suggested by Paul Eggert.
5264
5265 2011-09-19  Bruno Haible  <bruno@clisp.org>
5266
5267         sched: Ensure pid_t is defined.
5268         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
5269         not define pid_t.
5270         * lib/sched.in.h: Include <sys/types.h>.
5271         * doc/posix-headers/sched.texi: Mention the pid_t problem.
5272         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5273
5274 2011-09-19  Bruno Haible  <bruno@clisp.org>
5275
5276         msvc-inval: Ensure the entire expansion is a single statement.
5277         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
5278         of braces.
5279
5280 2011-09-19  Jim Meyering  <meyering@redhat.com>
5281
5282         tests: use printf, not echo in init.sh's warn_ function
5283         * tests/init.sh (warn_): Use printf, not echo.  The latter would
5284         misbehave when given strings containing a backslash or starting
5285         with e.g., -n.  James Youngman suggested setting IFS.
5286
5287 2011-09-19  Eric Blake  <eblake@redhat.com>
5288
5289         futimens: enhance test
5290         * tests/test-futimens.h (test_futimens): Also check for EBADF on
5291         closed non-negative fd.
5292
5293         date: accept 'hence' as opposite of 'ago'
5294         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
5295         * tests/test-parse-datetime.c (main): Enhance test.
5296         Suggested by Jesse Wilson.
5297
5298 2011-09-19  Jim Meyering  <meyering@redhat.com>
5299
5300         getcwd: don't fail in a deep directory on a system without openat
5301         Before this change, getcwd would fail when called from a directory
5302         of depth PATH_MAX / 3 or greater.  That was due to the fact that
5303         the non-openat implementation used "..", "../..", "../../..", etc.
5304         to access ancestor directories.  With too many, that string would
5305         be longer than PATH_MAX.
5306         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
5307         using gnulib's openat replacement.
5308         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
5309         we're using the replacement function.
5310
5311 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
5312
5313         maint.mk: avoid warnings from perl about missing files
5314         * top/maint.mk (def_sym_regex): Ignore files listed in
5315         $(gl_other_headers_) that do not exist, say because a project
5316         does not use a corresponding module.
5317
5318 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
5319
5320         stat: use pathmax.h only if needed
5321         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
5322         This is better for Emacs, which does not have a mingw port and
5323         therefore can avoid the pathmax module.
5324
5325         utimens: remove dependency on dup2
5326         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
5327         to work around the Linux kernel bug.
5328         * modules/utimens (Depends-on): Remove dup2.
5329
5330 2011-09-18  Bruno Haible  <bruno@clisp.org>
5331
5332         inet_ntop, inet_pton: Look for it also in libresolv.
5333         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
5334         libnsl, search for it in libresolv.
5335         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5336         Needed on Solaris 7.
5337
5338 2011-09-18  Bruno Haible  <bruno@clisp.org>
5339
5340         accept, accept4 tests: Avoid link error on Solaris.
5341         * modules/accept-tests (Makefile.am): Link test-accept against
5342         $(LIBSOCKET).
5343         * modules/accept4-tests (Makefile.am): Link test-accept4 against
5344         $(LIBSOCKET).
5345
5346         accept4: Avoid link error on Solaris.
5347         * modules/accept4 (Link): New section.
5348
5349         socket functions: Avoid link errors on Solaris.
5350         * modules/accept (Depends-on): Add socketlib.
5351         (Link): New section.
5352         * modules/bind (Depends-on): Add socketlib.
5353         (Link): New section.
5354         * modules/connect (Depends-on): Add socketlib.
5355         (Link): New section.
5356         * modules/getpeername (Depends-on): Add socketlib.
5357         (Link): New section.
5358         * modules/getsockname (Depends-on): Add socketlib.
5359         (Link): New section.
5360         * modules/getsockopt (Depends-on): Add socketlib.
5361         (Link): New section.
5362         * modules/listen (Depends-on): Add socketlib.
5363         (Link): New section.
5364         * modules/recv (Depends-on): Add socketlib.
5365         (Link): New section.
5366         * modules/recvfrom (Depends-on): Add socketlib.
5367         (Link): New section.
5368         * modules/send (Depends-on): Add socketlib.
5369         (Link): New section.
5370         * modules/sendto (Depends-on): Add socketlib.
5371         (Link): New section.
5372         * modules/setsockopt (Depends-on): Add socketlib.
5373         (Link): New section.
5374         * modules/shutdown (Depends-on): Add socketlib.
5375         (Link): New section.
5376         * modules/socket (Depends-on): Add socketlib.
5377         (Link): New section.
5378
5379 2011-09-18  Bruno Haible  <bruno@clisp.org>
5380
5381         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
5382         * tests/test-ptsname.c (main): Terminate the test if it takes longer
5383         than 5 seconds.
5384         * modules/ptsname-tests (configure.ac): Test for alarm.
5385
5386 2011-09-18  Bruno Haible  <bruno@clisp.org>
5387
5388         posix_spawn_file_actions_add*: Fix module dependencies.
5389         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
5390         posix_spawn_file_actions_init.
5391         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
5392         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
5393
5394 2011-09-18  Bruno Haible  <bruno@clisp.org>
5395
5396         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
5397         * tests/test-rename.h (test_rename): Allow error code EEXIST.
5398         * tests/test-renameat.c (main): Likewise.
5399
5400 2011-09-18  Bruno Haible  <bruno@clisp.org>
5401
5402         Tests for module 'accept4'.
5403         * modules/accept4-tests: New file.
5404         * tests/test-accept4.c: New file.
5405
5406 2011-09-18  Bruno Haible  <bruno@clisp.org>
5407
5408         Tests for module 'accept'.
5409         * modules/accept-tests: New file.
5410         * tests/test-accept.c: New file.
5411
5412 2011-09-18  Bruno Haible  <bruno@clisp.org>
5413
5414         dup2: Support for MSVC.
5415         * lib/dup2.c: Include msvc-inval.h.
5416         (rpl_dup2): Handle invalid parameter notifications during dup2 and
5417         _get_osfhandle calls.
5418         * modules/dup2 (Depends-on): Add msvc-inval.
5419         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
5420
5421         New module 'msvc-inval'.
5422         * lib/msvc-inval.h: New file.
5423         * lib/msvc-inval.c: New file.
5424         * m4/msvc-inval.m4: New file.
5425         * modules/msvc-inval: New file.
5426
5427 2011-09-17  Bruno Haible  <bruno@clisp.org>
5428
5429         Tests for module 'pclose'.
5430         * modules/pclose-tests: New file.
5431
5432         New module 'pclose'.
5433         * lib/stdio.in.h (pclose): New declaration.
5434         * lib/pclose.c: New file.
5435         * m4/pclose.m4: New file.
5436         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
5437         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
5438         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
5439         * modules/pclose: New file.
5440         * modules/popen-tests (Depends-on): Add pclose.
5441         * modules/popen-safer-tests (Depends-on): Likewise.
5442         * doc/posix-functions/pclose.texi: Mention the new module.
5443
5444 2011-09-17  Bruno Haible  <bruno@clisp.org>
5445
5446         popen: Support for MSVC.
5447         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
5448         * lib/popen.c (popen): Provide alternate definition for native Windows.
5449         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
5450         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
5451         * modules/popen (Depends-on, configure.ac): Update condition.
5452         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
5453         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
5454         fixed.
5455
5456 2011-09-17  Bruno Haible  <bruno@clisp.org>
5457
5458         isnanl, isnand, isnanf: Work around MSVC bug.
5459         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
5460
5461 2011-09-17  Bruno Haible  <bruno@clisp.org>
5462
5463         sys_socket tests: Fix recent mistake.
5464         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
5465
5466 2011-09-17  Bruno Haible  <bruno@clisp.org>
5467
5468         putenv: Support for MSVC.
5469         * modules/putenv (Depends-on): Add environ.
5470         * lib/putenv.c (environ): Disable declaration.
5471         * lib/unistd.in.h: Update comment.
5472
5473 2011-09-17  Bruno Haible  <bruno@clisp.org>
5474
5475         math: Avoid macro redefinition warnings on MSVC.
5476         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
5477         Undefine before redefining.
5478
5479 2011-09-17  Bruno Haible  <bruno@clisp.org>
5480
5481         doc: Mention functions which are declared as macros.
5482         * doc/posix-functions/*[fl].texi: Mention that some functions are
5483         defined as macros with arguments only.
5484
5485 2011-09-17  Bruno Haible  <bruno@clisp.org>
5486
5487         Add dependencies to new dirent related modules.
5488         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
5489         * modules/fts (Depends-on): Likewise.
5490         * modules/glob (Depends-on): Likewise.
5491         * modules/savedir (Depends-on): Likewise.
5492         * modules/scandir (Depends-on): Likewise.
5493         * modules/dirent-safer (Depends-on): Add opendir, closedir.
5494         * modules/fdopendir (Depends-on): Add opendir.
5495
5496 2011-09-17  Bruno Haible  <bruno@clisp.org>
5497
5498         inet_pton: Support for MSVC on Windows Vista or newer.
5499         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
5500         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
5501         HAVE_DECL_INET_PTON is defined.
5502         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5503         On platforms with <winsock2.h>, test whether inet_pton is declared in
5504         <ws2tcpip.h>. If so, arrange to replace it.
5505         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5506         REPLACE_INET_PTON.
5507         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
5508         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
5509         (Depends-on, configure.ac): Update condition.
5510         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
5511
5512 2011-09-17  Bruno Haible  <bruno@clisp.org>
5513
5514         inet_ntop: Support for MSVC on Windows Vista or newer.
5515         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
5516         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
5517         HAVE_DECL_INET_NTOP is defined.
5518         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5519         On platforms with <winsock2.h>, test whether inet_ntop is declared in
5520         <ws2tcpip.h>. If so, arrange to replace it.
5521         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5522         REPLACE_INET_NTOP.
5523         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
5524         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
5525         (Depends-on, configure.ac): Update condition.
5526         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
5527
5528 2011-09-16  Eric Blake  <eblake@redhat.com>
5529
5530         test-fsync: yet another enhancement
5531         * tests/test-fsync.c (main): Also test behavior on read-only text
5532         file.
5533
5534 2011-09-16  Bruno Haible  <bruno@clisp.org>
5535
5536         Enhance fsync, fdatasync tests.
5537         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
5538         * tests/test-fdatasync.c (main): Likewise.
5539
5540 2011-09-16  Bruno Haible  <bruno@clisp.org>
5541
5542         Support for MSVC compiler: Ensure mode_t gets defined.
5543         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
5544         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5545         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
5546         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
5547         * tests/test-fcntl-h.c: Check that mode_t is defined.
5548         * tests/test-sys_stat.c: Likewise.
5549         * tests/test-sys_types.c: Likewise.
5550         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
5551         * doc/posix-headers/sys_stat.texi: Likewise.
5552         * doc/posix-headers/sys_types.texi: Likewise.
5553
5554 2011-09-16  Bruno Haible  <bruno@clisp.org>
5555
5556         sys_stat: Support for MSVC.
5557         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
5558         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
5559         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
5560         MSVC.
5561
5562 2011-09-16  Bruno Haible  <bruno@clisp.org>
5563
5564         Support for MSVC compiler: Ensure off_t gets defined.
5565         * lib/unistd.in.h: Include <sys/types.h>.
5566         * tests/test-fcntl-h.c: Check that off_t is defined.
5567         * tests/test-sys_stat.c: Likewise.
5568         * tests/test-sys_types.c: Likewise.
5569
5570 2011-09-16  Eric Blake  <eblake@redhat.com>
5571
5572         fdatasync: port to Solaris
5573         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
5574         * modules/fdatasync (Link): Document it.
5575         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
5576
5577         fdatasync: port to MacOS X 10.7
5578         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
5579         declared.
5580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
5581         * modules/unistd (Makefile.am): Substitute it.
5582         * lib/unistd.in.h (fdatasync): Declare on MacOS.
5583         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
5584
5585         fdatasync: minor improvements
5586         * modules/fdatasync (Depends-on): Add condition for fsync.
5587         * lib/fdatasync.c (fdatasync): Add comment.
5588         * tests/test-unistd-c++.cc: Test fdatasync.
5589
5590         unistd: update refs to newer POSIX
5591         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
5592         Suggested by Bruno Haible.
5593
5594         fdatasync: new module
5595         * modules/fsync (Description): Document difference to fdatasync.
5596         * modules/fdatasync: New module.
5597         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
5598         * lib/fdatasync.c (fdatasync): Likewise.
5599         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
5600         defaults.
5601         * modules/unistd (Makefile.am): Set witnesses.
5602         * lib/unistd.in.h (fdatasync): Declare.
5603         * MODULES.html.sh: Document it.
5604         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
5605         * modules/fdatasync-tests: New test.
5606         * tests/test-fdatasync.c: Likewise.
5607
5608 2011-09-16  Eric Blake  <eblake@redhat.com>
5609
5610         test-fsync: enhance tests
5611         * modules/fsync-tests (Depends-on): Add errno, for mingw.
5612         * tests/test-fsync.c (main): Enhance test.
5613
5614 2011-09-15  Bruno Haible  <bruno@clisp.org>
5615
5616         Support for MSVC compiler: Ensure ssize_t gets defined.
5617         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
5618         * doc/posix-headers/stdio.texi: Likewise.
5619         * modules/stdio (Depends-on): Add ssize_t.
5620         * modules/sys_socket (Depends-on): Likewise.
5621         * modules/sys_types (Depends-on): Likewise.
5622         * modules/sys_uio (Depends-on): Likewise.
5623         * modules/unistd (Depends-on): Likewise.
5624         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
5625         * tests/test-sys_types.c: Check that ssize_t is defined.
5626
5627 2011-09-14  Bruno Haible  <bruno@clisp.org>
5628
5629         Avoid using #, the m4 comment starter character, near brackets.
5630         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
5631         delimiter character in sed expressions.
5632         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
5633         Suggested by Eric Blake.
5634
5635         Properly quote AC_CHECK_DECLS' 4th argument.
5636         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
5637         argument.
5638         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5639         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5640         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5641         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
5642         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
5643         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
5644         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
5645         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
5646         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
5647         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
5648         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
5649         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5650         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
5651         * m4/isinf.m4 (gl_ISINF): Likewise.
5652         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5653         * m4/readutmp.m4 (gl_READUTMP): Likewise.
5654         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
5655         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5656         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5657         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5658         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
5659         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
5660         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
5661         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5662         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5663         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5664         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
5665         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5666         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5667         Reported by Eric Blake.
5668
5669         Properly quote AC_CHECK_DECL's 4th argument.
5670         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
5671         argument.
5672         * m4/argp.m4 (gl_ARGP): Likewise.
5673         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
5674         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
5675         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
5676         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
5677         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
5678         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
5679         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5680         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
5681         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
5682         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
5683         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
5684         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
5685         Reported by Eric Blake.
5686
5687 2011-09-14  Eric Blake  <eblake@redhat.com>
5688
5689         opendir: avoid compile warning
5690         * lib/opendir.c (includes): Always include errno.h.
5691         Reported by Tatsuro MATSUOKA.
5692
5693 2011-09-14  Jim Meyering  <meyering@redhat.com>
5694
5695         maint.mk: sc_tight_scope: propagate failure from sub-make
5696         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
5697         Reported by Martin von Gagern.
5698
5699 2011-09-13  Bruno Haible  <bruno@clisp.org>
5700
5701         tempname: Support for MSVC.
5702         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
5703         MSVC.
5704         * modules/tempname (Depends-on): Add fcntl-h.
5705
5706 2011-09-13  Bruno Haible  <bruno@clisp.org>
5707
5708         sys_time: Support for MSVC.
5709         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
5710         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
5711         include <winsock2.h>.
5712         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
5713         function declarations that collide with POSIX.
5714         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
5715         (Makefile.am): Substitute HAVE_WINSOCK2_H.
5716
5717 2011-09-13  Bruno Haible  <bruno@clisp.org>
5718
5719         stat: Support for MSVC.
5720         * lib/stat.c: Include pathmax.h.
5721         * modules/stat (Depends-on): Add pathmax.
5722
5723         pathmax: Support for native Windows.
5724         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
5725
5726 2011-09-12  Bruno Haible  <bruno@clisp.org>
5727
5728         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
5729         * lib/dirent.in.h (struct dirent): New type.
5730         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
5731         DT_WHT): New macros.
5732         (DIR): New type.
5733         (opendir, closedir): Declare only if the module 'opendir' is enabled.
5734         (readdir, rewinddir): New declarations.
5735         * lib/dirent-private.h: New file.
5736         * lib/opendir.c: New file.
5737         * lib/readdir.c: New file.
5738         * lib/rewinddir.c: New file.
5739         * lib/closedir.c: New file.
5740         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
5741         * m4/opendir.m4: New file.
5742         * m4/readdir.m4: New file.
5743         * m4/rewinddir.m4: New file.
5744         * m4/closedir.m4: New file.
5745         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
5746         REPLACE_CLOSEDIR here.
5747         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
5748         readdir, rewinddir are declared.
5749         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
5750         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
5751         HAVE_REWINDDIR, HAVE_CLOSEDIR.
5752         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
5753         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
5754         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
5755         * modules/opendir: New file.
5756         * modules/readdir: New file.
5757         * modules/rewinddir: New file.
5758         * modules/closedir: New file.
5759         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
5760         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
5761         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
5762         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
5763         * NEWS: Mention the 'fchdir' change.
5764
5765 2011-09-11  Bruno Haible  <bruno@clisp.org>
5766
5767         asm-underscore.m4: Support for MSVC.
5768         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
5769         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
5770
5771 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
5772
5773         Doc about crypt functions.
5774         * doc/posix-functions/crypt.texi: Expand range of glibc versions
5775         needing for _GNU_SOURCE to get crypt.
5776         * doc/posix-functions/encrypt.texi: Likewise.
5777         * doc/posix-functions/setkey.texi: Likewise.
5778
5779 2011-09-11  Bruno Haible  <bruno@clisp.org>
5780
5781         doc: Update regarding MSVC 9.
5782         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
5783         tested".
5784         * doc/posix-functions/*.texi: Update with info about MSVC 9.
5785         * doc/posix-headers/*.texi: Likewise.
5786         * doc/pastposix-functions/*.texi: Likewise.
5787         * doc/glibc-functions/*.texi: Likewise.
5788         * doc/glibc-headers/*.texi: Likewise.
5789
5790 2011-09-11  Bruno Haible  <bruno@clisp.org>
5791
5792         unistd et al.: Don't assume <unistd.h> exists.
5793         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
5794         does not exist.
5795         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
5796         exist. But include <stdlib.h>.
5797         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
5798         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
5799         symlink() does not exist.
5800         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
5801         include <io.h> instead.
5802         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
5803         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
5804         include <direct.h> instead.
5805         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5806         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5807         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
5808         <io.h> instead.
5809         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
5810         correctly if the system does not have hard links.
5811         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
5812         <direct.h> instead.
5813         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
5814         it when looking for function declarations.
5815         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
5816         <direct.h> and <io.h> instead.
5817         * doc/posix-headers/unistd.texi: More details about MSVC problem.
5818
5819 2011-09-11  Bruno Haible  <bruno@clisp.org>
5820
5821         strcase: Support for MSVC.
5822         * modules/strcase (Status, Notice): Remove obsoletion mark.
5823         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
5824         * doc/posix-functions/strncasecmp.texi: Likewise.
5825
5826         strings: Don't assume <strings.h> exists.
5827         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
5828         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
5829         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
5830         * doc/posix-headers/strings.texi: Mention the MSVC problem.
5831
5832 2011-09-11  Bruno Haible  <bruno@clisp.org>
5833
5834         dirent: Don't assume <dirent.h> exists.
5835         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
5836         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
5837         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
5838         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
5839
5840 2011-09-11  Bruno Haible  <bruno@clisp.org>
5841
5842         Fix wint_t on MSVC.
5843         * lib/wchar.in.h (wint_t): On MSVC, override it.
5844         * lib/wctype.in.h (wint_t): Likewise.
5845         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
5846         MSVC.
5847         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
5848         * doc/posix-headers/wctype.texi: Likewise.
5849
5850 2011-09-11  Bruno Haible  <bruno@clisp.org>
5851
5852         sys_types: Fix typo.
5853         * lib/sys_types.in.h: Fix typo in comment.
5854         Reported by Paul Eggert.
5855
5856         Support for MSVC compiler: Ensure size_t gets defined.
5857         * modules/strings (Depends-on): Add 'sys_types'.
5858         * modules/sys_uio (Depends-on): Likewise.
5859         * lib/sys_uio.in.h: Update comment.
5860
5861         C++ tests for module 'sys_types'.
5862         * modules/sys_types-c++-tests: New file.
5863         * tests/test-sys_types-c++.cc: New file.
5864
5865         Tests for module 'sys_types'.
5866         * modules/sys_types-tests: New file.
5867         * tests/test-sys_types.c: New file.
5868
5869         New module 'sys_types'.
5870         * lib/sys_types.in.h: New file.
5871         * m4/sys_types_h.m4: New file.
5872         * modules/sys_types: New file.
5873         * doc/posix-headers/sys_types.texi: Mention the new module and the
5874         size_t problem on MSVC 9.
5875
5876 2011-09-11  Bruno Haible  <bruno@clisp.org>
5877
5878         Support for MSVC compiler: Avoid division by a literal 0.
5879         * lib/math.in.h (NAN): Define through a function call also on MSVC.
5880         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
5881         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
5882         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
5883         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
5884         * tests/infinity.h: New file.
5885         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
5886         on MSVC.
5887         * tests/test-ceilf1.c: Include infinity.h.
5888         (main): Use Infinityf.
5889         * tests/test-ceil1.c: Include infinity.h.
5890         (main): Use Infinityd.
5891         * tests/test-ceill.c: Include infinity.h.
5892         (main): Use Infinityl.
5893         * tests/test-dprintf-posix.c: Include infinity.h.
5894         (test_function): Use Infinityd.
5895         * tests/test-floorf1.c: Include infinity.h.
5896         (main): Use Infinityf.
5897         * tests/test-floor1.c: Include infinity.h.
5898         (main): Use Infinityd.
5899         * tests/test-floorl.c: Include infinity.h.
5900         (main): Use Infinityl.
5901         * tests/test-fprintf-posix.c: Include infinity.h.
5902         (test_function): Use Infinityd.
5903         * tests/test-frexp.c: Include infinity.h.
5904         (main): Use Infinityd.
5905         * tests/test-frexpl.c: Include infinity.h.
5906         (main): Use Infinityl.
5907         * tests/test-isfinite.c: Include infinity.h.
5908         (test_isfinitef): Use Infinityf.
5909         (test_isfinited): Use Infinityd.
5910         (test_isfinitel): Use Infinityl.
5911         * tests/test-isinf.c: Include infinity.h.
5912         (test_isinff): Use Infinityf.
5913         (test_isinfd): Use Infinityd.
5914         (test_isinfl): Use Infinityl.
5915         * tests/test-isnan.c: Include infinity.h.
5916         (test_float): Use Infinityf.
5917         (test_double): Use Infinityd.
5918         (test_long_double): Use Infinityl.
5919         * tests/test-isnanf.h: Include infinity.h.
5920         (main): Use Infinityf.
5921         * tests/test-isnand.h: Include infinity.h.
5922         (main): Use Infinityd.
5923         * tests/test-isnanl.h: Include infinity.h.
5924         (main): Use Infinityl.
5925         * tests/test-ldexpl.c: Include infinity.h.
5926         (main): Use Infinityl.
5927         * tests/test-printf-posix.h: Include infinity.h.
5928         (test_function): Use Infinityd.
5929         * tests/test-roundf1.c: Include infinity.h.
5930         (main): Use Infinityf.
5931         * tests/test-round1.c: Include infinity.h.
5932         (main): Use Infinityd.
5933         * tests/test-roundl.c: Include infinity.h.
5934         (main): Use Infinityl.
5935         * tests/test-signbit.c: Include infinity.h.
5936         (test_signbitf): Use Infinityf.
5937         (test_signbitd): Use Infinityd.
5938         (test_signbitl): Use Infinityl.
5939         * tests/test-snprintf-posix.h: Include infinity.h.
5940         (test_function): Use Infinityd, Infinityl.
5941         * tests/test-sprintf-posix.h: Include infinity.h.
5942         (test_function): Use Infinityd, Infinityl.
5943         * tests/test-truncf1.c: Include infinity.h.
5944         (main): Use Infinityf.
5945         * tests/test-trunc1.c: Include infinity.h.
5946         (main): Use Infinityd.
5947         * tests/test-truncl.c: Include infinity.h.
5948         (main): Use Infinityl.
5949         * tests/test-vasnprintf-posix.c: Include infinity.h.
5950         (test_function): Use Infinityd, Infinityl.
5951         * tests/test-vasprintf-posix.c: Include infinity.h.
5952         (test_function): Use Infinityd, Infinityl.
5953         * modules/ceilf-tests (Files): Add tests/infinity.h.
5954         * modules/ceil-tests (Files): Likewise.
5955         * modules/ceill-tests (Files): Likewise.
5956         * modules/dprintf-posix-tests (Files): Likewise.
5957         * modules/floorf-tests (Files): Likewise.
5958         * modules/floor-tests (Files): Likewise.
5959         * modules/floorl-tests (Files): Likewise.
5960         * modules/fprintf-posix-tests (Files): Likewise.
5961         * modules/frexp-tests (Files): Likewise.
5962         * modules/frexp-nolibm-tests (Files): Likewise.
5963         * modules/frexpl-tests (Files): Likewise.
5964         * modules/frexpl-nolibm-tests (Files): Likewise.
5965         * modules/isfinite-tests (Files): Likewise.
5966         * modules/isinf-tests (Files): Likewise.
5967         * modules/isnan-tests (Files): Likewise.
5968         * modules/isnanf-tests (Files): Likewise.
5969         * modules/isnanf-nolibm-tests (Files): Likewise.
5970         * modules/isnand-tests (Files): Likewise.
5971         * modules/isnand-nolibm-tests (Files): Likewise.
5972         * modules/isnanl-tests (Files): Likewise.
5973         * modules/isnanl-nolibm-tests (Files): Likewise.
5974         * modules/ldexpl-tests (Files): Likewise.
5975         * modules/printf-posix-tests (Files): Likewise.
5976         * modules/roundf-tests (Files): Likewise.
5977         * modules/round-tests (Files): Likewise.
5978         * modules/roundl-tests (Files): Likewise.
5979         * modules/signbit-tests (Files): Likewise.
5980         * modules/snprintf-posix-tests (Files): Likewise.
5981         * modules/sprintf-posix-tests (Files): Likewise.
5982         * modules/truncf-tests (Files): Likewise.
5983         * modules/trunc-tests (Files): Likewise.
5984         * modules/truncl-tests (Files): Likewise.
5985         * modules/vasnprintf-posix-tests (Files): Likewise.
5986         * modules/vasprintf-posix-tests (Files): Likewise.
5987         * modules/vdprintf-posix-tests (Files): Likewise.
5988         * modules/vfprintf-posix-tests (Files): Likewise.
5989         * modules/vprintf-posix-tests (Files): Likewise.
5990         * modules/vsnprintf-posix-tests (Files): Likewise.
5991         * modules/vsprintf-posix-tests (Files): Likewise.
5992         * modules/xprintf-posix-tests (Files): Likewise.
5993
5994 2011-09-11  Bruno Haible  <bruno@clisp.org>
5995
5996         Ensure pid_t gets defined.
5997         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
5998         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5999         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
6000         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6001         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
6002         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6003         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
6004         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6005         * tests/test-fcntl-h.c: Check that pid_t is defined.
6006         * tests/test-sched.c: Likewise.
6007         * tests/test-termios.c: Likewise.
6008         * tests/test-time.c: Likewise.
6009         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
6010         * doc/posix-headers/signal.texi: Likewise.
6011         * doc/posix-headers/sys_types.texi: Likewise.
6012         * doc/posix-headers/time.texi: Likewise.
6013
6014 2011-09-11  Bruno Haible  <bruno@clisp.org>
6015
6016         acl: Fix compilation on Solaris 10 (older version).
6017         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
6018         of ACE_EVERYONE.
6019         * lib/set-mode-acl.c (qset_acl): Likewise.
6020         Reported by Christian Jullien <eligis@orange.fr>.
6021
6022 2011-09-10  Bruno Haible  <bruno@clisp.org>
6023
6024         iconv, unsetenv: Add support for MSVC compiler.
6025         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
6026         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
6027
6028 2011-09-10  Bruno Haible  <bruno@clisp.org>
6029
6030         *printf: Add support for MSVC compiler.
6031         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
6032         handles the exception caused by the %n directive. When cross-compiling,
6033         guess no on native Windows.
6034         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
6035         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
6036         emulate it through vsnprintf.
6037         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
6038         * doc/posix-functions/dprintf.texi: Update documentation regarding
6039         MSVC 9.
6040         * doc/posix-functions/fprintf.texi: Likewise.
6041         * doc/posix-functions/printf.texi: Likewise.
6042         * doc/posix-functions/snprintf.texi: Likewise.
6043         * doc/posix-functions/sprintf.texi: Likewise.
6044         * doc/posix-functions/swprintf.texi: Likewise.
6045         * doc/posix-functions/vdprintf.texi: Likewise.
6046         * doc/posix-functions/vfprintf.texi: Likewise.
6047         * doc/posix-functions/vprintf.texi: Likewise.
6048         * doc/posix-functions/vsnprintf.texi: Likewise.
6049         * doc/posix-functions/vsprintf.texi: Likewise.
6050         * doc/glibc-functions/asprintf.texi: Likewise.
6051         * doc/glibc-functions/obstack_printf.texi: Likewise.
6052         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
6053         * doc/glibc-functions/vasprintf.texi: Likewise.
6054
6055 2011-09-10  Bruno Haible  <bruno@clisp.org>
6056
6057         nocrash: Add support for native Windows.
6058         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
6059
6060 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
6061             Bruno Haible  <bruno@clisp.org>
6062
6063         absolute-header, include-next: Add support for MSVC compiler.
6064         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
6065         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
6066         directory separator in #line directives.
6067         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
6068         recognize also backslash as directory separator in #line directives.
6069
6070 2011-09-08  Jim Meyering  <meyering@redhat.com>
6071
6072         maint.mk: mark the post-release commit log with "maint: " prefix
6073         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
6074         one-line commit-log summary.
6075
6076 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
6077             Bruno Haible  <bruno@clisp.org>
6078
6079         Doc about crypt functions.
6080         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
6081         systems.
6082         * doc/posix-functions/encrypt.texi: Likewise.
6083         * doc/posix-functions/setkey.texi: Likewise.
6084
6085 2011-09-08  Simon Josefsson  <simon@josefsson.org>
6086
6087         * lib/gc.h: Fix copyright header.
6088
6089 2011-09-07  Bruno Haible  <bruno@clisp.org>
6090
6091         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
6092         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
6093         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
6094
6095 2011-09-07  Bruno Haible  <bruno@clisp.org>
6096
6097         openat: Work around compilation error with OSF/1 5.1 DTK cc.
6098         * lib/fopen.c: Use different syntax for include of <stdio.h>.
6099         * lib/freopen.c: Likewise.
6100         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
6101         * lib/lstat.c: Likewise.
6102         * lib/stat.c: Likewise.
6103         * lib/open.c: Use different syntax for include of <fcntl.h>.
6104         * lib/openat.c: Include fcntl.h again, explicitly.
6105
6106 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
6107
6108         parse-datetime: document the newly accepted format
6109         * doc/parse-datetime.texi (Combined date and time of day items):
6110         New section.
6111
6112 2011-09-06  Bruno Haible  <bruno@clisp.org>
6113
6114         acl: Fix a test failure on newer Solaris 10 with ZFS.
6115         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
6116         ENOSYS as no ACL.
6117         Reported by Jim Meyering.
6118
6119 2011-09-06  Bruno Haible  <bruno@clisp.org>
6120
6121         acl: Update for AIX >= 5.3 with NFS.
6122         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
6123         ENOSYS as no ACL.
6124
6125         acl: Fix a test failure on AIX >= 5.3 with NFS.
6126         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
6127         as no ACL.
6128
6129 2011-09-06  Bruno Haible  <bruno@clisp.org>
6130
6131         acl: Fix a test failure on IRIX 6.5 with NFS.
6132         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
6133         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
6134         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
6135         * lib/copy-acl.c (qcopy_acl): Likewise.
6136
6137 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
6138
6139         openat: port to AIX 7.1 with large files
6140         AIX 7.1 does a "#define openat open64at" if large files are in use,
6141         so we can't simply #undef openat.  Use the orig_openat trick (similar
6142         to orig_open in lib/open.c) to work around the problem.  Problem
6143         reported by Kevin Brott for GNU tar, in the thread containing
6144         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
6145         * lib/openat.c (__need_system_fcntl_h): Define first.
6146         Include <fcntl.h> and <sys/types.h> before undefining.
6147         (orig_openat) [HAVE_OPENAT]: New inline function.
6148         (openat) [HAVE_OPENAT]: Do not undef.
6149         (rpl_openat): Use orig_openat, not openat.
6150
6151 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
6152             Bruno Haible  <bruno@clisp.org>
6153
6154         acl: Avoid errors on NonStop Kernel.
6155         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
6156         ENOTSUP errors.
6157
6158 2011-09-05  Bruno Haible  <bruno@clisp.org>
6159
6160         acl: Clean up Solaris code.
6161         * lib/acl-internal.h: Remove no-op #if.
6162         * lib/file-has-acl.c: Likewise.
6163         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
6164         * lib/copy-acl.c (qcopy_acl): Likewise.
6165
6166 2011-09-05  Bruno Haible  <bruno@clisp.org>
6167
6168         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
6169         binaries built on the original Solaris 10.
6170         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
6171         trivial.
6172
6173 2011-09-05  Bruno Haible  <bruno@clisp.org>
6174
6175         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
6176         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
6177         10.
6178         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
6179         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
6180         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
6181         instead of acl_get, facl_get, acl_set, facl_set.
6182
6183 2011-09-05  Bruno Haible  <bruno@clisp.org>
6184
6185         copy-file: Try unit tests on more file systems.
6186         * tests/test-copy-file-1.sh: New file.
6187         * tests/test-copy-file-2.sh: New file.
6188         * modules/copy-file-tests (Files): Add them.
6189         (Makefile.am): Add them to TESTS.
6190
6191         acl: Try unit tests on more file systems.
6192         * tests/test-file-has-acl-1.sh: New file.
6193         * tests/test-file-has-acl-2.sh: New file.
6194         * tests/test-set-mode-acl-1.sh: New file.
6195         * tests/test-set-mode-acl-2.sh: New file.
6196         * tests/test-copy-acl-1.sh: New file.
6197         * tests/test-copy-acl-2.sh: New file.
6198         * modules/acl-tests (Files): Add them.
6199         (Makefile.am): Add them to TESTS.
6200
6201 2011-09-04  Bruno Haible  <bruno@clisp.org>
6202
6203         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
6204         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
6205         10.
6206         (OLD_ALLOW, OLD_DENY): New macros.
6207         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
6208         ACE_ACCESS_ALLOWED_ACE_TYPE.
6209         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
6210         ACE_ACCESS_DENIED_ACE_TYPE.
6211         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
6212         (NEW_ACE_EXECUTE): Fix value.
6213         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
6214         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
6215         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
6216         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
6217         NEW_ACE_SYNCHRONIZE): New macros.
6218         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
6219         instead of acl_fromtext, acl_set, facl_set.
6220         Fixes a coreutils/tests/cp/perm failure.
6221
6222 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
6223
6224         openat: test for fstatat (..., 0) bug
6225         Further testing with tar suggests that fstatat (..., 0)
6226         does not work in general, on AIX 7.1; see
6227         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
6228         So, give up entirely on AIX 7.1's fstatat, and fall back on our
6229         replacement fstatat (which is what older AIX releases were using
6230         anyway).
6231         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
6232         use is now changed to orig_fstatat.  This was probably the right
6233         thing to do anyway.
6234         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
6235         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
6236         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
6237         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
6238         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
6239         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
6240         if the bug is found.
6241
6242         openat: test for fstatat (AT_FDCWD, ..., 0) bug
6243         This tests for another fstatat bug on AIX 7.1:
6244         fstatat (AT_FDCWD, ..., 0) does not work.  See
6245         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
6246         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
6247         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
6248         (rpl_fstatat): Adjust so that it works around either (or both)
6249         bugs if present.
6250         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
6251
6252 2011-09-03  Karl Berry  <karl@gnu.org>
6253
6254         * doc/regex.texi (Character Class Operators): Avoid literal ":"
6255         in index entries.
6256
6257 2011-09-02  Bruno Haible  <bruno@clisp.org>
6258
6259         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
6260         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
6261         values of AR, ARFLAGS, RANLIB.
6262         Reported by John W. Eaton <jwe@gnu.org> for Octave.
6263
6264 2011-09-02  Bruno Haible  <bruno@clisp.org>
6265
6266         Find 'ar' program that fits with --host argument.
6267         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
6268
6269 2011-09-02  Bruno Haible  <bruno@clisp.org>
6270
6271         tests: init.sh: Support any non-GNU diff.
6272         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
6273         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
6274         Solaris 8.
6275
6276 2011-09-02  Bruno Haible  <bruno@clisp.org>
6277
6278         tests: init.sh: work also with any non-GNU diff that supports -u
6279         * tests/init.sh: Relax check for diff -u support.
6280         Rather than checking for GNU diff via --version, simply check
6281         for support for -u itself.  Useful at least on OpenBSD 4.9,
6282         AIX 7.1, IRIX 6.5, and Solaris 10.
6283
6284 2011-09-01  Bruno Haible  <bruno@clisp.org>
6285
6286         strtoimax, strtoumax: Document problem on HP-UX 11.
6287         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
6288         * doc/posix-functions/strtoumax.texi: Likewise.
6289
6290 2011-09-01  Bruno Haible  <bruno@clisp.org>
6291
6292         strtoumax: Avoid link error on OSF/1 with DTK cc.
6293         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
6294         defined as a function.
6295         * modules/strtoumax (Depends-on, configure.ac): Test only whether
6296         strtoumax is defined, not whether it is declared.
6297
6298 2011-09-01  Bruno Haible  <bruno@clisp.org>
6299
6300         strtoimax: Avoid link error on OSF/1 with DTK cc.
6301         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
6302         defined as a function.
6303         * modules/strtoimax (Depends-on, configure.ac): Test only whether
6304         strtoimax is defined, not whether it is declared.
6305
6306 2011-09-01  Bruno Haible  <bruno@clisp.org>
6307
6308         imaxdiv: Avoid link error on OSF/1 with DTK cc.
6309         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
6310         as a function.
6311         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
6312         whether it is declared.
6313
6314 2011-09-01  Bruno Haible  <bruno@clisp.org>
6315
6316         imaxabs: Avoid link error on OSF/1 with DTK cc.
6317         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
6318         as a function.
6319         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
6320         whether it is declared.
6321
6322 2011-09-01  Bruno Haible  <bruno@clisp.org>
6323
6324         Tests for module 'strtoumax'.
6325         * modules/strtoumax-tests: New file.
6326         * tests/test-strtoumax.c: New file.
6327
6328         Tests for module 'strtoimax'.
6329         * modules/strtoimax-tests: New file.
6330         * tests/test-strtoimax.c: New file.
6331
6332         Tests for module 'imaxdiv'.
6333         * modules/imaxdiv-tests: New file.
6334         * tests/test-imaxdiv.c: New file.
6335
6336         Tests for module 'imaxabs'.
6337         * modules/imaxabs-tests: New file.
6338         * tests/test-imaxabs.c: New file.
6339
6340 2011-09-01  Bruno Haible  <bruno@clisp.org>
6341
6342         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
6343         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
6344         pthread_create.
6345
6346 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
6347
6348         openat: work around AIX 7.1 fstatat issue
6349         This should fix the problem that was not properly fixed
6350         in the previous change, dated 2011-08-30.
6351         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
6352         __need_system_stat_h defined.
6353         (orig_fstatat) [HAVE_FSTATAT]: New function.
6354         (rpl_fstatat): Go back to the old way of doing things,
6355         except call orig_fstatat instead of fstatat.
6356         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
6357         Remove unnecessary check whether fstatat fills in st_size etc.
6358
6359 2011-09-01  Bruno Haible  <bruno@clisp.org>
6360
6361         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
6362         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
6363         just include the system's header.
6364
6365 2011-08-31  Jim Meyering  <meyering@redhat.com>
6366
6367         tests: avoid spurious assertion failure in test-float.c on ppc64
6368         * tests/test-float.c (test_long_double): Comment out an assertion,
6369         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
6370         with gcc-4.4.4.
6371
6372         maint: indent with spaces, not TABs
6373         I need to get in the habit of running gnulib's "make check".
6374         Both of these would have been caught.
6375         * m4/largefile.m4: Indent with spaces, not TABs.
6376         * lib/parse-datetime.y (iso_8601_time): Likewise.
6377         Spotted by Pádraig Brady.
6378
6379         test-parse-datetime.c: accommodate a relatively strict gcc warning
6380         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
6381         to avoid a warning from gcc's -Werror=missing-declarations.
6382         Insert a few spaces-before-funcall-parenthesis.
6383
6384 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
6385
6386         parse-datetime: accept ISO 8601 date and time rep with "T" separator
6387         The parser now accepts ISO 8601 date-time strings with "T" as the
6388         separator.  It has long parsed dates like "2004-02-29 16:21:42"
6389         with a space between the date and time strings.  Now it also parses
6390         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
6391         variants like "2004-02-29T16:21:42.333-07:00"
6392         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
6393         of day representation using the 'T' separator character.
6394         * doc/parse-datetime.texi (General date syntax): replace use of
6395         deprecated --iso-8601 option with --rfc-3339 in example of date
6396         command output formats that can be parsed.
6397         * tests/test-parse-datetime.c (tm_diff): New function, taken from
6398         lib/parse-datetime.y.
6399         (gmt_offset): New function.
6400         (main): Add additional test cases to validate ISO8601 extended
6401         date and time of day parsing.
6402
6403 2011-08-31  Bruno Haible  <bruno@clisp.org>
6404
6405         freopen: Documentation.
6406         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
6407         name.
6408         Reported by Claudio Bley <claudio.bley@gmail.com>.
6409
6410 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
6411
6412         freopen: Don't crash if the filename argument is NULL.
6413         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
6414         NULL.
6415
6416 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
6417
6418         openat: work around AIX 7.1 fstatat bug
6419         Problem reported by Kevin Brott for GNU tar, in the thread containing
6420         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
6421         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
6422         FSTATAT_ST_SIZE_ETC_BROKEN.
6423         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
6424         rpl_fstatat.
6425         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
6426         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
6427         AC_CHECK_FUNCS_ONCE for fstatat.
6428         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
6429         fchmodat, mkdirat, openat and unlinkat.
6430
6431 2011-08-30  Bruno Haible  <bruno@clisp.org>
6432
6433         Avoid endless recursions if config.h includes some header files.
6434         * lib/fopen.c (__need_FILE): Define already before including config.h.
6435         * lib/freopen.c (__need_FILE): Likewise.
6436         * lib/open.c (__need_system_fcntl_h): Likewise.
6437         * lib/stat.c (__need_system_sys_stat_h): Likewise.
6438         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
6439         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6440
6441 2011-08-25  Karl Berry  <karl@gnu.org>
6442
6443         * config/srclist.txt (ylwrap): new try.
6444         * build-aux/ylwrap: new file.
6445
6446 2011-08-23  Bruno Haible  <bruno@clisp.org>
6447
6448         tmpdir: Use a good default directory on native Windows.
6449         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
6450         (P_tmpdir): Default to _P_tmpdir on native Windows.
6451         (path_search): On native Windows, try the value returned by GetTempPath
6452         before trying P_tmpdir.
6453         * modules/tmpdir (Depends-on): Add pathmax.
6454         Suggested by John Darrington <john@darrington.wattle.id.au>.
6455
6456 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
6457
6458         doc: fix typo in README-release
6459         * top/README-release: Capitalize first word of a sentence.
6460
6461 2011-08-19  Jim Meyering  <meyering@redhat.com>
6462
6463         fts: do not exhaust memory when processing million-entry directories
6464         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
6465         directory would require about 256*N bytes of memory.  Thus, it was
6466         easy to construct a directory too large to be processed by any of
6467         those tools.  With this change, fts' maximum memory utilization is
6468         now limited to around 30MB.
6469         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
6470         (fts_read): When we've processed the final entry (i.e., when
6471         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
6472         using the parent entry to read any remaining entries.  Dispatch
6473         depending on what fts_build returns:
6474         - NULL+stop, aka failure: stop
6475         - NULL otherwise: move up in the dir hierarchy
6476         - non-NULL: handle this new entry
6477         (fts_build): Declare and use new local, continue_readdir.
6478         Prepare to be called from fts_read, when the entries
6479         from a partially-read directory have just been exhausted.
6480         In that case, we'll skip the opendir and instead use the parent's
6481         fts_dirp and derive dir_fd from that.
6482         Finally, in the readdir loop, if we read max_entries entries,
6483         exit the loop ensuring *not* to call closedir.  This is required
6484         so that fts_dirp can be reused on a subsequent call.
6485         Prompted by Ben England's report of memory exhaustion in find
6486         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
6487
6488         maint: fts: move decl of `dp' down into while loop; split a long line
6489         * lib/fts.c (fts_build): No semantic change.
6490
6491         fts: add/use new struct member, fts_dirp
6492         We are about to use this to manage any directory with
6493         too many entries to read all of them into memory at once.
6494         To do that, we'll need to save the DIR* pointer in each
6495         affected FTSENT struct.
6496         * lib/fts_.h: Include <dirent.h>.
6497         (struct FTSENT) [fts_dirp]: New member.
6498         * lib/fts.c (closedir_and_clear): Define.
6499         Use it in place of closedir so that we are sure to
6500         clear the new fts_dirp member when done with it.
6501         (fts_alloc): Initialize the new member.
6502         (fts_lfree): Free, if needed.
6503
6504         maint: fts: give __opendir2 a new parameter and rename
6505         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
6506         than surreptitiously using sole caller's "dir_fd".
6507         (fts_opendir): Rename from __opendir2.
6508
6509         maint: fts.c: remove __opendir2's now-unused parameter, oflag
6510         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
6511
6512         maint: fts.c: correct off-by-one indentation
6513         * lib/fts.c (fts_build): Correct indentation, change style
6514         of a couple of block comments, and bracing style.
6515
6516         maint: fts.c: move __opendir2 #define "up" out of function body
6517         * lib/fts.c (__opendir2): Move "up".  No semantic change.
6518
6519         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
6520         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
6521         out for a long time and besides was useful only on BSD systems.
6522
6523 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
6524
6525         regex: port to Stratus OpenVOS
6526         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
6527         define to empty, rather than attempting nonportable optimizations.
6528         Problem reported by Paul Green in:
6529         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
6530         and fix suggested by Eric Blake in:
6531         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
6532
6533 2011-08-17  Eric Blake  <eblake@redhat.com>
6534
6535         getcwd: fix test failures on mingw
6536         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
6537         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
6538         test if long directory cannot be created, and allow mingw errno.
6539
6540         getcwd-lgpl: fix m4 to match relaxed test for BSD
6541         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
6542         (gl_FUNC_GETCWD_SIGNATURE): New macro.
6543         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
6544         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
6545         signature problem.
6546
6547         getcwd: fix compilation on mingw64
6548         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
6549         getcwd.
6550         Reported by Marc-André Lureau.
6551
6552         pipe2: silence compiler warning
6553         * lib/pipe2.c (pipe2): Hide label if it is not used.
6554
6555 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
6556
6557         relocatable-prog: fix link error
6558         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
6559         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
6560         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
6561         into modules/relocatable-lib without noticing that
6562         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
6563         also needs to build relocatable.c.
6564
6565 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
6566
6567         getaddrinfo: fix sh typo in gai_strerrorA decl checking
6568         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
6569         shell code: it contained a 'break' that was not in a loop.
6570         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
6571         via a shell-language loop; this may have been true in old Autoconf
6572         versions, but it's not true in Autoconf 2.68.  I found this bug
6573         when testing coreutils git on Solaris 8, whose shell complains
6574         about the syntax error.
6575
6576 2011-08-12  Simon Josefsson  <simon@josefsson.org>
6577
6578         * lib/base64.c: Fix comment to reference RFC 4648.
6579         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
6580         <gvtulder@gmail.com>.
6581
6582 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
6583
6584         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
6585
6586         po/Makefile.in.in: fix make -q problem
6587         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
6588         rule, since there's no file named 'check-macro-version' and its
6589         use as a file breaks make -q.
6590         (all): Don't depend on check-macro-version.
6591         (CHECK_MACRO_VERSION): New macro.
6592         (stamp-po): Use it.
6593
6594         configmake: fix make -q problem
6595         * modules/configmake (configmake.h): Update configmake.h's time stamp
6596         even if the file does not change.  Otherwise, 'make -q' fails.
6597         Problem reported by Simon Josefsson in
6598         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
6599
6600 2011-08-11  Jim Meyering  <meyering@redhat.com>
6601
6602         git-version-gen: correct the advice in a comment
6603         * build-aux/git-version-gen: Correct comment.
6604         Don't recommend to list .tarball-version in .gitignore.
6605
6606 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6607
6608         base64: fix off-by-one buffer size bug
6609         Problem and (trivial) fix reported by Gijs van Tulder in
6610         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
6611         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
6612         * tests/test-base64.c (main): Catch the bug.
6613
6614 2011-08-10  Eric Blake  <eblake@redhat.com>
6615
6616         closein: correct comments
6617         * lib/closein.c (close_stdin): Improve comments.
6618
6619 2011-08-09  Bruno Haible  <bruno@clisp.org>
6620
6621         More tests for 'fseeko'.
6622         * tests/test-fseeko3.c: New file, from Eric Blake.
6623         * tests/test-fseeko3.sh: New file.
6624         * modules/fseeko-tests (Files): Add them.
6625         (TESTS): Add test-fseeko3.sh.
6626         (check_PROGRAMS): Add test-fseeko3.
6627
6628 2011-08-09  Eric Blake  <eblake@redhat.com>
6629
6630         fseeko: remove unneeded hack
6631         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
6632
6633         fseeko: fix bug on glibc
6634         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
6635         Reported by John W. Eaton.
6636
6637 2011-08-08  Bruno Haible  <bruno@clisp.org>
6638
6639         unictype/base: Fix interoperability with preinstalled libunistring.
6640         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
6641         Reported by Simon Josefsson.
6642
6643 2011-08-08  Bruno Haible  <bruno@clisp.org>
6644
6645         iswblank: Detect declaration correctly.
6646         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
6647         AC_CHECK_DECLS invocation.
6648
6649 2011-08-08  Bruno Haible  <bruno@clisp.org>
6650
6651         tcgetsid: Detect declaration correctly.
6652         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
6653         AC_CHECK_DECLS invocation.
6654         Reported by Simon Josefsson.
6655
6656 2011-08-08  Eric Blake  <eblake@redhat.com>
6657
6658         largefile: fix typo that regressed large file support
6659         * modules/largefile (configure.ac-early): Fix section name.
6660
6661 2011-08-06  Karl Berry  <karl@gnu.org>
6662
6663         * MODULES.html.sh (func_all_files): _Noreturn is no longer
6664         a separate module.
6665
6666 2011-08-05  Simon Josefsson  <simon@josefsson.org>
6667
6668         openat: Fix warnings and commens when building unlinkat.c on Hurd.
6669         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
6670         get prototype for free.
6671
6672 2011-08-04  Bruno Haible  <bruno@clisp.org>
6673
6674         Tests for module 'pathmax'.
6675         * modules/pathmax-tests: New file.
6676         * tests/test-pathmax.c: New file.
6677
6678         canonicalize-lgpl: Support larger filenames on the Hurd.
6679         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
6680         Reported by Paul Eggert.
6681
6682         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
6683         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
6684         * lib/chdir-long.h: Include pathmax.h.
6685         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
6686         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
6687         (PATH_MAX): Remove code that is done by pathmax.h.
6688         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
6689         * lib/tmpfile.c: Add a comment.
6690         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
6691         * modules/chdir-long (Depends-on): Add pathmax.
6692         * modules/getcwd (Depends-on): Add pathmax.
6693         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
6694         is not defined.
6695         * doc/posix-headers/limits.texi: Mention the pathmax module.
6696         * NEWS: Mention the change.
6697
6698 2011-08-02  Bruno Haible  <bruno@clisp.org>
6699
6700         pthread_sigmask: Actually use results of gl_THREADLIB.
6701         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
6702         gl_THREADLIB, not gl_[]THREADLIB.
6703         Reported by Eric Blake.
6704
6705 2011-08-02  Jim Meyering  <meyering@redhat.com>
6706
6707         maint.mk: relax the default _gl_TS_function_match regexp
6708         * top/maint.mk (_gl_TS_function_match): Don't require at least one
6709         space between function name and "(" in an "extern" declaration.
6710         That would fail to match a decl with no space there: extern void foo();
6711
6712 2011-07-31  Iain Nicol  <iain@thenicols.net>
6713
6714         git-version-gen: document that EXTRA_DIST must include .version
6715         * build-aux/git-version-gen: In the how-to-use comment, document
6716         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
6717         will fail when run from an unpacked distribution tarball.
6718
6719 2011-08-01  Bruno Haible  <bruno@clisp.org>
6720
6721         wctype-h: Fix last change.
6722         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
6723         REPLACE_TOWLOWER to 0.
6724         Reported by Sam Steingold <sds@gnu.org>.
6725
6726 2011-07-31  Bruno Haible  <bruno@clisp.org>
6727
6728         frexpl: Update autoconf test.
6729         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
6730         according to changes of 2011-06-20.
6731
6732 2011-07-31  Bruno Haible  <bruno@clisp.org>
6733
6734         sys_utsname: Add support for Minix.
6735         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
6736         <sys/utsname.h>.
6737         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6738         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
6739
6740 2011-07-31  Bruno Haible  <bruno@clisp.org>
6741
6742         strings: Add support for Minix.
6743         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
6744         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
6745         * doc/posix-headers/strings.texi: Document the Minix problem.
6746
6747 2011-07-31  Bruno Haible  <bruno@clisp.org>
6748
6749         wctype-h: Add support for Minix.
6750         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
6751         REPLACE_TOWLOWER.
6752         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
6753         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
6754         REPLACE_ISWCNTRL.
6755
6756 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
6757
6758         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
6759         This is a performance improvement for 64-bit hosts: it causes the
6760         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
6761
6762 2011-07-31  Bruno Haible  <bruno@clisp.org>
6763
6764         stdioext: Add support for Minix.
6765         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
6766         * lib/fpurge.c (fpurge): Likewise.
6767         * lib/freadahead.c (freadahead): Likewise.
6768         * lib/freadable.c (freadable): Likewise.
6769         * lib/freading.c (freading): Likewise.
6770         * lib/freadptr.c (freadptr): Likewise.
6771         * lib/freadseek.c (freadptrinc): Likewise.
6772         * lib/fseeko.c (rpl_fseeko): Likewise.
6773         * lib/fseterr.c (fseterr): Likewise.
6774         * lib/fwritable.c (fwritable): Likewise.
6775         * lib/fwriting.c (fwriting): Likewise.
6776         * lib/fflush.c (clear_ungetc_buffer): Update comment.
6777         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
6778
6779 2011-07-31  Bruno Haible  <bruno@clisp.org>
6780
6781         errno: Port to Minix.
6782         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
6783         ECONNABORTED are defined.
6784         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
6785         GNULIB_defined_ECONNABORTED): New macros.
6786         * lib/strerror-override.h (strerror_override): Test also
6787         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
6788         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
6789         ECONNABORTED.
6790         * doc/posix-headers/errno.texi: Mention the Minix problem.
6791
6792 2011-07-31  Bruno Haible  <bruno@clisp.org>
6793
6794         Work around declaration collisions on Minix.
6795         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
6796         defined, set REPLACE_MBSINIT.
6797         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
6798         defined, set REPLACE_MBRTOWC.
6799         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
6800         set REPLACE_MBRLEN.
6801         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
6802         defined, set REPLACE_MBSRTOWCS.
6803         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
6804         defined, set REPLACE_WCRTOMB.
6805         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
6806         defined, set REPLACE_WCSRTOMBS.
6807
6808 2011-07-31  Bruno Haible  <bruno@clisp.org>
6809
6810         Add support for Minix with ACK compiler.
6811         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
6812         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
6813         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
6814
6815 2011-07-31  Bruno Haible  <bruno@clisp.org>
6816
6817         Documentation about Minix.
6818         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
6819         * doc/glibc-headers/*.texi: Likewise.
6820         * doc/posix-functions/*.texi: Likewise.
6821         * doc/glibc-functions/*.texi: Likewise.
6822
6823 2011-07-31  Bruno Haible  <bruno@clisp.org>
6824
6825         snippet/warn-on-use: Fix indentation.
6826         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
6827
6828 2011-07-25  Jim Meyering  <meyering@redhat.com>
6829
6830         tests: test-update-copyright.sh: remove unnecessary "rm" commands
6831         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
6832         commands.
6833
6834 2011-07-27  Jim Meyering  <meyering@redhat.com>
6835
6836         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
6837         * top/maint.mk (gl_extract_significant_defines_): Now that
6838         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
6839         gnulib/lib/signal.in.h, and now that we recommend to
6840         define-if-undefined those two symbols in application code,
6841         we must filter them out of the "significant" list.
6842         This avoids a "make syntax-check" failure in coreutils.
6843
6844 2011-07-26  Eric Blake  <eblake@redhat.com>
6845
6846         warnings: add comments about previous patch
6847         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
6848         * m4/include_next.m4: Likewise.
6849         * m4/warn-on-use.m4: Likewise.
6850         * m4/warnings.m4: Likewise, and simplify use.
6851         Suggested by Stefano Lattarini.
6852
6853         include-next, warnings: support older autoconf
6854         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
6855         AS_VAR_PUSHDEF in a way that works with older autoconf.
6856         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
6857         Reported by Daniel P. Berrange.
6858
6859 2011-07-25  Bruno Haible  <bruno@clisp.org>
6860
6861         fseek, ftell: Fix doc.
6862         * doc/posix-functions/fseek.texi: Reword statement about
6863         AC_SYS_LARGEFILE.
6864         * doc/posix-functions/ftell.texi: Likewise.
6865
6866 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6867             Bruno Haible  <bruno@clisp.org>
6868
6869         Add dependencies to the 'largefile' module.
6870         * modules/fopen (Depends-on): Add 'largefile'.
6871         * modules/freopen (Depends-on): Likewise.
6872         * modules/fseeko (Depends-on): Likewise.
6873         * modules/ftello (Depends-on): Likewise.
6874         * modules/glob (Depends-on): Likewise.
6875         * modules/lseek (Depends-on): Likewise.
6876         * modules/lstat (Depends-on): Likewise.
6877         * modules/mkostemp (Depends-on): Likewise.
6878         * modules/mkostemps (Depends-on): Likewise.
6879         * modules/mkstemp (Depends-on): Likewise.
6880         * modules/mkstemps (Depends-on): Likewise.
6881         * modules/open (Depends-on): Likewise.
6882         * modules/openat (Depends-on): Likewise.
6883         * modules/pread (Depends-on): Likewise.
6884         * modules/pwrite (Depends-on): Likewise.
6885         * modules/scandir (Depends-on): Likewise.
6886         * modules/stat (Depends-on): Likewise.
6887         * modules/tmpfile (Depends-on): Likewise.
6888         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
6889         since the containing module now depends on the largefile module.
6890         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
6891         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
6892         off_t is fixed by gnulib.
6893         * doc/posix-functions/freopen.texi: Likewise.
6894         * doc/posix-functions/fseeko.texi: Likewise.
6895         * doc/posix-functions/fstatat.texi: Likewise.
6896         * doc/posix-functions/ftello.texi: Likewise.
6897         * doc/posix-functions/glob.texi: Likewise.
6898         * doc/posix-functions/lseek.texi: Likewise.
6899         * doc/posix-functions/lstat.texi: Likewise.
6900         * doc/posix-functions/mkstemp.texi: Likewise.
6901         * doc/posix-functions/open.texi: Likewise.
6902         * doc/posix-functions/openat.texi: Likewise.
6903         * doc/posix-functions/pread.texi: Likewise.
6904         * doc/posix-functions/pwrite.texi: Likewise.
6905         * doc/posix-functions/scandir.texi: Likewise.
6906         * doc/posix-functions/stat.texi: Likewise.
6907         * doc/posix-functions/tmpfile.texi: Likewise.
6908         * doc/glibc-functions/mkostemp.texi: Likewise.
6909         * doc/glibc-functions/mkostemps.texi: Likewise.
6910         * doc/glibc-functions/mkstemps.texi: Likewise.
6911
6912 2011-07-25  Bruno Haible  <bruno@clisp.org>
6913
6914         fcntl: Move AC_LIBOBJ invocation to module description.
6915         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
6916         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
6917
6918         fcntl: Remove call-in from fchdir.m4.
6919         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
6920         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
6921
6922         dup3: Remove potential call-in from fchdir.m4.
6923         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
6924         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
6925
6926         dup2: Move AC_LIBOBJ invocation to module description.
6927         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
6928         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
6929         Don't invoke AC_LIBOBJ.
6930         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
6931
6932         dup2: Remove call-in from fchdir.m4.
6933         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
6934         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
6935
6936         fclose: Move AC_LIBOBJ invocation to module description.
6937         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
6938         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
6939         to 1.
6940         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
6941
6942         fclose: Remove call-in from close.m4.
6943         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
6944         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
6945
6946         close: Move AC_LIBOBJ invocation to module description.
6947         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
6948         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
6949         1.
6950         * modules/close (configure.ac): Invoke AC_LIBOBJ.
6951
6952         close: Remove call-in from fchdir.m4.
6953         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
6954         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
6955
6956         open: Move AC_LIBOBJ invocation to module description.
6957         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
6958         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
6959         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
6960
6961         open: Remove call-in from fchdir.m4.
6962         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
6963         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
6964
6965         fchdir: Start to remove gl_REPLACE_* idiom.
6966         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
6967         (gl_FUNC_FCHDIR): Invoke it.
6968
6969 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6970
6971         * lib/ftell.c (ftell): Comment out cast.
6972
6973         close: use gl_REPLACE_FCLOSE only if defined
6974         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
6975         is defined.  The close module doesn't depend on the fclose module
6976         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
6977         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
6978         I reproduced the problem with "./gnulib-tool --test close sys_socket".
6979
6980 2011-07-24  Jim Meyering  <meyering@redhat.com>
6981
6982         test-select.h: avoid warning when using gcc's -Wmissing-declarations
6983         * tests/test-select.h (test_function): Declare as "static".
6984
6985 2011-07-24  Bruno Haible  <bruno@clisp.org>
6986
6987         doc: Mention the effects of AC_SYS_LARGEFILE.
6988         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
6989         on this function.
6990         * doc/posix-functions/aio_error.texi: Likewise.
6991         * doc/posix-functions/aio_fsync.texi: Likewise.
6992         * doc/posix-functions/aio_read.texi: Likewise.
6993         * doc/posix-functions/aio_return.texi: Likewise.
6994         * doc/posix-functions/aio_suspend.texi: Likewise.
6995         * doc/posix-functions/aio_write.texi: Likewise.
6996         * doc/posix-functions/fgetpos.texi: Likewise.
6997         * doc/posix-functions/fopen.texi: Likewise.
6998         * doc/posix-functions/freopen.texi: Likewise.
6999         * doc/posix-functions/fsetpos.texi: Likewise.
7000         * doc/posix-functions/fstatvfs.texi: Likewise.
7001         * doc/posix-functions/ftruncate.texi: Likewise.
7002         * doc/posix-functions/ftw.texi: Likewise.
7003         * doc/posix-functions/getrlimit.texi: Likewise.
7004         * doc/posix-functions/glob.texi: Likewise.
7005         * doc/posix-functions/lio_listio.texi: Likewise.
7006         * doc/posix-functions/lockf.texi: Likewise.
7007         * doc/posix-functions/mkstemp.texi: Likewise.
7008         * doc/posix-functions/mmap.texi: Likewise.
7009         * doc/posix-functions/nftw.texi: Likewise.
7010         * doc/posix-functions/openat.texi: Likewise.
7011         * doc/posix-functions/opendir.texi: Likewise.
7012         * doc/posix-functions/posix_fadvise.texi: Likewise.
7013         * doc/posix-functions/posix_fallocate.texi: Likewise.
7014         * doc/posix-functions/pread.texi: Likewise.
7015         * doc/posix-functions/pwrite.texi: Likewise.
7016         * doc/posix-functions/readdir.texi: Likewise.
7017         * doc/posix-functions/readdir_r.texi: Likewise.
7018         * doc/posix-functions/rewinddir.texi: Likewise.
7019         * doc/posix-functions/scandir.texi: Likewise.
7020         * doc/posix-functions/seekdir.texi: Likewise.
7021         * doc/posix-functions/setrlimit.texi: Likewise.
7022         * doc/posix-functions/statvfs.texi: Likewise.
7023         * doc/posix-functions/telldir.texi: Likewise.
7024         * doc/posix-functions/tmpfile.texi: Likewise.
7025         * doc/posix-functions/truncate.texi: Likewise.
7026         * doc/glibc-functions/fallocate.texi: Likewise.
7027         * doc/glibc-functions/fstatfs.texi: Likewise.
7028         * doc/glibc-functions/fts_children.texi: Likewise.
7029         * doc/glibc-functions/fts_read.texi: Likewise.
7030         * doc/glibc-functions/getdirentries.texi: Likewise.
7031         * doc/glibc-functions/mkostemp.texi: Likewise.
7032         * doc/glibc-functions/mkostemps.texi: Likewise.
7033         * doc/glibc-functions/mkstemps.texi: Likewise.
7034         * doc/glibc-functions/preadv.texi: Likewise.
7035         * doc/glibc-functions/pwritev.texi: Likewise.
7036         * doc/glibc-functions/sendfile.texi: Likewise.
7037         * doc/glibc-functions/statfs.texi: Likewise.
7038
7039 2011-07-24  Bruno Haible  <bruno@clisp.org>
7040
7041         doc: Fix typo.
7042         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
7043
7044 2011-07-24  Bruno Haible  <bruno@clisp.org>
7045
7046         doc: Mention fsusage.
7047         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
7048
7049 2011-07-24  Bruno Haible  <bruno@clisp.org>
7050
7051         doc: Mention new glibc headers and functions.
7052         * doc/glibc-headers/gshadow.texi: New file.
7053         * doc/glibc-functions/endsgent.texi: New file.
7054         * doc/glibc-functions/fgetsgent.texi: New file.
7055         * doc/glibc-functions/fgetsgent_r.texi: New file.
7056         * doc/glibc-functions/getsgent.texi: New file.
7057         * doc/glibc-functions/getsgent_r.texi: New file.
7058         * doc/glibc-functions/getsgnam.texi: New file.
7059         * doc/glibc-functions/getsgnam_r.texi: New file.
7060         * doc/glibc-functions/putsgent.texi: New file.
7061         * doc/glibc-functions/setsgent.texi: New file.
7062         * doc/glibc-functions/sgetsgent.texi: New file.
7063         * doc/glibc-functions/sgetsgent_r.texi: New file.
7064         * doc/glibc-functions/malloc_info.texi: New file.
7065         * doc/glibc-functions/preadv.texi: New file.
7066         * doc/glibc-functions/pwritev.texi: New file.
7067         * doc/glibc-functions/register_printf_modifier.texi: New file.
7068         * doc/glibc-functions/register_printf_specifier.texi: New file.
7069         * doc/glibc-functions/register_printf_type.texi: New file.
7070         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
7071         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
7072         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
7073         * doc/glibc-functions/pthread_getname_np.texi: New file.
7074         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
7075         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
7076         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
7077         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
7078         * doc/glibc-functions/pthread_setname_np.texi: New file.
7079         * doc/glibc-functions/pthread_sigqueue.texi: New file.
7080         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
7081         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
7082         * doc/glibc-functions/qsort_r.texi: New file.
7083         * doc/glibc-functions/quick_exit.texi: New file.
7084         * doc/glibc-functions/syncfs.texi: New file.
7085         * doc/gnulib.texi: Include them.
7086         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
7087         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
7088         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
7089         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
7090         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
7091         * doc/glibc-functions/execvpe.texi: Likewise.
7092
7093 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7094
7095         ftell: don't include <unistd.h>
7096         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
7097         guaranteed to define off_t, and the ftell module depends on the
7098         stdio module.
7099
7100         ftell: do not assume wraparound signed arithmetic
7101         * lib/ftell.c: Include <limits.h>.
7102         (ftell): Don't assume wraparound signed arithmetic.
7103
7104 2011-07-24  Bruno Haible  <bruno@clisp.org>
7105
7106         close: No longer depend on module 'fclose'.
7107         * modules/close (Depends-on): Remove fclose.
7108         * NEWS: Mention the change.
7109         Suggested by Sam Steingold <sds@gnu.org>.
7110
7111 2011-07-24  Bruno Haible  <bruno@clisp.org>
7112
7113         fsusage: Enable large volume support on AIX >= 5.2.
7114         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
7115         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
7116         instead of STAT_STATVFS.
7117         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
7118
7119         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
7120         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
7121         f_blocks field only on MacOS X.
7122
7123         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
7124         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
7125         * modules/fsusage (Depends-on): Add largefile.
7126
7127 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7128
7129         * README: Modernize discussion of signed integers.
7130         Assuming overflow wraparound is no longer safe.
7131         Mention ones' complement and signed magnitude.
7132
7133 2011-07-22  Bruno Haible  <bruno@clisp.org>
7134
7135         select tests, pselect tests: Refactor.
7136         * tests/test-select.h: New file, extracted from tests/test-select.c.
7137         (select_fn): New type.
7138         (test, do_select, do_select_nowait, do_select_wait, test_tty,
7139         test_connect_first, test_accept_first, test_pair, test_socket_pair,
7140         test_pipe): Add my_select argument.
7141         (test_function): Renamed from main. Add my_select argument.
7142         * tests/test-select.c: Move most code to tests/test-select.h. Include
7143         test-select.h.
7144         * modules/select-tests (Files): Add tests/test-select.h.
7145         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
7146         (my_select, main): New functions.
7147         * modules/pselect-tests (Files): Add tests/test-select.h,
7148         tests/macros.h, tests/signature.h.
7149         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
7150         (configure.ac): Check for <sys/wait.h>.
7151
7152 2011-07-22  Bruno Haible  <bruno@clisp.org>
7153
7154         sys_select tests: Check the signature of FD_*.
7155         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
7156         signature tests from here...
7157         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
7158         here.
7159         * modules/sys_select-tests (Files): Add tests/signature.h.
7160
7161 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
7162
7163         largefile: new module, replacing large-inode
7164         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
7165         * MODULES.html.sh: Add largefile, remove large-inode.
7166         * modules/largefile, m4/largefile.m4: New files.
7167         * modules/large-inode, m4/large-inode.m4: Remove.
7168
7169         fsusage: port to MacOS X 10.7 with 4 TiB file systems
7170         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
7171         implementations that use only 32 bits to count blocks.
7172         On typical hosts with 1024-byte blocks, this fails with file
7173         systems as small as 4 TiB.  Problem reported by Herb Wartens
7174         <http://debbugs.gnu.org/9140> and this should also fix a similar
7175         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
7176
7177         large-inode: New module
7178         * MODULES.html.sh: Add it.
7179         * modules/large-inode, m4/large-inode.m4: New files.
7180
7181         extensions: Enable extensions on MacOS X 10.5 and later.
7182         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
7183
7184 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
7185
7186         file-has-acl: use acl_extended_file_nofollow if available
7187         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
7188         (acl_extended_file): New macro.
7189         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
7190         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
7191
7192 2011-07-21  Bruno Haible  <bruno@clisp.org>
7193
7194         Declare system functions in a way that works with C++.
7195         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
7196         declare fdopendir as extern "C".
7197         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
7198         declare frexpl as extern "C".
7199         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
7200         declare gai_strerror as extern "C".
7201         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
7202         programs, declare gai_strerror as extern "C".
7203         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
7204         declare getlogin_r as extern "C".
7205         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
7206         as extern "C".
7207         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
7208         declare ldexpl as extern "C".
7209         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
7210         as extern "C".
7211         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
7212         program, declare getmntinfo as extern "C".
7213         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
7214         stpncpy as extern "C".
7215         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
7216         program, declare __xpg_strerror_r as extern "C".
7217         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
7218         strndup as extern "C".
7219         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
7220         declare memset and bzero as extern "C".
7221         Reported by Sam Steingold <sds@gnu.org>.
7222
7223 2011-07-12  Jim Meyering  <meyering@redhat.com>
7224
7225         maint.mk: prohibit inclusion of "verify.h" without use
7226         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
7227
7228 2011-07-19  Pádraig Brady  <P@draigBrady.com>
7229
7230         timer-time: A new module to check for timer_settime()
7231         * m4/timer_time.m4: Check for the posix function.
7232         * modules/timer-time: Add the new module.
7233         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
7234         Mention it.
7235
7236 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
7237             Bruno Haible  <bruno@clisp.org>
7238
7239         pthread_sigmask: assume POSIX threads if --avoid=threadlib
7240         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
7241         not defined, assume POSIX threads and look for pthread_sigmask in
7242         $LIBS, without changing $CPPFLAGS.
7243
7244 2011-07-19  Bruno Haible  <bruno@clisp.org>
7245
7246         strstr: Update cross-compilation guess.
7247         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
7248         CPUs, guess no, in view of glibc
7249         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
7250         Suggested by Eric Blake. Reported by Reuben Thomas.
7251
7252 2011-07-19  Pádraig Brady  <P@draigBrady.com>
7253
7254         getopt-gnu: suppress core dumps from detection code
7255         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
7256         to suppress core dumps that may well occur on glibc systems.
7257         * modules/getopt-gnu: Depend on nocrash.
7258
7259 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
7260
7261         pthread_sigmask: ensure usleep is declared
7262         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
7263         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
7264
7265 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
7266
7267         doc: Document NonStop portability issues.
7268         * doc/posix-functions/sigaction.texi (sigaction):
7269         * doc/posix-headers/signal.texi (signal.h):
7270         Document NonStop.  See Joachim Schmitz in
7271         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
7272
7273 2011-07-15  Bruno Haible  <bruno@clisp.org>
7274
7275         ffsl, ffsll: Avoid unportable behaviour.
7276         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
7277
7278 2011-07-15  Bruno Haible  <bruno@clisp.org>
7279
7280         ffs: More tests.
7281         * tests/test-ffs.c (NBITS): New macro.
7282         (main): Add more tests.
7283         * tests/test-ffsl.c (NBITS): New macro.
7284         (main): Add more tests.
7285         * tests/test-ffsll.c (NBITS): New macro.
7286         (main): Add more tests.
7287
7288 2011-07-15  Eric Blake  <eblake@redhat.com>
7289
7290         ffsl, ffsll: new modules
7291         * modules/ffsl: New file.
7292         * modules/ffsll: Likewise.
7293         * m4/ffsl.m4: Likewise.
7294         * m4/ffsll.m4: Likewise.
7295         * lib/ffsl.c: Likewise.
7296         * lib/ffsl.h: Likewise.
7297         * lib/ffsll.c: Likewise.
7298         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
7299         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
7300         * modules/string (Makefile.am): Substitute witnesses.
7301         * lib/strings.in.h (ffsl, ffsll): Declare.
7302         * modules/ffsl-tests: New test file.
7303         * modules/ffsll-tests: Likewise.
7304         * tests/test-ffsl.c: Likewise.
7305         * tests/test-ffsll.c: Likewise.
7306         * MODULES.html.sh (Integer arithmetic functions): Mention it.
7307         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
7308         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
7309
7310         ffs: fix m4 prerequisite
7311         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
7312
7313         ffs: avoid undefined behavior
7314         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
7315         * tests/test-ffs.c (naive, main): Avoid signed shifts.
7316         Reported by Bruno Haible.
7317
7318 2011-07-12  Bruno Haible  <bruno@clisp.org>
7319
7320         pthread_sigmask: Rely on module 'threadlib'.
7321         * modules/pthread_sigmask (Depends-on): Add threadlib.
7322         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
7323         is defined.
7324
7325 2011-07-12  Bruno Haible  <bruno@clisp.org>
7326
7327         regex: Depend on module 'strcase'.
7328         * modules/regex (Depends-on): Add strcase, for strcasecmp().
7329
7330 2011-07-12  Jim Meyering  <meyering@redhat.com>
7331
7332         warn-on-use: fix typo in file name
7333         * modules/snippet/warn-on-use (Files): Correct file name:
7334         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
7335
7336 2011-07-12  Bruno Haible  <bruno@clisp.org>
7337
7338         strings: Document module.
7339         * doc/posix-headers/strings.texi: Mention module 'strings'.
7340
7341 2011-07-12  Bruno Haible  <bruno@clisp.org>
7342
7343         Rename module '_Noreturn' to 'snippet/_Noreturn'.
7344         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
7345         (Files, Makefile.am): Update.
7346         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
7347         * modules/stdlib (Depends-on): Update.
7348
7349 2011-07-12  Bruno Haible  <bruno@clisp.org>
7350
7351         * NEWS: Mention the changes.
7352
7353         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
7354         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
7355         (Files, Makefile.am): Update.
7356         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
7357         * modules/arpa_inet (Depends-on): Update.
7358         * modules/ctype (Depends-on): Update.
7359         * modules/dirent (Depends-on): Update.
7360         * modules/fcntl-h (Depends-on): Update.
7361         * modules/glob (Depends-on): Update.
7362         * modules/iconv-h (Depends-on): Update.
7363         * modules/inttypes-incomplete (Depends-on): Update.
7364         * modules/langinfo (Depends-on): Update.
7365         * modules/locale (Depends-on): Update.
7366         * modules/math (Depends-on): Update.
7367         * modules/netdb (Depends-on): Update.
7368         * modules/poll-h (Depends-on): Update.
7369         * modules/pty (Depends-on): Update.
7370         * modules/search (Depends-on): Update.
7371         * modules/signal (Depends-on): Update.
7372         * modules/spawn (Depends-on): Update.
7373         * modules/stdio (Depends-on): Update.
7374         * modules/stdlib (Depends-on): Update.
7375         * modules/string (Depends-on): Update.
7376         * modules/strings (Depends-on): Update.
7377         * modules/sys_file (Depends-on): Update.
7378         * modules/sys_ioctl (Depends-on): Update.
7379         * modules/sys_select (Depends-on): Update.
7380         * modules/sys_socket (Depends-on): Update.
7381         * modules/sys_stat (Depends-on): Update.
7382         * modules/sys_time (Depends-on): Update.
7383         * modules/sys_times (Depends-on): Update.
7384         * modules/sys_utsname (Depends-on): Update.
7385         * modules/sys_wait (Depends-on): Update.
7386         * modules/termios (Depends-on): Update.
7387         * modules/time (Depends-on): Update.
7388         * modules/unistd (Depends-on): Update.
7389         * modules/wchar (Depends-on): Update.
7390         * modules/wctype-h (Depends-on): Update.
7391         * MODULES.html.sh (Support for building libraries and executables):
7392         Update.
7393
7394         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
7395         * modules/snippet/unused-parameter: Renamed from
7396         modules/unused-parameter.
7397         (Files, Makefile.am): Update.
7398         * build-aux/snippet/unused-parameter.h: Renamed from
7399         build-aux/unused-parameter.h.
7400         * modules/selinux-h (Depends-on): Update.
7401         * modules/unistr/base (Depends-on): Update.
7402         * MODULES.html.sh (Core language properties): Update.
7403
7404         Rename module 'link-warning' to 'snippet/link-warning'.
7405         * modules/snippet/link-warning: Renamed from modules/link-warning.
7406         (Files, Makefile.am): Update.
7407         * build-aux/snippet/link-warning.h: Renamed from
7408         build-aux/link-warning.h.
7409         * MODULES.html.sh (Support for building libraries and executables):
7410         Update.
7411
7412         Rename module 'c++defs' to 'snippet/c++defs'.
7413         * modules/snippet/c++defs: Renamed from modules/c++defs.
7414         (Files, Makefile.am): Update.
7415         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
7416         * modules/arpa_inet (Depends-on): Update.
7417         * modules/ctype (Depends-on): Update.
7418         * modules/dirent (Depends-on): Update.
7419         * modules/fcntl-h (Depends-on): Update.
7420         * modules/glob (Depends-on): Update.
7421         * modules/iconv-h (Depends-on): Update.
7422         * modules/langinfo (Depends-on): Update.
7423         * modules/locale (Depends-on): Update.
7424         * modules/math (Depends-on): Update.
7425         * modules/netdb (Depends-on): Update.
7426         * modules/poll-h (Depends-on): Update.
7427         * modules/pty (Depends-on): Update.
7428         * modules/search (Depends-on): Update.
7429         * modules/signal (Depends-on): Update.
7430         * modules/spawn (Depends-on): Update.
7431         * modules/stdio (Depends-on): Update.
7432         * modules/stdlib (Depends-on): Update.
7433         * modules/string (Depends-on): Update.
7434         * modules/strings (Depends-on): Update.
7435         * modules/sys_ioctl (Depends-on): Update.
7436         * modules/sys_select (Depends-on): Update.
7437         * modules/sys_socket (Depends-on): Update.
7438         * modules/sys_stat (Depends-on): Update.
7439         * modules/sys_time (Depends-on): Update.
7440         * modules/sys_wait (Depends-on): Update.
7441         * modules/termios (Depends-on): Update.
7442         * modules/time (Depends-on): Update.
7443         * modules/unistd (Depends-on): Update.
7444         * modules/wchar (Depends-on): Update.
7445         * modules/wctype-h (Depends-on): Update.
7446
7447         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
7448         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
7449         (Files, Makefile.am): Update.
7450         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
7451         * modules/argv-iter (Depends-on): Update.
7452         * modules/arpa_inet (Depends-on): Update.
7453         * modules/dirent (Depends-on): Update.
7454         * modules/fcntl-h (Depends-on): Update.
7455         * modules/fnmatch (Depends-on): Update.
7456         * modules/getopt-posix (Depends-on): Update.
7457         * modules/glob (Depends-on): Update.
7458         * modules/iconv-h (Depends-on): Update.
7459         * modules/inttypes-incomplete (Depends-on): Update.
7460         * modules/locale (Depends-on): Update.
7461         * modules/math (Depends-on): Update.
7462         * modules/netdb (Depends-on): Update.
7463         * modules/search (Depends-on): Update.
7464         * modules/signal (Depends-on): Update.
7465         * modules/spawn (Depends-on): Update.
7466         * modules/stdio (Depends-on): Update.
7467         * modules/stdlib (Depends-on): Update.
7468         * modules/string (Depends-on): Update.
7469         * modules/strings (Depends-on): Update.
7470         * modules/sys_socket (Depends-on): Update.
7471         * modules/sys_stat (Depends-on): Update.
7472         * modules/sys_time (Depends-on): Update.
7473         * modules/sys_times (Depends-on): Update.
7474         * modules/sys_utsname (Depends-on): Update.
7475         * modules/time (Depends-on): Update.
7476         * modules/unistd (Depends-on): Update.
7477         * modules/wchar (Depends-on): Update.
7478         * MODULES.html.sh (Support for building libraries and executables):
7479         Update.
7480
7481 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
7482
7483         Improvements on _Noreturn and related modules.
7484
7485         modules/_Exit-tests: test _Noreturn too
7486         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
7487         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
7488         (main): Use them.
7489
7490         stdnoreturn, stdnoreturn-tests: remove modules
7491         They're not needed here and a bit premature for use elsewhere.  See
7492         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
7493         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
7494         * tests/test-stdnoreturn.c: Remove files.
7495         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
7496         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
7497         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
7498         and using noreturn.
7499         * modules/openat, modules/sigpipe-die, modules/xalloc:
7500         * modules/xmemdup0, modules/xstrtol:
7501         Remove dependency on stdnoreturn.
7502
7503         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
7504         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
7505         Reparenthesize to avoid GCC warning.
7506         Support Microsoft's syntax.
7507         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
7508
7509         _Noreturn-tests: remove module
7510         * modules/_Noreturn-tests: Remove.
7511         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
7512         * tests/test-_Noreturn.c: Remove.
7513         * tests/test-stdnoreturn.c: Merge from the old
7514         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
7515
7516 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
7517
7518         _Noreturn, stdnoreturn, and related modules.
7519
7520         * top/maint.mk: Adjust to new noreturn support.
7521         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
7522         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
7523
7524         xalloc: use stdnoreturn.h
7525         * lib/xalloc.h: Include <stdnoreturn.h>.
7526         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7527         * modules/xalloc (Depends-on): Add stdnoreturn.
7528
7529         xstrtol: use stdnoreturn.h
7530         * lib/xstrtol.h: Include <stdnoreturn.h>.
7531         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7532         * modules/xstrtol (Depends-on): Add stdnoreturn.
7533
7534         xmemdup0: use stdnoreturn.h
7535         * lib/xmemdup0.h: Include <stdnoreturn.h>.
7536         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7537         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
7538
7539         sigpipe-die: use stdnoreturn.h
7540         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
7541         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7542         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
7543
7544         openat: use stdnoreturn.h
7545         * lib/openat.h: Include <stdnoreturn.h>.
7546         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7547         * modules/openat (Depends-on): Add stdnoreturn.
7548
7549         * lib/openat-die.c (openat_save_fail): Modernize comment.
7550
7551         * lib/xalloc-die.c (xalloc_die): Modernize comment.
7552
7553         * lib/glthread/thread.h: Modernize comment.
7554
7555         obstack: use _Noreturn
7556         * lib/obstack.c (__attribute__): Remove macro.
7557         (print_and_abort): Use _Noreturn.
7558
7559         c-stack: use _Noreturn
7560         * lib/c-stack.c (die, overflow_handler, segv_handler):
7561         Use _Noreturn rather than __attribute__((noreturn)).
7562
7563         argmatch-tests, exclude_tests: use _Noreturn
7564         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
7565         Remove.
7566         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
7567
7568         stdlib: use _Noreturn
7569         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
7570         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
7571         * modules/stdlib (Depends-on): Add _Noreturn.
7572         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
7573
7574         stdnoreturn-tests: new module
7575         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
7576
7577         stdnoreturn: new module
7578         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
7579         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
7580
7581         _Noreturn-tests: new module
7582         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
7583
7584         _Noreturn: new module
7585         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
7586         New section, mentioning it.
7587         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
7588
7589         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
7590
7591 2011-07-11  Eric Blake  <eblake@redhat.com>
7592
7593         ffs: new module
7594         * modules/ffs: New file.
7595         * m4/ffs.m4: Likewise.
7596         * lib/ffs.c: Likewise.
7597         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
7598         * modules/strings (Makefile.am): Substitute witness.
7599         (Depends-on): Add c++defs.
7600         * lib/strings.in.h (ffs): Declare.
7601         * modules/ffs-tests: New test file.
7602         * tests/test-ffs.c: Test new module.
7603         * MODULES.html.sh (Integer arithmetic functions): Mention it.
7604         * doc/posix-functions/ffs.texi (ffs): Likewise.
7605
7606         regex: avoid compiler warning
7607         * lib/regex.c (includes): Include <strings.h>, for use of
7608         strcasecmp in regcomp.c.
7609         Reported by Joachim Schmitz.
7610
7611 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
7612
7613         stdint: respect system's intmax_t if INTMAX_MAX
7614         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
7615         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
7616         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
7617         long but int64_t is long long, and where we will clash with the
7618         system intmax_t if we override it.  See
7619         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
7620         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
7621         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
7622         similarly for UINTMAX_C.
7623
7624 2011-07-08  Bruno Haible  <bruno@clisp.org>
7625
7626         pthread_sigmask tests: Avoid a compiler warning.
7627         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
7628         non-zero.
7629
7630         sigprocmask tests: A better way to avoid a compiler warning.
7631         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
7632         (main): Complain if system() returns non-zero.
7633         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
7634
7635 2011-07-08  Bruno Haible  <bruno@clisp.org>
7636
7637         pthread_sigmask: Work around IRIX bug.
7638         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
7639         bug.
7640         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
7641         there may be unblocked pending signals.
7642         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
7643
7644 2011-07-08  Bruno Haible  <bruno@clisp.org>
7645
7646         pthread_sigmask: Work around Cygwin bug.
7647         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
7648         bug.
7649         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
7650         the system's pthread_sigmask function.
7651         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
7652
7653 2011-07-08  Bruno Haible  <bruno@clisp.org>
7654
7655         pthread_sigmask: Work around bug in single-threaded implementation.
7656         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
7657         FreeBSD, HP-UX, Solaris bug.
7658         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
7659         * lib/pthread_sigmask.c: Include <stddef.h>.
7660         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
7661         the system's pthread_sigmask function.
7662         * modules/pthread_sigmask (configure.ac): Invoke
7663         gl_PREREQ_PTHREAD_SIGMASK.
7664         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
7665         HP-UX, Solaris.
7666
7667 2011-07-08  Eric Blake  <eblake@redhat.com>
7668
7669         test-sigprocmask: avoid compiler warning
7670         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
7671         * tests/test-sigprocmask.c (main): Use it to silence warning.
7672         Reported by Jim Meyering.
7673
7674         test-snprintf: avoid compiler warning
7675         * tests/test-snprintf.c (main): Avoid shadowed declaration.
7676         * tests/test-vsnprintf.c (main): Likewise.
7677         Reported by Jim Meyering.
7678
7679 2011-07-08  Bruno Haible  <bruno@clisp.org>
7680
7681         Tests for module 'pthread_sigmask'.
7682         * modules/pthread_sigmask-tests: New file.
7683         * tests/test-pthread_sigmask1.c: New file, based on
7684         tests/test-sigprocmask.c.
7685         * tests/test-pthread_sigmask2.c: New file.
7686
7687 2011-07-08  Jim Meyering  <meyering@redhat.com>
7688
7689         test-getopt.h: avoid warning about an unused variable
7690         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
7691
7692 2011-07-07  Jim Meyering  <meyering@redhat.com>
7693
7694         maint: reduce list of files exempt from sc_prohibit_leading_TABs
7695         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
7696         now that it no longer contains leading TABs.
7697         Remove unused "url=FIXME" statement.
7698
7699 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
7700
7701         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
7702         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7703         When gl_THREADLIB is not in use, assume that the POSIX sematics
7704         are desired.  This is better for Emacs, which uses POSIX semantics
7705         on GNUish and/or POSIXish platforms, and does not use threads at
7706         all otherwise.
7707
7708         pthread_sigmask: fix typo when testing for libraries
7709         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7710         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
7711
7712 2011-07-08  Eric Blake  <eblake@redhat.com>
7713
7714         fts: introduce FTS_NOATIME
7715         * lib/fts_.h (FTS_NOATIME): New bit flag.
7716         (FTS_OPTIONMASK): Adjust.
7717         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
7718         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
7719
7720 2011-07-08  Bruno Haible  <bruno@clisp.org>
7721
7722         Tests for module 'thread'.
7723         * modules/thread-tests: New file.
7724         * tests/test-thread_self.c: New file.
7725         * tests/test-thread_create.cc: New file.
7726
7727 2011-07-08  Bruno Haible  <bruno@clisp.org>
7728
7729         thread: Avoid gcc warnings when using gl_thread_self().
7730         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
7731         'void *'.
7732         (gl_thread_self_pointer): Update.
7733
7734 2011-07-07  Bruno Haible  <bruno@clisp.org>
7735
7736         signal-c++-tests: Check declaration of pthread_sigmask.
7737         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
7738         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
7739         $(LIB_PTHREAD_SIGMASK).
7740
7741 2011-07-07  Bruno Haible  <bruno@clisp.org>
7742
7743         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
7744         * lib/signal.in.h (pthread_sigmask): Override if
7745         REPLACE_PTHREAD_SIGMASK is 1.
7746         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7747         REPLACE_PTHREAD_SIGMASK.
7748         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
7749         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
7750         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
7751         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7752         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
7753
7754 2011-07-07  Bruno Haible  <bruno@clisp.org>
7755
7756         pthread_sigmask: Ensure declaration in <signal.h>.
7757         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
7758         include <pthread.h>.
7759         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
7760         problem.
7761
7762 2011-07-07  Bruno Haible  <bruno@clisp.org>
7763
7764         pthread_sigmask: Document the module.
7765         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
7766
7767 2011-07-07  Bruno Haible  <bruno@clisp.org>
7768
7769         pthread_sigmask: Follow gnulib conventions.
7770         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
7771         gl_PTHREAD_SIGMASK.
7772         * modules/pthread_sigmask (configure.ac): Update.
7773
7774 2011-07-07  Bruno Haible  <bruno@clisp.org>
7775
7776         pthread_sigmask: Make declaration C++ safe.
7777         * lib/signal.in.h: In two special conditions, just do an #include_next.
7778         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7779         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
7780         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7781         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7782         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
7783         not REPLACE_PTHREAD_MASK.
7784         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
7785         not REPLACE_PTHREAD_MASK.
7786         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7787
7788 2011-07-07  Bruno Haible  <bruno@clisp.org>
7789
7790         pthread_sigmask: Fix return value.
7791         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
7792         * lib/pthread_sigmask.c: New file.
7793         * modules/pthread_sigmask (Files): Add it.
7794         (configure.ac): Invoke AC_LIBOBJ.
7795
7796 2011-07-07  Eric Blake  <eblake@redhat.com>
7797
7798         getopt: more portable argv creation
7799         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
7800         const, use char arrays rather than strings.
7801         Suggested by Paul Eggert.
7802
7803 2011-07-07  Bruno Haible  <bruno@clisp.org>
7804
7805         Tests for module 'sigprocmask'.
7806         * modules/sigprocmask-tests: New file.
7807         * tests/test-sigprocmask.c: New file.
7808
7809 2011-07-07  Bruno Haible  <bruno@clisp.org>
7810
7811         float tests: Tweak.
7812         * tests/test-float.c (main): Tweak skip message.
7813
7814 2011-07-07  Eric Blake  <eblake@redhat.com>
7815
7816         getopt: avoid compiler warning during configure
7817         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
7818         assigning string literals to non-const pointer.
7819
7820         getopt-gnu: avoid crash in glibc getopt
7821         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
7822         * tests/test-getopt.h (test_getopt): Enhance test.
7823         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7824         * doc/posix-functions/getopt.texi (getopt): Document it.
7825         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7826         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7827         Likewise.
7828
7829 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
7830
7831         getopt: handle W; without long options in getopt [BZ #12922]
7832         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
7833         but no long options are defined, just return 'W'.
7834
7835 2011-07-07  Bruno Haible  <bruno@clisp.org>
7836
7837         Avoid literal tabs.
7838         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
7839         variable containing a tab instead of a literal tab.
7840         Reported by Jim Meyering.
7841
7842 2011-07-07  Bruno Haible  <bruno@clisp.org>
7843
7844         Comments.
7845         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
7846
7847 2011-07-06  Bruno Haible  <bruno@clisp.org>
7848
7849         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
7850         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
7851         <winsock2.h>.
7852         (rpl_fd_isset, FD_ISSET): New definitions, copied from
7853         lib/sys_socket.in.h.
7854         (close, gethostname): Hide declarations from <winsock2.h>.
7855         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
7856         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
7857         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
7858         (select): Don't override if gnulib's <sys/select.h> was already
7859         included.
7860         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
7861         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
7862         setsockopt, shutdown, select): Tweak indentation.
7863
7864 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7865
7866         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
7867         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
7868         in an application that does not use the sys_select module.
7869
7870 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
7871
7872         poll: do not return 0 on timeout=-1
7873         * lib/poll.c: Loop with yield if no events occured
7874
7875 2011-07-06  Eric Blake  <eblake@redhat.com>
7876
7877         pthread_sigmask: always replace when not using pthread
7878         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
7879         replacement when using some threading other than pthread.  Fix
7880         logic bug.
7881
7882 2011-07-06  Bruno Haible  <bruno@clisp.org>
7883
7884         Comments.
7885         * m4/printf.m4: Update comments about mingw.
7886
7887 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7888
7889         sys_select: define sigset_t more portably
7890         * lib/sys_select.in.h: Always include <sys/types.h>, since
7891         we now need sigset_t and mingw defines it there.
7892         Include <signal.h> before split inclusion guard, to avoid
7893         mishaps on Solaris, whose <signal.h> eventually includes us.
7894         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
7895         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
7896         which come from ...
7897         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
7898         gl_CHECK_TYPE_SIGSET_T.
7899         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
7900         does the real work.
7901         * modules/sys_select (Depends-on): Add 'signal'.
7902
7903         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
7904         Suggested by Bruno Haible.
7905
7906         pselect: Use pthread_sigmask, not sigprocmask.
7907         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
7908         multithreaded apps better than sigprocmask does.
7909         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
7910         sigprocmask directly.
7911
7912 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7913
7914         * lib/pselect.c (pselect): Use plain name, without "rpl_".
7915         Don't #undef,  since we don't need any underlying pselect.
7916         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
7917         (Depends-on): Add select.
7918         (Link): Add $(LIBSOCKET).
7919         These changes suggested by Bruno Haible.
7920
7921         pselect: document better
7922         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7923         * doc/posix-functions/pselect.texi (pselect): Document new module.
7924
7925         pthread_sigmask: new module
7926         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7927         * doc/posix-functions/pthread_sigmask.texi: Document new module.
7928         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
7929         This is done only as a macro; I don't know how well that'll
7930         work for C++.  Move <sys/types.h> include before the include_next,
7931         to avoid mishap on Solaris.
7932         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
7933         * modules/signal (Makefile.am): Substitute the check's results.
7934         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
7935
7936         test-pselect: new module
7937         * modules/pselect-tests, tests/test-pselect.c: New files.
7938         * tests/test-select.c, tests/test-sys_select-c++.cc:
7939         If TEST_PSELECT is defined, test pselect instead of testing select.
7940
7941         * tests/test-sys_select.c (sigset_t): Test for it, too.
7942         Suggested by Bruno Haible.
7943
7944 2011-07-05  Eric Blake  <eblake@redhat.com>
7945
7946         snprintf: guarantee %1$d, for libintl
7947         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
7948         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
7949         * doc/posix-functions/snprintf.texi (snprintf): Update.
7950         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7951         * tests/test-snprintf.c (main): Enhance test.
7952         * tests/test-vsnprintf.c (main): Likewise.
7953
7954 2011-07-05  Jim Meyering  <meyering@redhat.com>
7955
7956         maint: exempt stdio-read.c and stdio-write.c from the cppi check
7957         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
7958         per Bruno's request, to accommodate this idiom (no space after "#")
7959         even when the function is inside an #if block:
7960         char *
7961         gets (char *s)
7962         #undef gets
7963         {
7964           ...
7965         }
7966
7967 2011-07-04  Jim Meyering  <meyering@redhat.com>
7968
7969         maint: indent with spaces, not TABs, and add a rule to check this
7970         * tests/test-userspec.c: Indent with spaces, not TABs.
7971         * tests/test-argp.c: Likewise.
7972         * tests/test-c-stack2.sh: Likewise.
7973         * tests/test-parse-duration.sh: Likewise
7974         * m4/strtod.m4: Likewise.
7975         * m4/alloca.m4: Likewise.
7976         * m4/pselect.m4: Likewise.
7977         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
7978
7979 2011-07-03  Jim Meyering  <meyering@redhat.com>
7980
7981         maint.mk: correct omissions in prohibit_argmatch_without_use check
7982         This rule would mistakenly report that argmatch.h is included without
7983         use even when both the argmatch and invalid_arg macro were used.
7984         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
7985         of argmatch and invalid_arg.
7986
7987 2011-07-03  Bruno Haible  <bruno@clisp.org>
7988
7989         Comments about EINTR.
7990         * lib/safe-read.h: Explain the purpose of this module.
7991         * lib/safe-write.h: Likewise.
7992         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
7993         module.
7994         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
7995         module.
7996         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7997
7998 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7999
8000         xnanosleep: Rewrite to use new dtotimespec module.
8001         It has the conversion code that used to be in xnanosleep.
8002         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
8003         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
8004         (TIME_T_MAX): Remove.
8005         (xnanosleep): Rewrite in terms of dtotimespec.
8006         * modules/xnanosleep (Depends-on): Add dtotimespec.
8007         Remove intprops, stdbool.
8008
8009         timespec-add, timespec-sub: new modules
8010         * lib/timespec.h (timespec_add, timespec_sub): New decls.
8011         * lib/timespec-add.c, lib/timespec-sub.c:
8012         * modules/timespec-add, modules/timespec-sub: New files.
8013
8014         dtotimespec: new module
8015         * lib/timespec.h (dtotimespec): New decl.
8016         * lib/dtotimespec.c, modules/dtotimespec: New files.
8017
8018         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
8019
8020         pselect: new module
8021         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
8022         (pselect): New decls.
8023         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
8024         since the standard pselect decl uses 'restrict'.
8025         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
8026         HAVE_PSELECT, REPLACE_PSELECT.
8027         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
8028         HAVE_PSELECT, REPLACE_PSELECT.
8029         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
8030
8031         sys_select: don't depend on sys_socket
8032         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
8033         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
8034         This fix works on GNU and GNU-like platforms, but has not been tested
8035         on native Windows.
8036         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
8037         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
8038         gl_HEADER_SYS_SOCKET.
8039         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
8040         gl_PREREQ_SYS_H_WINSOCK2.
8041
8042 2011-06-29  Eric Blake  <eblake@redhat.com>
8043
8044         pipe2: fix C89 compile problem
8045         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
8046         Reported by Bruno Haible.
8047
8048         pipe, pipe2: don't corrupt fd on error
8049         * lib/pipe.c (pipe): Leave fd unchanged on error.
8050         * lib/pipe2.c (pipe2): Likewise.
8051         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
8052         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
8053
8054 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
8055
8056         mmap-anon: do not use regular expressions inadvertently
8057         * m4/mmap-anon.m4: Remove trailing period from strings sought
8058         in the output.
8059
8060 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
8061
8062         nanosleep: fix integer overflow problem
8063         * lib/nanosleep.c (my_usleep): Don't assume signed integer
8064         arithmetic wraps around on overflow.
8065
8066         nanosleep: simplify carrying
8067         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
8068         first call to the underyling nanosleep, not for the last one.
8069         This doesn't fix any bugs, but it simplifies the computation of
8070         the remaining delay.  Found while auditing integer overflow issues.
8071
8072         dup2: remove test for existence of fcntl
8073         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
8074         "#if HAVE_FCNTL", in the configure-time test program.
8075         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
8076         and therefore speeds up "configure" a bit.  Found while
8077         adding the dup2 module to Emacs.
8078
8079 2011-06-24  Eric Blake  <eblake@redhat.com>
8080
8081         maint.mk: enhance useless header checks
8082         * top/maint.mk (_sc_header_without_use): Check both include
8083         styles.
8084         (sc_prohibit_assert_without_use)
8085         (sc_prohibit_close_stream_without_use)
8086         (sc_prohibit_getopt_without_use)
8087         (sc_prohibit_quotearg_without_use)
8088         (sc_prohibit_quote_without_use)
8089         (sc_prohibit_long_options_without_use)
8090         (sc_prohibit_inttostr_without_use)
8091         (sc_prohibit_ignore_value_without_use)
8092         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
8093         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
8094         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
8095         (sc_prohibit_hash_pjw_without_use)
8096         (sc_prohibit_safe_read_without_use)
8097         (sc_prohibit_argmatch_without_use)
8098         (sc_prohibit_canonicalize_without_use)
8099         (sc_prohibit_root_dev_ino_without_use)
8100         (sc_prohibit_openat_without_use)
8101         (sc_prohibit_c_ctype_without_use)
8102         (sc_prohibit_signal_without_use)
8103         (sc_prohibit_stdio--_without_use)
8104         (sc_prohibit_stdio-safer_without_use)
8105         (sc_prohibit_strings_without_use)
8106         (sc_prohibit_intprops_without_use)
8107         (sc_prohibit_stddef_without_use)
8108         (sc_prohibit_xfreopen_without_use): Update clients.
8109
8110 2011-06-24  Jim Meyering  <meyering@redhat.com>
8111
8112         syntax-check: keep one maint.mk rule in sync with its header
8113         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
8114         of the bug Eric has just fixed, with today's commit 25e4c2ec.
8115         I prefer to avoid temporary files here, so use <(...), but that
8116         is not supported by /bin/sh, so...
8117         (SHELL): Define to /bin/bash.
8118
8119 2011-06-24  Eric Blake  <eblake@redhat.com>
8120
8121         maint.mk: update sc_prohibit_intprops_without_use
8122         * top/maint.mk (_intprops_names): Match recent changes.
8123
8124 2011-06-24  Bruno Haible  <bruno@clisp.org>
8125
8126         strerror-override: No-op tweak.
8127         * lib/strerror-override.h (strerror_override): Reorder conditions,
8128         for consistency with lib/strerror-override.c.
8129
8130 2011-06-23  Eric Blake  <eblake@redhat.com>
8131
8132         maint.mk: test further PATH_MAX issues
8133         * top/maint.mk (sc_prohibit_path_max_array): Rename...
8134         (sc_prohibit_path_max_allocation): ...and also test alloca.
8135         Suggested by Jim Meyering.
8136
8137 2011-06-22  Eric Blake  <eblake@redhat.com>
8138
8139         maint.mk: add syntax-check to avoid char[PATH_MAX]
8140         * top/maint.mk (sc_prohibit_path_max_array): New rule.
8141
8142         stat: be robust to PATH_MAX definition
8143         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
8144         * modules/stat (Depends-on): Add verify.
8145
8146         link: work around IRIX bug
8147         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
8148         * lib/link.c (rpl_link): Work around it.
8149         * tests/test-link.h (test_link): Enhance test.
8150         * doc/posix-functions/link.texi (link): Document the bug.
8151
8152         getopt: silence clang warning
8153         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
8154         dereference.
8155         Reported by Gustavo Martin Domato.
8156
8157 2011-06-22  Jim Meyering  <meyering@redhat.com>
8158
8159         bootstrap: do not insert a blank line into each .gitignore file
8160         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
8161
8162 2011-06-21  Eric Blake  <eblake@redhat.com>
8163
8164         perror: test for output mismatch
8165         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
8166         perror on IRIX.
8167
8168         strerror_r: fix OpenBSD behavior on out-of-range
8169         * lib/strerror_r.c (strerror_r): Always use maximal string.
8170         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
8171
8172         strerror_r: fix OpenBSD behavior on 0
8173         * lib/strerror-override.c (strerror_override): Also override 0
8174         when needed.
8175         * lib/strerror-override.h (strerror_override): Likewise.
8176         * lib/strerror.c (strerror): Simplify, now that 0 override is done
8177         earlier.
8178         * lib/strerror_r.c (strerror_r): Likewise.
8179         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
8180         behavior...
8181         (gl_FUNC_STRERROR_0): ...into new macro.
8182         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
8183         is overridden.
8184         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
8185         * modules/strerror-override (Files): Add strerror.m4.
8186         (configure.ac): Also provide override for 0 when needed.
8187         * doc/posix-functions/strerror.texi (strerror): Document this.
8188         * doc/posix-functions/perror.texi (perror): Likewise.
8189
8190         perror: adjust array size
8191         * modules/perror (Depends-on): Add strerror-override.
8192         * lib/perror.c (perror): Use it to avoid magic number.
8193
8194         strerror-override: reduce size
8195         * lib/strerror-override.c (strerror_override): Use fewer lines.
8196
8197 2011-06-20  Bruno Haible  <bruno@clisp.org>
8198
8199         pathmax: Ensure correct value for PATH_MAX on HP-UX.
8200         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
8201
8202 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
8203
8204         alloca: port to compilers that can optimize like GCC 4.6.0
8205         * lib/alloca.c (find_stack_direction): New signature, taken from
8206         Autoconf git.  This works with GCC 4.6.0.  This code should never
8207         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
8208         be used with other compilers that optimize as well as GCC 4.6.0 does.
8209         (alloca): Adjust to new signature.
8210         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
8211         New macro, which patches Autoconf in a similar way.
8212
8213         c-stack: stop worrying about stack direction
8214         * lib/c-stack.c (find_stack_direction): Remove.
8215         (segv_handler): Don't worry about stack direction growth, as it's
8216         too much of a pain to configure this correctly, given how compilers
8217         are optimizing-away our stack-growth detection code.  Instead, assume
8218         that any access to just before or just after the stack is OK.
8219         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
8220         Don't require AC_FUNC_ALLOCA; no longer needed.
8221
8222 2011-06-20  Eric Blake  <eblake@redhat.com>
8223
8224         test-stat: don't allocate PATH_MAX bytes
8225         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
8226         PATH_MAX-sized buffer.
8227         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
8228         * modules/stat-tests (Depends-on): Likewise.
8229         * tests/test-fstatat.c (includes): Drop pathmax.h.
8230         * tests/test-stat.c (includes): Likewise.
8231         Reported by Bruno Haible.
8232
8233 2011-06-20  Bruno Haible  <bruno@clisp.org>
8234
8235         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
8236         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
8237         * lib/float.c: New file.
8238         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
8239         REPLACE_FLOAT_LDBL.
8240         * modules/float (Files): Add lib/float.c.
8241         (configure.ac): Invoke AC_LIBOBJ.
8242         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
8243
8244 2011-06-20  Bruno Haible  <bruno@clisp.org>
8245
8246         Tests for module 'float'.
8247         * modules/float-tests: New file.
8248         * tests/test-float.c: New file.
8249
8250 2011-06-19  Bruno Haible  <bruno@clisp.org>
8251
8252         isinf: Coding style.
8253         * lib/isinf.c: Use GNU coding style.
8254
8255 2011-06-19  Bruno Haible  <bruno@clisp.org>
8256
8257         linkat test: Avoid test failure on AIX 7.1.
8258         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
8259         * tests/test-link.h (test_link): Likewise.
8260
8261 2011-06-19  Bruno Haible  <bruno@clisp.org>
8262
8263         pread test: Avoid test failure on OpenBSD 4.9.
8264         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
8265
8266 2011-06-19  Bruno Haible  <bruno@clisp.org>
8267
8268         sprintf-posix: Fix test failure on AIX 7.1.
8269         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
8270         * doc/posix-functions/dprintf.texi: Mention limited precision problem
8271         on AIX.
8272         * doc/posix-functions/fprintf.texi: Likewise.
8273         * doc/posix-functions/printf.texi: Likewise.
8274         * doc/posix-functions/snprintf.texi: Likewise.
8275         * doc/posix-functions/sprintf.texi: Likewise.
8276         * doc/posix-functions/vdprintf.texi: Likewise.
8277         * doc/posix-functions/vfprintf.texi: Likewise.
8278         * doc/posix-functions/vprintf.texi: Likewise.
8279         * doc/posix-functions/vsnprintf.texi: Likewise.
8280         * doc/posix-functions/vsprintf.texi: Likewise.
8281
8282 2011-06-19  Bruno Haible  <bruno@clisp.org>
8283
8284         roundl-ieee: Fix test failure on AIX 7.1.
8285         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
8286         * doc/posix-functions/roundl.texi: Mention problem with negative
8287         arguments.
8288
8289 2011-06-19  Bruno Haible  <bruno@clisp.org>
8290
8291         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
8292         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
8293         * doc/posix-functions/round.texi: Mention problem with negative
8294         arguments.
8295         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
8296
8297 2011-06-19  Bruno Haible  <bruno@clisp.org>
8298
8299         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
8300         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
8301         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
8302         * doc/posix-functions/roundf.texi: Mention problem with negative
8303         arguments.
8304         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
8305
8306 2011-06-19  Bruno Haible  <bruno@clisp.org>
8307
8308         ceilf-ieee: Work around bug on MacOS X 10.5.
8309         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
8310
8311         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
8312         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
8313         IEEE compliant, avoid compiler optimizations.
8314         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
8315         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8316         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
8317         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8318         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8319         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8320         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8321         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8322         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8323         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
8324
8325 2011-06-19  Bruno Haible  <bruno@clisp.org>
8326
8327         ceilf-ieee: Work around bug on AIX 7.1.
8328         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
8329         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
8330
8331 2011-06-19  Bruno Haible  <bruno@clisp.org>
8332
8333         ceil-ieee: Work around bug on AIX 7.1.
8334         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
8335         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
8336
8337 2011-06-18  Bruno Haible  <bruno@clisp.org>
8338
8339         fsync test: Avoid test failure on MacOS X and AIX.
8340         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
8341         EINVAL.
8342
8343 2011-06-18  Bruno Haible  <bruno@clisp.org>
8344
8345         openat, fdopendir tests: Fix link errors.
8346         * modules/openat-tests (Depends-on): Add progname.
8347         * modules/fdopendir-tests (Depends-on): Likewise.
8348         * tests/test-fchownat.c: Include progname.h.
8349         (main): Call set_program_name.
8350         * tests/test-fstatat.c: Include progname.h.
8351         (main): Call set_program_name.
8352         * tests/test-mkdirat.c: Include progname.h.
8353         (main): Call set_program_name.
8354         * tests/test-openat.c: Include progname.h.
8355         (main): Call set_program_name.
8356         * tests/test-unlinkat.c: Include progname.h.
8357         (main): Call set_program_name.
8358         * tests/test-fdopendir.c: Include progname.h.
8359         (main): Call set_program_name.
8360
8361 2011-06-18  Bruno Haible  <bruno@clisp.org>
8362
8363         Doc update.
8364         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
8365         HP-UX.
8366         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
8367
8368 2011-06-18  Bruno Haible  <bruno@clisp.org>
8369
8370         getcwd tests: Avoid compilation error on HP-UX 11.31.
8371         * modules/getcwd-tests (Depends-on): Add pathmax.
8372         * tests/test-getcwd.c: Include pathmax.h.
8373
8374 2011-06-18  Bruno Haible  <bruno@clisp.org>
8375
8376         isfinite, isinf: Fix link error on AIX 6 and 7.
8377         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
8378         needed, also test the macro with a 'float' argument.
8379         * m4/isinf.m4 (gl_ISINF): Likewise.
8380
8381 2011-06-18  Bruno Haible  <bruno@clisp.org>
8382
8383         getloadavg: Don't clobber LIBS. Regression from previous commit.
8384         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
8385         AC_CHECK_LIB from here...
8386         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
8387         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
8388         gl_func_getloadavg_done.
8389         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8390
8391 2011-06-18  Bruno Haible  <bruno@clisp.org>
8392
8393         clean-temp: Improve documentation.
8394         * lib/clean-temp.h: Explain better how to use this module.
8395         Reported by John Darrington <john@darrington.wattle.id.au>.
8396
8397 2011-06-17  Bruno Haible  <bruno@clisp.org>
8398
8399         pread, pwrite: Avoid cc warning on AIX.
8400         * lib/unistd.in.h (pread): Undefine before defining as a macro.
8401         (pwrite): Likewise.
8402
8403 2011-06-17  Bruno Haible  <bruno@clisp.org>
8404
8405         spawn-pipe tests: Fix link error.
8406         * tests/test-spawn-pipe-child.c: Undefine fprintf.
8407         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8408
8409 2011-06-17  Bruno Haible  <bruno@clisp.org>
8410
8411         Tests: Remove unnecessary dependency.
8412         * modules/canonicalize-tests (Depends-on): Remove progname.
8413         * modules/chown-tests (Depends-on): Likewise.
8414         * modules/dirname-tests (Depends-on): Likewise.
8415         * modules/fdopendir-tests (Depends-on): Likewise.
8416         * modules/fdutimensat-tests (Depends-on): Likewise.
8417         * modules/hash-tests (Depends-on): Likewise.
8418         * modules/lchown-tests (Depends-on): Likewise.
8419         * modules/linkat-tests (Depends-on): Likewise.
8420         * modules/renameat-tests (Depends-on): Likewise.
8421         * modules/spawn-pipe-tests (Depends-on): Likewise.
8422         * modules/utimensat-tests (Depends-on): Likewise.
8423
8424 2011-06-17  Bruno Haible  <bruno@clisp.org>
8425
8426         spawn-pipe tests: Fix link error.
8427         * tests/test-spawn-pipe-child.c: Undefine fflush.
8428
8429 2011-06-17  Bruno Haible  <bruno@clisp.org>
8430
8431         Fix tests link errors.
8432         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
8433         * modules/chown-tests (Makefile.am): Don't link test-chown with
8434         LIBINTL.
8435         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
8436         LIBINTL.
8437         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
8438         LIBINTL.
8439         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
8440         LIBINTL.
8441
8442 2011-06-16  Bruno Haible  <bruno@clisp.org>
8443
8444         crypto/gc-sha1: Fix recent regression.
8445         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
8446         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
8447
8448         crypto/gc-md5: Fix recent regression.
8449         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
8450
8451         crypto/gc-md4: Fix recent regression.
8452         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
8453         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
8454
8455         crypto/gc-arctwo: Fix recent regression.
8456         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
8457         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
8458
8459         crypto/gc-rijndael: Fix recent regression.
8460         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
8461         (configure.ac): Invoke AC_LIBOBJ here.
8462         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
8463         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8464
8465         crypto/gc-hmac-sha1: Fix recent regression.
8466         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
8467         (configure.ac): Invoke AC_LIBOBJ here.
8468         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
8469         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8470
8471         crypto/gc-hmac-md5: Fix recent regression.
8472         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
8473         (configure.ac): Invoke AC_LIBOBJ here.
8474         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
8475         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8476
8477         crypto/gc-des: Fix recent regression.
8478         * modules/crypto/gc-des (Files): Remove m4/des.m4.
8479         (configure.ac): Invoke AC_LIBOBJ here.
8480         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
8481         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8482
8483         crypto/gc-arcfour: Fix recent regression.
8484         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
8485         (configure.ac): Invoke AC_LIBOBJ here.
8486         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
8487         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8488
8489 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
8490
8491         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
8492         After the 2011-05-21 change, this macro requires
8493         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
8494         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
8495
8496 2011-06-16  Bruno Haible  <bruno@clisp.org>
8497
8498         fprintftime: Move AC_LIBOBJ invocations to module description.
8499         * m4/fprintftime.m4: Remove file.
8500         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
8501         (configure.ac): Remove gl_FPRINTFTIME call.
8502         (Makefile.am): Augment lib_SOURCES.
8503         Reported by Jim Meyering.
8504
8505 2011-06-16  Bruno Haible  <bruno@clisp.org>
8506
8507         tmpfile-safer: Finish 2011-05-23 commit.
8508         * m4/stdio-safer.m4: Really remove file.
8509         Reported by Jim Meyering.
8510
8511 2011-06-16  Bruno Haible  <bruno@clisp.org>
8512
8513         syntax-check: Fix typo.
8514         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
8515         printf-posix.m4.
8516         Reported by Jim Meyering.
8517
8518 2011-06-13  Jim Meyering  <meyering@redhat.com>
8519
8520         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
8521         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
8522
8523 2011-05-23  Bruno Haible  <bruno@clisp.org>
8524
8525         yesno: Move AC_LIBOBJ invocations to module description.
8526         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
8527         * modules/yesno (Makefile.am): Augment lib_SOURCES.
8528
8529 2011-05-23  Bruno Haible  <bruno@clisp.org>
8530
8531         xstrtol: Move AC_LIBOBJ invocations to module description.
8532         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
8533         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
8534
8535 2011-05-23  Bruno Haible  <bruno@clisp.org>
8536
8537         xstrtold: Move AC_LIBOBJ invocations to module description.
8538         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
8539         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
8540
8541 2011-05-23  Bruno Haible  <bruno@clisp.org>
8542
8543         xstrtod: Move AC_LIBOBJ invocations to module description.
8544         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
8545         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
8546
8547 2011-05-23  Bruno Haible  <bruno@clisp.org>
8548
8549         xnanosleep: Move AC_LIBOBJ invocations to module description.
8550         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
8551         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
8552
8553 2011-05-23  Bruno Haible  <bruno@clisp.org>
8554
8555         xgetcwd: Move AC_LIBOBJ invocations to module description.
8556         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
8557         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
8558
8559 2011-05-23  Bruno Haible  <bruno@clisp.org>
8560
8561         xalloc: Move AC_LIBOBJ invocations to module description.
8562         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
8563         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
8564
8565 2011-05-23  Bruno Haible  <bruno@clisp.org>
8566
8567         write-any-file: Move AC_LIBOBJ invocations to module description.
8568         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
8569         invocation.
8570         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
8571
8572 2011-05-23  Bruno Haible  <bruno@clisp.org>
8573
8574         utimens: Move AC_LIBOBJ invocations to module description.
8575         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
8576         * modules/utimens (Makefile.am): Augment lib_SOURCES.
8577
8578 2011-05-23  Bruno Haible  <bruno@clisp.org>
8579
8580         utimecmp: Move AC_LIBOBJ invocations to module description.
8581         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
8582         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
8583
8584 2011-05-23  Bruno Haible  <bruno@clisp.org>
8585
8586         userspec: Move AC_LIBOBJ invocations to module description.
8587         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
8588         * modules/userspec (Makefile.am): Augment lib_SOURCES.
8589
8590 2011-05-23  Bruno Haible  <bruno@clisp.org>
8591
8592         unlinkdir: Move AC_LIBOBJ invocations to module description.
8593         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
8594         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
8595
8596 2011-05-23  Bruno Haible  <bruno@clisp.org>
8597
8598         unistd-safer: Move AC_LIBOBJ invocations to module description.
8599         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
8600         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
8601
8602 2011-05-23  Bruno Haible  <bruno@clisp.org>
8603
8604         tempname: Move AC_LIBOBJ invocations to module description.
8605         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
8606         * modules/tempname (Makefile.am): Augment lib_SOURCES.
8607
8608 2011-05-23  Bruno Haible  <bruno@clisp.org>
8609
8610         strftime: Move AC_LIBOBJ invocations to module description.
8611         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
8612         * modules/strftime (Makefile.am): Augment lib_SOURCES.
8613
8614 2011-05-23  Bruno Haible  <bruno@clisp.org>
8615
8616         stdlib-safer: Move AC_LIBOBJ invocations to module description.
8617         * m4/stdlib-safer.m4: Remove file.
8618         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
8619         (configure.ac): Remove gl_STDLIB_SAFER call.
8620         (Makefile.am): Augment lib_SOURCES.
8621
8622 2011-05-23  Bruno Haible  <bruno@clisp.org>
8623
8624         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
8625         * m4/stdio-safer.m4: Remove file.
8626         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
8627         (configure.ac): Remove gl_TMPFILE_SAFER call.
8628         (Makefile.am): Augment lib_SOURCES.
8629
8630 2011-05-23  Bruno Haible  <bruno@clisp.org>
8631
8632         popen-safer: Move AC_LIBOBJ invocations to module description.
8633         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
8634         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
8635         (configure.ac): Remove gl_POPEN_SAFER call.
8636         (Makefile.am): Augment lib_SOURCES.
8637
8638 2011-05-23  Bruno Haible  <bruno@clisp.org>
8639
8640         freopen-safer: Move AC_LIBOBJ invocations to module description.
8641         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
8642         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
8643         (configure.ac): Remove gl_FREOPEN_SAFER call.
8644         (Makefile.am): Augment lib_SOURCES.
8645
8646 2011-05-23  Bruno Haible  <bruno@clisp.org>
8647
8648         fopen-safer: Move AC_LIBOBJ invocations to module description.
8649         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
8650         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
8651         (configure.ac): Remove gl_FOPEN_SAFER call.
8652         (Makefile.am): Augment lib_SOURCES.
8653
8654 2011-05-23  Bruno Haible  <bruno@clisp.org>
8655
8656         crypto/sha512: Move AC_LIBOBJ invocations to module description.
8657         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
8658         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
8659
8660 2011-05-23  Bruno Haible  <bruno@clisp.org>
8661
8662         crypto/sha256: Move AC_LIBOBJ invocations to module description.
8663         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
8664         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
8665
8666 2011-05-23  Bruno Haible  <bruno@clisp.org>
8667
8668         crypto/sha1: Move AC_LIBOBJ invocations to module description.
8669         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
8670         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
8671
8672 2011-05-23  Bruno Haible  <bruno@clisp.org>
8673
8674         settime: Move AC_LIBOBJ invocations to module description.
8675         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
8676         * modules/settime (Makefile.am): Augment lib_SOURCES.
8677
8678 2011-05-23  Bruno Haible  <bruno@clisp.org>
8679
8680         savedir: Move AC_LIBOBJ invocations to module description.
8681         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
8682         * modules/savedir (Makefile.am): Augment lib_SOURCES.
8683
8684 2011-05-23  Bruno Haible  <bruno@clisp.org>
8685
8686         save-cwd: Move AC_LIBOBJ invocations to module description.
8687         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
8688         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
8689
8690 2011-05-23  Bruno Haible  <bruno@clisp.org>
8691
8692         same: Move AC_LIBOBJ invocations to module description.
8693         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
8694         * modules/same (Makefile.am): Augment lib_SOURCES.
8695
8696 2011-05-23  Bruno Haible  <bruno@clisp.org>
8697
8698         safe-write: Move AC_LIBOBJ invocations to module description.
8699         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
8700         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
8701         instead of gl_SAFE_WRITE.
8702         (Makefile.am): Augment lib_SOURCES.
8703
8704 2011-05-23  Bruno Haible  <bruno@clisp.org>
8705
8706         safe-read: Move AC_LIBOBJ invocations to module description.
8707         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
8708         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
8709         of gl_SAFE_READ.
8710         (Makefile.am): Augment lib_SOURCES.
8711
8712 2011-05-23  Bruno Haible  <bruno@clisp.org>
8713
8714         safe-alloc: Move AC_LIBOBJ invocations to module description.
8715         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
8716         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
8717
8718 2011-05-23  Bruno Haible  <bruno@clisp.org>
8719
8720         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
8721         * m4/rijndael.m4: Remove file.
8722         * modules/crypto/rijndael (Files): Remove it.
8723         (configure.ac): Remove gl_RIJNDAEL call.
8724         (Makefile.am): Augment lib_SOURCES.
8725
8726 2011-05-23  Bruno Haible  <bruno@clisp.org>
8727
8728         readtokens: Move AC_LIBOBJ invocations to module description.
8729         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
8730         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
8731
8732 2011-05-23  Bruno Haible  <bruno@clisp.org>
8733
8734         read-file: Move AC_LIBOBJ invocations to module description.
8735         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
8736         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
8737         of gl_FUNC_READ_FILE.
8738         (Makefile.am): Augment lib_SOURCES.
8739
8740 2011-05-23  Bruno Haible  <bruno@clisp.org>
8741
8742         quotearg: Move AC_LIBOBJ invocations to module description.
8743         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
8744         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
8745
8746 2011-05-23  Bruno Haible  <bruno@clisp.org>
8747
8748         quote: Move AC_LIBOBJ invocations to module description.
8749         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
8750         * modules/quote (Makefile.am): Augment lib_SOURCES.
8751
8752 2011-05-23  Bruno Haible  <bruno@clisp.org>
8753
8754         posixver: Move AC_LIBOBJ invocations to module description.
8755         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
8756         * modules/posixver (Makefile.am): Augment lib_SOURCES.
8757
8758 2011-05-23  Bruno Haible  <bruno@clisp.org>
8759
8760         posixtm: Move AC_LIBOBJ invocations to module description.
8761         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
8762         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
8763
8764 2011-05-23  Bruno Haible  <bruno@clisp.org>
8765
8766         physmem: Move AC_LIBOBJ invocations to module description.
8767         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
8768         * modules/physmem (Makefile.am): Augment lib_SOURCES.
8769
8770 2011-05-23  Bruno Haible  <bruno@clisp.org>
8771
8772         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
8773         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
8774         invocation.
8775         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
8776
8777 2011-05-23  Bruno Haible  <bruno@clisp.org>
8778
8779         mpsort: Move AC_LIBOBJ invocations to module description.
8780         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
8781         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
8782
8783 2011-05-23  Bruno Haible  <bruno@clisp.org>
8784
8785         modechange: Move AC_LIBOBJ invocations to module description.
8786         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
8787         * modules/modechange (Makefile.am): Augment lib_SOURCES.
8788
8789 2011-05-23  Bruno Haible  <bruno@clisp.org>
8790
8791         mkdir-p: Move AC_LIBOBJ invocations to module description.
8792         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
8793         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
8794
8795 2011-05-23  Bruno Haible  <bruno@clisp.org>
8796
8797         mkancesdirs: Move AC_LIBOBJ invocations to module description.
8798         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
8799         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
8800
8801 2011-05-23  Bruno Haible  <bruno@clisp.org>
8802
8803         mgetgroups: Move AC_LIBOBJ invocations to module description.
8804         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
8805         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
8806
8807 2011-05-23  Bruno Haible  <bruno@clisp.org>
8808
8809         memxor: Move AC_LIBOBJ invocations to module description.
8810         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
8811         * modules/memxor (Makefile.am): Augment lib_SOURCES.
8812
8813 2011-05-23  Bruno Haible  <bruno@clisp.org>
8814
8815         memcoll: Move AC_LIBOBJ invocations to module description.
8816         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
8817         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
8818
8819 2011-05-23  Bruno Haible  <bruno@clisp.org>
8820
8821         memcasecmp: Move AC_LIBOBJ invocations to module description.
8822         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
8823         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
8824
8825 2011-05-23  Bruno Haible  <bruno@clisp.org>
8826
8827         crypto/md5: Move AC_LIBOBJ invocations to module description.
8828         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
8829         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
8830
8831 2011-05-23  Bruno Haible  <bruno@clisp.org>
8832
8833         crypto/md4: Move AC_LIBOBJ invocations to module description.
8834         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
8835         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
8836
8837 2011-05-23  Bruno Haible  <bruno@clisp.org>
8838
8839         crypto/md2: Move AC_LIBOBJ invocations to module description.
8840         * m4/md2.m4: Remove file.
8841         * modules/crypto/md2 (Files): Remove it.
8842         (configure.ac): Remove gl_MD2 call.
8843         (Makefile.am): Augment lib_SOURCES.
8844
8845 2011-05-23  Bruno Haible  <bruno@clisp.org>
8846
8847         long-options: Move AC_LIBOBJ invocations to module description.
8848         * m4/long-options.m4: Remove file.
8849         * modules/long-options (Files): Remove it.
8850         (configure.ac): Remove gl_LONG_OPTIONS call.
8851         (Makefile.am): Augment lib_SOURCES.
8852
8853 2011-05-23  Bruno Haible  <bruno@clisp.org>
8854
8855         i-ring: Move AC_LIBOBJ invocations to module description.
8856         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
8857         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
8858
8859 2011-05-23  Bruno Haible  <bruno@clisp.org>
8860
8861         idcache: Move AC_LIBOBJ invocations to module description.
8862         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
8863         * modules/idcache (Makefile.am): Augment lib_SOURCES.
8864
8865 2011-05-23  Bruno Haible  <bruno@clisp.org>
8866
8867         human: Move AC_LIBOBJ invocations to module description.
8868         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
8869         * modules/human (Makefile.am): Augment lib_SOURCES.
8870
8871 2011-05-23  Bruno Haible  <bruno@clisp.org>
8872
8873         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
8874         * m4/hmac-sha1.m4: Remove file.
8875         * modules/crypto/hmac-sha1 (Files): Remove it.
8876         (configure.ac): Remove gl_HMAC_SHA1 call.
8877         (Makefile.am): Augment lib_SOURCES.
8878
8879 2011-05-23  Bruno Haible  <bruno@clisp.org>
8880
8881         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
8882         * m4/hmac-md5.m4: Remove file.
8883         * modules/crypto/hmac-md5 (Files): Remove it.
8884         (configure.ac): Remove gl_HMAC_MD5 call.
8885         (Makefile.am): Augment lib_SOURCES.
8886
8887 2011-05-23  Bruno Haible  <bruno@clisp.org>
8888
8889         hash: Move AC_LIBOBJ invocations to module description.
8890         * m4/hash.m4: Remove file.
8891         * modules/hash (Files): Remove it.
8892         (configure.ac): Remove gl_HASH call.
8893         (Makefile.am): Augment lib_SOURCES.
8894
8895 2011-05-23  Bruno Haible  <bruno@clisp.org>
8896
8897         hard-locale: Move AC_LIBOBJ invocations to module description.
8898         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
8899         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
8900
8901 2011-05-23  Bruno Haible  <bruno@clisp.org>
8902
8903         getugroups: Move AC_LIBOBJ invocations to module description.
8904         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
8905         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
8906
8907 2011-05-23  Bruno Haible  <bruno@clisp.org>
8908
8909         gettime: Move AC_LIBOBJ invocations to module description.
8910         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
8911         * modules/gettime (Makefile.am): Augment lib_SOURCES.
8912
8913 2011-05-23  Bruno Haible  <bruno@clisp.org>
8914
8915         getndelim2: Move AC_LIBOBJ invocations to module description.
8916         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
8917         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
8918
8919 2011-05-23  Bruno Haible  <bruno@clisp.org>
8920
8921         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
8922         * m4/gc-pbkdf2-sha1.m4: Remove file.
8923         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
8924         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
8925         (Makefile.am): Augment lib_SOURCES.
8926
8927 2011-05-23  Bruno Haible  <bruno@clisp.org>
8928
8929         fts: Move AC_LIBOBJ invocations to module description.
8930         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
8931         * modules/fts (configure.ac): ... to here.
8932
8933 2011-05-23  Bruno Haible  <bruno@clisp.org>
8934
8935         file-type: Move AC_LIBOBJ invocations to module description.
8936         * m4/file-type.m4: Remove file.
8937         * modules/file-type (Files): Remove it.
8938         (configure.ac): Remove gl_FILE_TYPE call.
8939         (Makefile.am): Augment lib_SOURCES.
8940
8941 2011-05-23  Bruno Haible  <bruno@clisp.org>
8942
8943         filenamecat*: Respect rules for use of AC_LIBOBJ.
8944         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
8945         Remove AC_LIBOBJ invocation.
8946         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
8947         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
8948
8949 2011-05-23  Bruno Haible  <bruno@clisp.org>
8950
8951         filemode: Move AC_LIBOBJ invocations to module description.
8952         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
8953         * modules/filemode (Makefile.am): Augment lib_SOURCES.
8954
8955 2011-05-23  Bruno Haible  <bruno@clisp.org>
8956
8957         openat-safer: Move AC_LIBOBJ invocations to module description.
8958         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
8959         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
8960
8961 2011-05-23  Bruno Haible  <bruno@clisp.org>
8962
8963         fcntl-safer: Move AC_LIBOBJ invocations to module description.
8964         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
8965         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
8966
8967 2011-05-23  Bruno Haible  <bruno@clisp.org>
8968
8969         exclude: Move AC_LIBOBJ invocations to module description.
8970         * m4/exclude.m4: Remove file.
8971         * modules/exclude (Files): Remove it.
8972         (configure.ac): Remove gl_EXCLUDE call.
8973         (Makefile.am): Augment lib_SOURCES.
8974
8975 2011-05-23  Bruno Haible  <bruno@clisp.org>
8976
8977         dirname*: Respect rules for use of AC_LIBOBJ.
8978         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
8979         invocations.
8980         * modules/dirname (Makefile.am): Augment lib_SOURCES.
8981         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
8982
8983 2011-05-23  Bruno Haible  <bruno@clisp.org>
8984
8985         dirent-safer: Move AC_LIBOBJ invocations to module description.
8986         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
8987         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
8988
8989 2011-05-23  Bruno Haible  <bruno@clisp.org>
8990
8991         crypto/des: Move AC_LIBOBJ invocations to module description.
8992         * m4/des.m4: Remove file.
8993         * modules/crypto/des (Files): Remove it.
8994         (configure.ac): Remove gl_DES call.
8995         (Makefile.am): Augment lib_SOURCES.
8996
8997 2011-05-23  Bruno Haible  <bruno@clisp.org>
8998
8999         cycle-check: Move AC_LIBOBJ invocations to module description.
9000         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
9001         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
9002
9003 2011-05-23  Bruno Haible  <bruno@clisp.org>
9004
9005         c-strtold: Move AC_LIBOBJ invocations to module description.
9006         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
9007         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
9008
9009 2011-05-23  Bruno Haible  <bruno@clisp.org>
9010
9011         c-strtod: Move AC_LIBOBJ invocations to module description.
9012         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
9013         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
9014
9015 2011-05-23  Bruno Haible  <bruno@clisp.org>
9016
9017         crc: Move AC_LIBOBJ invocations to module description.
9018         * m4/crc.m4: Remove file.
9019         * modules/crc (Files): Remove it.
9020         (configure.ac): Remove gl_CRC call.
9021         (Makefile.am): Augment lib_SOURCES.
9022
9023 2011-05-23  Bruno Haible  <bruno@clisp.org>
9024
9025         close-stream: Move AC_LIBOBJ invocations to module description.
9026         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
9027         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
9028
9029 2011-05-23  Bruno Haible  <bruno@clisp.org>
9030
9031         closeout: Move AC_LIBOBJ invocations to module description.
9032         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
9033         * modules/closeout (Makefile.am): Augment lib_SOURCES.
9034
9035 2011-05-23  Bruno Haible  <bruno@clisp.org>
9036
9037         closein: Move AC_LIBOBJ invocations to module description.
9038         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
9039         * modules/closein (Makefile.am): Augment lib_SOURCES.
9040
9041 2011-05-23  Bruno Haible  <bruno@clisp.org>
9042
9043         cloexec: Move AC_LIBOBJ invocations to module description.
9044         * m4/cloexec.m4: Remove file.
9045         * modules/cloexec (Files): Remove it.
9046         (configure.ac): Remove gl_CLOEXEC call.
9047         (Makefile.am): Augment lib_SOURCES.
9048
9049 2011-05-23  Bruno Haible  <bruno@clisp.org>
9050
9051         check-version: Move AC_LIBOBJ invocations to module description.
9052         * m4/check-version.m4: Remove file.
9053         * modules/check-version (Files): Remove it.
9054         (configure.ac): Remove gl_CHECK_VERSION call.
9055         (Makefile.am): Augment lib_SOURCES.
9056
9057 2011-05-23  Bruno Haible  <bruno@clisp.org>
9058
9059         chdir-safer: Move AC_LIBOBJ invocations to module description.
9060         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
9061         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
9062
9063 2011-05-23  Bruno Haible  <bruno@clisp.org>
9064
9065         canonicalize: Move AC_LIBOBJ invocations to module description.
9066         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
9067         AC_LIBOBJ invocation.
9068         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
9069
9070 2011-05-23  Bruno Haible  <bruno@clisp.org>
9071
9072         canon-host: Move AC_LIBOBJ invocations to module description.
9073         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
9074         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
9075         instead of gl_CANON_HOST.
9076         (Makefile.am): Augment lib_SOURCES.
9077
9078 2011-05-23  Bruno Haible  <bruno@clisp.org>
9079
9080         backupfile: Move AC_LIBOBJ invocations to module description.
9081         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
9082         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
9083
9084 2011-05-23  Bruno Haible  <bruno@clisp.org>
9085
9086         argmatch: Move AC_LIBOBJ invocations to module description.
9087         * m4/argmatch.m4: Remove file.
9088         * modules/argmatch (Files): Remove it.
9089         (configure.ac): Remove gl_ARGMATCH call.
9090         (Makefile.am): Augment lib_SOURCES.
9091
9092 2011-05-23  Bruno Haible  <bruno@clisp.org>
9093
9094         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
9095         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
9096         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
9097
9098 2011-05-23  Bruno Haible  <bruno@clisp.org>
9099
9100         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
9101         * m4/arcfour.m4: Remove file.
9102         * modules/crypto/arcfour (Files): Remove it.
9103         (configure.ac): Remove gl_ARCFOUR call.
9104         (Makefile.am): Augment lib_SOURCES.
9105
9106 2011-05-22  Bruno Haible  <bruno@clisp.org>
9107
9108         write: Move AC_LIBOBJ invocations to module description.
9109         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
9110         * modules/write (configure.ac): ... to here.
9111
9112 2011-05-22  Bruno Haible  <bruno@clisp.org>
9113
9114         wmemset: Move AC_LIBOBJ invocations to module description.
9115         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
9116         here...
9117         * modules/wmemset (configure.ac): ... to here.
9118
9119 2011-05-22  Bruno Haible  <bruno@clisp.org>
9120
9121         wmemmove: Move AC_LIBOBJ invocations to module description.
9122         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
9123         here...
9124         * modules/wmemmove (configure.ac): ... to here.
9125
9126 2011-05-22  Bruno Haible  <bruno@clisp.org>
9127
9128         wmemcpy: Move AC_LIBOBJ invocations to module description.
9129         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
9130         here...
9131         * modules/wmemcpy (configure.ac): ... to here.
9132
9133 2011-05-22  Bruno Haible  <bruno@clisp.org>
9134
9135         wmemcmp: Move AC_LIBOBJ invocations to module description.
9136         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
9137         here...
9138         * modules/wmemcmp (configure.ac): ... to here.
9139
9140 2011-05-22  Bruno Haible  <bruno@clisp.org>
9141
9142         wmemchr: Move AC_LIBOBJ invocations to module description.
9143         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
9144         here...
9145         * modules/wmemchr (configure.ac): ... to here.
9146
9147 2011-05-22  Bruno Haible  <bruno@clisp.org>
9148
9149         wcswidth: Move AC_LIBOBJ invocations to module description.
9150         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
9151         here...
9152         * modules/wcswidth (configure.ac): ... to here.
9153
9154 2011-05-22  Bruno Haible  <bruno@clisp.org>
9155
9156         wcwidth: Respect rules for use of AC_LIBOBJ.
9157         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
9158         invocation from here...
9159         * modules/wcwidth (configure.ac): ... to here.
9160         (Depends-on): Update conditions.
9161
9162 2011-05-22  Bruno Haible  <bruno@clisp.org>
9163
9164         wctype: Move AC_LIBOBJ invocations to module description.
9165         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
9166         invocation from here...
9167         * modules/wctype (configure.ac): ... to here.
9168         (Depends-on): Update conditions.
9169
9170 2011-05-22  Bruno Haible  <bruno@clisp.org>
9171
9172         wctrans: Move AC_LIBOBJ invocations to module description.
9173         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
9174         invocation from here...
9175         * modules/wctrans (configure.ac): ... to here.
9176
9177 2011-05-22  Bruno Haible  <bruno@clisp.org>
9178
9179         wctomb: Move AC_LIBOBJ invocations to module description.
9180         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
9181         invocations from here...
9182         * modules/wctomb (configure.ac): ... to here.
9183
9184 2011-05-22  Bruno Haible  <bruno@clisp.org>
9185
9186         wctob: Move AC_LIBOBJ invocations to module description.
9187         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
9188         gl_PREREQ_WCTOB invocations from here...
9189         * modules/wctob (configure.ac): ... to here.
9190         (Depends-on): Update conditions.
9191
9192 2011-05-22  Bruno Haible  <bruno@clisp.org>
9193
9194         wcsxfrm: Move AC_LIBOBJ invocations to module description.
9195         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
9196         here...
9197         * modules/wcsxfrm (configure.ac): ... to here.
9198
9199 2011-05-22  Bruno Haible  <bruno@clisp.org>
9200
9201         wcstok: Move AC_LIBOBJ invocations to module description.
9202         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
9203         * modules/wcstok (configure.ac): ... to here.
9204
9205 2011-05-22  Bruno Haible  <bruno@clisp.org>
9206
9207         wcsstr: Move AC_LIBOBJ invocations to module description.
9208         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
9209         * modules/wcsstr (configure.ac): ... to here.
9210
9211 2011-05-22  Bruno Haible  <bruno@clisp.org>
9212
9213         wcsspn: Move AC_LIBOBJ invocations to module description.
9214         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
9215         * modules/wcsspn (configure.ac): ... to here.
9216
9217 2011-05-22  Bruno Haible  <bruno@clisp.org>
9218
9219         wcsrtombs: Move AC_LIBOBJ invocations to module description.
9220         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
9221         gl_PREREQ_WCSRTOMBS invocations from here...
9222         * modules/wcsrtombs (configure.ac): ... to here.
9223
9224 2011-05-22  Bruno Haible  <bruno@clisp.org>
9225
9226         wcsrchr: Move AC_LIBOBJ invocations to module description.
9227         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
9228         here...
9229         * modules/wcsrchr (configure.ac): ... to here.
9230
9231 2011-05-22  Bruno Haible  <bruno@clisp.org>
9232
9233         wcspbrk: Move AC_LIBOBJ invocations to module description.
9234         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
9235         here...
9236         * modules/wcspbrk (configure.ac): ... to here.
9237
9238 2011-05-22  Bruno Haible  <bruno@clisp.org>
9239
9240         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
9241         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
9242         gl_PREREQ_WCSNRTOMBS invocations from here...
9243         * modules/wcsnrtombs (configure.ac): ... to here.
9244
9245 2011-05-22  Bruno Haible  <bruno@clisp.org>
9246
9247         wcsnlen: Move AC_LIBOBJ invocations to module description.
9248         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
9249         here...
9250         * modules/wcsnlen (configure.ac): ... to here.
9251
9252 2011-05-22  Bruno Haible  <bruno@clisp.org>
9253
9254         wcsncpy: Move AC_LIBOBJ invocations to module description.
9255         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
9256         here...
9257         * modules/wcsncpy (configure.ac): ... to here.
9258
9259 2011-05-22  Bruno Haible  <bruno@clisp.org>
9260
9261         wcsncmp: Move AC_LIBOBJ invocations to module description.
9262         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
9263         here...
9264         * modules/wcsncmp (configure.ac): ... to here.
9265
9266 2011-05-22  Bruno Haible  <bruno@clisp.org>
9267
9268         wcsncat: Move AC_LIBOBJ invocations to module description.
9269         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
9270         here...
9271         * modules/wcsncat (configure.ac): ... to here.
9272
9273 2011-05-22  Bruno Haible  <bruno@clisp.org>
9274
9275         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
9276         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
9277         from here...
9278         * modules/wcsncasecmp (configure.ac): ... to here.
9279
9280 2011-05-22  Bruno Haible  <bruno@clisp.org>
9281
9282         wcslen: Move AC_LIBOBJ invocations to module description.
9283         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
9284         * modules/wcslen (configure.ac): ... to here.
9285
9286 2011-05-22  Bruno Haible  <bruno@clisp.org>
9287
9288         wcsdup: Move AC_LIBOBJ invocations to module description.
9289         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
9290         * modules/wcsdup (configure.ac): ... to here.
9291
9292 2011-05-22  Bruno Haible  <bruno@clisp.org>
9293
9294         wcscspn: Move AC_LIBOBJ invocations to module description.
9295         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
9296         here...
9297         * modules/wcscspn (configure.ac): ... to here.
9298
9299 2011-05-22  Bruno Haible  <bruno@clisp.org>
9300
9301         wcscpy: Move AC_LIBOBJ invocations to module description.
9302         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
9303         * modules/wcscpy (configure.ac): ... to here.
9304
9305 2011-05-22  Bruno Haible  <bruno@clisp.org>
9306
9307         wcscoll: Move AC_LIBOBJ invocations to module description.
9308         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
9309         here...
9310         * modules/wcscoll (configure.ac): ... to here.
9311
9312 2011-05-22  Bruno Haible  <bruno@clisp.org>
9313
9314         wcscmp: Move AC_LIBOBJ invocations to module description.
9315         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
9316         * modules/wcscmp (configure.ac): ... to here.
9317
9318 2011-05-22  Bruno Haible  <bruno@clisp.org>
9319
9320         wcschr: Move AC_LIBOBJ invocations to module description.
9321         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
9322         * modules/wcschr (configure.ac): ... to here.
9323
9324 2011-05-22  Bruno Haible  <bruno@clisp.org>
9325
9326         wcscat: Move AC_LIBOBJ invocations to module description.
9327         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
9328         * modules/wcscat (configure.ac): ... to here.
9329
9330 2011-05-22  Bruno Haible  <bruno@clisp.org>
9331
9332         wcscasecmp: Move AC_LIBOBJ invocations to module description.
9333         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
9334         here...
9335         * modules/wcscasecmp (configure.ac): ... to here.
9336
9337 2011-05-22  Bruno Haible  <bruno@clisp.org>
9338
9339         wcrtomb: Move AC_LIBOBJ invocations to module description.
9340         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
9341         invocations from here...
9342         * modules/wcrtomb (configure.ac): ... to here.
9343
9344 2011-05-22  Bruno Haible  <bruno@clisp.org>
9345
9346         wcpncpy: Move AC_LIBOBJ invocations to module description.
9347         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
9348         here...
9349         * modules/wcpncpy (configure.ac): ... to here.
9350
9351 2011-05-22  Bruno Haible  <bruno@clisp.org>
9352
9353         wcpcpy: Move AC_LIBOBJ invocations to module description.
9354         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
9355         * modules/wcpcpy (configure.ac): ... to here.
9356
9357 2011-05-22  Bruno Haible  <bruno@clisp.org>
9358
9359         waitpid: Move AC_LIBOBJ invocations to module description.
9360         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
9361         invocation from here...
9362         * modules/waitpid (configure.ac): ... to here.
9363
9364 2011-05-22  Bruno Haible  <bruno@clisp.org>
9365
9366         utimensat: Move AC_LIBOBJ invocations to module description.
9367         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
9368         here...
9369         * modules/utimensat (configure.ac): ... to here.
9370
9371 2011-05-22  Bruno Haible  <bruno@clisp.org>
9372
9373         usleep: Move AC_LIBOBJ invocations to module description.
9374         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
9375         here...
9376         * modules/usleep (configure.ac): ... to here.
9377
9378 2011-05-22  Bruno Haible  <bruno@clisp.org>
9379
9380         unlockpt: Move AC_LIBOBJ invocations to module description.
9381         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
9382         gl_PREREQ_UNLOCKPT invocations from here...
9383         * modules/unlockpt (configure.ac): ... to here.
9384
9385 2011-05-22  Bruno Haible  <bruno@clisp.org>
9386
9387         unlink: Respect rules for use of AC_LIBOBJ.
9388         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
9389         * modules/unlink (configure.ac): ... to here.
9390
9391 2011-05-22  Bruno Haible  <bruno@clisp.org>
9392
9393         uname: Move AC_LIBOBJ invocations to module description.
9394         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
9395         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
9396         here...
9397         * modules/uname (configure.ac): ... to here.
9398
9399 2011-05-22  Bruno Haible  <bruno@clisp.org>
9400
9401         ttyname_r: Move AC_LIBOBJ invocations to module description.
9402         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
9403         gl_PREREQ_TTYNAME_R invocations from here...
9404         * modules/ttyname_r (configure.ac): ... to here.
9405
9406 2011-05-22  Bruno Haible  <bruno@clisp.org>
9407
9408         tsearch: Move AC_LIBOBJ invocations to module description.
9409         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
9410         invocations from here...
9411         * modules/tsearch (configure.ac): ... to here.
9412
9413 2011-05-22  Bruno Haible  <bruno@clisp.org>
9414
9415         towctrans: Move AC_LIBOBJ invocations to module description.
9416         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
9417         AC_LIBOBJ invocation from here...
9418         * modules/towctrans (configure.ac): ... to here.
9419
9420 2011-05-22  Bruno Haible  <bruno@clisp.org>
9421
9422         tmpfile: Move AC_LIBOBJ invocations to module description.
9423         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
9424         invocations from here...
9425         * modules/tmpfile (configure.ac): ... to here.
9426
9427 2011-05-22  Bruno Haible  <bruno@clisp.org>
9428
9429         times: Move AC_LIBOBJ invocations to module description.
9430         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
9431         * modules/times (configure.ac): ... to here.
9432
9433 2011-05-22  Bruno Haible  <bruno@clisp.org>
9434
9435         time_r: Move AC_LIBOBJ invocations to module description.
9436         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
9437         invocations from here...
9438         * modules/time_r (configure.ac): ... to here.
9439
9440 2011-05-22  Bruno Haible  <bruno@clisp.org>
9441
9442         timegm: Move AC_LIBOBJ invocations to module description.
9443         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
9444         invocations from here...
9445         * modules/timegm (configure.ac): ... to here.
9446
9447 2011-05-22  Bruno Haible  <bruno@clisp.org>
9448
9449         tcgetsid: Move AC_LIBOBJ invocations to module description.
9450         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
9451         and gl_PREREQ_TCGETSID invocations from here...
9452         * modules/tcgetsid (configure.ac): ... to here.
9453         (Depends-on): Update conditions.
9454
9455 2011-05-22  Bruno Haible  <bruno@clisp.org>
9456
9457         symlinkat: Move AC_LIBOBJ invocations to module description.
9458         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
9459         here...
9460         * modules/symlinkat (configure.ac): ... to here.
9461
9462 2011-05-22  Bruno Haible  <bruno@clisp.org>
9463
9464         symlink: Move AC_LIBOBJ invocations to module description.
9465         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
9466         here...
9467         * modules/symlink (configure.ac): ... to here.
9468
9469 2011-05-22  Bruno Haible  <bruno@clisp.org>
9470
9471         strverscmp: Move AC_LIBOBJ invocations to module description.
9472         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
9473         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
9474         from here...
9475         * modules/strverscmp (configure.ac): ... to here.
9476
9477 2011-05-22  Bruno Haible  <bruno@clisp.org>
9478
9479         strtok_r: Move AC_LIBOBJ invocations to module description.
9480         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
9481         and gl_PREREQ_STRTOK_R invocations from here...
9482         * modules/strtok_r (configure.ac): ... to here.
9483         (Depends-on): Update conditions.
9484
9485 2011-05-22  Bruno Haible  <bruno@clisp.org>
9486
9487         strtoumax: Move AC_LIBOBJ invocations to module description.
9488         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
9489         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
9490         from here...
9491         * modules/strtoumax (configure.ac): ... to here.
9492
9493 2011-05-22  Bruno Haible  <bruno@clisp.org>
9494
9495         strtoimax: Move AC_LIBOBJ invocations to module description.
9496         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
9497         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
9498         from here...
9499         * modules/strtoimax (configure.ac): ... to here.
9500
9501 2011-05-22  Bruno Haible  <bruno@clisp.org>
9502
9503         strtoull: Move AC_LIBOBJ invocations to module description.
9504         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
9505         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
9506         from here...
9507         * modules/strtoull (configure.ac): ... to here.
9508
9509 2011-05-22  Bruno Haible  <bruno@clisp.org>
9510
9511         strtoll: Move AC_LIBOBJ invocations to module description.
9512         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
9513         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
9514         here...
9515         * modules/strtoll (configure.ac): ... to here.
9516
9517 2011-05-22  Bruno Haible  <bruno@clisp.org>
9518
9519         strtoul: Move AC_LIBOBJ invocations to module description.
9520         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
9521         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9522         * modules/strtoul (configure.ac): ... to here.
9523
9524 2011-05-22  Bruno Haible  <bruno@clisp.org>
9525
9526         strtol: Move AC_LIBOBJ invocations to module description.
9527         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
9528         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9529         * modules/strtol (configure.ac): ... to here.
9530
9531 2011-05-22  Bruno Haible  <bruno@clisp.org>
9532
9533         strtod: Move AC_LIBOBJ invocations to module description.
9534         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
9535         invocations from here...
9536         * modules/strtod (configure.ac): ... to here.
9537
9538 2011-05-22  Bruno Haible  <bruno@clisp.org>
9539
9540         strstr*: Move AC_LIBOBJ invocations to module description.
9541         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
9542         invocations from here...
9543         * modules/strstr-simple (configure.ac): ... to here.
9544         * modules/strstr (configure.ac): ... and here.
9545
9546 2011-05-22  Bruno Haible  <bruno@clisp.org>
9547
9548         strsignal: Move AC_LIBOBJ invocations to module description.
9549         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
9550         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
9551         * modules/strsignal (configure.ac): ... to here.
9552         (Depends-on): Update conditions.
9553
9554 2011-05-22  Bruno Haible  <bruno@clisp.org>
9555
9556         strsep: Move AC_LIBOBJ invocations to module description.
9557         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
9558         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
9559         here...
9560         * modules/strsep (configure.ac): ... to here.
9561
9562 2011-05-22  Bruno Haible  <bruno@clisp.org>
9563
9564         strptime: Move AC_LIBOBJ invocations to module description.
9565         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
9566         gl_PREREQ_STRPTIME invocations from here...
9567         * modules/strptime (configure.ac): ... to here.
9568
9569 2011-05-22  Bruno Haible  <bruno@clisp.org>
9570
9571         strpbrk: Move AC_LIBOBJ invocations to module description.
9572         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
9573         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
9574         here...
9575         * modules/strpbrk (configure.ac): ... to here.
9576
9577 2011-05-22  Bruno Haible  <bruno@clisp.org>
9578
9579         strnlen: Move AC_LIBOBJ invocations to module description.
9580         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
9581         invocations from here...
9582         * modules/strnlen (configure.ac): ... to here.
9583
9584 2011-05-22  Bruno Haible  <bruno@clisp.org>
9585
9586         strndup: Move AC_LIBOBJ invocations to module description.
9587         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
9588         invocations from here...
9589         * modules/strndup (configure.ac): ... to here.
9590         (Depends-on): Update conditions.
9591
9592 2011-05-22  Bruno Haible  <bruno@clisp.org>
9593
9594         strncat: Move AC_LIBOBJ invocations to module description.
9595         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
9596         invocations from here...
9597         * modules/strncat (configure.ac): ... to here.
9598
9599 2011-05-22  Bruno Haible  <bruno@clisp.org>
9600
9601         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
9602         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
9603         invocations from here...
9604         * modules/strdup (configure.ac): ... to here.
9605         * modules/strdup-posix (configure.ac): ... and here.
9606
9607 2011-05-22  Bruno Haible  <bruno@clisp.org>
9608
9609         strcspn: Move AC_LIBOBJ invocations to module description.
9610         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
9611         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
9612         here...
9613         * modules/strcspn (configure.ac): ... to here.
9614
9615 2011-05-22  Bruno Haible  <bruno@clisp.org>
9616
9617         strchrnul: Move AC_LIBOBJ invocations to module description.
9618         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
9619         gl_PREREQ_STRCHRNUL invocations from here...
9620         * modules/strchrnul (configure.ac): ... to here.
9621
9622 2011-05-22  Bruno Haible  <bruno@clisp.org>
9623
9624         strcasestr*: Move AC_LIBOBJ invocations to module description.
9625         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9626         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
9627         * modules/strcasestr-simple (configure.ac): ... to here.
9628         * modules/strcasestr (configure.ac): ... and here.
9629
9630 2011-05-22  Bruno Haible  <bruno@clisp.org>
9631
9632         strcase: Move AC_LIBOBJ invocations to module description.
9633         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
9634         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
9635         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
9636         gl_PREREQ_STRNCASECMP invocations from here...
9637         * modules/strcase (configure.ac): ... to here.
9638
9639 2011-05-22  Bruno Haible  <bruno@clisp.org>
9640
9641         stpncpy: Move AC_LIBOBJ invocations to module description.
9642         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
9643         here...
9644         * modules/stpncpy (configure.ac): ... to here.
9645
9646 2011-05-22  Bruno Haible  <bruno@clisp.org>
9647
9648         stpcpy: Move AC_LIBOBJ invocations to module description.
9649         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
9650         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
9651         here...
9652         * modules/stpcpy (configure.ac): ... to here.
9653
9654 2011-05-21  Bruno Haible  <bruno@clisp.org>
9655
9656         stat: Move AC_LIBOBJ invocations to module description.
9657         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
9658         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
9659         here...
9660         * modules/stat (configure.ac): ... to here.
9661
9662 2011-05-21  Bruno Haible  <bruno@clisp.org>
9663
9664         sleep: Move AC_LIBOBJ invocations to module description.
9665         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
9666         * modules/sleep (configure.ac): ... to here.
9667
9668 2011-05-21  Bruno Haible  <bruno@clisp.org>
9669
9670         signbit: Move AC_LIBOBJ invocations to module description.
9671         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
9672         * modules/signbit (configure.ac): ... to here.
9673
9674 2011-05-21  Bruno Haible  <bruno@clisp.org>
9675
9676         sigprocmask: Move AC_LIBOBJ invocations to module description.
9677         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
9678         gl_PREREQ_SIGPROMASK invocations from here...
9679         * modules/sigprocmask (configure.ac): ... to here.
9680
9681 2011-05-21  Bruno Haible  <bruno@clisp.org>
9682
9683         sigaction: Move AC_LIBOBJ invocations to module description.
9684         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
9685         gl_PREREQ_SIGACTION invocations from here...
9686         * modules/sigaction (configure.ac): ... to here.
9687
9688 2011-05-21  Bruno Haible  <bruno@clisp.org>
9689
9690         sig2str: Move AC_LIBOBJ invocations to module description.
9691         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
9692         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
9693         here...
9694         * modules/sig2str (configure.ac): ... to here.
9695
9696 2011-05-21  Bruno Haible  <bruno@clisp.org>
9697
9698         setlocale: Move AC_LIBOBJ invocations to module description.
9699         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
9700         gl_PREREQ_SETLOCALE invocations from here...
9701         * modules/setlocale (configure.ac): ... to here.
9702
9703 2011-05-21  Bruno Haible  <bruno@clisp.org>
9704
9705         unsetenv: Move AC_LIBOBJ invocations to module description.
9706         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
9707         and gl_PREREQ_UNSETENV invocations from here...
9708         * modules/unsetenv (configure.ac): ... to here.
9709         (Depends-on): Update.
9710
9711 2011-05-21  Bruno Haible  <bruno@clisp.org>
9712
9713         setenv: Move AC_LIBOBJ invocations to module description.
9714         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
9715         here...
9716         * modules/setenv (configure.ac): ... to here.
9717
9718 2011-05-21  Bruno Haible  <bruno@clisp.org>
9719
9720         selinux-h: Move AC_LIBOBJ invocations to module description.
9721         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
9722         AC_LIBOBJ invocation from here...
9723         * modules/selinux-h (configure.ac): ... to here.
9724
9725 2011-05-21  Bruno Haible  <bruno@clisp.org>
9726
9727         select: Respect rules for use of AC_LIBOBJ.
9728         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
9729         here...
9730         * modules/select (configure.ac): ... to here.
9731
9732 2011-05-21  Bruno Haible  <bruno@clisp.org>
9733
9734         scandir: Move AC_LIBOBJ invocations to module description.
9735         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
9736         invocations from here...
9737         * modules/scandir (configure.ac): ... to here.
9738
9739 2011-05-21  Bruno Haible  <bruno@clisp.org>
9740
9741         rpmatch: Move AC_LIBOBJ invocations to module description.
9742         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
9743         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
9744         here...
9745         * modules/rpmatch (configure.ac): ... to here.
9746
9747 2011-05-21  Bruno Haible  <bruno@clisp.org>
9748
9749         rmdir: Respect rules for use of AC_LIBOBJ.
9750         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
9751         * modules/rmdir (configure.ac): ... to here.
9752
9753 2011-05-21  Bruno Haible  <bruno@clisp.org>
9754
9755         renameat: Move AC_LIBOBJ invocations to module description.
9756         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
9757         here...
9758         * modules/renameat (configure.ac): ... to here.
9759
9760 2011-05-21  Bruno Haible  <bruno@clisp.org>
9761
9762         rename: Respect rules for use of AC_LIBOBJ.
9763         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
9764         here...
9765         * modules/rename (configure.ac): ... to here.
9766
9767 2011-05-21  Bruno Haible  <bruno@clisp.org>
9768
9769         remove: Move AC_LIBOBJ invocations to module description.
9770         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
9771         here...
9772         * modules/remove (configure.ac): ... to here.
9773
9774 2011-05-21  Bruno Haible  <bruno@clisp.org>
9775
9776         relocatable-lib: Move AC_LIBOBJ invocations to module description.
9777         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
9778         macro.
9779         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
9780         * modules/relocatable-lib (configure.ac): ... to here.
9781         * modules/relocatable-prog-wrapper (configure.ac): Invoke
9782         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
9783
9784 2011-05-21  Bruno Haible  <bruno@clisp.org>
9785
9786         relocatable-prog: Move AC_LIBOBJ invocations to module description.
9787         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
9788         here...
9789         * modules/relocatable-prog (configure.ac): ... to here.
9790
9791 2011-05-21  Bruno Haible  <bruno@clisp.org>
9792
9793         regex: Move AC_LIBOBJ invocations to module description.
9794         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
9795         invocations from here...
9796         * modules/regex (configure.ac): ... to here.
9797
9798 2011-05-21  Bruno Haible  <bruno@clisp.org>
9799
9800         realloc-*: Move AC_LIBOBJ invocations to module description.
9801         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
9802         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
9803         AC_LIBOBJ invocations from here...
9804         * modules/realloc-gnu (configure.ac): ... to here.
9805         * modules/realloc-posix (configure.ac): ... and here.
9806
9807 2011-05-21  Bruno Haible  <bruno@clisp.org>
9808
9809         readutmp: Move AC_LIBOBJ invocations to module description.
9810         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
9811         * modules/readutmp (configure.ac): ... to here.
9812
9813 2011-05-21  Bruno Haible  <bruno@clisp.org>
9814
9815         readlinkat: Move AC_LIBOBJ invocations to module description.
9816         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
9817         here...
9818         * modules/readlinkat (configure.ac): ... to here.
9819
9820 2011-05-21  Bruno Haible  <bruno@clisp.org>
9821
9822         readlink: Move AC_LIBOBJ invocations to module description.
9823         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
9824         gl_PREREQ_READLINK invocations from here...
9825         * modules/readlink (configure.ac): ... to here.
9826
9827 2011-05-21  Bruno Haible  <bruno@clisp.org>
9828
9829         readline: Move AC_LIBOBJ invocations to module description.
9830         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
9831         gl_PREREQ_READLINE invocations from here...
9832         * modules/readline (configure.ac): ... to here.
9833
9834 2011-05-21  Bruno Haible  <bruno@clisp.org>
9835
9836         read: Move AC_LIBOBJ invocations to module description.
9837         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
9838         * modules/read (configure.ac): ... to here.
9839
9840 2011-05-21  Bruno Haible  <bruno@clisp.org>
9841
9842         rawmemchr: Move AC_LIBOBJ invocations to module description.
9843         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
9844         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
9845         from here...
9846         * modules/rawmemchr (configure.ac): ... to here.
9847
9848 2011-05-21  Bruno Haible  <bruno@clisp.org>
9849
9850         random_r: Move AC_LIBOBJ invocations to module description.
9851         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
9852         gl_PREREQ_RANDOM_R invocations from here...
9853         * modules/random_r (configure.ac): ... to here.
9854
9855 2011-05-21  Bruno Haible  <bruno@clisp.org>
9856
9857         pwrite: Move AC_LIBOBJ invocations to module description.
9858         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
9859         * modules/pwrite (configure.ac): ... to here.
9860
9861 2011-05-21  Bruno Haible  <bruno@clisp.org>
9862
9863         putenv: Move AC_LIBOBJ invocations to module description.
9864         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
9865         * modules/putenv (configure.ac): ... to here.
9866
9867 2011-05-21  Bruno Haible  <bruno@clisp.org>
9868
9869         login_tty: Move AC_LIBOBJ invocations to module description.
9870         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
9871         * modules/login_tty (configure.ac): ... to here.
9872
9873 2011-05-21  Bruno Haible  <bruno@clisp.org>
9874
9875         openpty: Move AC_LIBOBJ invocations to module description.
9876         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
9877         * modules/openpty (configure.ac): ... to here.
9878
9879 2011-05-21  Bruno Haible  <bruno@clisp.org>
9880
9881         forkpty: Move AC_LIBOBJ invocations to module description.
9882         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
9883         * modules/forkpty (configure.ac): ... to here.
9884
9885 2011-05-21  Bruno Haible  <bruno@clisp.org>
9886
9887         ptsname: Move AC_LIBOBJ invocations to module description.
9888         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
9889         invocations from here...
9890         * modules/ptsname (configure.ac): ... to here.
9891
9892 2011-05-21  Bruno Haible  <bruno@clisp.org>
9893
9894         pread: Move AC_LIBOBJ invocations to module description.
9895         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
9896         * modules/pread (configure.ac): ... to here.
9897
9898 2011-05-21  Bruno Haible  <bruno@clisp.org>
9899
9900         posix_spawn*: Move AC_LIBOBJ invocations to module description.
9901         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
9902         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
9903         * modules/posix_spawn (configure.ac): ... to here.
9904         * modules/posix_spawnp (configure.ac): ... and here.
9905
9906 2011-05-21  Bruno Haible  <bruno@clisp.org>
9907
9908         popen: Move AC_LIBOBJ invocations to module description.
9909         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
9910         invocations from here...
9911         * modules/popen (configure.ac): ... to here.
9912
9913 2011-05-21  Bruno Haible  <bruno@clisp.org>
9914
9915         poll: Move AC_LIBOBJ invocations to module description.
9916         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
9917         invocations from here...
9918         * modules/poll (configure.ac): ... to here.
9919
9920 2011-05-21  Bruno Haible  <bruno@clisp.org>
9921
9922         pipe-posix: Move AC_LIBOBJ invocations to module description.
9923         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
9924         * modules/pipe-posix (configure.ac): ... to here.
9925
9926 2011-05-21  Bruno Haible  <bruno@clisp.org>
9927
9928         openat: Respect rules for use of AC_LIBOBJ.
9929         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
9930         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9931         * modules/openat (configure.ac): ... to here.
9932
9933 2011-05-21  Bruno Haible  <bruno@clisp.org>
9934
9935         obstack-printf*: Move AC_LIBOBJ invocations to module description.
9936         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
9937         invocation from here...
9938         * modules/obstack-printf (configure.ac): ... to here.
9939         * modules/obstack-printf-posix (configure.ac): ... and here.
9940
9941 2011-05-21  Bruno Haible  <bruno@clisp.org>
9942
9943         nl_langinfo: Move AC_LIBOBJ invocations to module description.
9944         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
9945         from here...
9946         * modules/nl_langinfo (configure.ac): ... to here.
9947
9948 2011-05-21  Bruno Haible  <bruno@clisp.org>
9949
9950         nanosleep: Move AC_LIBOBJ invocations to module description.
9951         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
9952         gl_PREREQ_NANOSLEEP invocations from here...
9953         * modules/nanosleep (configure.ac): ... to here.
9954
9955 2011-05-21  Bruno Haible  <bruno@clisp.org>
9956
9957         mountlist: Move AC_LIBOBJ invocations to module description.
9958         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
9959         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
9960         * modules/mountlist (configure.ac): ... to here.
9961
9962 2011-05-21  Bruno Haible  <bruno@clisp.org>
9963
9964         mktime: Respect rules for use of AC_LIBOBJ.
9965         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
9966         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
9967         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
9968         (gl_FUNC_MKTIME_INTERNAL): ... and here...
9969         * modules/mktime (configure.ac): ... to here.
9970         * modules/mktime-internal (configure.ac): ... and here.
9971         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
9972
9973 2011-05-21  Bruno Haible  <bruno@clisp.org>
9974
9975         mkstemps: Move AC_LIBOBJ invocations to module description.
9976         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
9977         here...
9978         * modules/mkstemps (configure.ac): ... to here.
9979
9980 2011-05-21  Bruno Haible  <bruno@clisp.org>
9981
9982         mkstemp: Move AC_LIBOBJ invocations to module description.
9983         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
9984         gl_PREREQ_MKSTEMP invocations from here...
9985         * modules/mkstemp (configure.ac): ... to here.
9986
9987 2011-05-21  Bruno Haible  <bruno@clisp.org>
9988
9989         mkostemps: Move AC_LIBOBJ invocations to module description.
9990         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
9991         here...
9992         * modules/mkostemps (configure.ac): ... to here.
9993
9994 2011-05-21  Bruno Haible  <bruno@clisp.org>
9995
9996         mkostemp: Move AC_LIBOBJ invocations to module description.
9997         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
9998         gl_PREREQ_MKOSTEMP invocations from here...
9999         * modules/mkostemp (configure.ac): ... to here.
10000
10001 2011-05-21  Bruno Haible  <bruno@clisp.org>
10002
10003         mknod: Move AC_LIBOBJ invocations to module description.
10004         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
10005         * modules/mknod (configure.ac): ... to here.
10006
10007 2011-05-21  Bruno Haible  <bruno@clisp.org>
10008
10009         mkfifoat: Move AC_LIBOBJ invocations to module description.
10010         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
10011         here...
10012         * modules/mkfifoat (configure.ac): ... to here.
10013
10014 2011-05-21  Bruno Haible  <bruno@clisp.org>
10015
10016         mkfifo: Respect rules for use of AC_LIBOBJ.
10017         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
10018         here...
10019         * modules/mkfifo (configure.ac): ... to here.
10020
10021 2011-05-21  Bruno Haible  <bruno@clisp.org>
10022
10023         mkdtemp: Move AC_LIBOBJ invocations to module description.
10024         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
10025         invocations from here...
10026         * modules/mkdtemp (configure.ac): ... to here.
10027
10028 2011-05-21  Bruno Haible  <bruno@clisp.org>
10029
10030         mkdir: Move AC_LIBOBJ invocations to module description.
10031         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
10032         * modules/mkdir (configure.ac): ... to here.
10033
10034 2011-05-21  Bruno Haible  <bruno@clisp.org>
10035
10036         memset: Move AC_LIBOBJ invocations to module description.
10037         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
10038         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
10039         here...
10040         * modules/memset (configure.ac): ... to here.
10041
10042 2011-05-21  Bruno Haible  <bruno@clisp.org>
10043
10044         memrchr: Move AC_LIBOBJ invocations to module description.
10045         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
10046         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
10047         here...
10048         * modules/memrchr (configure.ac): ... to here.
10049
10050 2011-05-21  Bruno Haible  <bruno@clisp.org>
10051
10052         mempcpy: Move AC_LIBOBJ invocations to module description.
10053         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
10054         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
10055         here...
10056         * modules/mempcpy (configure.ac): ... to here.
10057
10058 2011-05-21  Bruno Haible  <bruno@clisp.org>
10059
10060         memmove: Move AC_LIBOBJ invocations to module description.
10061         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
10062         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
10063         here...
10064         * modules/memmove (configure.ac): ... to here.
10065
10066 2011-05-21  Bruno Haible  <bruno@clisp.org>
10067
10068         memmem*: Move AC_LIBOBJ invocations to module description.
10069         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
10070         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
10071         here...
10072         (gl_FUNC_MEMMEM): ... and here...
10073         * modules/memmem-simple (configure.ac): ... to here.
10074         * modules/memmem (configure.ac): ... and here.
10075
10076 2011-05-21  Bruno Haible  <bruno@clisp.org>
10077
10078         memcpy: Move AC_LIBOBJ invocations to module description.
10079         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
10080         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
10081         here...
10082         * modules/memcpy (configure.ac): ... to here.
10083
10084 2011-05-21  Bruno Haible  <bruno@clisp.org>
10085
10086         memcmp: Simplify autoconf macro.
10087         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
10088         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
10089         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
10090
10091 2011-05-21  Bruno Haible  <bruno@clisp.org>
10092
10093         memcmp: Move AC_LIBOBJ invocations to module description.
10094         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
10095         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
10096         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
10097         * modules/memcmp (configure.ac): ... to here.
10098         (Depends-on): Update conditions.
10099
10100 2011-05-21  Bruno Haible  <bruno@clisp.org>
10101
10102         memchr: Respect rules for use of AC_LIBOBJ.
10103         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
10104         invocations from here...
10105         * modules/memchr (configure.ac): ... to here.
10106
10107 2011-05-21  Bruno Haible  <bruno@clisp.org>
10108
10109         mbtowc: Move AC_LIBOBJ invocations to module description.
10110         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
10111         invocations from here...
10112         * modules/mbtowc (configure.ac): ... to here.
10113
10114 2011-05-21  Bruno Haible  <bruno@clisp.org>
10115
10116         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
10117         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
10118         gl_PREREQ_MBSRTOWCS invocations from here...
10119         * modules/mbsrtowcs (configure.ac): ... to here.
10120
10121 2011-05-21  Bruno Haible  <bruno@clisp.org>
10122
10123         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
10124         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
10125         gl_PREREQ_MBSNRTOWCS invocations from here...
10126         * modules/mbsnrtowcs (configure.ac): ... to here.
10127
10128 2011-05-21  Bruno Haible  <bruno@clisp.org>
10129
10130         mbsinit: Move AC_LIBOBJ invocations to module description.
10131         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
10132         invocations from here...
10133         * modules/mbsinit (configure.ac): ... to here.
10134
10135 2011-05-21  Bruno Haible  <bruno@clisp.org>
10136
10137         mbrlen: Move AC_LIBOBJ invocations to module description.
10138         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
10139         invocations from here...
10140         * modules/mbrlen (configure.ac): ... to here.
10141
10142 2011-05-21  Bruno Haible  <bruno@clisp.org>
10143
10144         mbrtowc: Respect rules for use of AC_LIBOBJ.
10145         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
10146         invocations from here...
10147         * modules/mbrtowc (configure.ac): ... to here.
10148
10149 2011-05-21  Bruno Haible  <bruno@clisp.org>
10150
10151         malloc-*: Move AC_LIBOBJ invocations to module description.
10152         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
10153         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
10154         AC_LIBOBJ invocations from here...
10155         * modules/malloc-gnu (configure.ac): ... to here.
10156         * modules/malloc-posix (configure.ac): ... and here.
10157
10158 2011-05-21  Bruno Haible  <bruno@clisp.org>
10159
10160         lstat, openat: Respect rules for use of AC_LIBOBJ.
10161         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
10162         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
10163         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
10164         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
10165         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
10166         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
10167         here.
10168         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
10169
10170 2011-05-21  Bruno Haible  <bruno@clisp.org>
10171
10172         lseek: Move AC_LIBOBJ invocations to module description.
10173         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
10174         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
10175         * modules/lseek (configure.ac): ... to here.
10176
10177 2011-05-21  Bruno Haible  <bruno@clisp.org>
10178
10179         linkat: Move AC_LIBOBJ invocations to module description.
10180         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
10181         here...
10182         * modules/linkat (configure.ac): ... to here.
10183
10184 2011-05-21  Bruno Haible  <bruno@clisp.org>
10185
10186         link: Respect rules for use of AC_LIBOBJ.
10187         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
10188         * modules/link (configure.ac): ... to here.
10189
10190 2011-05-21  Bruno Haible  <bruno@clisp.org>
10191
10192         lchown: Move AC_LIBOBJ invocations to module description.
10193         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
10194         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
10195         * modules/lchown (configure.ac): ... to here.
10196
10197 2011-05-21  Bruno Haible  <bruno@clisp.org>
10198
10199         iswctype: Move AC_LIBOBJ invocations to module description.
10200         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
10201         here...
10202         * modules/iswctype (configure.ac): ... to here.
10203
10204 2011-05-21  Bruno Haible  <bruno@clisp.org>
10205
10206         iswblank: Move AC_LIBOBJ invocations to module description.
10207         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
10208         here...
10209         * modules/iswblank (configure.ac): ... to here.
10210
10211 2011-05-21  Bruno Haible  <bruno@clisp.org>
10212
10213         atanl: Move AC_LIBOBJ invocations to module description.
10214         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
10215         * modules/atanl (configure.ac): ... to here.
10216
10217 2011-05-21  Bruno Haible  <bruno@clisp.org>
10218
10219         acosl: Move AC_LIBOBJ invocations to module description.
10220         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
10221         * modules/acosl (configure.ac): ... to here.
10222
10223 2011-05-21  Bruno Haible  <bruno@clisp.org>
10224
10225         asinl: Respect rules for use of AC_LIBOBJ.
10226         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
10227         * modules/asinl (configure.ac): ... to here.
10228
10229 2011-05-21  Bruno Haible  <bruno@clisp.org>
10230
10231         tanl: Move AC_LIBOBJ invocations to module description.
10232         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
10233         * modules/tanl (configure.ac): ... to here.
10234
10235 2011-05-21  Bruno Haible  <bruno@clisp.org>
10236
10237         cosl: Move AC_LIBOBJ invocations to module description.
10238         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
10239         * modules/cosl (configure.ac): ... to here.
10240
10241 2011-05-21  Bruno Haible  <bruno@clisp.org>
10242
10243         sinl: Move AC_LIBOBJ invocations to module description.
10244         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
10245         * modules/sinl (configure.ac): ... to here.
10246
10247 2011-05-21  Bruno Haible  <bruno@clisp.org>
10248
10249         logl: Move AC_LIBOBJ invocations to module description.
10250         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
10251         * modules/logl (configure.ac): ... to here.
10252
10253 2011-05-21  Bruno Haible  <bruno@clisp.org>
10254
10255         expl: Move AC_LIBOBJ invocations to module description.
10256         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
10257         * modules/expl (configure.ac): ... to here.
10258
10259 2011-05-21  Bruno Haible  <bruno@clisp.org>
10260
10261         roundl: Move AC_LIBOBJ invocations to module description.
10262         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
10263         * modules/roundl (configure.ac): ... to here.
10264
10265 2011-05-21  Bruno Haible  <bruno@clisp.org>
10266
10267         round: Move AC_LIBOBJ invocations to module description.
10268         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
10269         * modules/round (configure.ac): ... to here.
10270
10271 2011-05-21  Bruno Haible  <bruno@clisp.org>
10272
10273         roundf: Move AC_LIBOBJ invocations to module description.
10274         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
10275         * modules/roundf (configure.ac): ... to here.
10276
10277 2011-05-21  Bruno Haible  <bruno@clisp.org>
10278
10279         truncl: Move AC_LIBOBJ invocations to module description.
10280         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
10281         * modules/truncl (configure.ac): ... to here.
10282
10283 2011-05-21  Bruno Haible  <bruno@clisp.org>
10284
10285         trunc: Move AC_LIBOBJ invocations to module description.
10286         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
10287         * modules/trunc (configure.ac): ... to here.
10288
10289 2011-05-21  Bruno Haible  <bruno@clisp.org>
10290
10291         truncf: Move AC_LIBOBJ invocations to module description.
10292         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
10293         * modules/truncf (configure.ac): ... to here.
10294
10295 2011-05-21  Bruno Haible  <bruno@clisp.org>
10296
10297         ceill: Move AC_LIBOBJ invocations to module description.
10298         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
10299         * modules/ceill (configure.ac): ... to here.
10300
10301 2011-05-21  Bruno Haible  <bruno@clisp.org>
10302
10303         ceil: Move AC_LIBOBJ invocations to module description.
10304         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
10305         * modules/ceil (configure.ac): ... to here.
10306
10307 2011-05-21  Bruno Haible  <bruno@clisp.org>
10308
10309         ceilf: Move AC_LIBOBJ invocations to module description.
10310         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
10311         * modules/ceilf (configure.ac): ... to here.
10312
10313 2011-05-21  Bruno Haible  <bruno@clisp.org>
10314
10315         floorl: Respect rules for use of AC_LIBOBJ.
10316         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
10317         * modules/floorl (configure.ac): ... to here.
10318
10319 2011-05-21  Bruno Haible  <bruno@clisp.org>
10320
10321         floor: Respect rules for use of AC_LIBOBJ.
10322         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
10323         * modules/floor (configure.ac): ... to here.
10324
10325 2011-05-21  Bruno Haible  <bruno@clisp.org>
10326
10327         floorf: Move AC_LIBOBJ invocations to module description.
10328         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
10329         * modules/floorf (configure.ac): ... to here.
10330
10331 2011-05-20  Bruno Haible  <bruno@clisp.org>
10332
10333         sqrtl: Respect rules for use of AC_LIBOBJ.
10334         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
10335         * modules/sqrtl (configure.ac): ... to here.
10336
10337 2011-05-20  Bruno Haible  <bruno@clisp.org>
10338
10339         ldexpl: Respect rules for use of AC_LIBOBJ.
10340         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
10341         * modules/ldexpl (configure.ac): ... to here.
10342
10343 2011-05-20  Bruno Haible  <bruno@clisp.org>
10344
10345         frexpl*: Respect rules for use of AC_LIBOBJ.
10346         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
10347         invocation from here...
10348         * modules/frexpl (configure.ac): ... to here.
10349         * modules/frexpl-nolibm (configure.ac): ... and here.
10350
10351 2011-05-20  Bruno Haible  <bruno@clisp.org>
10352
10353         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
10354         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
10355         invocation from here...
10356         * modules/frexp (configure.ac): ... to here.
10357         * modules/frexp-nolibm (configure.ac): ... and here.
10358
10359 2011-05-20  Bruno Haible  <bruno@clisp.org>
10360
10361         isnan: Respect rules for use of AC_LIBOBJ.
10362         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
10363         invocations here.
10364         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
10365         REPLACE_ISNAN.
10366         * modules/isnand (configure.ac): Likewise.
10367         * modules/isnanl (configure.ac): Likewise.
10368
10369 2011-05-20  Bruno Haible  <bruno@clisp.org>
10370
10371         isnanl*: Respect rules for use of AC_LIBOBJ.
10372         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
10373         invocation from here...
10374         * modules/isnanl (configure.ac): ... to here.
10375         * modules/isnanl-nolibm (configure.ac): ... and here.
10376
10377 2011-05-20  Bruno Haible  <bruno@clisp.org>
10378
10379         isnand*: Move AC_LIBOBJ invocations to module description.
10380         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
10381         invocation from here...
10382         * modules/isnand (configure.ac): ... to here.
10383         * modules/isnand-nolibm (configure.ac): ... and here.
10384
10385 2011-05-20  Bruno Haible  <bruno@clisp.org>
10386
10387         isnanf*: Move AC_LIBOBJ invocations to module description.
10388         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
10389         invocation from here...
10390         * modules/isnanf (configure.ac): ... to here.
10391         * modules/isnanf-nolibm (configure.ac): ... and here.
10392
10393 2011-05-20  Bruno Haible  <bruno@clisp.org>
10394
10395         isnan*: Separate the AC_LIBOBJ invocations.
10396         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
10397         AC_LIBOBJ invocation.
10398         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
10399         here.
10400         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
10401         AC_LIBOBJ invocation.
10402         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
10403         here.
10404         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
10405         AC_LIBOBJ invocation.
10406         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
10407         here.
10408         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
10409
10410 2011-05-08  Bruno Haible  <bruno@clisp.org>
10411
10412         isinf: Move AC_LIBOBJ invocations to module description.
10413         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
10414         * modules/isinf (configure.ac): ... to here.
10415
10416 2011-05-08  Bruno Haible  <bruno@clisp.org>
10417
10418         isfinite: Move AC_LIBOBJ invocations to module description.
10419         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
10420         * modules/isfinite (configure.ac): ... to here.
10421
10422 2011-05-08  Bruno Haible  <bruno@clisp.org>
10423
10424         isblank: Move AC_LIBOBJ invocations to module description.
10425         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
10426         here...
10427         * modules/isblank (configure.ac): ... to here.
10428
10429 2011-05-08  Bruno Haible  <bruno@clisp.org>
10430
10431         isapipe: Move AC_LIBOBJ invocations to module description.
10432         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
10433         gl_PREREQ_ISAPIPE invocations from here...
10434         * modules/isapipe (configure.ac): ... to here.
10435         (Depends-on): Update condition.
10436
10437 2011-05-08  Bruno Haible  <bruno@clisp.org>
10438
10439         ioctl: Move AC_LIBOBJ invocations to module description.
10440         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
10441         invocations from here...
10442         * modules/ioctl (configure.ac): ... to here.
10443         (Depends-on): Update condition.
10444
10445 2011-05-08  Bruno Haible  <bruno@clisp.org>
10446
10447         imaxdiv: Move AC_LIBOBJ invocations to module description.
10448         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
10449         invocations from here...
10450         * modules/imaxdiv (configure.ac): ... to here.
10451
10452 2011-05-08  Bruno Haible  <bruno@clisp.org>
10453
10454         imaxabs: Move AC_LIBOBJ invocations to module description.
10455         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
10456         invocations from here...
10457         * modules/imaxabs (configure.ac): ... to here.
10458
10459 2011-05-08  Bruno Haible  <bruno@clisp.org>
10460
10461         getaddrinfo: Move AC_LIBOBJ invocations to module description.
10462         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
10463         AC_LIBOBJ invocations from here...
10464         * modules/getaddrinfo (configure.ac): ... to here.
10465         (Depends-on): Add conditions.
10466
10467 2011-05-08  Bruno Haible  <bruno@clisp.org>
10468
10469         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
10470         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
10471         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
10472         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
10473         (gl_PREREQ_INET_PTON): ... from here.
10474         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
10475         gl_PREREQ_INET_PTON here.
10476         (Depends-on): Update condition.
10477
10478 2011-05-08  Bruno Haible  <bruno@clisp.org>
10479
10480         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
10481         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
10482         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
10483         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
10484         (gl_PREREQ_INET_NTOP): ... from here.
10485         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
10486         gl_PREREQ_INET_NTOP here.
10487         (Depends-on): Update condition.
10488
10489 2011-05-08  Bruno Haible  <bruno@clisp.org>
10490
10491         iconv_open: Move AC_LIBOBJ invocations to module description.
10492         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
10493         AC_LIBOBJ invocations from here...
10494         * modules/iconv_open (configure.ac): ... to here.
10495
10496 2011-05-08  Bruno Haible  <bruno@clisp.org>
10497
10498         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
10499         If module 'iconv_open' is among the main modules and module
10500         'iconv_open-utf' is among the tests dependencies, then
10501         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
10502         return the special iconv_t values. Therefore iconv() and iconv_close()
10503         must support these special iconv_t values, already in lib, not only in
10504         tests.
10505         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
10506         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
10507         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
10508         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
10509         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
10510         (Depends-on): Add the dependencies of iconv_open-utf.
10511         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
10512         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
10513         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
10514
10515 2011-05-08  Bruno Haible  <bruno@clisp.org>
10516
10517         group-member: Move AC_LIBOBJ invocations to module description.
10518         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
10519         gl_PREREQ_GROUP_MEMBER invocations from here...
10520         * modules/group-member (configure.ac): ... to here.
10521
10522 2011-05-08  Bruno Haible  <bruno@clisp.org>
10523
10524         grantpt: Move AC_LIBOBJ invocations to module description.
10525         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
10526         invocations from here...
10527         * modules/grantpt (configure.ac): ... to here.
10528
10529 2011-05-08  Bruno Haible  <bruno@clisp.org>
10530
10531         glob: Move AC_LIBOBJ invocations to module description.
10532         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
10533         from here...
10534         * modules/glob (configure.ac): ... to here.
10535
10536 2011-05-08  Bruno Haible  <bruno@clisp.org>
10537
10538         getusershell: Move AC_LIBOBJ invocations to module description.
10539         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
10540         Move AC_LIBOBJ invocation from here...
10541         * modules/getusershell (configure.ac): ... to here.
10542         (Depends-on): Update condition.
10543
10544 2011-05-08  Bruno Haible  <bruno@clisp.org>
10545
10546         gettimeofday: Move AC_LIBOBJ invocations to module description.
10547         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
10548         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
10549         gl_PREREQ_GETTIMEOFDAY invocations from here...
10550         * modules/gettimeofday (configure.ac): ... to here.
10551
10552 2011-05-08  Bruno Haible  <bruno@clisp.org>
10553
10554         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
10555         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
10556         just gl_FUNC_TZSET.
10557         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
10558         (gl_FUNC_TZSET_CLOBBER): Remove actions.
10559         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
10560         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
10561
10562 2011-05-08  Bruno Haible  <bruno@clisp.org>
10563
10564         getsubopt: Move AC_LIBOBJ invocations to module description.
10565         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
10566         gl_PREREQ_GETSUBOPT invocations from here...
10567         * modules/getsubopt (configure.ac): ... to here.
10568
10569 2011-05-08  Bruno Haible  <bruno@clisp.org>
10570
10571         getpass-gnu: Move AC_LIBOBJ invocations to module description.
10572         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
10573         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
10574         * modules/getpass-gnu (configure.ac): ... to here.
10575
10576 2011-05-08  Bruno Haible  <bruno@clisp.org>
10577
10578         getpass: Move AC_LIBOBJ invocations to module description.
10579         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
10580         gl_PREREQ_GETPASS invocations from here...
10581         * modules/getpass (configure.ac): ... to here.
10582
10583 2011-05-08  Bruno Haible  <bruno@clisp.org>
10584
10585         getpagesize: Move AC_LIBOBJ invocations to module description.
10586         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
10587         from here...
10588         * modules/getpagesize (configure.ac): ... to here.
10589
10590 2011-05-08  Bruno Haible  <bruno@clisp.org>
10591
10592         getopt: Move AC_LIBOBJ invocations to module description.
10593         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
10594         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
10595         invocations from here...
10596         * modules/getopt-gnu (configure.ac): ... to here.
10597         * modules/getopt-posix (configure.ac): ... and here.
10598         (Depends-on): Update condition.
10599
10600 2011-05-08  Bruno Haible  <bruno@clisp.org>
10601
10602         getopt, argp: Respect rules for use of AC_LIBOBJ.
10603         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
10604         (gl_REPLACE_GETOPT_ALWAYS): New macro.
10605         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
10606         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
10607
10608 2011-05-08  Bruno Haible  <bruno@clisp.org>
10609
10610         getlogin_r: Move AC_LIBOBJ invocations to module description.
10611         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
10612         gl_PREREQ_GETLOGIN_R invocations from here...
10613         * modules/getlogin_r (configure.ac): ... to here.
10614
10615 2011-05-08  Bruno Haible  <bruno@clisp.org>
10616
10617         getlogin: Move AC_LIBOBJ invocations to module description.
10618         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
10619         here...
10620         * modules/getlogin (configure.ac): ... to here.
10621
10622 2011-05-08  Bruno Haible  <bruno@clisp.org>
10623
10624         getloadavg: Move AC_LIBOBJ invocations to module description.
10625         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
10626         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
10627         * modules/getloadavg (configure.ac): ... to here.
10628
10629 2011-05-08  Bruno Haible  <bruno@clisp.org>
10630
10631         gethrxtime: Move AC_LIBOBJ invocations to module description.
10632         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
10633         LIB_GETHRXTIME from here...
10634         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
10635         invocations from here...
10636         * modules/gethrxtime (configure.ac): ... to here.
10637
10638 2011-05-08  Bruno Haible  <bruno@clisp.org>
10639
10640         gethostname: Move AC_LIBOBJ invocations to module description.
10641         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
10642         gl_PREREQ_GETHOSTNAME invocations from here...
10643         * modules/gethostname (configure.ac): ... to here.
10644
10645 2011-05-08  Bruno Haible  <bruno@clisp.org>
10646
10647         getgroups: Move AC_LIBOBJ invocations to module description.
10648         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
10649         here...
10650         * modules/getgroups (configure.ac): ... to here.
10651
10652 2011-05-08  Bruno Haible  <bruno@clisp.org>
10653
10654         getdtablesize: Move AC_LIBOBJ invocations to module description.
10655         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
10656         invocation from here...
10657         * modules/getdtablesize (configure.ac): ... to here.
10658
10659 2011-05-08  Bruno Haible  <bruno@clisp.org>
10660
10661         getdomainname: Move AC_LIBOBJ invocations to module description.
10662         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
10663         gl_PREREQ_GETDOMAINNAME invocations from here...
10664         * modules/getdomainname (configure.ac): ... to here.
10665
10666 2011-05-08  Bruno Haible  <bruno@clisp.org>
10667
10668         getline: Move AC_LIBOBJ invocations to module description.
10669         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
10670         invocations from here...
10671         * modules/getline (configure.ac): ... to here.
10672
10673 2011-05-08  Bruno Haible  <bruno@clisp.org>
10674
10675         getline: Simplify.
10676         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
10677         It's already handled through the module dependency.
10678
10679 2011-05-08  Bruno Haible  <bruno@clisp.org>
10680
10681         getdelim: Move AC_LIBOBJ invocations to module description.
10682         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
10683         and gl_PREREQ_GETDELIM invocations from here...
10684         * modules/getdelim (configure.ac): ... to here.
10685         (Depends-on): Fix condition.
10686
10687 2011-05-08  Bruno Haible  <bruno@clisp.org>
10688
10689         getcwd: Move AC_LIBOBJ invocations to module description.
10690         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
10691         invocations from here...
10692         * modules/getcwd (configure.ac): ... to here.
10693
10694 2011-05-08  Bruno Haible  <bruno@clisp.org>
10695
10696         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
10697         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
10698         here...
10699         * modules/getcwd-lgpl (configure.ac): ... to here.
10700
10701 2011-05-07  Bruno Haible  <bruno@clisp.org>
10702
10703         crypto/gc: Move AC_LIBOBJ invocations to module description.
10704         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
10705         * modules/crypto/gc (configure.ac): ... to here.
10706
10707 2011-05-07  Bruno Haible  <bruno@clisp.org>
10708
10709         fwriting: Move AC_LIBOBJ invocations to module description.
10710         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
10711         here...
10712         * modules/fwriting (configure.ac): ... to here.
10713
10714 2011-05-07  Bruno Haible  <bruno@clisp.org>
10715
10716         fwritable: Move AC_LIBOBJ invocations to module description.
10717         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
10718         here...
10719         * modules/fwritable (configure.ac): ... to here.
10720
10721 2011-05-07  Bruno Haible  <bruno@clisp.org>
10722
10723         futimens: Move AC_LIBOBJ invocations to module description.
10724         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
10725         here...
10726         * modules/futimens (configure.ac): ... to here.
10727
10728 2011-05-07  Bruno Haible  <bruno@clisp.org>
10729
10730         ftruncate: Move AC_LIBOBJ invocations to module description.
10731         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
10732         gl_PREREQ_FTRUNCATE invocations from here...
10733         * modules/ftruncate (configure.ac): ... to here.
10734
10735 2011-05-07  Bruno Haible  <bruno@clisp.org>
10736
10737         fsync: Move AC_LIBOBJ invocations to module description.
10738         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
10739         invocations from here...
10740         * modules/fsync (configure.ac): ... to here.
10741
10742 2011-05-07  Bruno Haible  <bruno@clisp.org>
10743
10744         fsusage: Move AC_LIBOBJ invocations to module description.
10745         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
10746         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
10747         * modules/fsusage (configure.ac): ... to here.
10748
10749 2011-05-07  Bruno Haible  <bruno@clisp.org>
10750
10751         freopen: Move AC_LIBOBJ invocations to module description.
10752         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
10753         invocations from here...
10754         * modules/freopen (configure.ac): ... to here.
10755
10756 2011-05-07  Bruno Haible  <bruno@clisp.org>
10757
10758         free: Move AC_LIBOBJ invocations to module description.
10759         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
10760         invocations from here...
10761         * modules/free (configure.ac): ... to here.
10762
10763 2011-05-07  Bruno Haible  <bruno@clisp.org>
10764
10765         freadable: Move AC_LIBOBJ invocations to module description.
10766         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
10767         here...
10768         * modules/freadable (configure.ac): ... to here.
10769
10770 2011-05-07  Bruno Haible  <bruno@clisp.org>
10771
10772         fpurge: Move AC_LIBOBJ invocations to module description.
10773         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
10774         invocations from here...
10775         * modules/fpurge (configure.ac): ... to here.
10776
10777 2011-05-07  Bruno Haible  <bruno@clisp.org>
10778
10779         fpending: Move AC_LIBOBJ invocations to module description.
10780         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
10781         gl_FUNC_FPENDING.
10782         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
10783         invocations from here...
10784         * modules/fpending (configure.ac): ... to here.
10785
10786 2011-05-07  Bruno Haible  <bruno@clisp.org>
10787
10788         fopen: Move AC_LIBOBJ invocations to module description.
10789         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
10790         invocations from here...
10791         * modules/fopen (configure.ac): ... to here.
10792
10793 2011-05-07  Bruno Haible  <bruno@clisp.org>
10794
10795         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
10796         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
10797         gl_FUNC_FNMATCH_POSIX.
10798         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
10799         invocations from here...
10800         * modules/fnmatch (configure.ac): ... to here.
10801         * modules/fnmatch-gnu (configure.ac): ... and here.
10802
10803 2011-05-07  Bruno Haible  <bruno@clisp.org>
10804
10805         flock: Move AC_LIBOBJ invocations to module description.
10806         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
10807         invocations from here...
10808         * modules/flock (configure.ac): ... to here.
10809
10810 2011-05-07  Bruno Haible  <bruno@clisp.org>
10811
10812         fileblocks: Move AC_LIBOBJ invocations to module description.
10813         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
10814         gl_PREREQ_FILEBLOCKS invocations from here...
10815         * modules/fileblocks (configure.ac): ... to here.
10816
10817 2011-05-06  Bruno Haible  <bruno@clisp.org>
10818
10819         fflush: Move AC_LIBOBJ invocations to module description.
10820         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
10821         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
10822         invocations from here...
10823         * modules/fflush (configure.ac): ... to here.
10824
10825 2011-05-06  Bruno Haible  <bruno@clisp.org>
10826
10827         fdopendir: Move AC_LIBOBJ invocations to module description.
10828         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
10829         here...
10830         * modules/fdopendir (configure.ac): ... to here.
10831         (Depends-on): Improve conditions.
10832
10833 2011-05-06  Bruno Haible  <bruno@clisp.org>
10834
10835         _Exit: Move AC_LIBOBJ invocations to module description.
10836         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
10837         invocations from here...
10838         * modules/_Exit (configure.ac): ... to here.
10839
10840 2011-05-21  Bruno Haible  <bruno@clisp.org>
10841
10842         euidaccess: Respect rules for use of AC_LIBOBJ.
10843         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
10844         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
10845         from here...
10846         * modules/euidaccess (configure.ac): ... to here.
10847
10848 2011-05-06  Bruno Haible  <bruno@clisp.org>
10849
10850         error: Move AC_LIBOBJ invocations to module description.
10851         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
10852         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
10853         invocations from here...
10854         * modules/error (configure.ac): ... to here.
10855
10856 2011-05-06  Bruno Haible  <bruno@clisp.org>
10857
10858         duplocale: Move AC_LIBOBJ invocations to module description.
10859         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
10860         gl_PREREQ_DUPLOCALE invocations from here...
10861         * modules/duplocale (configure.ac): ... to here.
10862
10863 2011-05-05  Bruno Haible  <bruno@clisp.org>
10864
10865         dirfd: Move AC_LIBOBJ invocations to module description.
10866         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
10867         gl_FUNC_DIRFD.
10868         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
10869         here...
10870         * modules/dirfd (configure.ac): ... to here.
10871         (Depends-on): Fix condition.
10872
10873 2011-05-05  Bruno Haible  <bruno@clisp.org>
10874
10875         chown: Respect rules for use of AC_LIBOBJ.
10876         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
10877         * modules/chown (configure.ac): ... to here.
10878
10879 2011-05-05  Bruno Haible  <bruno@clisp.org>
10880
10881         chdir-long: Move AC_LIBOBJ invocations to module description.
10882         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
10883         gl_PREREQ_CHDIR_LONG invocations from here...
10884         * modules/chdir-long (configure.ac): ... to here.
10885
10886 2011-05-05  Bruno Haible  <bruno@clisp.org>
10887
10888         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
10889         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
10890         from here...
10891         * modules/canonicalize-lgpl (configure.ac): ... to here.
10892
10893 2011-05-05  Bruno Haible  <bruno@clisp.org>
10894
10895         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
10896         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
10897         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
10898         REPLACE_CALLOC.
10899         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
10900         * modules/calloc-gnu (configure.ac): Likewise.
10901
10902 2011-05-05  Bruno Haible  <bruno@clisp.org>
10903
10904         btowc: Move AC_LIBOBJ invocations to module description.
10905         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
10906         invocations from here...
10907         * modules/btowc (configure.ac): ... to here.
10908
10909 2011-05-21  Bruno Haible  <bruno@clisp.org>
10910
10911         atexit: Move AC_LIBOBJ invocations to module description.
10912         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
10913         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
10914         here...
10915         * modules/atexit (configure.ac): ... to here.
10916
10917 2011-05-05  Bruno Haible  <bruno@clisp.org>
10918
10919         atoll: Move AC_LIBOBJ invocations to module description.
10920         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
10921         invocations from here...
10922         * modules/atoll (configure.ac): ... to here.
10923
10924 2011-05-05  Bruno Haible  <bruno@clisp.org>
10925
10926         argz: Move AC_LIBOBJ invocations to module description.
10927         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
10928         * modules/argz (configure.ac): ... to here.
10929
10930 2011-05-05  Bruno Haible  <bruno@clisp.org>
10931
10932         alphasort: Move AC_LIBOBJ invocations to module description.
10933         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
10934         gl_PREREQ_ALPHASORT invocations from here...
10935         * modules/alphasort (configure.ac): ... to here.
10936
10937 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
10938
10939         verify: new macro verify_expr; verify_true deprecated
10940         * NEWS: Mention this.
10941         * doc/verify.texi (Compile-time Assertions): Document this.
10942         * lib/verify.h (verify_true): Deprecate.
10943         (verify_expr): New macro.
10944         * tests/test-verify.c (function): Test verify_expr.
10945
10946 2011-06-14  Jim Meyering  <meyering@redhat.com>
10947
10948         init.sh: give more portable redirection-related advice in a comment
10949         * tests/init.sh (stderr_fileno_): Update the advice in comments.
10950         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
10951         for lots of discussion.  Stefano Lattarini suggested the solution
10952         of putting "9>&2" after the command.  Reported by Bruno Haible.
10953
10954 2011-06-13  Bruno Haible  <bruno@clisp.org>
10955
10956         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
10957         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
10958         'none'.
10959
10960 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
10961
10962         ftoastr: use strtof only if HAVE_STRTOF
10963         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
10964         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
10965         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
10966         * modules/ftoastr (configure.ac): Check for strtof.
10967
10968 2011-06-13  Bruno Haible  <bruno@clisp.org>
10969
10970         gnulib-tool: Addendum to 2011-06-08 commit.
10971         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
10972         and --witness-c-macro have been given, augment AM_CPPFLAGS.
10973
10974 2011-06-13  Bruno Haible  <bruno@clisp.org>
10975
10976         fseeko: Provide a non-inline replacement of fseek().
10977         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
10978         * modules/fseeko (Depends-on): Add fseek.
10979         * modules/fseek (License): Change to LGPLv2+.
10980
10981 2011-06-13  Bruno Haible  <bruno@clisp.org>
10982
10983         ftello: Provide a non-inline replacement of ftell().
10984         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
10985         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
10986         not have ftello() (such as on mingw).
10987         * modules/ftello (Depends-on): Add ftell.
10988         * modules/ftell (License): Change to LGPLv2+.
10989
10990 2011-05-07  Bruno Haible  <bruno@clisp.org>
10991
10992         ftell: Move AC_LIBOBJ invocations to module description.
10993         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
10994         * modules/ftell (configure.ac): ... to here.
10995
10996 2011-05-07  Bruno Haible  <bruno@clisp.org>
10997
10998         ftello: Respect rules for use of AC_LIBOBJ.
10999         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
11000         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
11001         here...
11002         * modules/ftello (configure.ac): ... to here.
11003
11004 2011-05-07  Bruno Haible  <bruno@clisp.org>
11005
11006         fseeko: Simplify.
11007         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
11008         (gl_FUNC_FSEEKO): Inline it here.
11009
11010 2011-05-07  Bruno Haible  <bruno@clisp.org>
11011
11012         fseek: Move AC_LIBOBJ invocations to module description.
11013         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
11014         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
11015         * modules/fseek (configure.ac): ... to here.
11016
11017 2011-05-07  Bruno Haible  <bruno@clisp.org>
11018
11019         fseek: Respect rules for use of AC_LIBOBJ.
11020         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
11021         here...
11022         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
11023
11024 2011-05-07  Bruno Haible  <bruno@clisp.org>
11025
11026         fseeko: Respect rules for use of AC_LIBOBJ.
11027         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
11028         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
11029         here...
11030         * modules/fseeko (configure.ac): ... to here.
11031
11032 2011-06-13  Bruno Haible  <bruno@clisp.org>
11033
11034         gnulib-tool: Allow comments in the 'Depends-on' section.
11035         * doc/gnulib.texi (Module description): Mention comment syntax in the
11036         Depends-on section.
11037         * gnulib-tool (func_get_dependencies): Filter out comment lines.
11038
11039 2011-06-13  Bruno Haible  <bruno@clisp.org>
11040
11041         file-set.h: guard __attibute__ use, now that it's not always defined
11042         * lib/file-set.h (record_file): Use __attribute__ only with compiler
11043         versions that support it.  This fixes a coreutils build failure with
11044         the vendor cc on HP-UX 11.31.
11045
11046 2011-06-12  Bruno Haible  <bruno@clisp.org>
11047
11048         acl: Add support for HP-UX >= 11.11 JFS ACLs.
11049         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
11050         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
11051         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
11052         (acl, aclsort): New declarations.
11053         (aclv_nontrivial): New declaration.
11054         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
11055         (file_has_acl): Read also the second kind of HP-UX ACLs.
11056         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
11057         kind of HP-UX ACLs if the first kind fails.
11058         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
11059         second kind of HP-UX ACLs.
11060         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
11061         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
11062         agree.
11063         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
11064         hpuxjfs.
11065         Handle hpuxjfs.
11066         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
11067         hpuxjfs.
11068         Handle hpuxjfs.
11069         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
11070         (func_test_same_acls): Use both lsacl and getacl.
11071         Handle hpuxjfs.
11072         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
11073         (func_test_same_acls): Use both lsacl and getacl.
11074         Handle hpuxjfs.
11075
11076 2011-06-12  Bruno Haible  <bruno@clisp.org>
11077
11078         acl: Complete the 2010-08-10 fix.
11079         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
11080         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
11081         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
11082         explicitly.
11083         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
11084         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
11085
11086 2011-06-12  Bruno Haible  <bruno@clisp.org>
11087
11088         spawn-pipe tests: Comments.
11089         * tests/test-spawn-pipe-child.c (main): Update comment.
11090         Reported by James Youngman <jay@gnu.org>.
11091
11092 2011-06-11  James Youngman  <jay@gnu.org>
11093
11094         New module 'stat-size'.
11095         * modules/stat-size: New module.  Provides macros for accessing
11096         file size information in instances of struct stat.  Depends on the
11097         fileblocks module because it calls st_blocks.
11098         * lib/stat-size.h: New file, adapted from coreutils' system.h.
11099         * doc/gnulib.texi: Include stat-size.texi.
11100         * doc/stat-size.texi: Documentation for this module.
11101         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
11102         * m4/fileblocks.m4: Mention that stat-size depends on the call to
11103         AC_STRUCT_ST_BLOCKS.
11104
11105 2011-06-09  Bruno Haible  <bruno@clisp.org>
11106
11107         thread: Support pthreads-win32.
11108         * lib/glthread/thread.h (gl_thread_self): Define differently on
11109         pthreads-win32.
11110         (gl_null_thread): New declaration.
11111         (gl_thread_self_pointer): New macro.
11112         * lib/glthread/thread.c (gl_null_thread): New constant.
11113         * tests/test-lock.c: Use gl_thread_self_pointer instead of
11114         gl_thread_self.
11115         * tests/test-tls.c: Likewise.
11116         Suggested by Paul Eggert. Reported by Eric Blake.
11117
11118 2011-06-09  Bruno Haible  <bruno@clisp.org>
11119
11120         thread: Fix confusion between NULL and 0.
11121         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
11122         Reported by Paul Eggert.
11123
11124 2011-06-09  Bruno Haible  <bruno@clisp.org>
11125
11126         spawn-pipe tests: Avoid test failure on HP-UX 11.
11127         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
11128         is closed.
11129
11130 2011-06-09  Bruno Haible  <bruno@clisp.org>
11131
11132         acl tests: Fix compilation error on HP-UX 11.
11133         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
11134
11135 2011-06-09  Bruno Haible  <bruno@clisp.org>
11136
11137         rmdir: Avoid test failure on HP-UX 10.20.
11138         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
11139         EEXIST.
11140
11141 2011-06-08  Eric Blake  <eblake@redhat.com>
11142
11143         perror: fix test on mingw
11144         * modules/perror-tests (Depends-on): Add dup2.
11145
11146         strerror_r-posix: fix on MacOS
11147         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
11148         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
11149         logic bug.
11150         * lib/strerror_r.c (strerror_r): Fix the bug.
11151         * lib/strerror.c (strerror): Likewise.
11152         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11153         problem.
11154         * doc/posix-functions/strerror.texi (strerror): Likewise.
11155         * doc/posix-functions/perror.texi (perror): Likewise.
11156         * tests/test-strerror.c (main): Enhance test.
11157         * tests/test-strerror_r.c (main): Likewise.
11158
11159 2011-06-08  Bruno Haible  <bruno@clisp.org>
11160
11161         gnulib-tool: Better isolation between different gnulib-tool invocations.
11162         * gnulib-tool: New option --witness-c-macro.
11163         (witness_c_macro): New variable.
11164         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
11165         AM_CPPFLAGS define it as a C macro.
11166         (func_emit_tests_Makefile_am): Likewise.
11167         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
11168         read it from there.
11169         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
11170         m4_define, not AC_DEFUN.
11171         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
11172         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
11173         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
11174         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
11175         s|...|...|, to substitute the values of the GNULIB_* module indicator
11176         variables.
11177         * modules/dirent (Makefile.am): Likewise.
11178         * modules/fcntl-h (Makefile.am): Likewise.
11179         * modules/iconv-h (Makefile.am): Likewise.
11180         * modules/langinfo (Makefile.am): Likewise.
11181         * modules/locale (Makefile.am): Likewise.
11182         * modules/math (Makefile.am): Likewise.
11183         * modules/netdb (Makefile.am): Likewise.
11184         * modules/poll-h (Makefile.am): Likewise.
11185         * modules/pty (Makefile.am): Likewise.
11186         * modules/search (Makefile.am): Likewise.
11187         * modules/signal (Makefile.am): Likewise.
11188         * modules/spawn (Makefile.am): Likewise.
11189         * modules/stdio (Makefile.am): Likewise.
11190         * modules/stdlib (Makefile.am): Likewise.
11191         * modules/string (Makefile.am): Likewise.
11192         * modules/sys_ioctl (Makefile.am): Likewise.
11193         * modules/sys_select (Makefile.am): Likewise.
11194         * modules/sys_socket (Makefile.am): Likewise.
11195         * modules/sys_stat (Makefile.am): Likewise.
11196         * modules/sys_times (Makefile.am): Likewise.
11197         * modules/sys_utsname (Makefile.am): Likewise.
11198         * modules/sys_wait (Makefile.am): Likewise.
11199         * modules/termios (Makefile.am): Likewise.
11200         * modules/time (Makefile.am): Likewise.
11201         * modules/unistd (Makefile.am): Likewise.
11202         * modules/wchar (Makefile.am): Likewise.
11203
11204 2011-06-08  Eric Blake  <eblake@redhat.com>
11205
11206         strerror: simplify replacement
11207         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
11208         * modules/strerror (configure.ac): No prereqs needed here...
11209         * modules/strerror-override (configure.ac): ...but this needs it.
11210         (Files): Add file for needed prereq macro.
11211
11212 2011-06-08  Bruno Haible  <bruno@clisp.org>
11213
11214         strerror_r-posix: Tweaks.
11215         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
11216         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
11217         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
11218         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
11219         (gl_FUNC_STRERROR_R): ... to here.
11220         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
11221
11222 2011-06-07  Eric Blake  <eblake@redhat.com>
11223
11224         perror: document fixed bugs
11225         * doc/posix-functions/perror.texi (perror): Document recent
11226         patches.
11227
11228 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
11229
11230         stat-time: get_stat_birthtime failure is better-defined
11231         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
11232         return a timestamp whose tv_sec and tv_nsec values are both -1.
11233         Previously, the spec said only that the tv_nsec value was negative.
11234         This upward-compatible change simplifies GNU tar a bit.
11235
11236 2011-06-07  Eric Blake  <eblake@redhat.com>
11237
11238         strerror_r-posix: work around cygwin 1.7.9
11239         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
11240         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
11241         bug without replacing strerror_r.
11242         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
11243         strerror_r is buggy, but without requiring strerror_r compilation.
11244         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
11245
11246         test-perror: relax test to ignore cygwin bug
11247         * tests/test-perror2.c (main): Relax test on requiring detection
11248         of stream errors, and use unbuffered stream.
11249         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
11250         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
11251         * doc/posix-functions/fputc.texi (fputc): Likewise.
11252         * doc/posix-functions/fputs.texi (fputs): Likewise.
11253         * doc/posix-functions/fputws.texi (fputws): Likewise.
11254         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
11255         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
11256         * doc/posix-functions/getopt.texi (getopt): Likewise.
11257         * doc/posix-functions/perror.texi (perror): Likewise.
11258         * doc/posix-functions/printf.texi (printf): Likewise.
11259         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
11260         * doc/posix-functions/psignal.texi (psignal): Likewise.
11261         * doc/posix-functions/putc.texi (putc): Likewise.
11262         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
11263         Likewise.
11264         * doc/posix-functions/putchar.texi (putchar): Likewise.
11265         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
11266         Likewise.
11267         * doc/posix-functions/puts.texi (puts): Likewise.
11268         * doc/posix-functions/putwc.texi (putwc): Likewise.
11269         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
11270         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
11271         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11272         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
11273         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11274         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
11275         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11276         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
11277
11278 2011-05-22  Bruno Haible  <bruno@clisp.org>
11279
11280         strerror: Move AC_LIBOBJ invocations to module description.
11281         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
11282         gl_PREREQ_STRERROR invocations from here...
11283         * modules/strerror (configure.ac): ... to here.
11284
11285 2011-05-21  Bruno Haible  <bruno@clisp.org>
11286
11287         perror: Use common idiom.
11288         * modules/perror (configure.ac): Reorder statements.
11289
11290 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
11291
11292         tests: fix usage message in 'mktempd_'
11293         * tests/init.sh (mktempd_): In the usage message, use literal
11294         'mktempd_', not '$ME' (which is even undefined), as the name of
11295         the subroutine.
11296
11297 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
11298
11299         tests init: new function 'fatal_', for hard errors
11300         Before this patch, the only way offered by tests/init.sh to
11301         properly signal a hard error was the `framework_failure_'
11302         function.  But the error message issued by that function,
11303         as its name would suggest, refers to a set-up failure in the
11304         testsuite, while hard errors can obviously also be due to
11305         other reasons.  The best way to fix this inconsistency is to
11306         introduce a new function with a more general error message.
11307         * tests/init.sh (fatal_): New function.
11308
11309 2011-06-06  Eric Blake  <eblake@redhat.com>
11310
11311         canonicalize-lgpl: use common idiom
11312         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
11313         over newer POSIX -Rf.
11314         Reported by Bruno Haible.
11315
11316         canonicalize-lgpl: work around AIX realpath bug
11317         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
11318         * doc/posix-functions/realpath.texi (realpath): Document it.
11319         Reported by Bruno Haible.
11320
11321         strerror: work around FreeBSD bug
11322         * lib/strerror.c (strerror): Special case 0.
11323         Reported by Bruno Haible.
11324
11325         strerror-override: avoid bloating errno module
11326         * modules/errno (Files, configure.ac): Move replacement strings...
11327         * modules/strerror-override: ...to new module.
11328         * modules/strerror (Depends-on): Add strerror-override.
11329         * modules/strerror_r-posix (Depends-on): Likewise.
11330         * MODULES.html.sh: Document new module.
11331         Reported by Bruno Haible.
11332
11333 2011-06-06  Bruno Haible  <bruno@clisp.org>
11334
11335         spawn-pipe tests: Rename program.
11336         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
11337         * tests/test-spawn-pipe-child.c: Update comment.
11338         * tests/test-spawn-pipe.sh: Update.
11339         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
11340
11341         spawn-pipe tests: Link the child program only against libc.
11342         * tests/test-spawn-pipe-child.c: New file, extracted from
11343         tests/test-spawn-pipe.c.
11344         (main): Expect only one argument.
11345         (is_open): New function, copied from tests/test-pipe.c.
11346         * tests/test-spawn-pipe.c: Don't include <errno.h>.
11347         (child_main): Remove function.
11348         (test_pipe): Pass only one argument to the child program.
11349         (main): Remove child process code. Expect the child program's name as
11350         first argument.
11351         * tests/test-spawn-pipe.sh: Pass the child program's name as first
11352         argument.
11353         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
11354         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
11355         test-spawn-pipe-child against no libraries.
11356
11357 2011-06-06  Bruno Haible  <bruno@clisp.org>
11358
11359         careadlinkat: Avoid mismatch between ssize_t and int.
11360         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
11361         * lib/careadlinkat.c (careadlinkatcwd): Define always.
11362
11363 2011-06-06  Jim Meyering  <meyering@redhat.com>
11364
11365         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
11366         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
11367         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
11368
11369 2011-06-05  Bruno Haible  <bruno@clisp.org>
11370
11371         ansi-c++-opt: Interoperability with libtool.
11372         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
11373         set the variable to "no", not to ":".
11374         * NEWS: Mention the change.
11375
11376 2011-06-05  Bruno Haible  <bruno@clisp.org>
11377
11378         acl: Fix test failure on AIX 7.
11379         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
11380         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
11381
11382 2011-06-05  Bruno Haible  <bruno@clisp.org>
11383
11384         pipe-filter-ii: Fix test failure on AIX and IRIX.
11385         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
11386         with EAGAIN, retry with a smaller buffer size.
11387
11388 2011-06-05  Bruno Haible  <bruno@clisp.org>
11389
11390         localename: Fix link dependencies.
11391         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
11392         * modules/localename-tests (Makefile.am): Link test-localename with
11393         $(LIBTHREAD).
11394
11395 2011-06-05  Bruno Haible  <bruno@clisp.org>
11396
11397         error: Avoid gcc warning.
11398         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
11399
11400 2011-06-05  Bruno Haible  <bruno@clisp.org>
11401
11402         unsetenv: Avoid gcc warning.
11403         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
11404
11405 2011-06-05  Bruno Haible  <bruno@clisp.org>
11406
11407         setenv: Avoid gcc warning.
11408         * lib/setenv.c (setenv): Provide declaration if system lacks it.
11409
11410 2011-06-05  Bruno Haible  <bruno@clisp.org>
11411
11412         sys_select: Ensure memset is declared also on AIX 7.
11413         * lib/sys_select.in.h: Include <string.h> also on AIX.
11414         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
11415         self-contained also on AIX 7.1.
11416
11417 2011-06-04  Jim Meyering  <meyering@redhat.com>
11418
11419         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
11420         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
11421         function name, "error".
11422         (_gl_translatable_diag_func_re): New configurable variable.
11423
11424 2011-06-04  Bruno Haible  <bruno@clisp.org>
11425
11426         getopt: Avoid gcc warning.
11427         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
11428
11429 2011-06-04  Bruno Haible  <bruno@clisp.org>
11430
11431         strerror_r: Fix comments.
11432         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
11433         commit.
11434
11435 2011-06-04  Bruno Haible  <bruno@clisp.org>
11436
11437         perror: Fix compilation error.
11438         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
11439         Undefine fprintf, not sprintf.
11440         * modules/perror (Depends-on): Remove intprops, verify.
11441
11442 2011-06-04  Bruno Haible  <bruno@clisp.org>
11443
11444         setlocale: Enable replacement on Cygwin 1.5.
11445         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
11446         Cygwin 1.5.x.
11447         * doc/posix-functions/setlocale.texi: Mention that the problem with the
11448         LC_CTYPE category also exists on Cygwin 1.5.x.
11449
11450 2011-06-04  Bruno Haible  <bruno@clisp.org>
11451
11452         strerror-override: Don't disable symbol renamings.
11453         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
11454         * lib/strerror-override.c: Include config.h.
11455         (strerror_override): Don't undefine.
11456
11457 2011-06-03  Bruno Haible  <bruno@clisp.org>
11458
11459         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
11460         * lib/localename.h: Update copyright header.
11461         * lib/localename.c: Likewise.
11462         * lib/relocatable.h: Likewise.
11463         * lib/relocatable.c: Likewise.
11464
11465 2011-06-02  Bruno Haible  <bruno@clisp.org>
11466
11467         doc: Fix a module name.
11468         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
11469
11470 2011-06-02  Bruno Haible  <bruno@clisp.org>
11471
11472         pipe2: Remove dependency on 'nonblocking' module.
11473         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
11474         O_NONBLOCK is defined by gnulib.
11475         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
11476         is zero.
11477         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
11478         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
11479         defined by gnulib.
11480         (get_nonblocking_flag): New function.
11481         (main): Test O_NONBLOCK flag only if it is nonzero.
11482         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
11483
11484 2011-06-03  Jim Meyering  <meyering@redhat.com>
11485
11486         maint: three new prohibit-header-without-use rules
11487         Prohibit use of cloexec.h, posixver.h, same.h without use.
11488         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
11489         (sc_prohibit_posixver_without_use): Likewise.
11490         (sc_prohibit_same_without_use): Likewise.
11491
11492 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
11493
11494         allocator: 'die' routine is now given requested size
11495         * lib/allocator.h (struct allocator.die): New size arg.
11496         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
11497         If the actual problem is an ssize_t limitation, not a size_t or
11498         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
11499
11500 2011-06-01  Eric Blake  <eblake@redhat.com>
11501
11502         strerror: drop strerror_r dependency
11503         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
11504         * lib/strerror-override.c (strerror_override): ...to new file.
11505         * lib/strerror-override.h: Add prototype.
11506         * lib/strerror-impl.h: Delete.
11507         * lib/strerror.c (strerror): New implementation.
11508         * modules/errno (Files): Add new files.
11509         (configure.ac): Compile new file as appropriate.
11510         * modules/strerror (Files): Drop unused file.
11511         (Depends-on): Drop strerror_r-posix.
11512         * MODULES.html.sh: Document strerror_r-posix.
11513         Requested by Sam Steingold.
11514
11515         perror: call strerror_r directly
11516         * modules/perror (Files): Drop strerror-impl.h.
11517         * lib/perror.c (perror): Use our own stack buffer, rather than
11518         calling a wrapper that uses static storage.
11519         * doc/posix-functions/perror.texi (perror): Document a limitation
11520         of our replacement.
11521
11522         strerror_r: fix includes for FreeBSD
11523         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
11524         since we use abort on some platforms.
11525         Reported by Matthias Bolte.
11526
11527 2011-05-31  Bruno Haible  <bruno@clisp.org>
11528
11529         Fix link errors in tests: openat-die uses gettext-h.
11530         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
11531         against $(LIBINTL).
11532         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
11533         against $(LIBINTL).
11534         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
11535         $(LIBINTL).
11536         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
11537         against $(LIBINTL).
11538         * modules/linkat-tests (Makefile.am): Link test-linkat against
11539         $(LIBINTL).
11540         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
11541         $(LIBINTL).
11542         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
11543         against $(LIBINTL).
11544         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
11545         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
11546         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
11547         $(LIBINTL).
11548         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
11549         $(LIBINTL).
11550         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
11551         $(LIBINTL).
11552         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11553
11554 2011-05-31  Bruno Haible  <bruno@clisp.org>
11555
11556         Fix link errors in tests: wait-process uses gettext-h.
11557         * modules/nonblocking-pipe-tests (Makefile.am): Set
11558         test_nonblocking_pipe_main_LDADD.
11559         * modules/nonblocking-socket-tests (Makefile.am): Link
11560         test-nonblocking-socket-main against $(LIBINTL).
11561         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11562
11563 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
11564
11565         assert-h: work around 'verify' incompatibility
11566         * lib/verify.h: Use @...@ directives, not ifdef.
11567         * modules/assert-h (assert.h): Implement the directives.
11568         (assert.h): Substitute the symbol-prefix more consistently.
11569
11570 2011-05-29  Jim Meyering  <meyering@redhat.com>
11571
11572         trim: remove three superfluous assignments
11573         * lib/trim.c (trim2): Remove three superfluous assignments
11574         and correct brace positioning.
11575
11576 2011-05-29  Bruno Haible  <bruno@clisp.org>
11577
11578         wctype-h: Avoid namespace pollution on Solaris 2.6.
11579         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
11580         identifiers.
11581         * doc/posix-headers/wctype.texi: Mention the problem.
11582         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11583
11584 2011-05-28  Jim Meyering  <meyering@redhat.com>
11585
11586         parse-datetime.y: accommodate -Wstrict-overflow
11587         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
11588         placate -Wstrict-overflow.
11589
11590         trim: avoid a warning from -O2 -Wstrict-overflow
11591         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
11592
11593 2011-05-29  Bruno Haible  <bruno@clisp.org>
11594
11595         gnulib-tool: Fix bug in yesterday's commit.
11596         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
11597         twice.
11598
11599 2011-05-29  Bruno Haible  <bruno@clisp.org>
11600
11601         Allow multiple gnulib generated include files to be combined.
11602         * gnulib-tool (func_compute_include_guard_prefix): New function.
11603         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
11604         ${gl_include_guard_prefix} references.
11605         (func_import, func_create_testdir): Invoke
11606         func_compute_include_guard_prefix.
11607         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
11608         * lib/ctype.in.h: Likewise.
11609         * lib/dirent.in.h: Likewise.
11610         * lib/errno.in.h: Likewise.
11611         * lib/fcntl.in.h: Likewise.
11612         * lib/float.in.h: Likewise.
11613         * lib/getopt.in.h: Likewise.
11614         * lib/iconv.in.h: Likewise.
11615         * lib/langinfo.in.h: Likewise.
11616         * lib/locale.in.h: Likewise.
11617         * lib/math.in.h: Likewise.
11618         * lib/netdb.in.h: Likewise.
11619         * lib/netinet_in.in.h: Likewise.
11620         * lib/poll.in.h: Likewise.
11621         * lib/pthread.in.h: Likewise.
11622         * lib/pty.in.h: Likewise.
11623         * lib/sched.in.h: Likewise.
11624         * lib/se-selinux.in.h: Likewise.
11625         * lib/search.in.h: Likewise.
11626         * lib/signal.in.h: Likewise.
11627         * lib/spawn.in.h: Likewise.
11628         * lib/stdarg.in.h: Likewise.
11629         * lib/stddef.in.h: Likewise.
11630         * lib/stdint.in.h: Likewise.
11631         * lib/stdio.in.h: Likewise.
11632         * lib/stdlib.in.h: Likewise.
11633         * lib/string.in.h: Likewise.
11634         * lib/strings.in.h: Likewise.
11635         * lib/sys_file.in.h: Likewise.
11636         * lib/sys_ioctl.in.h: Likewise.
11637         * lib/sys_select.in.h: Likewise.
11638         * lib/sys_socket.in.h: Likewise.
11639         * lib/sys_stat.in.h: Likewise.
11640         * lib/sys_time.in.h: Likewise.
11641         * lib/sys_times.in.h: Likewise.
11642         * lib/sys_uio.in.h: Likewise.
11643         * lib/sys_utsname.in.h: Likewise.
11644         * lib/sys_wait.in.h: Likewise.
11645         * lib/sysexits.in.h: Likewise.
11646         * lib/termios.in.h: Likewise.
11647         * lib/time.in.h: Likewise.
11648         * lib/unistd.in.h: Likewise.
11649         * lib/wchar.in.h: Likewise.
11650         * lib/wctype.in.h: Likewise.
11651         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
11652         * modules/ctype (Makefile.am): Likewise.
11653         * modules/dirent (Makefile.am): Likewise.
11654         * modules/errno (Makefile.am): Likewise.
11655         * modules/fcntl-h (Makefile.am): Likewise.
11656         * modules/float (Makefile.am): Likewise.
11657         * modules/getopt-posix (Makefile.am): Likewise.
11658         * modules/iconv-h (Makefile.am): Likewise.
11659         * modules/langinfo (Makefile.am): Likewise.
11660         * modules/locale (Makefile.am): Likewise.
11661         * modules/math (Makefile.am): Likewise.
11662         * modules/netdb (Makefile.am): Likewise.
11663         * modules/netinet_in (Makefile.am): Likewise.
11664         * modules/poll-h (Makefile.am): Likewise.
11665         * modules/pthread (Makefile.am): Likewise.
11666         * modules/pty (Makefile.am): Likewise.
11667         * modules/sched (Makefile.am): Likewise.
11668         * modules/search (Makefile.am): Likewise.
11669         * modules/selinux-h (Makefile.am): Likewise.
11670         * modules/signal (Makefile.am): Likewise.
11671         * modules/spawn (Makefile.am): Likewise.
11672         * modules/stdarg (Makefile.am): Likewise.
11673         * modules/stddef (Makefile.am): Likewise.
11674         * modules/stdint (Makefile.am): Likewise.
11675         * modules/stdio (Makefile.am): Likewise.
11676         * modules/stdlib (Makefile.am): Likewise.
11677         * modules/string (Makefile.am): Likewise.
11678         * modules/strings (Makefile.am): Likewise.
11679         * modules/sys_file (Makefile.am): Likewise.
11680         * modules/sys_ioctl (Makefile.am): Likewise.
11681         * modules/sys_select (Makefile.am): Likewise.
11682         * modules/sys_socket (Makefile.am): Likewise.
11683         * modules/sys_stat (Makefile.am): Likewise.
11684         * modules/sys_time (Makefile.am): Likewise.
11685         * modules/sys_times (Makefile.am): Likewise.
11686         * modules/sys_uio (Makefile.am): Likewise.
11687         * modules/sys_utsname (Makefile.am): Likewise.
11688         * modules/sys_wait (Makefile.am): Likewise.
11689         * modules/sysexits (Makefile.am): Likewise.
11690         * modules/termios (Makefile.am): Likewise.
11691         * modules/time (Makefile.am): Likewise.
11692         * modules/unistd (Makefile.am): Likewise.
11693         * modules/wchar (Makefile.am): Likewise.
11694         * modules/wctype-h (Makefile.am): Likewise.
11695         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
11696
11697 2011-05-29  Bruno Haible  <bruno@clisp.org>
11698
11699         assert-h: Allow multiple gnulib generated replacements to coexist.
11700         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
11701
11702 2011-05-29  Bruno Haible  <bruno@clisp.org>
11703
11704         argp: Allow coexistence with strerror_r-posix module.
11705         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
11706         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
11707         by gnulib's <string.h> replacement), assume it has the POSIX signature,
11708         not the glibc signature.
11709
11710 2011-05-28  Bruno Haible  <bruno@clisp.org>
11711
11712         gnulib-tool: Alternative structure of testdirs, similar to --import.
11713         * gnulib-tool: New option --single-configure.
11714         (func_usage): Document it.
11715         (single_configure): New variable.
11716         (func_modules_transitive_closure_separately,
11717         func_modules_transitive_closure_separately,
11718         func_determine_use_libtests, func_modules_add_dummy_separately,
11719         func_modules_to_filelist_separately): New functions, extracted from
11720         func_import.
11721         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
11722         (func_import): Use the new functions.
11723         (func_create_testdir): Set final_modules. Handle $single_configure =
11724         true case.
11725
11726 2011-05-28  Bruno Haible  <bruno@clisp.org>
11727
11728         getloadavg: Remove an unreliable safety check.
11729         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
11730         getloadavg.c is in place.
11731         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
11732         Reported by Sam Steingold <sds@gnu.org>.
11733
11734 2011-05-28  Bruno Haible  <bruno@clisp.org>
11735
11736         doc: Cleanup yet another file produced by texinfo.tex.
11737         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
11738
11739 2011-05-28  Bruno Haible  <bruno@clisp.org>
11740
11741         Finish the conditional dependencies mechanism.
11742         * gnulib-tool: New option --no-conditional-dependencies.
11743         (func_usage): Document it. Don't mark --conditional-dependencies as
11744         experimental.
11745         (cond_dependencies): The possible values can now be true, false, empty.
11746         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
11747         (func_import): Store setting in gnulib-cache.m4 and read it from there.
11748         * doc/gnulib-tool.texi (Conditional dependencies): New section.
11749
11750 2011-05-28  Bruno Haible  <bruno@clisp.org>
11751
11752         doc: Use a recent texinfo.tex.
11753         * doc/Makefile (tex_opts): New variable.
11754         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
11755
11756 2011-05-28  Jim Meyering  <meyering@redhat.com>
11757
11758         intprops.h: adjust comment to match code change
11759         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
11760         only once, it *may* have side effects.  Also fix an unrelated typo.
11761         (_GL_INT_SIGNED): Likewise.
11762
11763 2011-05-26  Simon Josefsson  <simon@josefsson.org>
11764
11765         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
11766
11767 2011-05-26  Bruno Haible  <bruno@clisp.org>
11768
11769         mbsrchr: Avoid collision with system function on Interix.
11770         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
11771         Reported by Markus Duft <mduft@gentoo.org>.
11772
11773 2011-05-15  James Youngman  <jay@gnu.org>
11774
11775         getopt: for ambiguous options, enumerate the possibilities.
11776         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
11777         the ambiguous options when an ambiguous prefix is given. This was
11778         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
11779         glibc change was
11780         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
11781
11782 2011-05-25  Eric Blake  <eblake@redhat.com>
11783
11784         getcwd: work around mingw bug
11785         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
11786         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11787         Reported by Matthias Bolte.
11788
11789 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
11790
11791         test-intprops: disable -Wtype-limits diagnostics
11792         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
11793         diagnostics.  Otherwise, the integer overflow macros generate many
11794         diagnostics.  Reported by Jim Meyering in
11795         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11796
11797         intprops: shorten, to pacify gcc -Woverlength-strings
11798         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
11799         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
11800         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
11801         likely to run afoul of C compiler limits for string constant lengths.
11802         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11803
11804 2011-05-24  Eric Blake  <eblake@redhat.com>
11805
11806         docs: document recently fixed glibc printf bug
11807         * doc/posix-functions/fprintf.texi (fprintf): Document it.
11808         * doc/posix-functions/printf.texi (printf): Likewise.
11809         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11810         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11811
11812         closein-tests: convert to init.sh
11813         * modules/closein-tests (Files): Add init.sh
11814         * tests/test-closein.sh Use it.
11815
11816         yesno-tests: convert to init.sh
11817         * modules/yesno-tests (Files): Add init.sh.
11818         * tests/test-yesno.sh: Use it.
11819
11820         atexit-tests: ensure reliable exit status
11821         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
11822         Reported by Bruno Haible.
11823
11824 2011-05-24  Bruno Haible  <bruno@clisp.org>
11825
11826         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
11827         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
11828         gl_PREREQ_STRERROR_R invocations from here...
11829         * modules/strerror_r-posix (configure.ac): ... to here.
11830
11831 2011-05-24  Eric Blake  <eblake@redhat.com>
11832
11833         strerror_r: fix missing header
11834         * lib/strerror_r.c: Avoid compiler warning about snprintf.
11835
11836         strerror_r: fix AIX test failures
11837         * lib/strerror_r.c (strerror_r): Convert silent truncation to
11838         ERANGE failure.
11839
11840         strerror_r: fix Solaris test failures
11841         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
11842         failures.
11843         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11844
11845         strerror_r: enforce POSIX recommendations
11846         * lib/strerror_r.c (safe_copy): New helper method.
11847         (strerror_r): Guarantee a non-empty string.
11848         * tests/test-strerror_r.c (main): Enhance tests to incorporate
11849         recent POSIX rulings and to match our strerror guarantees.
11850         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11851
11852 2011-05-24  Jim Meyering  <meyering@redhat.com>
11853
11854         test-perror2.c: avoid warning about unused variable
11855         * tests/test-perror2.c (main): Remove declaration of unused "fp".
11856
11857 2011-05-24  Eric Blake  <eblake@redhat.com>
11858
11859         perror: avoid spurious test failure on HP-UX
11860         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
11861
11862         tests: fix logic bug in init.sh
11863         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
11864         shell.
11865
11866 2011-05-24  Jim Meyering  <meyering@redhat.com>
11867
11868         utimensat: do not reference an out-of-scope buffer
11869         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
11870         declared in an inner scope, yet "times" would be dereferenced outside
11871         the scope in which "ts" was valid.
11872         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
11873         of ts[2] "out/up", so that the use of aliased "times" (via
11874         "times = ts;") does not end up referencing an out-of-scope "ts"
11875
11876         opendir-safer.c: don't clobber errno; don't close negative FD
11877         * lib/opendir-safer.c (opendir_safer):
11878         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
11879         file descriptor, and more importantly, don't clobber the
11880         offending errno value with EINVAL.  Before, upon failure
11881         of dup_safer, we would pass the negative file descriptor to
11882         fdopendir, which would clobber errno.
11883
11884 2011-05-23  Bruno Haible  <bruno@clisp.org>
11885
11886         idcache: Fix module description.
11887         * modules/idcache (Include): Set to "idcache.h".
11888
11889 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
11890
11891         gnulib-tool: fix portability problem with MacOS sed
11892         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
11893         before the "}".  Problem reported by Leo in
11894         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
11895         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
11896         sed_extract_condition1, sed_extract_condition2.
11897
11898 2011-05-23  Bruno Haible  <bruno@clisp.org>
11899
11900         hash: Simplify autoconf macro.
11901         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
11902
11903 2011-05-23  Bruno Haible  <bruno@clisp.org>
11904
11905         getugroups: Fix module description.
11906         * modules/getugroups (Include): Set to "getugroups.h".
11907
11908 2011-05-23  Bruno Haible  <bruno@clisp.org>
11909
11910         linkat: Simplify autoconf macro.
11911         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
11912
11913 2011-05-23  Bruno Haible  <bruno@clisp.org>
11914             Eric Blake  <eblake@redhat.com>
11915
11916         linkat, renameat: Update dependencies.
11917         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
11918         * modules/linkat (Depends-on): Likewise. Remove also readlink,
11919         symlinkat.
11920
11921 2011-05-23  Jim Meyering  <meyering@redhat.com>
11922
11923         maint.mk: more tight_scope improvements
11924         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
11925         (_gl_TS_headers): Define only in if-0'd block.
11926         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
11927         sometimes we must *not* use it.  Adjust uses accordingly.
11928         (sc_tight_scope): Use much simpler grep-based test to determine
11929         whether we skip this rule.
11930
11931         maint.mk: generalize/improve the tight-scope rule
11932         * top/maint.mk: Emit a warning when the test is skipped.
11933         (_gl_TS_dir): Add $(srcdir)/ prefix.
11934         (_gl_TS_function_match): Simplify, rather than trying
11935         to enumerate common types.  Otherwise, it would fail to match an
11936         "extern unsigned char const *" declaration in idutils.
11937         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
11938         a way to support use of that type of macro.
11939         (_gl_TS_var_match): Simplify regexp.
11940         (_gl_TS_obj_files): New configurable variable.
11941         (_gl_TS_headers): Likewise.
11942
11943 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
11944
11945         verify: fix bug when gnulib <assert.h> is also included
11946         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
11947         is defined, not if _GL_STATIC_ASSERT_H is not defined.
11948         Perhaps there's a better way, but this fixes the immediate problem.
11949         Problem reported by Bruno Haible in
11950         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
11951
11952 2011-05-22  Bruno Haible  <bruno@clisp.org>
11953
11954         xgetcwd: Simplify autoconf macro.
11955         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
11956
11957 2011-05-22  Bruno Haible  <bruno@clisp.org>
11958
11959         New module 'mktime-internal'.
11960         * modules/mktime-internal: New file.
11961         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
11962         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
11963         mktime_internal as a C macro if libc has __mktime_internal.
11964         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
11965         conditions.
11966         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
11967
11968 2011-05-22  Bruno Haible  <bruno@clisp.org>
11969
11970         timegm: Correct mktime replacement statements.
11971         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
11972         defining mktime as a C macro. This completes a 2009-07-28 commit.
11973
11974 2011-05-22  Bruno Haible  <bruno@clisp.org>
11975
11976         timegm: Simplify autoconf macro.
11977         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
11978
11979 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11980
11981         clock-time: change to LGPLv2+.
11982         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
11983         BSD-like but we have no mark for that; this is good enough for now.
11984
11985 2011-05-21  Bruno Haible  <bruno@clisp.org>
11986
11987         strerror_r: Fix comments.
11988         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
11989
11990 2011-05-21  Bruno Haible  <bruno@clisp.org>
11991
11992         relocatable-prog-wrapper: Fix possible link error.
11993         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
11994         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
11995         (gl_FUNC_SETENV): ... to here.
11996         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
11997         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
11998
11999 2011-05-21  Bruno Haible  <bruno@clisp.org>
12000
12001         relocatable-prog-wrapper: Assume strerror() exists.
12002         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
12003         m4/strerror.m4.
12004         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
12005         * lib/relocwrapper.c: Remove mention of strerror module.
12006         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
12007         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
12008         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
12009         C macro.
12010
12011 2011-05-21  Bruno Haible  <bruno@clisp.org>
12012
12013         select: Simplify replacement idiom.
12014         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
12015         Win32 platforms.
12016         * lib/sys_select.in.h (select): Simplify accordingly.
12017         * modules/select (Depends-on): Likewise.
12018
12019 2011-05-21  Bruno Haible  <bruno@clisp.org>
12020
12021         mkdir-p: Simplify autoconf macro.
12022         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
12023         gl_FUNC_LCHOWN.
12024
12025 2011-05-21  Eric Blake  <eblake@redhat.com>
12026
12027         strerror_r: avoid clobbering strerror on cygwin
12028         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
12029         fall back instead to sys_errlist.
12030         * modules/strerror (configure.ac): Add witness.
12031         * tests/test-strerror_r.c (main): Enhance test.
12032         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12033         * tests/test-perror2.c (main): Free memory before exit.
12034
12035 2011-05-21  Bruno Haible  <bruno@clisp.org>
12036
12037         mkdtemp: Use gnulib naming conventions.
12038         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
12039         * modules/mkdtemp (configure.ac): Update.
12040
12041 2011-05-20  Eric Blake  <eblake@redhat.com>
12042
12043         strerror_r: avoid corrupting errno on Solaris
12044         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
12045         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12046
12047         strerror_r: avoid compiler warning
12048         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
12049
12050         strerror_r: simplify AIX code
12051         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
12052
12053         test-perror: avoid spurious failure on FreeBSD
12054         * modules/perror-tests (Depends-on): Add strerror, now that
12055         strerror_r no longer pulls it in.
12056
12057 2011-05-20  Bruno Haible  <bruno@clisp.org>
12058
12059         strerror_r-posix: Remove unused dependencies.
12060         * modules/strerror_r-posix (Depends-on): Remove strerror.
12061         Reported by Eric Blake.
12062
12063 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
12064
12065         intprops: remove assumption about A|B representation
12066         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
12067         is a valid integer if both A and B are.  Although this is true for
12068         all known practical hosts, the C standard doesn't guarantee it,
12069         and the code need not assume it.  Also, this change may work around
12070         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
12071         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
12072
12073 2011-05-20  Eric Blake  <eblake@redhat.com>
12074
12075         perror: work around FreeBSD bug
12076         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
12077         is broken.  Move AC_LIBOBJ...
12078         * modules/perror (configure.ac): Here.
12079         * doc/posix-functions/perror.texi (perror): Document this.
12080         * tests/test-perror2.c (main): Enhance test.
12081
12082         test-perror: check for strerror interactions
12083         * tests/macros.h (STREQ): Add macro.
12084         * modules/perror-tests (Files): Add second test.
12085         * tests/test-perror2.c (main): New file.
12086         * doc/posix-functions/perror.texi (perror): Document glibc bug.
12087
12088         test-perror: rewrite to use init script
12089         * modules/perror-tests (Files): Add init.sh.
12090         * tests/test-perror.sh: Use temporary directory.
12091
12092 2011-05-20  Jim Meyering  <meyering@redhat.com>
12093
12094         maint: replace misused "a" with "an"
12095         * doc/intprops.texi: "a integer"
12096         * doc/regex.texi: "a explanation"
12097         * lib/alignof.h: "a object"
12098         * lib/argmatch.h: "a explanation"
12099         * lib/argp-help.c: "a option" and "a OPTION_DOC"
12100         * lib/stdint.in.h: "a integer"
12101         * lib/userspec.c: "a owner"
12102         * doc/gnulib.texi: Fix "a idea", and reword.
12103
12104 2011-05-19  Jim Meyering  <meyering@redhat.com>
12105
12106         maint: correct misuse of "a" and "an"
12107         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
12108         * lib/argp-help.c: "an docum...": s/an/a/
12109         * lib/argp-parse.c: "An vector": s/An/A/
12110         * lib/execute.c: "an native": s/an/a/
12111         * lib/spawn-pipe.c: Likewise.
12112         * lib/gc.h: "an Gc_rc": s/an/a/
12113         * lib/unigbrk.in.h: "an grapheme": s/an/a/
12114         * lib/fts.c: "an stat.st_dev": s/an/a/
12115
12116 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12117
12118         intprops-tests: work around HP-UX 11.23 cc bug with constants
12119         * tests/test-intprops.c (VERIFY): New macro.
12120         (main): Use it, instead of verify, to work around the compiler bug; see
12121         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12122
12123         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
12124         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
12125         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
12126         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
12127         (_GL_REMAINDER_OVERFLOW): Use it.
12128
12129         intprops-tests: revert unsigned part of previous change
12130         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
12131         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
12132         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
12133         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
12134
12135 2011-05-19  Bruno Haible  <bruno@clisp.org>
12136
12137         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
12138         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
12139         strerror_r() returned without filling the buffer.
12140         Reported by Eric Blake.
12141
12142 2011-05-19  Eric Blake  <eblake@redhat.com>
12143
12144         strerror_r: guarantee unchanged errno
12145         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
12146         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
12147         failure.
12148         * tests/test-strerror_r.c (main): Enhance test.
12149
12150 2011-05-19  Bruno Haible  <bruno@clisp.org>
12151
12152         strerror_r: Reorder #if blocks.
12153         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
12154         for consistency with the previous commit.
12155
12156 2011-05-19  Bruno Haible  <bruno@clisp.org>
12157
12158         perror: Avoid clobbering the strerror buffer when possible.
12159         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
12160         * lib/strerror.c: Include it.
12161         * modules/strerror (Files): Add lib/strerror-impl.h.
12162         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
12163         (my_strerror): New function, defined through lib/strerror-impl.h.
12164         (perror): Use it instead of strerror.
12165         * modules/perror (Files): Add lib/strerror-impl.h.
12166         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
12167
12168 2011-05-19  Eric Blake  <eblake@redhat.com>
12169
12170         strerror_r: fix on newer cygwin
12171         * lib/strerror_r.c (strerror_r): Cygwin now has
12172         __xpg_strerror_r, use it.
12173
12174 2011-05-19  Bruno Haible  <bruno@clisp.org>
12175
12176         strerror_r: Avoid clobbering the strerror buffer when possible.
12177         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
12178         (sys_nerr, sys_errlist): New declarations.
12179         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
12180         HP-UX, native Win32, IRIX, and 32-bit Solaris.
12181         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
12182
12183 2011-05-19  Bruno Haible  <bruno@clisp.org>
12184
12185         strerror_r: Fix test failure on mingw.
12186         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
12187         EXTEND_STRERROR_R.
12188         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
12189         macros from errno.in.h instead.
12190
12191 2011-05-19  Eric Blake  <eblake@redhat.com>
12192
12193         strerror: relax test for Solaris
12194         * tests/test-strerror.c (main): Permit Solaris behavior.
12195         * tests/test-strerror_r.c (main): Likewise.
12196
12197         strerror: enforce POSIX ruling on strerror(0)
12198         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
12199         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
12200         * lib/strerror_r.c (rpl_strerror_r): Work around it.
12201         * doc/posix-functions/strerror.texi (strerror): Document it.
12202         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
12203         * tests/test-strerror.c (main): Strengthen test.
12204         * tests/test-strerror_r.c (main): Likewise.
12205
12206 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12207
12208         intprop-tests: port to older and more-pedantic compilers
12209         * modules/intprops-tests (Files): Add tests/macros.h.
12210         * tests/test-intprops.c: Include macros.h.
12211         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
12212         it's no longer documented to expand to an integer constant expression.
12213         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
12214         argument is floating point, as it's no longer documented to expand
12215         to an integer constant expression in that case.
12216         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
12217         compiler bugs reported by Bruno Haible.  See
12218         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12219         (U0, U1): New constants, to work around the same bugs.  Also,
12220         in tests, use e.g., "(unsigned int) 39" rather than "39u".
12221
12222         intprops: work around C compiler bugs
12223         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
12224         bug in Sun C 5.11 2010/08/13 and other compilers; see
12225         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12226
12227         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
12228         * doc/intprops.texi (Integer Type Determination): Fix
12229         documentation for TYPE_IS_INTEGER: it returns an constant
12230         expression, not an integer constant expression.  Fix doc for
12231         TYPE_SIGNED: it returns an integer constant expression only if its
12232         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
12233         hardly worth documented that way....)
12234
12235 2011-05-18  Bruno Haible  <bruno@clisp.org>
12236
12237         strerror_r: Avoid clobbering the strerror buffer when possible.
12238         * lib/strerror_r.c (strerror_r): Merge the three implementations.
12239         Handle gnulib defined errno values here. When strerror() returns NULL
12240         or an empty string, return EINVAL.
12241         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
12242         gnulib defined errno values here.
12243         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
12244
12245 2011-05-18  Eric Blake  <eblake@redhat.com>
12246
12247         fnmatch: avoid compiler warning
12248         * lib/fnmatch_loop.c (FCT): Use correct type.
12249         Reported by Matthias Bolte.
12250
12251 2011-05-13  Jim Meyering  <meyering@redhat.com>
12252
12253         maint.mk: three new prohibit_<HDR>_without_use rules
12254         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
12255         (sc_prohibit_stdio-safer_without_use): Likewise.
12256         (sc_prohibit_xfreopen_without_use): Likewise.
12257
12258 2011-05-17  Jim Meyering  <meyering@redhat.com>
12259
12260         announce-gen: fail if the NEWS delta is empty
12261         If there's nothing noteworthy in NEWS, then either you forgot
12262         or you shouldn't be releasing.
12263         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
12264
12265 2011-05-17  Pádraig Brady <P@draigBrady.com>
12266
12267         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
12268         reserved symbols starting with double underscore from the check.
12269
12270 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
12271
12272         intprops: add doc
12273         * doc/intprops.texi: New file, documenting intprops.
12274         * doc/gnulib.texi (Particular Modules): Include it.
12275
12276         verify: add doc to gnulib manual and fix example
12277         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
12278         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
12279         (Compile-time Assertions): Fix example so it can't overflow.
12280
12281 2011-05-17  Jim Meyering  <meyering@redhat.com>
12282
12283         warnings.m4: don't usurp save_CPPFLAGS variable name
12284         * m4/warnings.m4: Prefix local temporary variable name with gl_.
12285
12286         doc: fix typo
12287         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
12288
12289 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12290             Bruno Haible  <bruno@clisp.org>
12291
12292         doc: Tweak recent change.
12293         * README (Portability guidelines): Tweak new text.
12294         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
12295         Interix 6.1.
12296
12297 2011-05-16  Eric Blake  <eblake@redhat.com>
12298
12299         inttypes: avoid autoconf warning
12300         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
12301         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12302
12303 2011-05-16  Sam Steingold <sds@gnu.org>
12304         and Eric Blake  <eblake@redhat.com>
12305
12306         vc-list-files: accept multiple directory operands
12307         * build-aux/vc-list-files: Iterate over all remaining operands.
12308
12309 2011-05-16  Bruno Haible  <bruno@clisp.org>
12310
12311         Fix confusion regarding deprecated modules.
12312         * modules/calloc (Status, Notice): Mark module as deprecated, not
12313         obsolete.
12314         * modules/fnmatch-posix (Status, Notice): Likewise.
12315         * modules/getdate (Status, Notice): Likewise.
12316         * modules/getopt (Status, Notice): Likewise.
12317         * modules/malloc (Status, Notice): Likewise.
12318         * modules/pipe (Status, Notice): Likewise.
12319         * modules/realloc (Status, Notice): Likewise.
12320         * modules/rename-dest-slash (Status, Notice): Likewise.
12321         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
12322         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
12323         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
12324         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
12325         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
12326
12327 2011-05-16  Bruno Haible  <bruno@clisp.org>
12328
12329         doc: List the target platforms.
12330         * doc/gnulib-intro.texi (Target Platforms): New section.
12331         * doc/gnulib.texi (Introduction): Update menu.
12332         * README (Portability guidelines): Refer to the new section. Update
12333         statement about oldest supported environment. Remove rationale why
12334         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
12335         unportable C89 function.
12336         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
12337         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
12338
12339 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12340
12341         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
12342
12343 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
12344
12345         intprops-tests: new module
12346         * modules/intprops-tests, tests/test-intprops.c: New files.
12347
12348         intprops: add safe, portable integer overflow checking
12349         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
12350         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
12351         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
12352         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
12353         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
12354         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
12355         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
12356         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
12357         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
12358         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
12359         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
12360
12361 2011-05-12  James Youngman  <jay@gnu.org>
12362
12363         Add a test for glibc's Bugzilla bug #12378.
12364         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
12365         doesn't allow the literal matching of a lone "[" (which is
12366         required by POSIX).
12367         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
12368
12369 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
12370
12371         Sync glibc change fixing Bugzilla bug #12378.
12372         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
12373         beginning and fall back to matching as normal character if the
12374         string ends before the matching ']' is found.  This is what POSIX
12375         requires.
12376
12377 2011-05-13  Eric Blake  <eblake@redhat.com>
12378
12379         getcwd-lgpl: relax test for FreeBSD
12380         * doc/posix-functions/getcwd.texi (getcwd): Document portability
12381         issue.
12382         * tests/test-getcwd-lgpl.c (main): Relax test.
12383         Reported by Matthias Bolte.
12384
12385 2011-05-11  Eric Blake  <eblake@redhat.com>
12386
12387         test-fflush: silence compiler warning
12388         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
12389
12390 2011-05-11  Bruno Haible  <bruno@clisp.org>
12391
12392         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
12393         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
12394         * modules/canonicalize (Depends-on): Add 'nocrash'.
12395         * modules/canonicalize-lgpl (Depends-on): Likewise.
12396         * doc/posix-functions/realpath.texi: Update platforms list.
12397         Reported by Ryan Schmidt <ryandesign@macports.org>.
12398
12399 2011-05-11  Bruno Haible  <bruno@clisp.org>
12400
12401         group-member: Declare function in <unistd.h>.
12402         * lib/unistd.in.h (group_member): New declaration.
12403         * lib/group-member.h: Remove file.
12404         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
12405         * tests/test-unistd-c++.cc: Check signature of group_member.
12406         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
12407         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
12408         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
12409         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
12410         HAVE_GROUP_MEMBER.
12411         * modules/group-member (Files): Remove lib/group-member.h.
12412         (Depends-on): Add unistd. Specify conditions.
12413         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12414         (Include): Change to <unistd.h>.
12415         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
12416         HAVE_GROUP_MEMBER.
12417         * NEWS: Mention the change.
12418         * lib/euidaccess.c: Don't include group-member.h.
12419
12420 2011-05-11  Bruno Haible  <bruno@clisp.org>
12421
12422         group-member: Document module.
12423         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
12424         module.
12425
12426 2011-05-11  Bruno Haible  <bruno@clisp.org>
12427
12428         fclose: Fix mistake earlier today.
12429         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
12430
12431 2011-05-11  Eric Blake  <eblake@redhat.com>
12432
12433         fclose: preserve fflush errors
12434         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
12435         Reported by Jim Meyering.
12436
12437         bootstrap: support a prereq of 'rpcgen -' on RHEL5
12438         * build-aux/bootstrap (check_versions): When no specific version
12439         is required, merely check that the app produces an exit status
12440         that indicates its existence.
12441
12442         maint.mk: drop redundant check
12443         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
12444         the same but better.
12445
12446 2011-05-11  Bruno Haible  <bruno@clisp.org>
12447
12448         fclose: Fix possible link error.
12449         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
12450         unregister_shadow_fd. Improve comments.
12451         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
12452         Eric Blake.
12453
12454 2011-05-11  Jim Meyering  <meyering@redhat.com>
12455
12456         maint.mk: improve "can not" detection and generalize rule name
12457         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
12458         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
12459         Use the same technique as in sc_prohibit_doubled_word, so that
12460         we recognize "can not" also when the words are separated by a newline.
12461         Suggested by Eric Blake.
12462         (perl_filename_lineno_text_): Define.  Factored out of...
12463         (prohibit_doubled_word_): ...here.  Use the new definition.
12464         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
12465         (prohibit_undesirable_word_seq_RE_): New overridable variable.
12466         (ignore_undesirable_word_sequence_RE_): New overridable variable.
12467
12468 2011-05-10  Eric Blake  <eblake@redhat.com>
12469
12470         fclose: avoid double close race when possible
12471         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
12472         all but WINDOWS_SOCKETS.
12473
12474 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
12475
12476         openat: correct new comment
12477         * lib/openat-proc.c (openat_proc_name): Correct the comment.
12478
12479 2011-05-10  Jim Meyering  <meyering@redhat.com>
12480
12481         openat: add comments
12482         * lib/openat-proc.c (openat_proc_name): Add comments,
12483         mostly from Eric Blake.
12484
12485 2011-05-09  Eric Blake  <eblake@redhat.com>
12486
12487         openat: reduce syscalls in first probe of /proc
12488         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
12489         be a directory.  Simplify the probe for .. bugs.
12490         * modules/openat (Depends-on): Drop same-inode.
12491         Reported by Bastien ROUCARIES.
12492
12493 2011-05-09  Jim Meyering  <meyering@redhat.com>
12494
12495         maint.mk: change semantics/name of tight_scope variables
12496         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
12497         Rename variables to align with semantics that make them more useful.
12498
12499         maint.mk: tweak new rule's name not to impinge
12500         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
12501         (sc_tight_scope): Use new rule name rather than $@-0.
12502
12503         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
12504         * top/maint.mk (sc_tight_scope): New rule.
12505         (sc_tight_scope-0): New rule, ifdef'd out.
12506         (_gl_TS_dir): Default.
12507         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
12508         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
12509
12510 2011-05-09  Simon Josefsson  <simon@josefsson.org>
12511
12512         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
12513         Haible <bruno@clisp.org>.
12514
12515 2011-05-08  Bruno Haible  <bruno@clisp.org>
12516
12517         Comments.
12518         * m4/isnanf.m4: Add comment.
12519         * m4/isnanl.m4: Likewise.
12520
12521 2011-05-08  Bruno Haible  <bruno@clisp.org>
12522
12523         glob: Remove obsolete macro.
12524         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
12525
12526 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
12527
12528         intprops: Sun C 5.11 supports __typeof__
12529         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
12530         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
12531         which is new.
12532         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
12533
12534         intprops: switch to usual gnulib indenting and naming
12535         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
12536         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
12537
12538         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
12539
12540 2011-05-08  Jim Meyering  <meyering@redhat.com>
12541
12542         maint.mk: suppress "Entering/Leaving directory" diag in announcement
12543         * top/maint.mk (release-prep): Use make's --no-print-directory
12544         option when generating the announcement.  This eliminates the
12545         pesky "make[2]: Entering/Leaving directory" diagnostics in the
12546         generated announcement template.
12547
12548 2011-05-08  Bruno Haible  <bruno@clisp.org>
12549
12550         tzset: Fix gettimeofday wrapper on Solaris 2.6.
12551         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
12552         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
12553
12554 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
12555
12556         ignore-value, verify: Omit include files from lib_SOURCES.
12557         * modules/ignore-value, modules/verify (Makefile.am):
12558         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
12559         that leads Automake to duplicate use of am__objects_... variables
12560         in Makefile.in.  See
12561         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
12562
12563 2011-05-07  Bruno Haible  <bruno@clisp.org>
12564
12565         fclose: Simplify autoconf macro.
12566         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
12567         defined.
12568
12569 2011-05-07  Bruno Haible  <bruno@clisp.org>
12570
12571         canonicalize-lgpl: Fix autoconf macro ordering bug.
12572         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
12573         gl_STDLIB_H_DEFAULTS.
12574
12575 2011-05-06  Eric Blake  <eblake@redhat.com>
12576
12577         maintainer-makefile: make sc_po_check easier to tune
12578         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
12579         to probe for strings, such as an alternate location for gnulib.
12580
12581         fclose: guarantee behavior on seekable stdin
12582         * modules/fclose (Depends-on): Add fflush.
12583         * doc/posix-functions/fclose.texi (fclose): Document this.
12584         * tests/test-fclose.c (main): Make test for this unconditional.
12585
12586 2011-05-06  Bruno Haible  <bruno@clisp.org>
12587
12588         fflush, fpurge: Relicense under LGPLv2+.
12589         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
12590         * modules/fpurge (License): Likewise.
12591         With permission from Eric Blake and Jim Meyering.
12592         Suggested by Eric Blake.
12593
12594 2011-05-06  Karl Berry  <karl@gnu.org>
12595
12596         * MODULES.html.sh (func_all_modules): remove exit.
12597
12598 2011-05-06  Jim Meyering  <meyering@redhat.com>
12599
12600         maint.mk: use info-gnu@ as the default only for a stable release
12601         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
12602         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
12603         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
12604         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
12605
12606 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12607
12608         assert-h: new module, which supports C1X-style static_assert
12609         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
12610         * lib/verify.h: Revamp so that this can be copied into assert.h,
12611         while retaining the ability to use it standalone as before.
12612         Rename private identifiers so as not to encroach on the
12613         standard C namespace, since this is now used by assert.h.
12614         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
12615         the old verify_true.
12616         (_GL_VERIFY_TRUE): New macro, with much of the contents of
12617         the old verify_true.  Use _GL_VERIFY_TYPE.
12618         (_GL_VERIFY): New macro, with much of the contents of the old verify.
12619         (static_assert): New macro, if _GL_STATIC_ASSERT_H
12620         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
12621         defined when this file is copied into the replacement assert.h.
12622         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
12623         and _Static_assert is not built in.
12624         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
12625         defined, and use the new macros mentioned above.
12626         * doc/posix-headers/assert.texi: Document this.
12627
12628 2011-05-05  Bruno Haible  <bruno@clisp.org>
12629
12630         fclose, fflush: Respect rules for use of AC_LIBOBJ.
12631         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
12632         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
12633         gl_REPLACE_FCLOSE here.
12634         * modules/fflush (Depends-on): Remove fclose.
12635         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
12636         combination with module 'fclose'.
12637
12638 2011-05-05  Bruno Haible  <bruno@clisp.org>
12639
12640         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
12641         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
12642         gl_FUNC_FFLUSH.
12643         (gl_FUNC_FFLUSH): Use it.
12644         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
12645         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
12646         gl_REPLACE_FSEEKO here.
12647
12648 2011-05-05  Bruno Haible  <bruno@clisp.org>
12649
12650         tzset: Relicense under LGPL.
12651         * modules/tzset (License): Change to LGPL.
12652         No agreement needed; it's a no-op.
12653
12654         strtoimax, strtoumax: Relicense under LGPL.
12655         * modules/strtoimax (License): Change to LGPL.
12656         * modules/strtoumax (License): Likewise.
12657         With permission from Jim Meyering, Paul Eggert:
12658         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
12659         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
12660
12661         getgroups: Relicense under LGPL.
12662         * modules/getgroups (License): Change to LGPL.
12663         With permission from Jim Meyering, Paul Eggert, Eric Blake:
12664         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12665         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12666         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12667
12668         nanosleep: Relicense under LGPL.
12669         * modules/nanosleep (License): Change to LGPL.
12670         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
12671         Haible:
12672         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12673         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12674         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12675         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12676
12677         futimens: Relicense under LGPL.
12678         * modules/futimens (License): Change to LGPL.
12679         With permission from Eric Blake:
12680         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12681
12682         fflush: Relicense under LGPL.
12683         * modules/fflush (License): Change to LGPL.
12684         With permission from Eric Blake, Bruno Haible, Jim Meyering:
12685         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12686         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12687         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
12688
12689         tmpfile: Relicense under LGPL.
12690         * modules/tmpfile (License): Change to LGPL.
12691         With permission from Ben Pfaff:
12692         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12693
12694         isfinite: Relicense under LGPL.
12695         * modules/isfinite (License): Change to LGPL.
12696         With permission from Ben Pfaff, Bruno Haible:
12697         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12698         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
12699
12700         acosl..tanl: Relicense under LGPL.
12701         * modules/acosl (License): Change to LGPL.
12702         * modules/asinl (License): Likewise.
12703         * modules/atanl (License): Likewise.
12704         * modules/cosl (License): Likewise.
12705         * modules/expl (License): Likewise.
12706         * modules/logl (License): Likewise.
12707         * modules/sinl (License): Likewise.
12708         * modules/sqrtl (License): Likewise.
12709         * modules/tanl (License): Likewise.
12710         Source code originally from glibc and Paolo Bonzini. Agreements:
12711         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
12712         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
12713
12714 2011-05-05  Bruno Haible  <bruno@clisp.org>
12715
12716         signal: Define sighandler_t.
12717         * lib/signal.in.h (sighandler_t): New type.
12718         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
12719         whether sighandler_t is defined.
12720         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
12721         * modules/signal (Depends-on): Add extensions.
12722         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
12723         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
12724         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
12725
12726 2011-05-05  Eric Blake  <eblake@redhat.com>
12727
12728         maint: remove useless REPLACE_*_H macros
12729         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
12730         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
12731         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
12732         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
12733         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
12734         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
12735         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
12736         * m4/btowc.m4: Update callers.
12737         * m4/dirfd.m4: Likewise.
12738         * m4/duplocale.m4: Likewise.
12739         * m4/fchdir.m4: Likewise.
12740         * m4/fdopendir.m4: Likewise.
12741         * m4/inet_ntop.m4: Likewise.
12742         * m4/inet_pton.m4: Likewise.
12743         * m4/ioctl.m4: Likewise.
12744         * m4/mbrlen.m4: Likewise.
12745         * m4/mbrtowc.m4: Likewise.
12746         * m4/mbsinit.m4: Likewise.
12747         * m4/mbsnrtowcs.m4: Likewise.
12748         * m4/mbsrtowcs.m4: Likewise.
12749         * m4/poll.m4: Likewise.
12750         * m4/setlocale.m4: Likewise.
12751         * m4/wcrtomb.m4: Likewise.
12752         * m4/wcsnrtombs.m4: Likewise.
12753         * m4/wcsrtombs.m4: Likewise.
12754         * m4/wctob.m4: Likewise.
12755         * m4/wcwidth.m4: Likewise.
12756         * modules/posix_spawn: Likewise.
12757         * modules/posix_spawn_file_actions_addclose: Likewise.
12758         * modules/posix_spawn_file_actions_adddup2: Likewise.
12759         * modules/posix_spawn_file_actions_addopen: Likewise.
12760         * modules/posix_spawn_file_actions_destroy: Likewise.
12761         * modules/posix_spawn_file_actions_init: Likewise.
12762         * modules/posix_spawnattr_destroy: Likewise.
12763         * modules/posix_spawnattr_getflags: Likewise.
12764         * modules/posix_spawnattr_getpgroup: Likewise.
12765         * modules/posix_spawnattr_getschedparam: Likewise.
12766         * modules/posix_spawnattr_getschedpolicy: Likewise.
12767         * modules/posix_spawnattr_getsigdefault: Likewise.
12768         * modules/posix_spawnattr_getsigmask: Likewise.
12769         * modules/posix_spawnattr_init: Likewise.
12770         * modules/posix_spawnattr_setflags: Likewise.
12771         * modules/posix_spawnattr_setpgroup: Likewise.
12772         * modules/posix_spawnattr_setschedparam: Likewise.
12773         * modules/posix_spawnattr_setschedpolicy: Likewise.
12774         * modules/posix_spawnattr_setsigdefault: Likewise.
12775         * modules/posix_spawnattr_setsigmask: Likewise.
12776         * modules/posix_spawnp: Likewise.
12777
12778 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
12779
12780         Add option to do-release-commit-and-tag to specify branch.
12781         * build-aux/do-release-commit-and-tag: Add --branch.
12782
12783 2011-05-03  Bruno Haible  <bruno@clisp.org>
12784
12785         Avoid unnecessary compilation units, through conditional dependencies.
12786         * modules/accept (Depends-on): Add conditions to the dependencies.
12787         * modules/acosl (Depends-on): Likewise.
12788         * modules/argz (Depends-on): Likewise.
12789         * modules/asinl (Depends-on): Likewise.
12790         * modules/atanl (Depends-on): Likewise.
12791         * modules/atoll (Depends-on): Likewise.
12792         * modules/bind (Depends-on): Likewise.
12793         * modules/btowc (Depends-on): Likewise.
12794         * modules/canonicalize-lgpl (Depends-on): Likewise.
12795         * modules/ceil (Depends-on): Likewise.
12796         * modules/ceilf (Depends-on): Likewise.
12797         * modules/ceill (Depends-on): Likewise.
12798         * modules/chdir-long (Depends-on): Likewise.
12799         * modules/chown (Depends-on): Likewise.
12800         * modules/close (Depends-on): Likewise.
12801         * modules/connect (Depends-on): Likewise.
12802         * modules/cosl (Depends-on): Likewise.
12803         * modules/dirfd (Depends-on): Likewise.
12804         * modules/dprintf (Depends-on): Likewise.
12805         * modules/dprintf-posix (Depends-on): Likewise.
12806         * modules/error (Depends-on): Likewise.
12807         * modules/euidaccess (Depends-on): Likewise.
12808         * modules/expl (Depends-on): Likewise.
12809         * modules/faccessat (Depends-on): Likewise.
12810         * modules/fchdir (Depends-on): Likewise.
12811         * modules/fclose (Depends-on): Likewise.
12812         * modules/fcntl (Depends-on): Likewise.
12813         * modules/fdopendir (Depends-on): Likewise.
12814         * modules/fflush (Depends-on): Likewise.
12815         * modules/floor (Depends-on): Likewise.
12816         * modules/floorf (Depends-on): Likewise.
12817         * modules/floorl (Depends-on): Likewise.
12818         * modules/fnmatch (Depends-on): Likewise.
12819         * modules/fopen (Depends-on): Likewise.
12820         * modules/fprintf-posix (Depends-on): Likewise.
12821         * modules/frexp (Depends-on): Likewise.
12822         * modules/frexp-nolibm (Depends-on): Likewise.
12823         * modules/frexpl (Depends-on): Likewise.
12824         * modules/frexpl-nolibm (Depends-on): Likewise.
12825         * modules/fseek (Depends-on): Likewise.
12826         * modules/fsusage (Depends-on): Likewise.
12827         * modules/ftell (Depends-on): Likewise.
12828         * modules/ftello (Depends-on): Likewise.
12829         * modules/futimens (Depends-on): Likewise.
12830         * modules/getcwd (Depends-on): Likewise.
12831         * modules/getcwd-lgpl (Depends-on): Likewise.
12832         * modules/getdelim (Depends-on): Likewise.
12833         * modules/getdomainname (Depends-on): Likewise.
12834         * modules/getgroups (Depends-on): Likewise.
12835         * modules/gethostname (Depends-on): Likewise.
12836         * modules/getline (Depends-on): Likewise.
12837         * modules/getlogin_r (Depends-on): Likewise.
12838         * modules/getopt-posix (Depends-on): Likewise.
12839         * modules/getpeername (Depends-on): Likewise.
12840         * modules/getsockname (Depends-on): Likewise.
12841         * modules/getsockopt (Depends-on): Likewise.
12842         * modules/getsubopt (Depends-on): Likewise.
12843         * modules/getusershell (Depends-on): Likewise.
12844         * modules/glob (Depends-on): Likewise.
12845         * modules/grantpt (Depends-on): Likewise.
12846         * modules/iconv_open (Depends-on): Likewise.
12847         * modules/iconv_open-utf (Depends-on): Likewise.
12848         * modules/inet_ntop (Depends-on): Likewise.
12849         * modules/inet_pton (Depends-on): Likewise.
12850         * modules/ioctl (Depends-on): Likewise.
12851         * modules/isapipe (Depends-on): Likewise.
12852         * modules/isfinite (Depends-on): Likewise.
12853         * modules/isinf (Depends-on): Likewise.
12854         * modules/lchown (Depends-on): Likewise.
12855         * modules/ldexpl (Depends-on): Likewise.
12856         * modules/link (Depends-on): Likewise.
12857         * modules/linkat (Depends-on): Likewise.
12858         * modules/listen (Depends-on): Likewise.
12859         * modules/logl (Depends-on): Likewise.
12860         * modules/lstat (Depends-on): Likewise.
12861         * modules/mbrlen (Depends-on): Likewise.
12862         * modules/mbrtowc (Depends-on): Likewise.
12863         * modules/mbsinit (Depends-on): Likewise.
12864         * modules/mbsnrtowcs (Depends-on): Likewise.
12865         * modules/mbsrtowcs (Depends-on): Likewise.
12866         * modules/mbtowc (Depends-on): Likewise.
12867         * modules/memcmp (Depends-on): Likewise.
12868         * modules/mkdir (Depends-on): Likewise.
12869         * modules/mkdtemp (Depends-on): Likewise.
12870         * modules/mkfifo (Depends-on): Likewise.
12871         * modules/mkfifoat (Depends-on): Likewise.
12872         * modules/mknod (Depends-on): Likewise.
12873         * modules/mkostemp (Depends-on): Likewise.
12874         * modules/mkostemps (Depends-on): Likewise.
12875         * modules/mkstemp (Depends-on): Likewise.
12876         * modules/mkstemps (Depends-on): Likewise.
12877         * modules/mktime (Depends-on): Likewise.
12878         * modules/nanosleep (Depends-on): Likewise.
12879         * modules/open (Depends-on): Likewise.
12880         * modules/openat (Depends-on): Likewise.
12881         * modules/perror (Depends-on): Likewise.
12882         * modules/poll (Depends-on): Likewise.
12883         * modules/popen (Depends-on): Likewise.
12884         * modules/posix_spawn (Depends-on): Likewise.
12885         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
12886         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
12887         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
12888         * modules/posix_spawnp (Depends-on): Likewise.
12889         * modules/pread (Depends-on): Likewise.
12890         * modules/printf-posix (Depends-on): Likewise.
12891         * modules/ptsname (Depends-on): Likewise.
12892         * modules/putenv (Depends-on): Likewise.
12893         * modules/pwrite (Depends-on): Likewise.
12894         * modules/readline (Depends-on): Likewise.
12895         * modules/readlink (Depends-on): Likewise.
12896         * modules/readlinkat (Depends-on): Likewise.
12897         * modules/recv (Depends-on): Likewise.
12898         * modules/recvfrom (Depends-on): Likewise.
12899         * modules/regex (Depends-on): Likewise.
12900         * modules/remove (Depends-on): Likewise.
12901         * modules/rename (Depends-on): Likewise.
12902         * modules/renameat (Depends-on): Likewise.
12903         * modules/rmdir (Depends-on): Likewise.
12904         * modules/round (Depends-on): Likewise.
12905         * modules/roundf (Depends-on): Likewise.
12906         * modules/roundl (Depends-on): Likewise.
12907         * modules/rpmatch (Depends-on): Likewise.
12908         * modules/select (Depends-on): Likewise.
12909         * modules/send (Depends-on): Likewise.
12910         * modules/sendto (Depends-on): Likewise.
12911         * modules/setenv (Depends-on): Likewise.
12912         * modules/setlocale (Depends-on): Likewise.
12913         * modules/setsockopt (Depends-on): Likewise.
12914         * modules/shutdown (Depends-on): Likewise.
12915         * modules/sigaction (Depends-on): Likewise.
12916         * modules/signbit (Depends-on): Likewise.
12917         * modules/sigprocmask (Depends-on): Likewise.
12918         * modules/sinl (Depends-on): Likewise.
12919         * modules/sleep (Depends-on): Likewise.
12920         * modules/snprintf (Depends-on): Likewise.
12921         * modules/snprintf-posix (Depends-on): Likewise.
12922         * modules/socket (Depends-on): Likewise.
12923         * modules/sprintf-posix (Depends-on): Likewise.
12924         * modules/sqrtl (Depends-on): Likewise.
12925         * modules/stat (Depends-on): Likewise.
12926         * modules/strchrnul (Depends-on): Likewise.
12927         * modules/strdup-posix (Depends-on): Likewise.
12928         * modules/strerror (Depends-on): Likewise.
12929         * modules/strerror_r-posix (Depends-on): Likewise.
12930         * modules/strndup (Depends-on): Likewise.
12931         * modules/strnlen (Depends-on): Likewise.
12932         * modules/strptime (Depends-on): Likewise.
12933         * modules/strsep (Depends-on): Likewise.
12934         * modules/strsignal (Depends-on): Likewise.
12935         * modules/strstr-simple (Depends-on): Likewise.
12936         * modules/strtod (Depends-on): Likewise.
12937         * modules/strtoimax (Depends-on): Likewise.
12938         * modules/strtok_r (Depends-on): Likewise.
12939         * modules/strtoumax (Depends-on): Likewise.
12940         * modules/symlink (Depends-on): Likewise.
12941         * modules/symlinkat (Depends-on): Likewise.
12942         * modules/tanl (Depends-on): Likewise.
12943         * modules/tcgetsid (Depends-on): Likewise.
12944         * modules/tmpfile (Depends-on): Likewise.
12945         * modules/trunc (Depends-on): Likewise.
12946         * modules/truncf (Depends-on): Likewise.
12947         * modules/truncl (Depends-on): Likewise.
12948         * modules/uname (Depends-on): Likewise.
12949         * modules/unlink (Depends-on): Likewise.
12950         * modules/unlockpt (Depends-on): Likewise.
12951         * modules/unsetenv (Depends-on): Likewise.
12952         * modules/usleep (Depends-on): Likewise.
12953         * modules/utimensat (Depends-on): Likewise.
12954         * modules/vasprintf (Depends-on): Likewise.
12955         * modules/vdprintf (Depends-on): Likewise.
12956         * modules/vdprintf-posix (Depends-on): Likewise.
12957         * modules/vfprintf-posix (Depends-on): Likewise.
12958         * modules/vprintf-posix (Depends-on): Likewise.
12959         * modules/vsnprintf (Depends-on): Likewise.
12960         * modules/vsnprintf-posix (Depends-on): Likewise.
12961         * modules/vsprintf-posix (Depends-on): Likewise.
12962         * modules/wcrtomb (Depends-on): Likewise.
12963         * modules/wcscasecmp (Depends-on): Likewise.
12964         * modules/wcscspn (Depends-on): Likewise.
12965         * modules/wcsdup (Depends-on): Likewise.
12966         * modules/wcsncasecmp (Depends-on): Likewise.
12967         * modules/wcsnrtombs (Depends-on): Likewise.
12968         * modules/wcspbrk (Depends-on): Likewise.
12969         * modules/wcsrtombs (Depends-on): Likewise.
12970         * modules/wcsspn (Depends-on): Likewise.
12971         * modules/wcsstr (Depends-on): Likewise.
12972         * modules/wcstok (Depends-on): Likewise.
12973         * modules/wcswidth (Depends-on): Likewise.
12974         * modules/wctob (Depends-on): Likewise.
12975         * modules/wctomb (Depends-on): Likewise.
12976         * modules/wctype (Depends-on): Likewise.
12977         * modules/wcwidth (Depends-on): Likewise.
12978         * modules/write (Depends-on): Likewise.
12979
12980 2011-05-03  Bruno Haible  <bruno@clisp.org>
12981
12982         Support for conditional dependencies.
12983         * doc/gnulib.texi (Module description): Document the syntax of
12984         conditional dependencies.
12985         * gnulib-tool: New option --conditional-dependencies.
12986         (func_usage): Document it.
12987         (cond_dependencies): New variable.
12988         (func_get_automake_snippet_conditional,
12989         func_get_automake_snippet_unconditional): New functions, extracted from
12990         func_get_automake_snippet.
12991         (func_get_automake_snippet): Use them.
12992         (sed_first_32_chars): New variable.
12993         (func_module_shellfunc_name): New function.
12994         (func_module_shellvar_name): New function.
12995         (func_module_conditional_name): New function.
12996         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
12997         func_cond_module_condition): New functions.
12998         (func_modules_transitive_closure): Add support for conditional
12999         dependencies.
13000         (func_emit_lib_Makefile_am): For a conditional module, enclose the
13001         conditional automake snippet in an automake conditional.
13002         (func_emit_autoconf_snippets): Emit shell functions that contain the
13003         code for conditional modules.
13004         (func_import, func_create_testdir): Update specification.
13005
13006 2011-05-03  Eric Blake  <eblake@redhat.com>
13007
13008         test-getaddrinfo: report error information
13009         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
13010
13011 2011-05-03  Jim Meyering  <meyering@redhat.com>
13012
13013         bootstrap: avoid build failure when $GZIP is set
13014         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
13015         program name.  If defined at all, it is supposed to list gzip options.
13016         Reported by Alan Curry in http://debbugs.gnu.org/8609
13017
13018 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
13019
13020         readme-release: new module with release instructions
13021         * modules/readme-release: New module.
13022         * top/README-release: New file, from coreutils, grep, diffutils.
13023         * MODULES.html.sh (Support for maintaining and releasing): Add it.
13024
13025 2011-05-02  Eric Blake  <eblake@redhat.com>
13026
13027         fflush: also replace fclose when fixing fflush
13028         * modules/fflush (Depends-on): Add fclose.
13029         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
13030         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
13031         memstreams with no backing fd.
13032         * doc/posix-functions/fclose.texi (fclose): Document the use of
13033         fflush module to fix the bug.
13034         * tests/test-fclose.c (main): Relax test when fclose is used in
13035         isolation.
13036
13037         fclose: add some tests
13038         * modules/fclose-tests: New test module.
13039         * tests/test-fclose.c: New file.
13040         * doc/posix-functions/fclose.texi (fclose): Document the bug.
13041
13042         fclose: reduced dependencies
13043         * modules/fclose (Depends-on): Switch from fflush/fseeko to
13044         simpler lseek.
13045         * lib/fclose.c (rpl_fclose): Likewise.
13046         Reported by Simon Josefsson.
13047
13048         exit: drop remaining clients
13049         * modules/argmatch (Depends-on): Replace exit with stdlib.
13050         * modules/copy-file (Depends-on): Likewise.
13051         * modules/execute (Depends-on): Likewise.
13052         * modules/exitfail (Depends-on): Likewise.
13053         * modules/obstack (Depends-on): Likewise.
13054         * modules/pagealign_alloc (Depends-on): Likewise.
13055         * modules/pipe-filter-gi (Depends-on): Likewise.
13056         * modules/pipe-filter-ii (Depends-on): Likewise.
13057         * modules/savewd (Depends-on): Likewise.
13058         * modules/spawn-pipe (Depends-on): Likewise.
13059         * modules/wait-process (Depends-on): Likewise.
13060         * modules/xsetenv (Depends-on): Likewise.
13061         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
13062         * modules/git-merge-changelog (Depends-on): Likewise.
13063         * modules/long-options (Depends-on): Likewise.
13064         * modules/pt_chown (Depends-on): Likewise.
13065         * modules/sysexits (Depends-on): Likewise.
13066
13067         freading: relax license from LGPLv3+ to LGPLv2+
13068         * modules/freading (License): Relax LGPL version.
13069
13070 2011-05-02  Bruno Haible  <bruno@clisp.org>
13071
13072         fchdir: Remove unused dependencies.
13073         * modules/fchdir (Depends-on): Remove include_next.
13074
13075 2011-05-02  Bruno Haible  <bruno@clisp.org>
13076
13077         gnulib-tool: Refactor.
13078         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
13079         from func_emit_autoconf_snippets.
13080         (func_emit_autoconf_snippets): Use it.
13081
13082 2011-05-02  Simon Josefsson  <simon@josefsson.org>
13083
13084         * NEWS: Document removal of 'exit'.
13085         * modules/exit: Remove file.
13086
13087 2011-05-01  Bruno Haible  <bruno@clisp.org>
13088
13089         Update DEPENDENCIES.
13090         * DEPENDENCIES (gettext): Recommend the newest release.
13091         Reported by Simon Josefsson.
13092
13093 2011-05-01  Bruno Haible  <bruno@clisp.org>
13094
13095         gnulib-tool: Reduce code duplication.
13096         * gnulib-tool (func_emit_autoconf_snippets): New function.
13097         (func_import, func_create_testdir): Use it.
13098
13099 2011-04-30  Eric Blake  <eblake@redhat.com>
13100
13101         fclose: don't fail on non-seekable input stream
13102         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
13103         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
13104         since fflush is allowed to fail in that case.
13105
13106 2011-04-30  Bruno Haible  <bruno@clisp.org>
13107
13108         dup3: cleanup
13109         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
13110
13111 2011-04-30  Bruno Haible  <bruno@clisp.org>
13112
13113         netdb: Make it work in C++ mode.
13114         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
13115         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
13116         module.
13117         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
13118         gl_MODULE_INDICATOR_FOR_TESTS.
13119         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
13120         * modules/netdb-c++-tests: New file.
13121         * tests/test-netdb-c++.cc: New file.
13122
13123 2011-04-30  Bruno Haible  <bruno@clisp.org>
13124
13125         New modules 'vfscanf', 'vscanf'.
13126         * modules/vfscanf: New file.
13127         * modules/vscanf: New file.
13128         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
13129         here.
13130         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
13131         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
13132
13133 2011-04-30  Bruno Haible  <bruno@clisp.org>
13134
13135         passfd: Add comments.
13136         * lib/passfd.c: Add comments about platforms.
13137
13138 2011-04-30  Bruno Haible  <bruno@clisp.org>
13139
13140         sys_uio: Make <sys/uio.h> self-contained.
13141         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
13142         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
13143
13144 2011-04-30  Bruno Haible  <bruno@clisp.org>
13145
13146         sys_socket: Ensure 'struct iovec' definition.
13147         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
13148         <sys/socket.h>.
13149         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
13150
13151 2011-04-30  Bruno Haible  <bruno@clisp.org>
13152
13153         sys_uio: Protect definition of 'struct iovec'.
13154         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
13155         it as a C struct.
13156
13157 2011-04-30  Bruno Haible  <bruno@clisp.org>
13158
13159         manywarnings: fix indentation
13160         * m4/manywarnings.m4: Indent by 2 spaces consistently.
13161
13162 2011-04-30  Pádraig Brady <P@draigBrady.com>
13163
13164         manywarnings: add -Wno-missing-field-initializers if needed.
13165         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
13166         option if it's needed to allow initialization with { 0, }
13167
13168 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
13169
13170         announce-gen: cosmetic improvement
13171         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
13172
13173 2011-04-29  Jim Meyering  <meyering@redhat.com>
13174
13175         vc-list-files: indent with spaces, not TABs
13176         * build-aux/vc-list-files: Convert leading TABs to spaces,
13177         to match the style of most other files in gnulib.
13178
13179         announce-gen: indent with spaces, not TABs
13180         * build-aux/announce-gen: Convert all TABs to spaces, to match
13181         the style of most other files in gnulib.
13182
13183 2011-04-29  Eric Blake  <eblake@redhat.com>
13184
13185         quotearg: avoid uninitialized variable use
13186         * lib/quotearg.c (quoting_options_from_style): Initialize
13187         remaining fields, and ensure that custom styles are only used via
13188         quoting_options rather than quoting_style.
13189
13190 2011-04-29  Jim Meyering  <meyering@redhat.com>
13191
13192         maint.mk: remove unused VC-tag variable
13193         * top/maint.mk (VC-tag): Remove unused variable.
13194
13195 2011-04-29  Bruno Haible  <bruno@clisp.org>
13196
13197         netdb: fix gai_strerror replacements
13198         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
13199         * modules/netdb: Substitute it.
13200
13201 2011-04-29  Jim Meyering  <meyering@redhat.com>
13202
13203         test-getcwd.c: avoid new set-but-not-used warning
13204         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
13205         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
13206         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
13207         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
13208
13209         test-hash.c: avoid a new shadowing warning
13210         * tests/test-hash.c (main): Don't shadow "dup".
13211
13212 2011-04-28  Eric Blake  <eblake@redhat.com>
13213
13214         getaddrinfo: fix gai_strerror signature
13215         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
13216         and work around mingw with UNICODE defined.
13217         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
13218         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
13219         * modules/netdb (Makefile.am): Substitute it.
13220         * lib/netdb.in.h (gai_strerror): Declare replacement.
13221         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
13222         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
13223         the fix.
13224
13225         getsockopt: avoid compiler warning
13226         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
13227         Reported by Matthias Bolte.
13228
13229         tests: drop unused link dependency
13230         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
13231         * modules/dirent-safer-tests (Makefile.am): Likewise.
13232         * modules/fdopendir-tests (Makefile.am): Likewise.
13233         * modules/mkfifoat-tests (Makefile.am): Likewise.
13234         * modules/openat-safer-tests (Makefile.am): Likewise.
13235         * modules/openat-tests (Makefile.am): Likewise.
13236         * modules/readlinkat-tests (Makefile.am): Likewise.
13237         * modules/symlinkat-tests (Makefile.am): Likewise.
13238         * modules/linkat-tests (Makefile.am): Likewise.
13239         (Depends-on): Switch to filenamecat-lgpl.
13240         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
13241         LIBINTL.
13242         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
13243         * tests/test-linkat.c (main): Don't require xalloc.
13244
13245         hash, mgetgroups: drop xalloc dependency
13246         * lib/hash.c (includes): Adjust includes.
13247         * lib/mgetgroups.c (includes): Likewise.
13248         (xgetgroups): Move...
13249         * lib/xgetgroups.c: ...to new file.
13250         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
13251         * modules/xgetgroups: New file, split from...
13252         * modules/mgetgroups: ...here.
13253         (Depends-on): Add xalloc-oversized.
13254         * modules/hash (Depends-on): Likewise.
13255         * modules/hash-tests (Depends-on): Drop xalloc.
13256         (test_hash_LDADD): Drop unused library.
13257         * tests/test-hash.c (main): Break xalloc dependency.
13258         (includes): Drop unused include.
13259
13260         xalloc-oversized: new module
13261         * modules/xalloc-oversized: New module.
13262         * modules/xalloc (Depends-on): Add it.
13263         * lib/xalloc.h (xalloc_oversized): Move...
13264         * lib/xalloc-oversized.h: ...into new file.
13265
13266         utimecmp: drop dependency on xmalloc
13267         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
13268         due to memory pressure.
13269         * modules/utimecmp (Depends-on): Drop xalloc.
13270
13271 2011-04-27  Eric Blake  <eblake@redhat.com>
13272
13273         getcwd: fix mingw bugs
13274         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
13275         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
13276         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
13277
13278 2011-04-27  Bruno Haible  <bruno@clisp.org>
13279
13280         mkstemps: Ensure declaration on MacOS X 10.5.
13281         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
13282         * doc/glibc-functions/mkstemps.texi: Document header file problem on
13283         MacOS X.
13284
13285 2011-04-27  Bruno Haible  <bruno@clisp.org>
13286
13287         mkstemp: More documentation.
13288         * doc/posix-functions/mkstemp.texi: Document header file problem on
13289         MacOS X.
13290
13291 2011-04-27  Bruno Haible  <bruno@clisp.org>
13292
13293         mkstemp: Tweak configure message when cross-compiling.
13294         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
13295         result as a guess.
13296
13297 2011-04-27  Bruno Haible  <bruno@clisp.org>
13298
13299         clean-temp: Clarify what it does.
13300         * lib/clean-temp.h: Add more comments.
13301         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
13302         module.
13303         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
13304         * doc/glibc-functions/mkstemps.texi: Likewise.
13305         * doc/glibc-functions/mkostemps.texi: Likewise.
13306
13307 2011-04-27  Eric Blake  <eblake@redhat.com>
13308
13309         fchdir: avoid extra chdir and fix test
13310         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
13311         getcwd-lgpl.
13312         * lib/fchdir.c (get_name): Any absolute name will do; it does not
13313         have to be canonical.
13314         (canonicalize_file_name): Drop unused macro.
13315         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
13316
13317         filenamecat-lgpl: fix licence
13318         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
13319         when it was first created.
13320
13321         linkat, renameat: add missing dependency
13322         * modules/linkat (Depends-on): Require getcwd-lgpl.
13323         * modules/renameat (Depends-on): Likewise.
13324
13325         tests: reduce dependencies
13326         * tests/test-linkat.c (main): Use lighter-weight getcwd.
13327         * tests/test-renameat.c (main): Likewise.
13328         * modules/linkat-tests (Depends-on): Relax dependency.
13329         * modules/renameat-tests (Depends-on): Likewise.
13330         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
13331         dependency explicit.
13332
13333         save-cwd: reduce default dependency
13334         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
13335         * lib/save-cwd.c: Update comments.
13336         * NEWS: Document the semantic change.
13337
13338         getcwd: enhance tests
13339         * tests/test-getcwd-lgpl.c: New file, taken from...
13340         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
13341         repeat long path stress tests from m4 probe.
13342         * modules/getcwd-lgpl-tests: New module.
13343         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
13344         * m4/getcwd-abort-bug.m4: Update comment.
13345         * m4/getcwd-path-max.m4: Likewise.
13346
13347         getcwd-lgpl: new module
13348         * modules/getcwd-lgpl: New module.
13349         * lib/getcwd-lgpl.c: New file.
13350         * doc/posix-functions/getcwd.texi (getcwd): Document it.
13351         * MODULES.html.sh (lacking POSIX:2008): Likewise.
13352         * modules/getcwd (configure.ac): Set C witness.
13353         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
13354
13355         getcwd: tweak comments
13356         * m4/getcwd-abort-bug.m4: Fix comments.
13357         * m4/getcwd-path-max.m4: Likewise.
13358         * m4/getcwd.m4: Likewise.
13359
13360 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
13361         and Eric Blake  <eblake@redhat.com>
13362
13363         mkstemp: replace if system version uses wrong permissions
13364         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
13365         read/write mode bits set in file created by mkstemp.
13366         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
13367
13368 2011-04-27  Eric Blake  <eblake@redhat.com>
13369
13370         passfd: avoid compiler warning
13371         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
13372         Reported by Laine Stump.
13373
13374 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
13375
13376         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
13377         required by the NetBSD (and perhaps other 4.4BSD derived) join.
13378
13379 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
13380         and Eric Blake  <eblake@redhat.com>
13381
13382         mkstemp: mention clean-temp module
13383         * lib/mkstemp.c: Add comment.
13384         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
13385
13386 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
13387
13388         inttypes: also provide default values for 32-bit tests
13389         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
13390         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
13391
13392 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
13393
13394         strtoumax: remove dependency on strtoimax
13395         This is like the strtoull change of yesterday.
13396         * modules/strtoumax (Files): Add lib/strtoimax.c.
13397         (Depends-on): Remove strtoimax and add verify.
13398
13399         inttypes-incomplete: new module
13400         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
13401         all but the PRI* and SCN* parts of gl_INTTYPES_H.
13402         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
13403         of gl_INTTYPES_H.
13404         (gl_INTTYPES_H): Rewrite in terms of these new macros.
13405         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
13406         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
13407         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
13408         * modules/strtoumax, modules/xstrtol (Depends-on):
13409         Depend on inttypes-incomplete, not inttypes.
13410         * modules/inttypes-incomplete: New module, containing the contents
13411         of the old modules/inttypes module, except that the Files: section
13412         omits m4/inttypes-pri.m4, and the configure.ac section invokes
13413         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
13414         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
13415         (Depends-on): Depend only on inttypes-incomplete.
13416         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
13417
13418         inttypes: omit now-redundant strtoimax and strtoumax work
13419         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
13420         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
13421
13422         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
13423         This supports apps that need pointers to strtoimax and strtoumax,
13424         and ports to HP-UX 11.00 64.bit, which has macros that expand to
13425         nonexistent functions.  See
13426         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
13427         et seq.
13428         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
13429         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
13430         a macro.
13431         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
13432
13433 2011-04-25  Simon Josefsson  <simon@josefsson.org>
13434
13435         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
13436
13437 2011-04-25  Bruno Haible  <bruno@clisp.org>
13438
13439         strtol, strtoul: Mark modules as obsolete.
13440         * modules/strtol (Status, Notice): New sections.
13441         * modules/strtoul (Status, Notice): New sections.
13442
13443 2011-04-25  Bruno Haible  <bruno@clisp.org>
13444
13445         strtod: Remove check for strtod, unless supporting old platforms.
13446         * modules/strtod-obsolete: New file.
13447         * m4/strtod-obsolete.m4: New file.
13448         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
13449         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
13450         * modules/strtod (Depends-on): Add strtod-obsolete.
13451         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
13452
13453 2011-04-25  Bruno Haible  <bruno@clisp.org>
13454
13455         strcase: Make module obsolete.
13456         * modules/strcase (Status, Notice): New sections.
13457
13458 2011-04-25  Bruno Haible  <bruno@clisp.org>
13459
13460         dup2: Remove check for dup2, unless supporting old obsolete platforms.
13461         * modules/dup2-obsolete: New file.
13462         * m4/dup2-obsolete.m4: New file.
13463         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
13464         gl_FUNC_DUP2_OBSOLETE is not also defined.
13465         * modules/dup2 (Depends-on): Add dup2-obsolete.
13466         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
13467
13468 2011-04-25  Bruno Haible  <bruno@clisp.org>
13469
13470         strnlen: Avoid memchr related link error on old obsolete platforms.
13471         * modules/memchr-obsolete: New file.
13472         * m4/memchr-obsolete.m4: New file.
13473         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
13474         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
13475         * modules/memchr (Depends-on): Add memchr-obsolete.
13476         * modules/strnlen (Depends-on): Likewise.
13477         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
13478
13479 2011-04-25  Jim Meyering  <meyering@redhat.com>
13480
13481         maint.mk: makefile_at_at_check extend and clean up
13482         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
13483         in addition to */Makefile.am.
13484         Exempt legitimate uses of @VAR@ notation, e.g.,
13485         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
13486         Remove obsolete coreutils-specific comment.
13487         Prompted by discussion here:
13488         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
13489
13490 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
13491
13492         strtoul: remove dependency on strtol
13493         This is so that 'configure' need not check for strtol merely because
13494         the application needs strtoul.
13495         * modules/strtoul (Files): Add lib/strtol.c.
13496         (Depends-on): Remove strtol.
13497
13498         strtoull: remove dependency on strtoul
13499         This is like the strtoll change.
13500         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
13501         (Depends-on): Remove strtoul.
13502
13503         strtoll: remove dependency on strtol
13504         This is so that 'configure' need not check for strtol merely because
13505         the application needs strtoll.
13506         * modules/strtoll (Files): Add lib/strtol.c.
13507         (Depends-on): Remove strtol.
13508
13509 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13510
13511         inttypes: Move some configure check to module 'imaxdiv'.
13512         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
13513         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
13514         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
13515
13516 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13517
13518         inttypes: Move some configure check to module 'imaxabs'.
13519         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
13520         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
13521         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
13522
13523 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13524
13525         inttypes: Remove configure tests that are not needed since 2009-12-31.
13526         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
13527         gl_cv_header_working_inttypes_h.
13528
13529 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13530
13531         * modules/strnlen (Depends-on): Remove memchr.
13532         The strnlen implementation doesn't need the memchr module's fixes; see
13533         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
13534
13535         strtol: remove dependency on wchar
13536         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
13537         * modules/strtol (Depends-on): Remove wchar.
13538
13539 2011-04-21  Eric Blake  <eblake@redhat.com>
13540
13541         passfd: fix test regression on Linux
13542         * modules/passfd-tests (configure.ac): Correct socketpair check.
13543
13544         passfd: speed up configure and drop unused code
13545         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
13546         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
13547         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
13548         Instead of probing at configure for unix_scm_rights_bsd44_way,
13549         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
13550         check to a struct member probe.
13551         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
13552         (sendfd, recvfd): Update preprocessor checks.
13553         * modules/passfd (Files): Reflect rename, and drop unused file.
13554         (Depends-on): Drop unused dependency.
13555
13556         passfd: allow compilation on mingw
13557         * modules/sys_socket (Depends-on): Add sys_uio.
13558         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
13559         iovec and a minimal struct msghdr.
13560         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
13561         * tests/test-sys_socket.c (main): Enhance test.
13562         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
13563         guaranteed to provide what we need.
13564         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
13565         * modules/passfd-tests (Depends-on): Add sys_wait.
13566         * tests/test-passfd.c (main): Skip test on mingw, for now.
13567         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
13568         partial 'struct msghdr' implementation.
13569
13570         sys_uio: new module
13571         * modules/sys_uio: New module.
13572         * modules/sys_uio-tests: Likewise.
13573         * lib/sys_uio.in.h: New file.
13574         * m4/sys_uio_h.m4: Likewise.
13575         * tests/test-sys_uio.c: Likewise.
13576         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
13577         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
13578
13579 2011-04-20  Jim Meyering  <meyering@redhat.com>
13580
13581         useless-if-before-free: avoid false-positive
13582         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
13583         disjunct so that it too requires a terminating ";".  Without that,
13584         this script would identify as useless one statement from gcc that
13585         was not:
13586           if (aligned_ptr)
13587             free (((void **) aligned_ptr) [-1]);
13588
13589 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
13590
13591         doc: update users.txt.
13592         * users.txt: Add barcode.
13593
13594 2011-04-19  Bruno Haible  <bruno@clisp.org>
13595
13596         ioctl: Remove link dependency on native Windows.
13597         * lib/fd-hook.h: Renamed from lib/close-hook.h.
13598         (gl_close_fn, gl_ioctl_fn): New types.
13599         (struct fd_hook): Renamed from struct close_hook. Change type of
13600         private_close_fn field. Add private_ioctl_fn field.
13601         (close_hook_fn): Add parameter for primary close method.
13602         (execute_close_hooks, execute_all_close_hooks): Likewise.
13603         (ioctl_hook_fn): New type.
13604         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
13605         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13606         argument.
13607         (unregister_fd_hook): Renamed from unregister_close_hook.
13608         * lib/fd-hook.c: Renamed from lib/close-hook.c.
13609         Don't include <unistd.h>.
13610         (close): Remove undef.
13611         (anchor): Update.
13612         (execute_close_hooks): Add argument for primary close method.
13613         (execute_all_close_hooks): Likewise.
13614         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
13615         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13616         argument. Allow each argument to be NULL.
13617         (unregister_fd_hook): Renamed from unregister_close_hook.
13618         * lib/close.c (rpl_close): Pass 'close' function pointer to
13619         execute_all_close_hooks.
13620         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
13621         (primary_ioctl): New function.
13622         (ioctl): Don't call ioctlsocket here. Instead, call
13623         execute_all_ioctl_hooks.
13624         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
13625         close method.
13626         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
13627         (fd_sockets_hook): Renamed from close_sockets_hook.
13628         (gl_sockets_startup, gl_sockets_cleanup): Update.
13629         * modules/fd-hook: Renamed from modules/close-hook. Update.
13630         * modules/close (Depends-on): Add fd-hook, remove close-hook.
13631         * modules/sockets (Depends-on): Likewise.
13632         * modules/ioctl (Depends-on): Add fd-hook.
13633         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
13634         GNULIB_SOCKET.
13635
13636 2011-04-19  Bruno Haible  <bruno@clisp.org>
13637
13638         Move the support of O_NONBLOCK in open() to the 'open' module.
13639         * modules/nonblocking (Depends-on): Remove 'open'.
13640         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
13641         gl_cv_have_open_O_NONBLOCK.
13642         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
13643         O_NONBLOCK support.
13644         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
13645
13646 2011-04-17  Bruno Haible  <bruno@clisp.org>
13647
13648         pipe2: Simplify code.
13649         * lib/pipe2.c (pipe2): Reduce code duplication.
13650
13651 2011-04-17  Bruno Haible  <bruno@clisp.org>
13652
13653         nonblocking: Add comment.
13654         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
13655
13656 2011-04-17  Bruno Haible  <bruno@clisp.org>
13657
13658         nonblocking: Add tests for sockets.
13659         * tests/test-nonblocking-socket.sh: New file.
13660         * tests/test-nonblocking-socket-main.c: New file.
13661         * tests/test-nonblocking-socket-child.c: New file.
13662         * tests/test-nonblocking-socket.h: New file.
13663         * tests/socket-server.h: New file.
13664         * tests/socket-client.h: New file.
13665         * modules/nonblocking-socket-tests: New file.
13666         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
13667
13668 2011-04-17  Bruno Haible  <bruno@clisp.org>
13669
13670         nonblocking: Add tests for pipes.
13671         * tests/test-nonblocking-pipe.sh: New file.
13672         * tests/test-nonblocking-pipe-main.c: New file.
13673         * tests/test-nonblocking-pipe-child.c: New file.
13674         * tests/test-nonblocking-pipe.h: New file.
13675         * tests/test-nonblocking-writer.h: New file.
13676         * tests/test-nonblocking-reader.h: New file.
13677         * tests/test-nonblocking-misc.h: New file.
13678         * modules/nonblocking-pipe-tests: New file.
13679         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
13680
13681 2011-04-16  Bruno Haible  <bruno@clisp.org>
13682
13683         gettext: Clarify the needed programmer actions.
13684         * modules/gettext (Notice): New field.
13685         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
13686
13687 2011-04-16  Bruno Haible  <bruno@clisp.org>
13688
13689         strchrnul: Tweak last commit.
13690         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
13691         bug.
13692         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
13693         as in _GL_FUNCDECL_SYS.
13694         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
13695         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
13696
13697 2011-04-15  Eric Blake  <eblake@redhat.com>
13698
13699         strchrnul: work around cygwin bug
13700         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
13701         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
13702         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
13703         * modules/string (Makefile.am): Substitute it.
13704         * lib/string.in.h (strchrnul): Use it.
13705
13706 2011-04-15  Bruno Haible  <bruno@clisp.org>
13707
13708         Don't require lib/stdio-write.c when only module 'stdio' is used.
13709         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
13710         invocation.
13711         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
13712
13713 2011-04-14  Bruno Haible  <bruno@clisp.org>
13714
13715         Support non-blocking pipe I/O in read() on native Windows.
13716         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
13717         (read): New declaration.
13718         * lib/read.c: New file.
13719         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
13720         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
13721         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
13722         vscanf): New declarations.
13723         * lib/stdio-read.c: New file.
13724         * m4/read.m4: New file.
13725         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
13726         REPLACE_READ.
13727         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
13728         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13729         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
13730         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
13731         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
13732         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13733         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13734         * modules/read: New file.
13735         * modules/nonblocking (Files): Add lib/stdio-read.c.
13736         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
13737         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
13738         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13739         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13740         * modules/pread (Depends-on): Add read.
13741         * modules/safe-read (Depends-on): Likewise.
13742         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
13743         gets, scanf, vfscanf, vscanf): Verify signatures.
13744         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
13745         problem with non-blocking pipes.
13746         * doc/posix-functions/fgetc.texi: Likewise.
13747         * doc/posix-functions/fgets.texi: Likewise.
13748         * doc/posix-functions/fread.texi: Likewise.
13749         * doc/posix-functions/fscanf.texi: Likewise.
13750         * doc/posix-functions/getc.texi: Likewise.
13751         * doc/posix-functions/getchar.texi: Likewise.
13752         * doc/posix-functions/gets.texi: Likewise.
13753         * doc/posix-functions/scanf.texi: Likewise.
13754         * doc/posix-functions/vfscanf.texi: Likewise.
13755         * doc/posix-functions/vscanf.texi: Likewise.
13756
13757 2011-04-14  Bruno Haible  <bruno@clisp.org>
13758
13759         Support non-blocking pipe I/O in write() on native Windows.
13760         * lib/write.c (rpl_write): Split a write request that failed merely
13761         because the byte count was larger than the pipe buffer's size.
13762         * doc/posix-functions/write.texi: Mention the problem with large byte
13763         counts.
13764
13765 2011-04-14  Bruno Haible  <bruno@clisp.org>
13766
13767         wchar: Ensure that wchar_t gets defined on uClibc.
13768         * lib/wchar.in.h: On uClibc, include <stddef.h>.
13769         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
13770
13771 2011-04-13  Bruno Haible  <bruno@clisp.org>
13772
13773         safe-write, full-read: Avoid unnecessary compilation units.
13774         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
13775         (Depends-on): Remove safe-read. Add ssize_t.
13776         * modules/full-read (Files): Add lib/full-write.c.
13777         (Depends-on): Add full-write.
13778
13779 2011-04-13  Bruno Haible  <bruno@clisp.org>
13780
13781         Support non-blocking pipe I/O and SIGPIPE in pwrite().
13782         * modules/pwrite (Depends-on): Add 'write'.
13783
13784 2011-04-13  Bruno Haible  <bruno@clisp.org>
13785
13786         Support non-blocking pipe I/O in write() on native Windows.
13787         * lib/unistd.in.h (write): Enable replacement also if
13788         GNULIB_UNISTD_H_NONBLOCKING is 1.
13789         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
13790         (rpl_write): When failing to write on a non-blocking pipe, change
13791         errno from ENOSPC to EAGAIN.
13792         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
13793         putchar, puts, vfprintf, vprintf): Enable replacement also if
13794         GNULIB_STDIO_H_NONBLOCKING is 1.
13795         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
13796         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
13797         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
13798         CALL_WITH_SIGPIPE_EMULATION.
13799         (CALL_WITH_SIGPIPE_EMULATION): Use them.
13800         * m4/nonblocking.m4: New file.
13801         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
13802         for non-blocking I/O support.
13803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13804         GNULIB_UNISTD_H_NONBLOCKING.
13805         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
13806         required for non-blocking I/O support.
13807         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
13808         * modules/nonblocking (Files): Add m4/nonblocking.m4,
13809         lib/stdio-write.c, m4/asm-underscore.m4.
13810         (Depends-on): Add stdio, unistd.
13811         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
13812         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
13813         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
13814         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
13815         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
13816         problem with non-blocking pipes.
13817         * doc/posix-functions/fputc.texi: Likewise.
13818         * doc/posix-functions/fputs.texi: Likewise.
13819         * doc/posix-functions/fwrite.texi: Likewise.
13820         * doc/posix-functions/printf.texi: Likewise.
13821         * doc/posix-functions/putc.texi: Likewise.
13822         * doc/posix-functions/putchar.texi: Likewise.
13823         * doc/posix-functions/puts.texi: Likewise.
13824         * doc/posix-functions/vfprintf.texi: Likewise.
13825         * doc/posix-functions/vprintf.texi: Likewise.
13826         * doc/posix-functions/write.texi: Likewise.
13827
13828 2011-04-10  Jim Meyering  <meyering@redhat.com>
13829
13830         maint.mk: prohibit doubled words
13831         Detect them also when they're separated by a newline.
13832         There are 3 ways to customize it:
13833           - disable the test on a per file basis, as usual with rules using
13834             $(VC_LIST_EXCEPT)
13835           - replace the default doubled-word-selecting regexp (affects all files)
13836           - ignore a particular file-vs-doubled-word match
13837         I nearly used that last one to ignore the "is is" match in
13838         coreutils' NEWS file, since the text was "ls -is is ..."
13839         To do that, I would have added this line to cfg.mk:
13840           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
13841         but it would have ignored any "is is" match in NEWS.
13842         Low probability, but still...
13843         Instead, I changed the text, slightly:
13844           -  ls -is is now consistent with ls -lis in ignoring values returned
13845           +  "ls -is" is now consistent with ls -lis in ignoring values returned
13846         * top/maint.mk (prohibit_double_word_RE_): Provide default.
13847         (prohibit_doubled_word_): Define.
13848         (sc_prohibit_doubled_word): New rule.
13849         (sc_prohibit_the_the): Remove.  Subsumed by the above.
13850
13851 2011-04-10  Jim Meyering  <meyering@redhat.com>
13852
13853         maint: fix doubled-word typo in comment
13854         * m4/gethostname.m4: s/is is/it is/
13855         * m4/getdomainname.m4: Likewise.
13856
13857 2011-04-10  Jim Meyering  <meyering@redhat.com>
13858
13859         maint: remove doubled word: s/it it/it/
13860         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
13861
13862 2011-04-10  Jim Meyering  <meyering@redhat.com>
13863
13864         maint.mk: remove useless semicolon and backslash
13865         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
13866         semicolon and backslash.
13867
13868 2011-04-10  Bruno Haible  <bruno@clisp.org>
13869
13870         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
13871         * modules/stdint-tests (Depends-on): Add wchar.
13872
13873 2011-04-10  Jim Meyering  <meyering@redhat.com>
13874
13875         maint: remove doubled words in comments, e.g., s/a a/a/
13876         * lib/strptime.c (day_of_the_week): s/the the/the/
13877         * tests/test-chown.h (test_chown): s/a a/a/
13878
13879         test-chown.h: correct a cast
13880         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
13881         when the destination is a stat.st_gid.
13882
13883 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
13884
13885         getaddrinfo: Fix test for sa_len member.
13886         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
13887         include <sys/types.h> before <sys/socket.h>.
13888
13889 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13890
13891         maint: change "can not" to "cannot"
13892         * doc/posix-functions/iconv.texi (iconv): This one crossed line
13893         boundaries.
13894
13895 2011-04-09  Jim Meyering  <meyering@redhat.com>
13896
13897         maint: change "a a" to "a"
13898         * tests/test-lchown.h (test_lchown): s/a a/a/
13899
13900         maint.mk: prohibit \<the the\>
13901         * top/maint.mk (sc_prohibit_the_the): New rule.
13902
13903         maint: fix "the the" in comment
13904         * lib/count-one-bits.h: s/the the/the/
13905
13906         maint: change "can not" to "cannot"
13907         But do not change the occurrences in maintain.texi or in
13908         build-aux/po/Makefile.in.in, which I presume comes from gettext.
13909         * doc/gnulib-tool.texi: s/can not/cannot/
13910         * doc/posix-functions/accept.texi (accept): Likewise.
13911         * doc/posix-functions/socket.texi (socket): Likewise.
13912         * lib/mbrtowc.c: Likewise.
13913
13914         maint.mk: prohibit use of "can not"
13915         * top/maint.mk (sc_prohibit_can_not): New rule.
13916         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
13917
13918 2011-04-09  Bruno Haible  <bruno@clisp.org>
13919
13920         careadlinkat: Guard against misuse of careadlinkatcwd.
13921         * lib/careadlinkat.c: Include <stdlib.h>.
13922         (careadlinkatcwd): Check that the fd argument is as expected.
13923
13924 2011-04-09  Bruno Haible  <bruno@clisp.org>
13925
13926         careadlinkat: Use common coding style.
13927         * lib/careadlinkat.c: Move gnulib includes after system includes.
13928
13929 2011-04-09  Bruno Haible  <bruno@clisp.org>
13930
13931         careadlinkat: Clarify specification.
13932         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
13933         (careadlinkatcwd): Add comment.
13934         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
13935
13936 2011-04-09  Bruno Haible  <bruno@clisp.org>
13937
13938         areadlinkat: Avoid link error on many platforms.
13939         * modules/areadlinkat (Depends-on): Add areadlink.
13940
13941 2011-04-09  Bruno Haible  <bruno@clisp.org>
13942
13943         allocator, careadlinkat: Fix double-inclusion guard.
13944         * lib/allocator.h: Fix double-inclusion guard.
13945         * lib/careadlinkat.h: Likewise.
13946
13947 2011-04-09  Bruno Haible  <bruno@clisp.org>
13948
13949         relocatable-prog-wrapper: Update after module 'areadlink' changed.
13950         * lib/relocwrapper.c: Update dependencies hierarchy.
13951         * build-aux/install-reloc: Update list of files to be compiled.
13952         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
13953         lib/allocator.[hc].
13954
13955 2011-04-08  Eric Blake  <eblake@redhat.com>
13956
13957         strftime: silence gnulib-tool warning
13958         * modules/strftime-tests (Depends-on): Drop automatic dependency.
13959
13960 2011-04-08  Bruno Haible  <bruno@clisp.org>
13961
13962         verify: Fix syntax error with GCC 4.6 in C++ mode.
13963         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
13964         (HAVE_STATIC_ASSERT): New macro.
13965         (verify_true, verify): Use 'static_assert' if it is supported and
13966         '_Static_assert' is not supported.
13967
13968 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
13969
13970         allocator: New module.
13971         * modules/allocator, lib/allocator.c: New files.
13972         * lib/allocator.h (stdlib_allocator): New decl.
13973         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
13974         Remove.  Do not include <stdlib.h>.
13975         (careadlinkat): Use stdlib_allocator instead of rolling our own.
13976         * modules/careadlinkat (Files): Remove lib/allocator.h.
13977         (Depends-on): Add allocator.
13978
13979         stdlib: let modules use system malloc, realloc
13980         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
13981         if !_GL_USE_STDLIB_ALLOC.
13982         (malloc, realloc): Limit this change to a smaller scope.
13983
13984         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
13985         (malloc, realloc): Don't #undef; no longer needed.
13986         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13987         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13988         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13989         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13990         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13991         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13992         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13993         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13994
13995         careadlinkat: rename members to avoid problem
13996         * lib/allocator.h (struct allocator): Rename members from
13997         malloc/realloc to allocate/reallocate, to avoid problems if malloc
13998         and realloc are #define'd.  Reported by Eric Blake in
13999         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
14000         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
14001
14002 2011-04-08  Eric Blake  <eblake@redhat.com>
14003
14004         nonblocking: reduce dependency
14005         * tests/test-nonblocking.c: Only test sockets when in use.
14006         * modules/nonblocking-tests (Depends-on): Drop socket.
14007         (Makefile.am): Link even if sockets are not present.
14008         * modules/pipe2-tests (Makefile.am): Likewise.
14009         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
14010
14011         pipe2: fix O_NONBLOCK support on mingw
14012         * modules/pipe2 (Depends-on): Add nonblocking.
14013         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
14014         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
14015         * tests/test-nonblocking.c (main): Likewise.
14016         * modules/pipe2-tests (Makefile.am): Avoid link failure.
14017
14018         fcntl-h: fix O_ACCMODE on cygwin
14019         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
14020         * lib/fcntl.in.h (O_ACCMODE): Fix it.
14021
14022         pipe-filter: drop O_NONBLOCK workarounds
14023         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
14024         * modules/pipe-filter-ii (Depends-on): Likewise.
14025         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
14026
14027         nonblocking: provide O_NONBLOCK for mingw
14028         * modules/nonblocking (Depends-on): Add open.
14029         (configure.ac): Set new witness macro.
14030         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
14031         * modules/fcntl-h (Makefile.am): Substitute it.
14032         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
14033         nonblocking module is in use.
14034         * lib/nonblocking.c: Adjust portability test.
14035         * lib/open.c (open): Don't let native open see gnulib flag.
14036         * tests/test-fcntl-h.c (main): Enhance test.
14037         * tests/test-open.h (test_open): Likewise.
14038         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
14039
14040         careadlinkat: fix compilation error on mingw
14041         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
14042         within struct allocator.
14043
14044 2011-04-06  Eric Blake  <eblake@redhat.com>
14045
14046         binary-io: relicense under LGPLv2+
14047         * modules/binary-io (License): Relax to LGPLv2+.
14048         Requested for libvirt, and required by pipe2.
14049
14050 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
14051
14052         verify: use _Static_assert if available
14053         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
14054         (verify_true, verify): Use it if available.  This generates better
14055         diagnostics with GCC 4.6.0 and later.
14056
14057 2011-04-05  Bruno Haible  <bruno@clisp.org>
14058
14059         Remove leftover generated .h files after config.status changed.
14060
14061         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
14062         GL_GENERATE_ALLOCA_H.
14063         * modules/alloca-opt (Makefile.am): Remove alloca.h if
14064         GL_GENERATE_ALLOCA_H evaluates to false.
14065
14066         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
14067         GL_GENERATE_ARGZ_H.
14068         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
14069         evaluates to false.
14070
14071         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
14072         GL_GENERATE_BYTESWAP_H.
14073         * modules/byteswap (Makefile.am): Remove byteswap.h if
14074         GL_GENERATE_BYTESWAP_H evaluates to false.
14075
14076         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
14077         GL_GENERATE_ERRNO_H.
14078         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
14079         evaluates to false.
14080
14081         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
14082         GL_GENERATE_FLOAT_H.
14083         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
14084         evaluates to false.
14085
14086         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
14087         GL_GENERATE_FNMATCH_H.
14088         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
14089         GL_GENERATE_FNMATCH_H evaluates to false.
14090
14091         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
14092         GL_GENERATE_GLOB_H.
14093         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
14094         evaluates to false.
14095
14096         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
14097         automake conditional GL_GENERATE_ICONV_H.
14098         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
14099         evaluates to false.
14100
14101         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
14102         GL_GENERATE_NETINET_IN_H.
14103         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
14104         GL_GENERATE_NETINET_IN_H evaluates to false.
14105
14106         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
14107         conditional GL_GENERATE_PTHREAD_H.
14108         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
14109         * modules/pthread (Makefile.am): Remove pthread.h if
14110         GL_GENERATE_PTHREAD_H evaluates to false.
14111
14112         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
14113         GL_GENERATE_SCHED_H.
14114         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
14115         evaluates to false.
14116
14117         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
14118         conditional GL_GENERATE_SELINUX_CONTEXT_H.
14119         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
14120         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
14121
14122         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
14123         GL_GENERATE_STDARG_H.
14124         * modules/stdarg (Makefile.am): Remove stdarg.h if
14125         GL_GENERATE_STDARG_H evaluates to false.
14126
14127         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
14128         GL_GENERATE_STDBOOL_H.
14129         * modules/stdbool (Makefile.am): Remove stdbool.h if
14130         GL_GENERATE_STDBOOL_H evaluates to false.
14131
14132         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
14133         conditional GL_GENERATE_STDDEF_H.
14134         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
14135         * modules/stddef (Makefile.am): Remove stddef.h if
14136         GL_GENERATE_STDDEF_H evaluates to false.
14137
14138         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
14139         GL_GENERATE_STDINT_H.
14140         * modules/stdint (Makefile.am): Remove stdint.h if
14141         GL_GENERATE_STDINT_H evaluates to false.
14142
14143         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
14144         GL_GENERATE_SYSEXITS_H.
14145         * modules/sysexits (Makefile.am): Remove sysexits.h if
14146         GL_GENERATE_SYSEXITS_H evaluates to false.
14147
14148         Reported by Karl Berry and Ralf Wildenhues.
14149
14150 2011-04-05  Bruno Haible  <bruno@clisp.org>
14151
14152         Ensure to rebuild generated .h files when config.status has changed.
14153         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
14154         config.status.
14155         * modules/ctype (Makefile.am): Likewise.
14156         * modules/dirent (Makefile.am): Likewise.
14157         * modules/errno (Makefile.am): Likewise.
14158         * modules/fcntl-h (Makefile.am): Likewise.
14159         * modules/float (Makefile.am): Likewise.
14160         * modules/getopt-posix (Makefile.am): Likewise.
14161         * modules/glob (Makefile.am): Likewise.
14162         * modules/iconv-h (Makefile.am): Likewise.
14163         * modules/inttypes (Makefile.am): Likewise.
14164         * modules/langinfo (Makefile.am): Likewise.
14165         * modules/locale (Makefile.am): Likewise.
14166         * modules/math (Makefile.am): Likewise.
14167         * modules/netdb (Makefile.am): Likewise.
14168         * modules/netinet_in (Makefile.am): Likewise.
14169         * modules/poll-h (Makefile.am): Likewise.
14170         * modules/pthread (Makefile.am): Likewise.
14171         * modules/pty (Makefile.am): Likewise.
14172         * modules/sched (Makefile.am): Likewise.
14173         * modules/search (Makefile.am): Likewise.
14174         * modules/selinux-h (Makefile.am): Likewise.
14175         * modules/signal (Makefile.am): Likewise.
14176         * modules/spawn (Makefile.am): Likewise.
14177         * modules/stdarg (Makefile.am): Likewise.
14178         * modules/stdbool (Makefile.am): Likewise.
14179         * modules/stddef (Makefile.am): Likewise.
14180         * modules/stdint (Makefile.am): Likewise.
14181         * modules/stdio (Makefile.am): Likewise.
14182         * modules/stdlib (Makefile.am): Likewise.
14183         * modules/string (Makefile.am): Likewise.
14184         * modules/strings (Makefile.am): Likewise.
14185         * modules/sys_file (Makefile.am): Likewise.
14186         * modules/sys_ioctl (Makefile.am): Likewise.
14187         * modules/sys_select (Makefile.am): Likewise.
14188         * modules/sys_socket (Makefile.am): Likewise.
14189         * modules/sys_stat (Makefile.am): Likewise.
14190         * modules/sys_time (Makefile.am): Likewise.
14191         * modules/sys_times (Makefile.am): Likewise.
14192         * modules/sys_utsname (Makefile.am): Likewise.
14193         * modules/sys_wait (Makefile.am): Likewise.
14194         * modules/sysexits (Makefile.am): Likewise.
14195         * modules/termios (Makefile.am): Likewise.
14196         * modules/time (Makefile.am): Likewise.
14197         * modules/unistd (Makefile.am): Likewise.
14198         * modules/wchar (Makefile.am): Likewise.
14199         * modules/wctype-h (Makefile.am): Likewise.
14200         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
14201
14202 2011-04-05  Bruno Haible  <bruno@clisp.org>
14203
14204         pipe2: Relicense under LGPLv2+.
14205         * modules/pipe2 (License): Change to LGPLv2+.
14206         Requested by Eric Blake, for libvirt.
14207
14208 2011-04-05  Bruce Korb  <bkorb@gnu.org>
14209
14210         bootstrap: compute gnulib_extra_files after updating build_aux
14211         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
14212         change build_aux or also supply gnulib_extra_files.  Handle correctly.
14213
14214 2011-04-05  Eric Blake  <eblake@redhat.com>
14215
14216         bootstrap: preserve git whitelist item sorting
14217         * build-aux/bootstrap (sort_patterns): New function.
14218         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
14219
14220 2011-04-05  Simon Josefsson  <simon@josefsson.org>
14221
14222         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
14223         sc_space_tab check.
14224
14225 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
14226
14227         areadlink, areadlinkat: rewrite in terms of careadlinkat
14228         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
14229         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
14230         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
14231         (malloc, realloc): Remove #undefs.
14232         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
14233         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
14234         readlink, ssize_t, stdint, unistd.
14235         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
14236         areadlink, stdint.
14237
14238         careadlinkat: new module
14239         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
14240         * modules/careadlinkat: New files, written by me with
14241         a review and feedback from Ben Pfaff in
14242         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
14243
14244 2011-04-01  Bruno Haible  <bruno@clisp.org>
14245
14246         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
14247         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
14248         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
14249         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
14250         Reported by Bruce Korb <bruce.korb@gmail.com>.
14251
14252 2011-04-01  Bruno Haible  <bruno@clisp.org>
14253
14254         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
14255         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
14256         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
14257         * modules/wcpcpy (Depends-on): Add extensions.
14258         * modules/wcpncpy (Depends-on): Likewise.
14259         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
14260         systems.
14261         * doc/posix-functions/wcpncpy.texi: Likewise.
14262         * doc/posix-functions/wcwidth.texi: Likewise.
14263
14264 2011-03-31  Eric Blake  <eblake@redhat.com>
14265
14266         nonblocking: fix mingw test failures
14267         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
14268         non-blocking flag on regular file.
14269         (get_nonblocking_flag): Set errno on invalid fd.
14270         * tests/test-nonblocking.c (main): Avoid test failure on
14271         directories if fchdir is not active.
14272         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
14273
14274 2011-03-31  Bruno Haible  <bruno@clisp.org>
14275
14276         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
14277         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
14278         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
14279         Reported by Simon Josefsson <simon@josefsson.org>.
14280
14281 2011-03-31  Bruno Haible  <bruno@clisp.org>
14282         and Eric Blake  <eblake@redhat.com>
14283
14284         nonblocking: new module
14285         * modules/nonblocking: New module.
14286         * modules/nonblocking-tests: Likewise.
14287         * lib/nonblocking.h: New file.
14288         * lib/nonblocking.c: Likewise.
14289         * tests/test-nonblocking.c: New test.
14290         * lib/ioctl.c (ioctl) [mingw]: Update comment.
14291
14292 2011-03-30  Bruno Haible  <bruno@clisp.org>
14293
14294         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
14295         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
14296         instead of 'printf' format for GCC >= 4.4.
14297         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
14298         (fprintf, printf, vfprintf, vprintf): Declare with
14299         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
14300         the system's vfprintf() function.
14301         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
14302
14303 2011-03-30  Eric Blake  <eblake@redhat.com>
14304
14305         passfd: fix scoping bug
14306         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
14307         before sendmsg/recvmsg.
14308
14309         passfd: standardize coding conventions
14310         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
14311         can be learned at compile time.
14312         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
14313         ifdefs.
14314         (sendfd, recvfd): Follow gnulib code conventions.
14315
14316         passfd: fix incorrect sendmsg arguments
14317         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
14318         incorrect msg_controllen value.
14319         * modules/passfd-tests (Depends-on): Check for alarm.
14320         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
14321         Reported by Bastien ROUCARIES.
14322
14323 2011-03-30  Bruno Haible  <bruno@clisp.org>
14324
14325         c-strcasestr: Relicense under LGPLv2+.
14326         * modules/c-strcasestr (License): Change to LGPLv2+.
14327         Requested by Eric Blake, for libvirt.
14328
14329 2011-03-30  Simon Josefsson  <simon@josefsson.org>
14330
14331         * users.txt: Add libidn2.  Fix libtasn1 link.
14332
14333 2011-03-30  Jim Meyering  <meyering@redhat.com>
14334
14335         tests: readlink* ("",... fails with EINVAL on newer kernels
14336         readlink and readlinkat have typically failed with ENOENT for
14337         the invalid, empty file name,  "".  However, with the advent
14338         of linux-2.6.39, they fail with EINVAL.
14339         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
14340         when operating on the empty file name.
14341         * tests/test-readlink.h (test_readlink): Likewise.
14342
14343 2011-03-29  Bruno Haible  <bruno@clisp.org>
14344
14345         Relicense some modules under LGPLv2+, for libidn2.
14346         * modules/array-mergesort (License): Change to LGPLv2+.
14347         * modules/c-strcaseeq (License): Likewise.
14348         * modules/striconveh (License): Likewise.
14349         * modules/striconveha (License): Likewise.
14350         * modules/uniconv/base (License): Likewise.
14351         * modules/uniconv/u8-conv-from-enc (License): Likewise.
14352         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
14353         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
14354         * modules/unictype/base (License): Likewise.
14355         * modules/unictype/bidiclass-of (License): Likewise.
14356         * modules/unictype/category-M (License): Likewise.
14357         * modules/unictype/category-none (License): Likewise.
14358         * modules/unictype/category-of (License): Likewise.
14359         * modules/unictype/category-test (License): Likewise.
14360         * modules/unictype/category-test-withtable (License): Likewise.
14361         * modules/unictype/combining-class (License): Likewise.
14362         * modules/unictype/joiningtype-of (License): Likewise.
14363         * modules/unictype/scripts (License): Likewise.
14364         * modules/uninorm/base (License): Likewise.
14365         * modules/uninorm/canonical-decomposition (License): Likewise.
14366         * modules/uninorm/composition (License): Likewise.
14367         * modules/uninorm/decompose-internal (License): Likewise.
14368         * modules/uninorm/decomposition-table (License): Likewise.
14369         * modules/uninorm/nfc (License): Likewise.
14370         * modules/uninorm/nfd (License): Likewise.
14371         * modules/uninorm/u32-normalize (License): Likewise.
14372         * modules/unistr/base (License): Likewise.
14373         * modules/unistr/u32-cpy (License): Likewise.
14374         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
14375         * modules/unistr/u32-to-u8 (License): Likewise.
14376         * modules/unistr/u32-uctomb (License): Likewise.
14377         * modules/unistr/u8-check (License): Likewise.
14378         * modules/unistr/u8-mblen (License): Likewise.
14379         * modules/unistr/u8-mbtouc (License): Likewise.
14380         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
14381         * modules/unistr/u8-mbtoucr (License): Likewise.
14382         * modules/unistr/u8-prev (License): Likewise.
14383         * modules/unistr/u8-strlen (License): Likewise.
14384         * modules/unistr/u8-to-u32 (License): Likewise.
14385         * modules/unistr/u8-uctomb (License): Likewise.
14386         * modules/unitypes (License): Likewise.
14387         Requested by Simon Josefsson.
14388
14389 2011-03-29  Simon Josefsson  <simon@josefsson.org>
14390
14391         lib-symbol-visibility: Add a notice.
14392         * modules/lib-symbol-visibility (Notice): New field.
14393
14394 2011-03-29  Bruno Haible  <bruno@clisp.org>
14395
14396         getaddrinfo: Doc fix.
14397         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
14398         section "fixed in Gnulib".
14399
14400 2011-03-28  Simon Josefsson  <simon@josefsson.org>
14401
14402         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
14403         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
14404
14405 2011-03-26  Bruno Haible  <bruno@clisp.org>
14406
14407         unictype/property-byname: Reduce the number of load-time relocations.
14408         * lib/unictype/pr_byname.c: Include <stdlib.h>.
14409         (UC_PROPERTY_INDEX_*): New enumeration values.
14410         (uc_property_byname): Convert an index from the lookup table to an
14411         uc_property_t.
14412         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
14413         values.
14414
14415 2011-03-26  Bruno Haible  <bruno@clisp.org>
14416
14417         unictype/property-byname: Allow omitted word separators and aliases.
14418         * lib/unictype/pr_byname.gperf: Add property names without word
14419         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
14420         for 'space'.
14421
14422 2011-03-26  Bruno Haible  <bruno@clisp.org>
14423
14424         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
14425         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
14426         also hyphens to space.
14427         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
14428         without spaces.
14429         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
14430
14431 2011-03-26  Bruno Haible  <bruno@clisp.org>
14432
14433         unictype/joiningtype-byname: Recognize long names as well.
14434         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
14435         a long name.
14436         * lib/unictype/joiningtype_byname.c: Include <string.h>,
14437         unictype/joiningtype_byname.h.
14438         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
14439         * lib/unictype/joiningtype_byname.gperf: New file.
14440         * modules/unictype/joiningtype-byname (Files): Add
14441         lib/unictype/joiningtype_byname.gperf.
14442         (Depends-on): Add gperf.
14443         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
14444         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
14445         long names.
14446
14447         Tests for module 'unictype/joiningtype-longname'.
14448         * modules/unictype/joiningtype-longname-tests: New file.
14449         * tests/unictype/test-joiningtype_longname.c: New file.
14450
14451         New module 'unictype/joiningtype-longname'.
14452         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
14453         * lib/unictype/joiningtype_longname.c: New file.
14454         * modules/unictype/joiningtype-longname: New file.
14455         * modules/unictype/joiningtype-all (Depends-on): Add
14456         unictype/joiningtype-longname.
14457
14458 2011-03-26  Bruno Haible  <bruno@clisp.org>
14459
14460         unictype/bidiclass-byname: Recognize long names as well.
14461         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
14462         name.
14463         * lib/unictype/bidi_byname.c: Include <string.h>,
14464         unictype/bidi_byname.h.
14465         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
14466         * lib/unictype/bidi_byname.gperf: New file.
14467         * modules/unictype/bidiclass-byname (Files): Add
14468         lib/unictype/bidi_byname.gperf.
14469         (Depends-on): Add gperf.
14470         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
14471         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
14472         long names.
14473
14474         Tests for module 'unictype/bidiclass-longname'.
14475         * modules/unictype/bidiclass-longname-tests: New file.
14476         * tests/unictype/test-bidi_longname.c: New file.
14477
14478         New module 'unictype/bidiclass-longname'.
14479         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
14480         * lib/unictype/bidi_longname.c: New file.
14481         * modules/unictype/bidiclass-longname: New file.
14482         * modules/unictype/bidiclass-all (Depends-on): Add
14483         unictype/bidiclass-longname.
14484
14485 2011-03-26  Bruno Haible  <bruno@clisp.org>
14486
14487         unictype/bidi*: Rename modules.
14488         * modules/unictype/bidiclass-all: Renamed from
14489         modules/unictype/bidicategory-all.
14490         * modules/unictype/bidiclass-name: Renamed from
14491         modules/unictype/bidiclass-name.
14492         (Description): Update.
14493         * modules/unictype/bidiclass-name-tests: Renamed from
14494         modules/unictype/bidicategory-name-tests.
14495         * modules/unictype/bidiclass-byname: Renamed from
14496         modules/unictype/bidicategory-byname.
14497         (Description): Update.
14498         * modules/unictype/bidiclass-byname-tests: Renamed from
14499         modules/unictype/bidicategory-byname-tests.
14500         * modules/unictype/bidiclass-of: Renamed from
14501         modules/unictype/bidicategory-of.
14502         (Description): Update.
14503         * modules/unictype/bidiclass-of-tests: Renamed from
14504         modules/unictype/bidicategory-of-tests.
14505         * modules/unictype/bidiclass-test: Renamed from
14506         modules/unictype/bidicategory-test.
14507         (Description): Update.
14508         * modules/unictype/bidiclass-test-tests: Renamed from
14509         modules/unictype/bidicategory-test-tests.
14510         * modules/unictype/bidicategory-all: New file, a simple redirection.
14511         * modules/unictype/bidicategory-name: Likewise.
14512         * modules/unictype/bidicategory-byname: Likewise.
14513         * modules/unictype/bidicategory-of: Likewise.
14514         * modules/unictype/bidicategory-test: Likewise.
14515         * modules/unictype/property-bidi-* (Dependencies): Update.
14516         * lib/unictype/bidi_*.c: Update comment.
14517
14518 2011-03-26  Bruno Haible  <bruno@clisp.org>
14519
14520         unictype/bidi*: Rename functions, part 2.
14521         * modules/unictype/bidicategory-name (configure.ac): Update required
14522         libunistring version.
14523         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
14524
14525 2011-03-25  Bruno Haible  <bruno@clisp.org>
14526
14527         New module 'unictype/combining-class-all'.
14528         * modules/unictype/combining-class-all: New file.
14529
14530         Tests for module 'unictype/combining-class-byname'.
14531         * modules/unictype/combining-class-byname-tests: New file.
14532         * tests/unictype/test-combiningclass_byname.c: New file.
14533
14534         New module 'unictype/combining-class-byname'.
14535         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
14536         * lib/unictype/combiningclass_byname.c: New file.
14537         * lib/unictype/combiningclass_byname.gperf: New file.
14538         * modules/unictype/combining-class-byname: New file.
14539
14540         Tests for module 'unictype/combining-class-longname'.
14541         * modules/unictype/combining-class-longname-tests: New file.
14542         * tests/unictype/test-combiningclass_longname.c: New file.
14543
14544         New module 'unictype/combining-class-longname'.
14545         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
14546         * lib/unictype/combiningclass_longname.c: New file.
14547         * modules/unictype/combining-class-longname: New file.
14548
14549         Tests for module 'unictype/combining-class-name'.
14550         * modules/unictype/combining-class-name-tests: New file.
14551         * tests/unictype/test-combiningclass_name.c: New file.
14552
14553         New module 'unictype/combining-class-name'.
14554         * lib/unictype.in.h (uc_combining_class_name): New declaration.
14555         * lib/unictype/combiningclass_name.c: New file.
14556         * modules/unictype/combining-class-name: New file.
14557
14558 2011-03-25  Bruno Haible  <bruno@clisp.org>
14559
14560         unictype/combining-class: Rename source files.
14561         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
14562         of unictype/combining.h.
14563         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
14564         Update.
14565         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
14566         * modules/unictype/combining-class (Description): Fix.
14567         (Files, Makefile.am): Update.
14568         * tests/unictype/test-combiningclass.c: Renamed from
14569         tests/unictype/test-combining.c.
14570         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
14571
14572 2011-03-25  Bruno Haible  <bruno@clisp.org>
14573
14574         unictype: Update list of canonical combining classes.
14575         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
14576
14577 2011-03-25  Bruno Haible  <bruno@clisp.org>
14578
14579         unictype/category-byname: Recognize long names as well.
14580         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
14581         a long name.
14582         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
14583         unictype/categ_byname.h.
14584         (UC_CATEGORY_INDEX_*): New enumeration values.
14585         (uc_general_category_byname): Use uc_general_category_lookup and
14586         convert from index to value.
14587         * lib/unictype/categ_byname.gperf: New file.
14588         * modules/unictype/category-byname (Files): Add
14589         lib/unictype/categ_byname.gperf.
14590         (Depends-on): Add gperf.
14591         (Makefile.am): Add rule for generating unictype/categ_byname.h.
14592         * tests/unictype/test-categ_byname.c (main): Test the recognition of
14593         long names.
14594
14595         Tests for module 'unictype/category-longname'.
14596         * modules/unictype/category-longname-tests: New file.
14597         * tests/unictype/test-categ_longname.c: New file.
14598
14599         New module 'unictype/category-longname'.
14600         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
14601         * lib/unictype/categ_longname.c: New file.
14602         * modules/unictype/category-longname: New file.
14603         * modules/unictype/category-all (Depends-on): Add it.
14604
14605 2011-03-25  Bruno Haible  <bruno@clisp.org>
14606
14607         Tests for module 'unictype/category-LC'.
14608         * modules/unictype/category-LC-tests: New file.
14609         * tests/unictype/test-categ_LC.c: New file, automatically generated.
14610
14611         New module 'unictype/category-LC'.
14612         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
14613         (UC_CATEGORY_LC): New declaration.
14614         (UC_CASED_LETTER): New macro.
14615         * lib/gen-uni-tables.c (is_category_LC): New function.
14616         (output_categories): Also handle category LC.
14617         (UC_CATEGORY_MASK_LC): New enumeration value.
14618         (general_category_byname): Also handle category LC.
14619         * lib/unictype/categ_LC.c: New file.
14620         * lib/unictype/categ_LC.h: New file, automatically generated.
14621         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
14622         category LC.
14623         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
14624         * modules/unictype/category-LC: New file.
14625         * modules/unictype/category-byname (Depends-on): Add
14626         unictype/category-LC.
14627         * modules/unictype/category-all (Depends-on): Likewise.
14628
14629 2011-03-25  Eric Blake  <eblake@redhat.com>
14630
14631         xmalloc: revert yesterday's regression
14632         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
14633         realloc's underlying behavior (allowing allocation of zero-size
14634         objects, especially if malloc-gnu is also in use).
14635
14636 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
14637
14638         maint.mk: add missing version to VC-tag
14639         * top/maint.mk: git tag was missing actual tag name; add it.
14640
14641         valgrind: do leak checking, and exit with code 1 on error (not 0)
14642         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
14643         to VALGRIND.
14644
14645 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
14646
14647         posix-modules: say what it does.
14648         * posix-modules: Add a line to the --help output saying what it does.
14649
14650 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
14651
14652         xmalloc: Do not leak if underlying realloc is C99 compatible.
14653         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
14654         This avoids a leak on C99-based systems.  See
14655         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
14656
14657 2011-03-24  Eric Blake  <eblake@redhat.com>
14658
14659         realloc: document portability problem
14660         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
14661         passing 0 size to realloc.
14662
14663 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
14664
14665         doc: update users.txt
14666         * users.txt: Add cvsps, tmpwatch
14667
14668 2011-03-23  Matt Rice  <ratmice@gmail.com>
14669
14670         doc: update users.txt
14671         * users.txt: Add gdb.
14672
14673 2011-03-23  Jim Meyering  <meyering@redhat.com>
14674
14675         doc: update users.txt
14676         Looking through matches up to the following URL (there are still
14677         several more pages), I found several projects that use gnulib:
14678         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
14679         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
14680         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
14681
14682 2011-03-22  Bruno Haible  <bruno@clisp.org>
14683
14684         unictype/bidi*: Rename functions.
14685         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
14686         uc_bidi_class, uc_is_bidi_class): New declarations.
14687         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
14688         uc_bidi_category_byname.
14689         (uc_bidi_category_byname): New function.
14690         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
14691         u_bidi_category_name.
14692         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
14693         (uc_bidi_category_name): New function.
14694         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
14695         uc_bidi_category.
14696         (uc_bidi_category): New function.
14697         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
14698         uc_is_bidi_category. Invoke uc_bidi_class.
14699         (uc_is_bidi_category): New function.
14700         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
14701         instead of uc_bidi_category_byname.
14702         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
14703         instead of uc_bidi_category_name.
14704         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
14705         uc_bidi_category.
14706         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
14707         instead of uc_is_bidi_category.
14708
14709 2011-03-21  Bruno Haible  <bruno@clisp.org>
14710
14711         New module 'unictype/joininggroup-all'.
14712         * modules/unictype/joininggroup-all: New file.
14713
14714         Tests for module 'unictype/joininggroup-of'.
14715         * modules/unictype/joininggroup-of-tests: New file.
14716         * tests/unictype/test-joininggroup_of.c: New file.
14717         * tests/unictype/test-joininggroup_of.h: New file, automatically
14718         generated by gen-uni-tables.
14719
14720         New module 'unictype/joininggroup-of'.
14721         * modules/unictype/joininggroup-of: New file.
14722         * lib/unictype/joininggroup_of.c: New file.
14723         * lib/unictype/joininggroup_of.h: New file, automatically generated by
14724         gen-uni-tables.
14725
14726         Tests for module 'unictype/joininggroup-byname'.
14727         * modules/unictype/joininggroup-byname-tests: New file.
14728         * tests/unictype/test-joininggroup_byname.c: New file.
14729
14730         New module 'unictype/joininggroup-byname'.
14731         * modules/unictype/joininggroup-byname: New file.
14732         * lib/unictype/joininggroup_byname.c: New file.
14733         * lib/unictype/joininggroup_byname.gperf: New file.
14734
14735         Tests for module 'unictype/joininggroup-name'.
14736         * modules/unictype/joininggroup-name-tests: New file.
14737         * tests/unictype/test-joininggroup_name.c: New file.
14738
14739         New module 'unictype/joininggroup-name'.
14740         * modules/unictype/joininggroup-name: New file.
14741         * lib/unictype/joininggroup_name.c: New file.
14742         * lib/unictype/joininggroup_name.h: New file.
14743
14744         New module 'unictype/joiningtype-all'.
14745         * modules/unictype/joiningtype-all: New file.
14746
14747         Tests for module 'unictype/joiningtype-of'.
14748         * modules/unictype/joiningtype-of-tests: New file.
14749         * tests/unictype/test-joiningtype_of.c: New file.
14750         * tests/unictype/test-joiningtype_of.h: New file, automatically
14751         generated by gen-uni-tables.
14752
14753         New module 'unictype/joiningtype-of'.
14754         * modules/unictype/joiningtype-of: New file.
14755         * lib/unictype/joiningtype_of.c: New file.
14756         * lib/unictype/joiningtype_of.h: New file, automatically generated by
14757         gen-uni-tables.
14758
14759         Tests for module 'unictype/joiningtype-byname'.
14760         * modules/unictype/joiningtype-byname-tests: New file.
14761         * tests/unictype/test-joiningtype_byname.c: New file.
14762
14763         New module 'unictype/joiningtype-byname'.
14764         * modules/unictype/joiningtype-byname: New file.
14765         * lib/unictype/joiningtype_byname.c: New file.
14766
14767         Tests for module 'unictype/joiningtype-name'.
14768         * modules/unictype/joiningtype-name-tests: New file.
14769         * tests/unictype/test-joiningtype_name.c: New file.
14770
14771         New module 'unictype/joiningtype-name'.
14772         * modules/unictype/joiningtype-name: New file.
14773         * lib/unictype/joiningtype_name.c: New file.
14774
14775         unictype: Add support for Arabic shaping properties.
14776         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
14777         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
14778         declarations.
14779         (UC_JOINING_GROUP_*): New enumeration values.
14780         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
14781         declarations.
14782         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
14783         (unicode_joining_type): New variable.
14784         (UC_JOINING_GROUP_*): New enumeration values.
14785         (unicode_joining_group): New variable.
14786         (fill_arabicshaping, joining_type_as_c_identifier,
14787         output_joining_type_test, output_joining_type,
14788         joining_group_as_c_identifier, output_joining_group_test,
14789         output_joining_group): New functions.
14790         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
14791         fill_arabicshaping and output_joining_type_test, output_joining_type,
14792         output_joining_group_test, output_joining_group.
14793         Reported by Simon Josefsson.
14794
14795 2011-03-21  Jim Meyering  <meyering@redhat.com>
14796
14797         strftime: fix a bug in yesterday's change
14798         * lib/strftime.c (add): Accommodate width's initial value of -1.
14799         Otherwise, nstrftime would copy uninitialized data into
14800         the result buffer.
14801
14802 2011-03-21  Jim Meyering  <meyering@redhat.com>
14803
14804         tests: add strftime-tests module
14805         * tests/test-strftime.c: New file.
14806         * modules/strftime-tests: New module.
14807
14808 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14809
14810         strftime: don't assume a byte count fits in 'int'
14811         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
14812         found this problem by static analysis, using gcc -Wstrict-overflow
14813         (GCC 4.5.2, x86-64).  This reported an optimization that depended
14814         on an integer overflow having undefined behavior, but it turns out
14815         that the argument is a size, which might not fit in 'int' anyway,
14816
14817 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14818
14819         stdio: don't require ignore_value around fwrite
14820
14821         This patch works around libc bug 11959
14822         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
14823         Without this patch, applications must often write
14824         ignore_value (fwrite (...)) even though the ignore_value is
14825         not helpful here.  It's common to write many objects, using
14826         fwrite/printf/etc., and then use ferror to detect output error.
14827
14828         I considered making this patch optional, but decided against it,
14829         because libc is obviously being inconsistent here: there is no
14830         reason libc should insist that user code must inspect fwrite
14831         return's value without also insisting that it inspect printf's,
14832         putchar's, etc.  If user code wants to have a strict style where
14833         all these functions' values are checked (so that ferror need not
14834         be checked), we could add support for that style in a new gnulib
14835         module, but in the meantime it's better to be consistent and to
14836         support common usage.
14837
14838         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
14839         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
14840         that we are compiling in checking mode, and if not C++, and
14841         if not already wrapping fwrite for some other reason.
14842         (fwrite): #define to rpl_fwrite if the latter is defined.
14843
14844 2011-03-20  Bruno Haible  <bruno@clisp.org>
14845
14846         verror: Fix compilation error introduced on 2011-02-13.
14847         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
14848         instead of __attribute__.
14849         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14850
14851 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14852             Bruno Haible  <bruno@clisp.org>
14853
14854         socklen: do not depend on sys_socket
14855         While trying to modify Emacs to use gnulib's socklen module,
14856         I discovered a circular dependency: socklen depends on sys_socket
14857         and vice versa.  Emacs can use socklen, but it does not need
14858         sys_socket because it has its own substitute for sys/socket.h.
14859         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
14860         gl_TYPE_SOCKLEN_T.
14861         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
14862         gl_PREREQ_SYS_H_SOCKET.
14863         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
14864         gl_PREREQ_SYS_H_SOCKET.
14865         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
14866         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
14867         * modules/socklen (Depends-on): Do not depend on sys_socket.
14868         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
14869
14870 2011-03-20  Jim Meyering  <meyering@redhat.com>
14871
14872         maint.mk: sort file names *after* new transformation
14873         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
14874         prefix would have led to an unwarranted failure in GNU parted.
14875         Sort after that transformation.
14876
14877 2011-03-19  Jim Meyering  <meyering@redhat.com>
14878
14879         maint.mk: fix po-file syntax-check rule
14880         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
14881         Patch by Bruno Haible.
14882
14883 2011-03-19  Bruno Haible  <bruno@clisp.org>
14884
14885         socklen: Update comment.
14886         * m4/socklen.m4: Update comment about platforms.
14887
14888 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14889             Bruno Haible  <bruno@clisp.org>
14890
14891         inet_ntop, inet_pton: Simplify.
14892         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
14893         documented to provide socklen_t and we already depend on sys_socket.
14894         * modules/inet_pton (Depends-on): Likewise.
14895         * lib/arpa_inet.in.h: Adjust comment.
14896
14897 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14898             Bruno Haible  <bruno@clisp.org>
14899
14900         netdb: Simplify.
14901         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
14902         documented to provide socklen_t and we already depend on sys_socket.
14903         * lib/netdb.in.h: Adjust comment.
14904
14905 2011-03-19  Bruno Haible  <bruno@clisp.org>
14906
14907         sys_socket, netdb: Document problem with socklen_t.
14908         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
14909         platforms.
14910         * doc/posix-headers/netdb.texi: Likewise.
14911
14912 2011-03-18  Eric Blake  <eblake@redhat.com>
14913
14914         maint.mk: let po check work in VPATH build
14915         * top/maint.mk (po_file): Allow cfg.mk override.
14916         (sc_po_check): Allow VPATH use.
14917         Reported by Jiri Denemark.
14918
14919 2011-03-16  Jim Meyering  <meyering@redhat.com>
14920
14921         maint.mk: allow fine-grained syntax-check exclusion via Make variables
14922         Before, you would have had to create one .x-sc_ file per rule in order
14923         to exempt offending files.  Now, you may instead use a Make variable --
14924         usually defined in cfg.mk -- whose name identifies the affected rule.
14925         * top/maint.mk (_sc_excl): Define.
14926         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
14927         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
14928
14929 2011-03-13  Bruno Haible  <bruno@clisp.org>
14930
14931         ignore-value tests: Avoid warnings.
14932         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
14933         empty for gcc < 3.4.
14934
14935 2011-03-13  Bruno Haible  <bruno@clisp.org>
14936
14937         passfd: Fix link error on Solaris.
14938         * modules/passfd (Description): Correct.
14939         (Depends-on): Add socketlib.
14940         (Link): New section.
14941         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
14942
14943 2011-03-13  Bruno Haible  <bruno@clisp.org>
14944
14945         passfd: Fix link error on AIX 5.2.
14946         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
14947
14948 2011-03-13  Bruno Haible  <bruno@clisp.org>
14949
14950         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
14951         * lib/sys_socket.in.h: Include <stddef.h>.
14952         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
14953         CMSG_FIRSTHDR. Remove unused variable.
14954
14955 2011-03-13  Bruno Haible  <bruno@clisp.org>
14956
14957         passfd: Fix compilation error on OpenBSD.
14958         * lib/passfd.c: Include <sys/uio.h>.
14959
14960 2011-03-13  Bruno Haible  <bruno@clisp.org>
14961
14962         passfd test: Fix warnings.
14963         * tests/test-passfd.c: Include <sys/wait.h>.
14964         (main): Fix typo.
14965
14966 2011-03-13  Bruno Haible  <bruno@clisp.org>
14967
14968         passfd module, part 4, tweaks.
14969         * tests/test-passfd.c: Reorder includes.
14970         (main): Fix perror and printf calls.
14971
14972 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14973
14974         passfd module, part 4.
14975         * modules/passfd-tests: New file.
14976         * tests/test-passfd.c: New file.
14977
14978 2011-03-13  Jim Meyering  <meyering@redhat.com>
14979
14980         Makefile: rely on GNU make; derive syntax-check rule names
14981         Rather than requiring that each sc_ rule be listed as a dependent
14982         of "check", use features of GNU make to derive the list.
14983         * Makefile (syntax-check-rules): Define.
14984         (check): Depend on the new variable, not the hard-coded list.
14985
14986 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
14987             Bruno Haible  <bruno@clisp.org>
14988
14989         passfd module, part 3.
14990         * lib/passfd.h (recvfd): Add a flags argument.
14991         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
14992         (recvfd): Add a flags argument.
14993         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
14994         exists.
14995         * modules/passfd (Depends-on): Add cloexec.
14996         Suggested by Eric Blake.
14997
14998 2011-03-13  Bruno Haible  <bruno@clisp.org>
14999
15000         passfd module, part 2, tweaks.
15001         * modules/passfd (Files): Reorder.
15002         (Depends-on): Remove errno.
15003         (Include): Remove <sys/socket.h>, <sys/un.h>.
15004         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
15005         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
15006         specification header. Include <sys/socket.h> always. Don't include
15007         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
15008         (sendfd): Clarify that it sets errno when it fails.
15009         (recvfd): Fix specification.
15010
15011 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15012
15013         passfd module, part 2.
15014         * modules/passfd: New file.
15015         * lib/passfd.h: New file.
15016         * lib/passfd.c: New file.
15017
15018 2011-03-12  Bruno Haible  <bruno@clisp.org>
15019
15020         wcswidth, mbswidth: Avoid integer overflow.
15021         * lib/wcswidth.c: Include <limits.h>.
15022         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
15023         * lib/mbswidth.c: Include <limits.h>.
15024         (mbsnwidth): Avoid 'int' overflow.
15025         Reported by Jim Meyering.
15026
15027 2011-03-12  Bruno Haible  <bruno@clisp.org>
15028
15029         futimens, utimensat: Avoid endless recursion on Solaris 10.
15030         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
15031         Solaris.
15032         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
15033         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
15034
15035 2011-03-11  Jim Meyering  <meyering@redhat.com>
15036
15037         maint.mk: relax a regexp to accommodate other formatting styles
15038         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
15039         between "ngettext" and the following "(".
15040
15041 2011-03-11  Pádraig Brady <P@draigBrady.com>
15042
15043         maint.mk: suppress a false positive warning
15044         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
15045         diagnostics are marked with ngettext.
15046
15047 2011-03-10  Eric Blake  <eblake@redhat.com>
15048
15049         wchar: add explicit dependencies, for Tru64
15050         * modules/mbmemcasecoll (Depends-on): Add wchar.
15051         * modules/mbtowc (Depends-on): Likewise.
15052         * modules/vasnprintf (Depends-on): Likewise.
15053         * modules/unistdio/u-printf-args (Depends-on): Likewise.
15054         * modules/wctomb (Depends-on): Likewise.
15055         Reported by Peter O'Gorman.
15056
15057 2011-03-08  Bruno Haible  <bruno@clisp.org>
15058
15059         passfd module, part 1, tweaks.
15060         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
15061         Improve indentation. Improve AC_MSG_CHECKING messages.
15062         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
15063         gl_SOCKET_FAMILIES.
15064
15065 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15066
15067         passfd module, part 1.
15068         * m4/afunix.m4: New file.
15069         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
15070         sockets.
15071
15072 2011-03-08  Bruno Haible  <bruno@clisp.org>
15073
15074         regex-quote: New API.
15075         * lib/regex-quote.h: Include <stdbool.h>.
15076         (struct regex_quote_spec): New type.
15077         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
15078         New declarations.
15079         (regex_quote_length, regex_quote_copy, regex_quote): Take a
15080         'const struct regex_quote_spec *' argument.
15081         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
15082         (pcre_special): New constant.
15083         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
15084         New functions.
15085         (regex_quote_length, regex_quote_copy, regex_quote): Take a
15086         'const struct regex_quote_spec *' argument.
15087         * modules/regex-quote (Depends-on): Add stdbool.
15088         * tests/test-regex-quote.c (check): Update for new API. Add test for
15089         anchored results.
15090         * NEWS: Mention the API change.
15091         Reported by Reuben Thomas and Eric Blake.
15092
15093 2011-03-06  Bruno Haible  <bruno@clisp.org>
15094
15095         regex-quote: Fix creation of POSIX extended regular expressions.
15096         * lib/regex-quote.c (ere_special): Add grouping and alternation
15097         operators.
15098
15099 2011-03-05  Bruno Haible  <bruno@clisp.org>
15100
15101         doc: Improve doc regarding autopoint vs. gnulib.
15102         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
15103         disable autopoint while running autoreconf.
15104         Suggested by Ralf Wildenhues.
15105
15106 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15107
15108         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
15109         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
15110
15111 2011-03-03  Bruce Korb  <bkorb@gnu.org>
15112
15113         parse-duration: remove xalloc.h dependency
15114         * lib/parse-duration.c (parse_period): handle NULL return from
15115         strdup instead of calling xstrdup().
15116         * modules/parse-duration: remove "xalloc" dependency
15117
15118 2011-03-03  Matthew Booth  <mbooth@redhat.com>
15119
15120         bootstrap: honor m4_base when running aclocal
15121         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
15122
15123 2011-03-02  Jim Meyering  <meyering@redhat.com>
15124
15125         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
15126         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
15127         on request from Matt Booth.
15128
15129 2011-03-01  Eric Blake  <eblake@redhat.com>
15130
15131         test-link: work on Hurd
15132         * tests/test-link.h (test_link): Hurd rejects linking directories
15133         with EISDIR instead of the POSIX-mandated EPERM.
15134
15135 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
15136
15137         stdio: simplify by moving files to printf-posix, sigpipe
15138         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
15139         since this symbol is needed only if printf is replaced.
15140         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
15141         Require gl_ASM_SYMBOL_PREFIX.
15142         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
15143         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
15144         (Depends-on): Add 'raise'.
15145         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
15146         * modules/stdio (Files): Remove lib/stdio-write.c,
15147         m4/asm-underscore.m4.
15148         (Depends-on): Remove 'raise'.
15149
15150         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
15151         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
15152         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
15153         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
15154
15155 2011-02-28  Bruno Haible  <bruno@clisp.org>
15156
15157         localcharset: Assume ANSI C behaviour of free().
15158         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
15159         calling free().
15160         Suggested by Simon Josefsson <simon@josefsson.org>.
15161
15162 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
15163             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
15164             Bruno Haible  <bruno@clisp.org>  (tiny change)
15165
15166         On Cygwin, use /proc file system instead of win32 API.
15167         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
15168         Win32 file names.
15169         (DllMain): Simplify by removing Cygwin specific code.
15170         (find_shared_library_fullname): Use Linux specific implementation also
15171         for Cygwin.
15172         (get_shared_library_fullname): Update accordingly.
15173         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
15174         Win32 file names.
15175         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
15176         Cygwin specific code.
15177
15178 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
15179             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
15180
15181         Fix OpenMP flag detection for various Fortran compilers.
15182         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
15183         OpenMP-conditional compilation construct, to force compile
15184         failure with missing OpenMP flag.
15185         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
15186
15187 2011-02-25  Eric Blake  <eblake@redhat.com>
15188
15189         strstr: expand test coverage
15190         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
15191         compilation.
15192         * tests/test-memmem.c (main): Duplicate tests.
15193         * tests/test-strcasestr.c (main): Likewise.
15194         * tests/test-c-strcasestr.c (main): Likewise.
15195
15196 2011-02-25  Jim Meyering  <meyering@redhat.com>
15197
15198         maint.mk: detect missing-NL-at-EOF, too
15199         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
15200         it also detects when a file lacks a newline at EOF.
15201         (require_exactly_one_NL_at_EOF_): Renamed from
15202         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
15203         since people may well have .x-sc_... file names tied to the
15204         existing name.  Suggested by Eric Blake.
15205
15206 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
15207
15208         dirname: move m4/dos.m4 functionality into lib/dosname.h
15209
15210         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
15211         extracts symbols from it, puts them into config.h; but it's much
15212         easier to use the symbols directly.  filename.h already does this,
15213         but it disagrees with dos.m4 in some respects.  This patch
15214         introduces a different include file dosname.h that packages up
15215         dos.m4, and then later we can work on merging filename.h and
15216         dosname.h.  Applications that need only the easy-to-configure
15217         symbols should consider including dosname.h rather than dirname.h.
15218         * NEWS: Mention incompatible changes.
15219         * m4/dos.m4: Remove.
15220         * lib/dosname.h, modules/dosname: New files.
15221         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
15222         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
15223         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
15224         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
15225         Include dosname.h, not dirname.h.
15226         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
15227         Include dosname.h, for definitions of symbols like ISSLASH
15228         that used to be in config.h.
15229         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
15230         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
15231         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15232         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15233         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
15234         * modules/rmdir (Files): Likewise.
15235         * modules/stat (Files): Likewise.
15236         * modules/unlink (Files): Likewise.
15237         * modules/dirname-lgpl (Depends-on): Add dosname.
15238         * modules/lstat (Depends-on): Likewise.
15239         * modules/openat (Depends-on): Likewise.
15240         * modules/rmdir (Depends-on): Likewise.
15241         * modules/savewd (Depends-on): Likewise.
15242         * modules/stat (Depends-on): Likewise.
15243         * modules/unlink (Depends-on): Likewise.
15244         * modules/openat (Depends-on): Remove dirname-lgpl.
15245         * modules/savewd (Depends-on): Likewise.
15246         * tests/test-dirname.c: Do not use removed symbols like
15247         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
15248         the remaining symbols, e.g., ISSLASH ('\\').
15249
15250 2011-02-25  Eric Blake  <eblake@redhat.com>
15251
15252         strstr: revert patches that introduced bug and pessimization
15253         * lib/str-two-way.h: Add another reference.
15254         (two_way_short_needle, two_way_long_needle): Revert changes from
15255         2011-02-24; they pessimize search speed.
15256         (critical_factorization): Partially revert changes from
15257         2010-06-22; they violate the requirement that the left half of the
15258         needle be smaller than the period of the needle.
15259
15260 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15261
15262         filenamecat: remove unnecessary dependency on dirname-lgpl
15263         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
15264         is no direct dependency, just an indirect one via filenamecat-lgpl.
15265
15266         remove: remove unnecessary use of m4/dos.m4
15267         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
15268         * modules/remove (FILES): Remove m4/dos.m4.
15269
15270         * lib/openat-proc.c: Don't include dirname.h; not needed.
15271
15272         backupfile: remove unnecessary use of m4/dos.m4
15273         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
15274         of its symbols are used by the backupfile code.  backupfile.c does
15275         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
15276         for the rare case of programs that want all their backup file
15277         names to live within 8+3 limits, and dos.m4 doesn't address that.
15278         * modules/backupfile (Files): Remove m4/dos.m4.
15279
15280 2011-02-24  Jim Meyering  <meyering@redhat.com>
15281
15282         strstr: fix a bug whereby strstr would mistakenly return NULL
15283         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
15284         in period calculation.
15285         (two_way_long_needle): Likewise.
15286         The original problem was reported by Mike Stump in
15287         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
15288         Ralf Wildenhues provided the short needle and haystack.
15289         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
15290         Add a more involved test to trigger the bug in two_way_long_needle.
15291
15292 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
15293
15294         gnulib-tool: remove use of bold display in help screen
15295         * gnulib-tool (func_usage): Do not use bold display anymore in the
15296         help screen.  That was just meant to be a temporary emphasis for a
15297         backward-incompatible change.
15298
15299 2011-02-23  Bruno Haible  <bruno@clisp.org>
15300
15301         Fix misindentation of preprocessor directives.
15302         * lib/argp-namefrob.h: Reindent preprocessor directives.
15303         * lib/getopt_int.h (struct _getopt_data): Likewise.
15304         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
15305         * lib/vasnprintf.c (decode_long_double): Likewise.
15306         * tests/test-argmatch.c: Insert blank lines, for clarity.
15307         * tests/test-exclude.c: Likewise.
15308
15309 2011-02-22  Bruno Haible  <bruno@clisp.org>
15310
15311         ioctl: Fix for MacOS X in 64-bit mode.
15312         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
15313         value.
15314         Suggested by Eric Blake.
15315         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
15316
15317 2011-02-22  Jim Meyering  <meyering@redhat.com>
15318
15319         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
15320         * Makefile (sc_cpp_indent_check): Don't limit the check to files
15321         in lib/.
15322
15323 2011-02-22  Eric Blake  <eblake@redhat.com>
15324
15325         maint: avoid any CDPATH issue
15326         * Makefile (sc_cpp_indent_check): Anchor cd argument.
15327
15328         maint: adjust cpp indentation for my modules, as well
15329         * Makefile (sc_cpp_indent_check): Add my name.
15330         * lib/fbufmode.c: Filter through cppi.
15331         * lib/fpurge.c: Likewise.
15332         * lib/freadable.c: Likewise.
15333         * lib/freading.c: Likewise.
15334         * lib/fwritable.c: Likewise.
15335         * lib/fwriting.c: Likewise.
15336         * lib/sigaction.c: Likewise.
15337
15338 2011-02-22  Jim Meyering  <meyering@redhat.com>
15339
15340         maint: adjust cpp indentation to reflect nesting depth
15341         I.e., in a block of code that begins with an unnested "#if",
15342         put one space between the "#" in column 1 and following token.
15343         For example,
15344         -#include <sys/vfs.h>
15345         +# include <sys/vfs.h>
15346         Do this only in .c files that are part of a module I maintain.
15347         * lib/linkat.c: Filter through cppi.
15348         * lib/nanosleep.c: Likewise.
15349         * lib/openat.c: Likewise.
15350         * lib/openat-die.c: Likewise.
15351         * lib/dup3.c: Likewise.
15352         * lib/fchownat.c: Likewise.
15353         * lib/flock.c: Likewise.
15354         * lib/fsync.c: Likewise.
15355         * lib/fts.c: Likewise.
15356         * lib/getpass.c: Likewise.
15357         * lib/gettimeofday.c: Likewise.
15358         * lib/userspec.c: Likewise.
15359         * Makefile (sc_cpp_indent_check): New rule, to check this.
15360
15361 2011-02-22  Bruno Haible  <bruno@clisp.org>
15362
15363         New module 'wctomb'.
15364         * lib/stdlib.in.h (wctomb): New declaration.
15365         * lib/wctomb.c: New file.
15366         * lib/wctomb-impl.h: New file.
15367         * m4/wctomb.m4: New file.
15368         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
15369         REPLACE_WCTOMB.
15370         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
15371         REPLACE_WCTOMB.
15372         * modules/wctomb: New file.
15373         * tests/test-stdlib-c++.cc: Test signature of wctomb.
15374         * doc/posix-functions/wctomb.texi: Mention the new module.
15375         * modules/wctob (Depends-on): Add wctomb.
15376
15377 2011-02-22  Bruno Haible  <bruno@clisp.org>
15378
15379         New module 'mbtowc'.
15380         * lib/stdlib.in.h (mbtowc): New declaration.
15381         * lib/mbtowc.c: New file.
15382         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
15383         * m4/mbtowc.m4: New file.
15384         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
15385         REPLACE_MBTOWC.
15386         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
15387         REPLACE_MBTOWC.
15388         * modules/mbtowc: New file.
15389         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
15390         * doc/posix-functions/mbtowc.texi: Mention the new module.
15391         * modules/btowc (Depends-on): Add mbtowc.
15392
15393 2011-02-22  Bruno Haible  <bruno@clisp.org>
15394
15395         wcrtomb: Add more tests for native Windows platforms.
15396         * tests/test-wcrtomb-w32-1.sh: New file.
15397         * tests/test-wcrtomb-w32-2.sh: New file.
15398         * tests/test-wcrtomb-w32-3.sh: New file.
15399         * tests/test-wcrtomb-w32-4.sh: New file.
15400         * tests/test-wcrtomb-w32-5.sh: New file.
15401         * tests/test-wcrtomb-w32.c: New file.
15402         * modules/wcrtomb-tests (Files): Add them.
15403         (Makefile.am): Arrange to run these tests.
15404         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
15405         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
15406
15407 2011-02-20  Bruno Haible  <bruno@clisp.org>
15408
15409         wcrtomb: Enhance test.
15410         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
15411
15412 2011-02-20  Bruno Haible  <bruno@clisp.org>
15413
15414         mbrtowc: Tiny optimization.
15415         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
15416
15417 2011-02-20  Jim Meyering  <meyering@redhat.com>
15418
15419         test-exclude.c: remove unmatched #endif
15420         * tests/test-exclude.c: Remove stray #endif, left over from
15421         the change of a week ago.
15422
15423 2011-02-19  Jim Meyering  <meyering@redhat.com>
15424
15425         git-version-gen: skip "-dirty" check when appropriate
15426         * build-aux/git-version-gen: Don't run any git commands when the
15427         version string comes from .tarball-version.  Prior to this, we
15428         would run git update-index --refresh even from a just-unpacked
15429         tarball directory, and that could affect a .git/ directory in a
15430         parent of the build directory.  Reported by Mike Frysinger.
15431
15432 2011-02-19  Bruno Haible  <bruno@clisp.org>
15433
15434         unictype/property-byname: Reduce the size of the 'data' segment.
15435         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
15436
15437 2011-02-19  Bruno Haible  <bruno@clisp.org>
15438
15439         unictype/scripts: Reduce the size of the 'data' segment.
15440         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
15441         '%pic'.
15442         * lib/unictype/scripts_byname.gperf: Regenerated.
15443
15444 2011-02-19  Bruno Haible  <bruno@clisp.org>
15445
15446         stdint: Update documentation.
15447         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
15448
15449 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
15450
15451         stdint: omit redundant check for wchar.h
15452         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
15453         always tests whether wchar.h exists, so remove the now-redundant test.
15454
15455 2011-02-18  Bruno Haible  <bruno@clisp.org>
15456
15457         stdint: Cut dependency to module 'wchar'.
15458         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
15459         include the necessary prerequisites.
15460         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
15461         * modules/stdint (Depends-on): Remove wchar.
15462         (Makefile.am): Substitute HAVE_WCHAR_H.
15463         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
15464
15465 2011-02-18  Eric Blake  <eblake@redhat.com>
15466
15467         longlong: skip, rather than fail, on cross-compilation
15468         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
15469         when cross-compiling; regression from 2011-02-16.
15470
15471 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15472
15473         * NEWS: Mention 2011-02-08 change to stdlib.
15474
15475 2011-02-17  Bruno Haible  <bruno@clisp.org>
15476
15477         getloadavg: Add comments about platforms.
15478         * m4/getloadavg.m4: Add comment.
15479         * lib/getloadavg.c: Likewise.
15480
15481 2011-02-17  Bruno Haible  <bruno@clisp.org>
15482
15483         getloadavg: Fix link error on Solaris 2.6.
15484         * modules/getloadavg (Link): New section.
15485         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
15486         linking test-getloadavg.
15487         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
15488         getloadavg.
15489
15490 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15491
15492         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
15493         It was 'int', but this doesn't match the IRIX 6.5 manual.
15494         Suggested by Bruno Haible in
15495         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
15496
15497 2011-02-17  Bruno Haible  <bruno@clisp.org>
15498
15499         havelib: Fix comments.
15500         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
15501         change.
15502
15503 2011-02-17  Bruno Haible  <bruno@clisp.org>
15504
15505         havelib: Update config.rpath.
15506         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
15507
15508 2011-02-17  Bruno Haible  <bruno@clisp.org>
15509
15510         getloadavg test: Add some plausibility checks.
15511         * tests/test-getloadavg.c (check_avg): Print a warning when the value
15512         is improbable.
15513
15514 2011-02-16  Eric Blake  <eblake@redhat.com>
15515
15516         maintainer-makefile: make syntax-check a no-op from tarballs
15517         * top/maint.mk (no-vc-detected): New rule.
15518         (local-checks-available): Use it to avoid hanging if someone tries
15519         'make syntax-check' from a tarball.  Also append to any non-syntax
15520         checks already defined in cfg.mk.
15521
15522 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
15523
15524         longlong: tune, particularly for common case of c99
15525
15526         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
15527         or running anything if c99, or if unsigned long long int does not
15528         work.  In either case, we know the answer without further tests.
15529         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
15530         it at most once, and use its results for both long long int and
15531         unsigned long long int.  This is more likely to be efficient in
15532         the common case where the program wants to check for both long
15533         long int and unsigned long long int.
15534         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
15535         since the answer is already known.
15536
15537 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
15538
15539         getloadavg: set errno
15540         * lib/getloadavg.c: Set errno when returning -1.  If no other
15541         error number looks appropriate, set it to ENOSYS if the getloadavg
15542         looks like it can't possibly ever work, ENOTSUP otherwise.
15543         Suggested by Bruno Haible in
15544         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
15545
15546         getloadavg: trim unused parts and speed up 'configure'
15547         * NEWS: Document this.
15548         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
15549         always compiled if getloadavg is absent.
15550         Move test code to ...
15551         * tests/test-getloadavg.c: New file, containing previous
15552         contents of test from lib/getloadavg.c.  It also contains
15553         suggestions by Bruno Haible in
15554         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
15555         * modules/getloadavg-tests: New file.
15556         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
15557         Do tests in the same order as they're needed for getloadavg.c.
15558         Omit setgid-related tests that generate symbols KMEM_GROUP,
15559         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
15560         Do only the tests that are needed to see whether the system has
15561         getloadavg, moving the other tests into ...
15562         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
15563         NLIST_NAME_UNION; nobody should be using it.  Do not define
15564         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
15565         relevant, as the user of this module shouldn't care how getloadavg
15566         is implemented.
15567
15568         getloadavg: omit unused var
15569         * lib/getloadavg.c (getloadavg): Omit unused local variable.
15570
15571 2011-02-15  Jim Meyering  <meyering@redhat.com>
15572
15573         doc: update users.txt
15574         * users.txt: Update iwhd's URL.
15575
15576 2011-02-13  Bruno Haible  <bruno@clisp.org>
15577
15578         Consistent macro naming for macros that use GCC __attribute__.
15579         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
15580         _ATTRIBUTE_NONNULL_.
15581         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
15582         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
15583         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
15584         ATTRIBUTE_DEPRECATED.
15585         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
15586         ATTRIBUTE_NORETURN.
15587         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15588         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15589         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15590         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15591         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
15592         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
15593         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
15594         ATTRIBUTE_SENTINEL.
15595         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
15596         ATTRIBUTE_RETURN_CHECK.
15597         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
15598         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
15599         ATTRIBUTE_NORETURN.
15600         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
15601         Reported by Paul Eggert.
15602
15603 2011-02-13  Bruno Haible  <bruno@clisp.org>
15604
15605         Don't interfere with a program's definition of __attribute__.
15606         * lib/argp.h (__attribute__): Remove definition.
15607         (_GL_ATTRIBUTE_FORMAT): New macro.
15608         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
15609         * lib/argp-fmtstream.h (__attribute__): Remove definition.
15610         (_GL_ATTRIBUTE_FORMAT): New macro.
15611         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
15612         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
15613         GCC 3 or newer.
15614         * lib/error.h (__attribute__): Remove definition.
15615         (_GL_ATTRIBUTE_FORMAT): New macro.
15616         (error, error_at_line): Use it.
15617         * lib/hash.h (__attribute__): Remove definition.
15618         (ATTRIBUTE_WUR): Update definition. Define always.
15619         * lib/openat.h (__attribute__): Remove definition.
15620         (ATTRIBUTE_NORETURN): Update definition. Define always.
15621         * lib/sigpipe-die.h (__attribute__): Remove definition.
15622         (ATTRIBUTE_NORETURN): Update definition. Define always.
15623         * lib/vasnprintf.h (__attribute__): Remove definition.
15624         (_GL_ATTRIBUTE_FORMAT): New macro.
15625         (asnprintf, vasnprintf): Use it.
15626         * lib/xalloc.h (__attribute__): Remove definition.
15627         (ATTRIBUTE_NORETURN): Update definition. Define always.
15628         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
15629         * lib/xmemdup0.h (__attribute__): Remove definition.
15630         (ATTRIBUTE_NORETURN): Update definition. Define always.
15631         * lib/xprintf.h (__attribute__): Remove definition.
15632         (_GL_ATTRIBUTE_FORMAT): New macro.
15633         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
15634         * lib/xstrtol.h (__attribute__): Remove definition.
15635         (ATTRIBUTE_NORETURN): Update definition. Define always.
15636         * lib/xvasprintf.h (__attribute__): Remove definition.
15637         (_GL_ATTRIBUTE_FORMAT): New macro.
15638         (xasprintf, xvasprintf): Use it.
15639         * tests/test-argmatch.c (__attribute__): Remove definition.
15640         (ATTRIBUTE_NORETURN): Update definition. Define always.
15641         * tests/test-exclude.c (__attribute__): Remove definition.
15642         (ATTRIBUTE_NORETURN): Update definition. Define always.
15643         Reported by Paul Eggert.
15644
15645 2011-02-13  Bruno Haible  <bruno@clisp.org>
15646
15647         mbrtowc: Add more tests for native Windows platforms.
15648         * tests/test-mbrtowc-w32-1.sh: New file.
15649         * tests/test-mbrtowc-w32-2.sh: New file.
15650         * tests/test-mbrtowc-w32-3.sh: New file.
15651         * tests/test-mbrtowc-w32-4.sh: New file.
15652         * tests/test-mbrtowc-w32-5.sh: New file.
15653         * tests/test-mbrtowc-w32.c: New file.
15654         * modules/mbrtowc-tests (Files): Add them.
15655         (Makefile.am): Arrange to run these tests.
15656         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
15657         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
15658
15659 2011-02-13  Bruno Haible  <bruno@clisp.org>
15660
15661         mbrtowc: Work around native Windows bug.
15662         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
15663         guess when no suitable locale for testing was found.
15664         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
15665
15666 2011-02-13  Bruno Haible  <bruno@clisp.org>
15667
15668         mbsinit: Work around mingw bug.
15669         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
15670         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
15671         Windows.
15672         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
15673
15674 2011-02-13  Bruno Haible  <bruno@clisp.org>
15675
15676         mbsinit: Don't crash for a NULL argument.
15677         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
15678         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
15679
15680 2011-02-13  Bruno Haible  <bruno@clisp.org>
15681
15682         Don't interfere with a program's definition of __attribute__.
15683         * lib/stdio.in.h (__attribute__): Remove definition.
15684         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
15685         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
15686         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
15687         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
15688         * lib/string.in.h (__attribute__): Remove definition.
15689         Reported by Paul Eggert.
15690
15691 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15692
15693         stdlib: don't get in the way of non-GCC __attribute__
15694         See thread starting at
15695         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
15696         Revert previous stdlib change, installing the following instead:
15697         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
15698         to get in the way of a non-GCC compiler that supports __attribute__.
15699         (_GL_ATTRIBUTE_RETURN): New macro.
15700         (_Exit): Use it instead of __attribute__.
15701
15702 2011-02-12  Bruno Haible  <bruno@clisp.org>
15703
15704         quotearg test: Avoid test failure on mingw.
15705         * tests/test-quotearg.sh: Convert the locale identifier from native
15706         Windows syntax to Unix syntax.
15707
15708 2011-02-12  Bruno Haible  <bruno@clisp.org>
15709
15710         setlocale: Prefer gnulib's override over libintl's override.
15711         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
15712         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
15713         GNULIB_defined_setlocale is set.
15714
15715 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15716
15717         stdlib: support non-GCC __attribute__
15718
15719         Fix a serious and tricky problem encountered when attempting to
15720         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
15721         5.5, but it crashed due to memory corruption on Solaris 10 with
15722         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
15723         bits that are otherwise zero.  This tagging is optional inside
15724         Emacs but is preferred and is used when __attribute__ ((__aligned
15725         (8))) works, as it does with both recent-enough GCC and with Sun C
15726         5.11.  However, Sun C 5.11 is not GCC and does not #define
15727         __GNUC__ and __GNUC_MINOR__.
15728
15729         When I added the getloadavg module to Emacs, it brought in
15730         stdlib.in.h, which contained this fragment:
15731
15732            #ifndef __attribute__
15733            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
15734            #  define __attribute__(Spec)   /* empty */
15735            # endif
15736            #endif
15737
15738         When files that include <stdlib.h> were compiled with Sun C 5.11,
15739         the above code disabled __attribute__ ((__aligned (8))), which
15740         caused variables to not be properly aligned, which eventually led
15741         to the pointer corruption mentioned above.  (This was a bit hard
15742         to diagnose, unfortunately.)
15743
15744         Several "#define __attribute__(X) /* empty */" code snippets need
15745         to be eradicated from Gnulib to work with non-GCC compilers that
15746         support __attribute__.  The Autoconf way to do this is to test for
15747         each kind of attribute that we want support for, and selectively
15748         enable that in source code.
15749
15750         Fix this problem just for stdlib.h, by adding a test for the
15751         __noreturn__ attribute, and change stdlib.in.h to use that test
15752         when needed.  This technique can be easily generalized to the
15753         other *.in.h files and attributes, and a similar technique can be
15754         used for *.h and *.c files.  This patch is enough to solve the
15755         problem for Emacs + getloadavg, and I thought I'd publish it for
15756         feedback before undertaking further, similar fixes in other
15757         modules.
15758
15759         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
15760         because it's not needed for stdlib.h.  It merely substitutes the
15761         value directly into stdlib.h.  We may well need to #define it, or
15762         similar symbols, for other modules, but it's nice to also have an
15763         option to not #define it for applications like Emacs that do not
15764         need it.
15765
15766         * lib/stdlib.in.h (__attribute__): Do not #define.
15767         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
15768         be defined only if the _Exit module is also used.
15769         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
15770         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
15771         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
15772         platforms.
15773         * modules/_Exit (Files): Add m4/attribute.m4.
15774         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
15775         * m4/attribute.m4: New file.
15776
15777 2011-02-12  Bruno Haible  <bruno@clisp.org>
15778
15779         wcsrtombs: Work around bug on native Windows.
15780         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
15781         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
15782         instead of len.
15783         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
15784
15785 2011-02-12  Bruno Haible  <bruno@clisp.org>
15786
15787         mbsrtowcs: Work around bug on native Windows.
15788         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
15789         against mingw bug.
15790         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
15791
15792 2011-02-12  Bruno Haible  <bruno@clisp.org>
15793
15794         Avoid setlocale bugs in tests.
15795         * modules/btowc (Dependencies): Add setlocale.
15796         * modules/c-strcase (Dependencies): Likewise.
15797         * modules/mbmemcasecmp (Dependencies): Likewise.
15798         * modules/mbmemcasecoll (Dependencies): Likewise.
15799         * modules/mbrtowc (Dependencies): Likewise.
15800         * modules/mbscasecmp (Dependencies): Likewise.
15801         * modules/mbscasestr (Dependencies): Likewise.
15802         * modules/mbschr (Dependencies): Likewise.
15803         * modules/mbscspn (Dependencies): Likewise.
15804         * modules/mbsinit (Dependencies): Likewise.
15805         * modules/mbsncasecmp (Dependencies): Likewise.
15806         * modules/mbsnrtowcs (Dependencies): Likewise.
15807         * modules/mbspbrk (Dependencies): Likewise.
15808         * modules/mbspcasecmp (Dependencies): Likewise.
15809         * modules/mbsrchr (Dependencies): Likewise.
15810         * modules/mbsrtowcs (Dependencies): Likewise.
15811         * modules/mbsspn (Dependencies): Likewise.
15812         * modules/mbsstr (Dependencies): Likewise.
15813         * modules/nl_langinfo (Dependencies): Likewise.
15814         * modules/quotearg (Dependencies): Likewise.
15815         * modules/unicase/locale-language (Dependencies): Likewise.
15816         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
15817         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
15818         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
15819         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
15820         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
15821         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
15822         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
15823         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
15824         * modules/vasnprintf-posix (Dependencies): Likewise.
15825         * modules/wcrtomb (Dependencies): Likewise.
15826         * modules/wcsnrtombs (Dependencies): Likewise.
15827         * modules/wcsrtombs (Dependencies): Likewise.
15828
15829 2011-02-12  Bruno Haible  <bruno@clisp.org>
15830
15831         setlocale: Workaround native Windows bug.
15832         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
15833         succeeds but sets LC_CTYPE to "C", report a failure.
15834         * tests/test-setlocale2.sh: New file.
15835         * tests/test-setlocale2.c: New file.
15836         * modules/setlocale-tests (Files): Add the new files.
15837         (Makefile.am): Enable test-setlocale2.sh test.
15838         * doc/posix-functions/setlocale.texi: Mention workaround.
15839
15840 2011-02-11  Bruno Haible  <bruno@clisp.org>
15841
15842         Tests for module 'setlocale'.
15843         * modules/setlocale-tests: New file.
15844         * tests/test-setlocale1.sh: New file.
15845         * tests/test-setlocale1.c: New file.
15846
15847         New module 'setlocale'.
15848         * lib/locale.in.h (setlocale): New declaration.
15849         * lib/setlocale.c: New file, based on
15850         gettext/gettext-runtime/intl/setlocale.c.
15851         * m4/setlocale.m4: New file.
15852         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
15853         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
15854         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
15855         REPLACE_SETLOCALE.
15856         * modules/setlocale: New file.
15857         * tests/test-locale-c++.cc: Test the declaration of setlocale.
15858         * doc/posix-functions/setlocale.texi: Mention the new module.
15859
15860 2011-02-11  Bruno Haible  <bruno@clisp.org>
15861
15862         Prepare for locale dependent tests on mingw.
15863         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
15864         because it has the wrong locale encoding.
15865         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
15866         French_France.1252 instead of "fr".
15867         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
15868         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
15869         because it has the wrong locale encoding.
15870         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
15871         native Windows, try Turkish_Turkey.65001.
15872         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
15873         Chinese_China.54936.
15874
15875         Prepare for locale dependent tests on mingw.
15876         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
15877         differently.
15878         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
15879         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
15880         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15881         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15882
15883 2011-02-11  Eric Blake  <eblake@redhat.com>
15884
15885         strptime: avoid compiler warnings
15886         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
15887         compiler warnings about dead code.
15888         Reported by Daniel P. Berrange.
15889
15890 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
15891
15892         doc: update users.txt
15893         * users.txt: Add rcs.
15894
15895 2011-02-10  John W. Eaton  <jwe@gnu.org>
15896
15897         doc: update users.txt
15898         * users.txt: Add octave.
15899
15900 2011-02-10  Jim Meyering  <meyering@redhat.com>
15901
15902         doc: update users.txt
15903         * users.txt: Add iwhd.
15904
15905 2011-02-09  Bruno Haible  <bruno@clisp.org>
15906
15907         gnulib-tool: Make copyright notice adjustment more robust.
15908         * gnulib-tool (func_import): In sed_transform_main_lib_file,
15909         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
15910         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
15911         License".
15912         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
15913
15914 2011-02-06  Bruno Haible  <bruno@clisp.org>
15915
15916         New module 'towctrans'.
15917         * modules/towctrans: New file.
15918         * lib/wctype.in.h (towctrans): New declaration.
15919         * lib/towctrans.c: New file.
15920         * lib/towctrans-impl.h: New file.
15921         * m4/towctrans.m4: New file.
15922         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
15923         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
15924         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
15925         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
15926         * doc/posix-functions/towctrans.texi: Mention the new module.
15927
15928 2011-02-06  Bruno Haible  <bruno@clisp.org>
15929
15930         New module 'wctrans'.
15931         * modules/wctrans: New file.
15932         * lib/wctype.in.h (wctrans): New declaration.
15933         * lib/wctrans.c: New file.
15934         * lib/wctrans-impl.h: New file.
15935         * m4/wctrans.m4: New file.
15936         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
15937         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
15938         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
15939         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
15940         * doc/posix-functions/wctrans.texi: Mention the new module.
15941
15942 2011-02-06  Bruno Haible  <bruno@clisp.org>
15943
15944         New module 'iswctype'.
15945         * modules/iswctype: New file.
15946         * lib/wctype.in.h (iswctype): New declaration.
15947         * lib/iswctype.c: New file.
15948         * lib/iswctype-impl.h: New file.
15949         * m4/iswctype.m4: New file.
15950         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
15951         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
15952         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
15953         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
15954         * doc/posix-functions/iswctype.texi: Mention the new module and the
15955         HP-UX 11.00 problem.
15956
15957 2011-02-06  Bruno Haible  <bruno@clisp.org>
15958
15959         New module 'wctype'.
15960         * modules/wctype: Change to represent the wctype() substitute.
15961         * lib/wctype.in.h (wctype): New declaration.
15962         * lib/wctype.c: New file.
15963         * lib/wctype-impl.h: New file.
15964         * m4/wctype.m4: New file.
15965         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
15966         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
15967         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
15968         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
15969         * doc/posix-functions/wctype.texi: Mention the new module and the
15970         HP-UX 11.00 problem.
15971
15972 2011-02-06  Bruno Haible  <bruno@clisp.org>
15973
15974         wctype-h: Ensure wctype_t and wctrans_t are defined.
15975         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
15976         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15977         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15978         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
15979         HAVE_WCTRANS_T.
15980         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
15981
15982 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
15983
15984         flock: fix license typo
15985
15986         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
15987         omitted.
15988
15989 2011-02-08  Bruno Haible  <bruno@clisp.org>
15990
15991         Split large sed scripts, for HP-UX sed.
15992         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
15993         to avoid HP-UX limit of 99 commands, in the near future.
15994         * modules/stdlib (Makefile.am): Likewise.
15995         * modules/unistd (Makefile.am): Likewise.
15996         * modules/wchar (Makefile.am): Likewise.
15997         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15998         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
15999         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
16000
16001 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16002             Bruno Haible  <bruno@clisp.org>
16003
16004         stdlib: improve random_r modularization
16005         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
16006         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
16007         you also need the random_r module to get this material right.
16008         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
16009         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
16010         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
16011
16012 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16013
16014         stdlib: don't depend on stdint
16015         * lib/stdlib.in.h: Don't include <stdint.h> merely because
16016         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
16017         be independent of whether stdint.h is needed.
16018         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
16019         here, instead of ...
16020         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
16021         struct random_data should be using the random_r module, not just
16022         the stdlib module (which wouldn't make sense: what package needs
16023         just struct random_data without also needing random_r?).
16024         * modules/stdlib (Depends-on): Remove stdint.
16025
16026         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
16027         See the thread rooted at
16028         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
16029         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
16030         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
16031         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
16032         __VMS)); previously it was always included (via fcntl--.h).
16033         (getloadavg): Do not use c_strtod.  Instead, approximate it by
16034         hand; this is good enough for load averages.  Also, do not use
16035         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
16036         flags directly if available and don't bother otherwise.  (Packages
16037         that need the extra reliability should use the modules that define
16038         these flags on older platforms that lack them.)
16039         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
16040         fcntl-safer.
16041
16042 2011-02-08  Jim Meyering  <meyering@redhat.com>
16043
16044         di-set.h, ino-map.h: add multiple-inclusion guard
16045         Technically, the guard is required only for ino-map.h, due to its
16046         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
16047         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
16048         * lib/ino-map.h: Likewise.
16049
16050 2011-02-06  Bruno Haible  <bruno@clisp.org>
16051
16052         iswblank: Ensure declaration on glibc systems.
16053         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
16054         * modules/iswblank (Dependencies): Add 'extensions'.
16055         * doc/posix-functions/iswblank.texi: Document the glibc problem.
16056
16057 2011-02-06  Bruno Haible  <bruno@clisp.org>
16058
16059         New module 'iswblank'.
16060         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
16061         * modules/iswblank: New file.
16062         * modules/wctype-h (Files): Remove lib/iswblank.c.
16063         (Makefile.am): Substitute GNULIB_ISWBLANK.
16064         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
16065         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
16066         (gl_WCTYPE_H_DEFAULTS): New macro.
16067         (gl_WCTYPE_H): Require it. Remove iswblank related code.
16068         * modules/iswblank-tests: New file.
16069         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
16070         * tests/test-wctype-h.c (main): Remove iswblank tests.
16071         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
16072         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
16073         of 'wctype-h'.
16074         * NEWS: Mention the change.
16075         * modules/mbchar (Depends-on): Add iswblank.
16076
16077 2011-02-08  Bruno Haible  <bruno@clisp.org>
16078
16079         di-set tests: Refactor.
16080         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
16081         unnecessary includes.
16082         (ASSERT): Remove macro.
16083         (main): Make C90 compliant by avoiding variable declaration after
16084         statement.
16085         * modules/di-set-tests (Files): Add tests/macros.h.
16086
16087 2011-02-08  Bruno Haible  <bruno@clisp.org>
16088
16089         ino-map tests: Refactor.
16090         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
16091         unnecessary includes.
16092         (ASSERT): Remove macro.
16093         (main): Make C90 compliant by avoiding variable declaration after
16094         statement.
16095         * modules/ino-map-tests (Files): Add tests/macros.h.
16096
16097 2011-02-08  Jim Meyering  <meyering@redhat.com>
16098
16099         di-set: add "const" to a cast
16100         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
16101         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
16102
16103 2011-02-06  Bruno Haible  <bruno@clisp.org>
16104
16105         Rename module 'wctype' to 'wctype-h'.
16106         * modules/wctype-h: Renamed from modules/wctype.
16107         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
16108         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
16109         (Files, Depends-on, Makefile.am): Update.
16110         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
16111         (Files, Makefile.am): Update.
16112         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
16113         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
16114         * doc/posix-headers/wctype.texi: Update.
16115         * doc/posix-functions/iswalnum.texi: Update.
16116         * doc/posix-functions/iswalpha.texi: Update.
16117         * doc/posix-functions/iswblank.texi: Update.
16118         * doc/posix-functions/iswcntrl.texi: Update.
16119         * doc/posix-functions/iswdigit.texi: Update.
16120         * doc/posix-functions/iswgraph.texi: Update.
16121         * doc/posix-functions/iswlower.texi: Update.
16122         * doc/posix-functions/iswprint.texi: Update.
16123         * doc/posix-functions/iswpunct.texi: Update.
16124         * doc/posix-functions/iswspace.texi: Update.
16125         * doc/posix-functions/iswupper.texi: Update.
16126         * doc/posix-functions/iswxdigit.texi: Update.
16127         * doc/posix-functions/towlower.texi: Update.
16128         * doc/posix-functions/towupper.texi: Update.
16129         * NEWS: Mention the change.
16130         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
16131         * modules/mbchar (Dependencies): Likewise.
16132         * modules/mbswidth (Dependencies): Likewise.
16133         * modules/quotearg (Dependencies): Likewise.
16134         * modules/regex (Dependencies): Likewise.
16135         * modules/wcscasecmp (Dependencies): Likewise.
16136         * modules/wcsncasecmp (Dependencies): Likewise.
16137         * modules/wcwidth (Dependencies): Likewise.
16138
16139 2011-02-06  Bruno Haible  <bruno@clisp.org>
16140
16141         New module 'wcswidth'.
16142         * modules/wcswidth: New file.
16143         * lib/wchar.in.h (wcswidth): New declaration.
16144         * lib/wcswidth.c: New file.
16145         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
16146         * m4/wcswidth.m4: New file.
16147         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
16148         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
16149         REPLACE_WCSWIDTH.
16150         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
16151         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
16152         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
16153         * doc/posix-functions/wcswidth.texi: Mention the new module.
16154
16155 2011-02-06  Bruno Haible  <bruno@clisp.org>
16156
16157         New module 'wcstok'.
16158         * modules/wcstok: New file.
16159         * lib/wchar.in.h (wcstok): New declaration.
16160         * lib/wcstok.c: New file.
16161         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
16162         * m4/wcstok.m4: New file.
16163         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
16164         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
16165         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
16166         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
16167         * doc/posix-functions/wcstok.texi: Mention the new module.
16168
16169 2011-02-06  Bruno Haible  <bruno@clisp.org>
16170
16171         New module 'wcsstr'.
16172         * modules/wcsstr: New file.
16173         * lib/wchar.in.h (wcsstr): New declaration.
16174         * lib/wcsstr.c: New file.
16175         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
16176         * m4/wcsstr.m4: New file.
16177         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
16178         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
16179         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
16180         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
16181         * doc/posix-functions/wcsstr.texi: Mention the new module.
16182
16183 2011-02-06  Bruno Haible  <bruno@clisp.org>
16184
16185         New module 'wcspbrk'.
16186         * modules/wcspbrk: New file.
16187         * lib/wchar.in.h (wcspbrk): New declaration.
16188         * lib/wcspbrk.c: New file.
16189         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
16190         * m4/wcspbrk.m4: New file.
16191         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
16192         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
16193         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
16194         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
16195         * doc/posix-functions/wcspbrk.texi: Mention the new module.
16196
16197 2011-02-06  Bruno Haible  <bruno@clisp.org>
16198
16199         New module 'wcsspn'.
16200         * modules/wcsspn: New file.
16201         * lib/wchar.in.h (wcsspn): New declaration.
16202         * lib/wcsspn.c: New file.
16203         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
16204         * m4/wcsspn.m4: New file.
16205         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
16206         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
16207         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
16208         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
16209         * doc/posix-functions/wcsspn.texi: Mention the new module.
16210
16211 2011-02-06  Bruno Haible  <bruno@clisp.org>
16212
16213         New module 'wcscspn'.
16214         * modules/wcscspn: New file.
16215         * lib/wchar.in.h (wcscspn): New declaration.
16216         * lib/wcscspn.c: New file.
16217         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
16218         * m4/wcscspn.m4: New file.
16219         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
16220         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
16221         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
16222         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
16223         * doc/posix-functions/wcscspn.texi: Mention the new module.
16224
16225 2011-02-06  Bruno Haible  <bruno@clisp.org>
16226
16227         New module 'wcsrchr'.
16228         * modules/wcsrchr: New file.
16229         * lib/wchar.in.h (wcsrchr): New declaration.
16230         * lib/wcsrchr.c: New file.
16231         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
16232         * m4/wcsrchr.m4: New file.
16233         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
16234         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
16235         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
16236         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
16237         * doc/posix-functions/wcsrchr.texi: Mention the new module.
16238
16239 2011-02-06  Bruno Haible  <bruno@clisp.org>
16240
16241         New module 'wcschr'.
16242         * modules/wcschr: New file.
16243         * lib/wchar.in.h (wcschr): New declaration.
16244         * lib/wcschr.c: New file.
16245         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
16246         * m4/wcschr.m4: New file.
16247         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
16248         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
16249         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
16250         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
16251         * doc/posix-functions/wcschr.texi: Mention the new module.
16252
16253 2011-02-06  Bruno Haible  <bruno@clisp.org>
16254
16255         New module 'wcsdup'.
16256         * modules/wcsdup: New file.
16257         * lib/wchar.in.h (wcsdup): New declaration.
16258         * lib/wcsdup.c: New file.
16259         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
16260         * m4/wcsdup.m4: New file.
16261         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
16262         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
16263         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
16264         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
16265         * doc/posix-functions/wcsdup.texi: Mention the new module.
16266
16267 2011-02-06  Bruno Haible  <bruno@clisp.org>
16268
16269         New module 'wcsxfrm'.
16270         * modules/wcsxfrm: New file.
16271         * lib/wchar.in.h (wcsxfrm): New declaration.
16272         * lib/wcsxfrm.c: New file.
16273         * lib/wcsxfrm-impl.h: New file.
16274         * m4/wcsxfrm.m4: New file.
16275         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
16276         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
16277         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
16278         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
16279         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
16280
16281 2011-02-06  Bruno Haible  <bruno@clisp.org>
16282
16283         New module 'wcscoll'.
16284         * modules/wcscoll: New file.
16285         * lib/wchar.in.h (wcscoll): New declaration.
16286         * lib/wcscoll.c: New file.
16287         * lib/wcscoll-impl.h: New file.
16288         * m4/wcscoll.m4: New file.
16289         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
16290         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
16291         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
16292         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
16293         * doc/posix-functions/wcscoll.texi: Mention the new module.
16294
16295 2011-02-06  Bruno Haible  <bruno@clisp.org>
16296
16297         New module 'wcsncasecmp'.
16298         * modules/wcsncasecmp: New file.
16299         * lib/wchar.in.h (wcsncasecmp): New declaration.
16300         * lib/wcsncasecmp.c: New file.
16301         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
16302         * m4/wcsncasecmp.m4: New file.
16303         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
16304         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
16305         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
16306         HAVE_WCSNCASECMP.
16307         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
16308         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
16309
16310 2011-02-06  Bruno Haible  <bruno@clisp.org>
16311
16312         New module 'wcscasecmp'.
16313         * modules/wcscasecmp: New file.
16314         * lib/wchar.in.h (wcscasecmp): New declaration.
16315         * lib/wcscasecmp.c: New file.
16316         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
16317         * m4/wcscasecmp.m4: New file.
16318         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
16319         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
16320         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
16321         HAVE_WCSCASECMP.
16322         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
16323         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
16324
16325 2011-02-05  Bruno Haible  <bruno@clisp.org>
16326
16327         New module 'wcsncmp'.
16328         * modules/wcsncmp: New file.
16329         * lib/wchar.in.h (wcsncmp): New declaration.
16330         * lib/wcsncmp.c: New file.
16331         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
16332         * m4/wcsncmp.m4: New file.
16333         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
16334         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
16335         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
16336         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
16337         * doc/posix-functions/wcsncmp.texi: Mention the new module.
16338
16339 2011-02-05  Bruno Haible  <bruno@clisp.org>
16340
16341         New module 'wcscmp'.
16342         * modules/wcscmp: New file.
16343         * lib/wchar.in.h (wcscmp): New declaration.
16344         * lib/wcscmp.c: New file.
16345         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
16346         * m4/wcscmp.m4: New file.
16347         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
16348         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
16349         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
16350         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
16351         * doc/posix-functions/wcscmp.texi: Mention the new module.
16352
16353 2011-02-05  Bruno Haible  <bruno@clisp.org>
16354
16355         New module 'wcsncat'.
16356         * modules/wcsncat: New file.
16357         * lib/wchar.in.h (wcsncat): New declaration.
16358         * lib/wcsncat.c: New file.
16359         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
16360         * m4/wcsncat.m4: New file.
16361         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
16362         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
16363         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
16364         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
16365         * doc/posix-functions/wcsncat.texi: Mention the new module.
16366
16367 2011-02-05  Bruno Haible  <bruno@clisp.org>
16368
16369         New module 'wcscat'.
16370         * modules/wcscat: New file.
16371         * lib/wchar.in.h (wcscat): New declaration.
16372         * lib/wcscat.c: New file.
16373         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
16374         * m4/wcscat.m4: New file.
16375         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
16376         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
16377         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
16378         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
16379         * doc/posix-functions/wcscat.texi: Mention the new module.
16380
16381 2011-02-05  Bruno Haible  <bruno@clisp.org>
16382
16383         New module 'wcpncpy'.
16384         * modules/wcpncpy: New file.
16385         * lib/wchar.in.h (wcpncpy): New declaration.
16386         * lib/wcpncpy.c: New file.
16387         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
16388         * m4/wcpncpy.m4: New file.
16389         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
16390         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
16391         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
16392         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
16393         * doc/posix-functions/wcpncpy.texi: Mention the new module.
16394
16395 2011-02-05  Bruno Haible  <bruno@clisp.org>
16396
16397         New module 'wcsncpy'.
16398         * modules/wcsncpy: New file.
16399         * lib/wchar.in.h (wcsncpy): New declaration.
16400         * lib/wcsncpy.c: New file.
16401         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
16402         * m4/wcsncpy.m4: New file.
16403         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
16404         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
16405         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
16406         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
16407         * doc/posix-functions/wcsncpy.texi: Mention the new module.
16408
16409 2011-02-05  Bruno Haible  <bruno@clisp.org>
16410
16411         New module 'wcpcpy'.
16412         * modules/wcpcpy: New file.
16413         * lib/wchar.in.h (wcpcpy): New declaration.
16414         * lib/wcpcpy.c: New file.
16415         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
16416         * m4/wcpcpy.m4: New file.
16417         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
16418         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
16419         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
16420         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
16421         * doc/posix-functions/wcpcpy.texi: Mention the new module.
16422
16423 2011-02-05  Bruno Haible  <bruno@clisp.org>
16424
16425         New module 'wcscpy'.
16426         * modules/wcscpy: New file.
16427         * lib/wchar.in.h (wcscpy): New declaration.
16428         * lib/wcscpy.c: New file.
16429         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
16430         * m4/wcscpy.m4: New file.
16431         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
16432         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
16433         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
16434         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
16435         * doc/posix-functions/wcscpy.texi: Mention the new module.
16436
16437 2011-02-05  Bruno Haible  <bruno@clisp.org>
16438
16439         New module 'wcsnlen'.
16440         * modules/wcsnlen: New file.
16441         * lib/wchar.in.h (wcsnlen): New declaration.
16442         * lib/wcsnlen.c: New file.
16443         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
16444         * m4/wcsnlen.m4: New file.
16445         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
16446         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
16447         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
16448         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
16449         * doc/posix-functions/wcsnlen.texi: Mention the new module.
16450
16451 2011-02-05  Bruno Haible  <bruno@clisp.org>
16452
16453         New module 'wcslen'.
16454         * modules/wcslen: New file.
16455         * lib/wchar.in.h (wcslen): New declaration.
16456         * lib/wcslen.c: New file.
16457         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
16458         * m4/wcslen.m4: New file.
16459         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
16460         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
16461         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
16462         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
16463         * doc/posix-functions/wcslen.texi: Mention the new module.
16464
16465 2011-02-05  Bruno Haible  <bruno@clisp.org>
16466
16467         New module 'wmemset'.
16468         * modules/wmemset: New file.
16469         * lib/wchar.in.h (wmemset): New declaration.
16470         * lib/wmemset.c: New file.
16471         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
16472         * m4/wmemset.m4: New file.
16473         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
16474         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
16475         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
16476         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
16477         * doc/posix-functions/wmemset.texi: Mention the new module.
16478
16479 2011-02-05  Bruno Haible  <bruno@clisp.org>
16480
16481         New module 'wmemmove'.
16482         * modules/wmemmove: New file.
16483         * lib/wchar.in.h (wmemmove): New declaration.
16484         * lib/wmemmove.c: New file.
16485         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
16486         * m4/wmemmove.m4: New file.
16487         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
16488         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
16489         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
16490         HAVE_WMEMMOVE.
16491         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
16492         * doc/posix-functions/wmemmove.texi: Mention the new module.
16493
16494 2011-02-05  Bruno Haible  <bruno@clisp.org>
16495
16496         New module 'wmemcpy'.
16497         * modules/wmemcpy: New file.
16498         * lib/wchar.in.h (wmemcpy): New declaration.
16499         * lib/wmemcpy.c: New file.
16500         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
16501         * m4/wmemcpy.m4: New file.
16502         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
16503         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
16504         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
16505         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
16506         * doc/posix-functions/wmemcpy.texi: Mention the new module.
16507
16508 2011-02-05  Bruno Haible  <bruno@clisp.org>
16509
16510         New module 'wmemcmp'.
16511         * modules/wmemcmp: New file.
16512         * lib/wchar.in.h (wmemcmp): New declaration.
16513         * lib/wmemcmp.c: New file.
16514         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
16515         * m4/wmemcmp.m4: New file.
16516         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
16517         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
16518         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
16519         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
16520         * doc/posix-functions/wmemcmp.texi: Mention the new module.
16521
16522 2011-02-07  Jim Meyering  <meyering@redhat.com>
16523
16524         di-set, ino-map: new modules, from coreutils
16525         * lib/di-set.c: New file.
16526         * lib/di-set.h: Likewise.
16527         * lib/ino-map.c: Likewise.
16528         * lib/ino-map.h: Likewise.
16529         * modules/di-set: Likewise.
16530         * modules/di-set-tests: Likewise.
16531         * modules/ino-map: Likewise.
16532         * modules/ino-map-tests: Likewise.
16533         * tests/test-di-set.c: Likewise.
16534         * tests/test-ino-map.c: Likewise.
16535
16536 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
16537
16538         getloadavg: merge minor changes from Emacs
16539
16540         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
16541         (getloadavg): Use memset, not bzero.
16542
16543         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
16544         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
16545         clash (bug#86).
16546
16547 2010-11-14  Bruno Haible  <bruno@clisp.org>
16548
16549         Allow multiple gnulib generated replacements to coexist.
16550         * lib/getopt.in.h (struct option): Avoid identical redefinition.
16551         * lib/inttypes.in.h (imaxdiv_t): Likewise.
16552         * lib/langinfo.in.h (nl_item): Likewise.
16553         * lib/math.in.h (_NaN, NAN): Likewise.
16554         * lib/netdb.in.h (struct addrinfo): Likewise.
16555         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
16556         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
16557         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
16558         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
16559         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
16560         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
16561         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
16562         pthread_mutexattr_init, pthread_mutexattr_settype,
16563         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
16564         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
16565         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
16566         pthread_spin_trylock, pthread_spin_unlock): Likewise.
16567         * lib/sched.in.h (struct sched_param): Likewise.
16568         * lib/se-selinux.in.h (security_class_t, security_context_t,
16569         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
16570         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
16571         lsetfilecon, fsetfilecon, security_check_context,
16572         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
16573         Likewise.
16574         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
16575         Likewise.
16576         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
16577         _gl_function_taking_int_returning_void_t, union sigval,
16578         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
16579         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
16580         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
16581         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
16582         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
16583         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
16584         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
16585         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
16586         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
16587         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
16588         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
16589         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
16590         socklen_t, rpl_fd_isset): Likewise.
16591         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
16592         * lib/sys_time.in.h (struct timeval): Likewise.
16593         * lib/sys_times.in.h (struct tms): Likewise.
16594         * lib/sys_utsname.in.h (struct utsname):
16595         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
16596         * lib/unistd.in.h (getpagesize): Likewise.
16597         * lib/wchar.in.h (mbstate_t): Likewise.
16598         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
16599         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
16600         towlower, towupper): Likewise.
16601         Reported by Sam Steingold <sds@gnu.org>.
16602
16603 2011-02-05  Eric Blake  <eblake@redhat.com>
16604
16605         unsetenv: work around Haiku issues
16606         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
16607         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
16608
16609 2010-12-30  Bruce Korb  <bkorb@gnu.org>
16610
16611         libposix: avoid calling error() within libposix
16612         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
16613         is defined.
16614
16615 2011-02-05  Eric Blake  <eblake@redhat.com>
16616
16617         strerror_r-posix: port to cygwin
16618         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
16619         implementation.
16620         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
16621         * tests/test-strerror_r.c (main): Fix test.
16622         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16623         issue.
16624
16625 2011-02-05  Bruno Haible  <bruno@clisp.org>
16626
16627         New module 'wmemchr'.
16628         * modules/wmemchr: New file.
16629         * lib/wchar.in.h (wmemchr): New declaration.
16630         * lib/wmemchr.c: New file.
16631         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
16632         * m4/wmemchr.m4: New file.
16633         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
16634         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
16635         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
16636         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
16637         * doc/posix-functions/wmemchr.texi: Mention the new module.
16638
16639 2011-02-04  Eric Blake  <eblake@redhat.com>
16640
16641         fdopendir: detect FreeBSD bug
16642         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
16643         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
16644
16645 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16646
16647         stdbool: do not define HAVE_STDBOOL_H
16648         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
16649         AC_HEADER_STDBOOL.  All uses changed.  Do not define
16650         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
16651         imported from the latest Autoconf git.  It was motivated by Emacs,
16652         which uses gnulib but does not need HAVE_STDBOOL_H.
16653
16654 2011-02-04  Bruno Haible  <bruno@clisp.org>
16655
16656         wcsnrtombs: Prepare for new module wwcsnrtombs.
16657         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
16658         * lib/wcsnrtombs.c: Include it.
16659         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
16660
16661         wcsrtombs: Prepare for new module wwcsrtombs.
16662         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
16663         * lib/wcsrtombs.c: Include it.
16664         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
16665
16666         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
16667         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
16668         * lib/mbsnrtowcs.c: Include it.
16669         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
16670
16671         mbsrtowcs: Prepare for new module mbsrtowwcs.
16672         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
16673         * lib/mbsrtowcs.c: Include it.
16674         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
16675
16676 2011-02-04  Bruno Haible  <bruno@clisp.org>
16677
16678         vasnprintf: Reduce use of malloc for small format strings.
16679         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
16680         (arguments): Add room for the first 7 arguments.
16681         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
16682         (char_directives, u8_directives, u16_directives, u32_directives): Add
16683         room for the first 7 directives.
16684         * lib/printf-parse.c: Include <string.h>.
16685         (PRINTF_PARSE): Change memory handling code so that it uses the first
16686         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
16687         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
16688         Reported by Pádraig Brady <P@draigbrady.com>.
16689
16690 2011-01-31  Eric Blake  <eblake@redhat.com>
16691
16692         dup2: work around Haiku bug
16693         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
16694         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
16695         * doc/posix-functions/dup2.texi (dup2): Document the bug.
16696         * tests/test-dup2.c (main): Enhance test.
16697
16698 2011-01-31  Simon Josefsson  <simon@josefsson.org>
16699
16700         doc: off_t is not available in eglibc 2.11.2 stdio.h.
16701         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
16702         declared by eglibc 2.11.2.
16703         * lib/stdio.in.h: Likewise.
16704
16705 2011-01-31  Eric Blake  <eblake@redhat.com>
16706
16707         ignore-value: add missing test dependency
16708         * tests/test-ignore-value.c: Revert previous change; stdio.h
16709         provides off_t.
16710         * modules/ignore-value-tests (Depends-on): Add missing dependency.
16711
16712 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
16713
16714         mktime: clarify long_int width checking
16715         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
16716         the top level, to make it clearer that the assumption about
16717         long_int width is being checked.  See
16718         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
16719
16720 2011-01-30  Simon Josefsson  <simon@josefsson.org>
16721
16722         ignore-value: Fix self-test.
16723         * tests/test-ignore-value.c: Include sys/types.h for off_t.
16724
16725 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
16726
16727         TYPE_MAXIMUM: avoid theoretically undefined behavior
16728         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
16729         negative number, which the C Standard says has undefined behavior.
16730         In practice this is not a problem, but might as well do it by the book.
16731         Reported by Rich Felker and Eric Blake; see
16732         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
16733         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
16734         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16735         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16736         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
16737         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16738         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
16739
16740         mktime: #undef mktime before #defining it
16741         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
16742
16743         mktime: systematically normalize tm_isdst comparisons
16744         * lib/mktime.c (isdst_differ): New function.
16745         (__mktime_internal): Use it systematically for all isdst comparisons.
16746         This completes the fix for libc BZ #6723, and removes the need for
16747         normalizing tm_isdst.  See
16748         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
16749         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
16750
16751         mktime: fix some integer overflow issues and sidestep the rest
16752
16753         This was prompted by a bug report by Benjamin Lindner for MinGW
16754         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
16755         His bug is due to signed integer overflow (0 - INT_MIN), and I
16756         I scanned through mktime.c looking for other integer overflow
16757         problems, fixing all the bugs I found.
16758
16759         Although the C Standard says the resulting code is still not safe
16760         in the presence of integer overflow, in practice it should be good
16761         enough for all real-world two's-complement implementations, except
16762         for debugging environments that deliberately trap on integer
16763         overflow (e.g., gcc -ftrapv).
16764
16765         * lib/mktime.c (WRAPV): New macro.
16766         (SHR): Also check that long_int and time_t shift right in the
16767         usual way, before using the fast-but-unportable method.
16768         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
16769         used.  The code already assumed two's complement, so there's
16770         no need to test for alternatives.  All uses removed.
16771         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
16772         the C standard.  Problem reported by Rich Felker in
16773         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
16774         (twos_complement_arithmetic): Also check long_int and time_t.
16775         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
16776         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
16777         (__mktime_internal): Avoid integer overflow with unary subtraction
16778         in two instances where -1 - X is an adequate replacement for -X,
16779         since the calculations are approximate.
16780
16781 2011-01-29  Eric Blake  <eblake@redhat.com>
16782
16783         mktime: avoid infinite loop
16784         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
16785         type; behavior is still undefined but portable to all known targets.
16786         Reported by Rich Felker.
16787
16788 2011-01-29  Simon Josefsson  <simon@josefsson.org>
16789
16790         rename, unlink, same-inode: Relicense.
16791         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
16792         * modules/unlink (License): Likewise.
16793         * modules/same-inode (License): Likewise.
16794
16795 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
16796
16797         mktime: avoid problems on NetBSD 5 / i386
16798         * lib/mktime.c (long_int): New type.  This works around a problem
16799         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
16800         but time_t is 64 bits, and where I expect the existing code is
16801         wrong in some cases.
16802         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
16803         (ydhms_diff): Bring back the compile-time check for wide-enough
16804         year and yday.
16805
16806         mktime: fix misspelling in comment
16807         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
16808         This merges all recent glibc changes of importance.
16809
16810 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16811
16812         move-if-change: cope with concurrent mv of identical file.
16813         * build-aux/move-if-change (CMPPROG): Accept environment
16814         variable as an override for `cmp'.
16815         (usage): Document CMPPROG.
16816         Adjust comparison to drop stdout.  Cope with failure of mv if
16817         the target file exists and is identical to the source, for
16818         parallel builds.
16819         Report from H.J. Lu against binutils in PR binutils/12283.
16820
16821 2011-01-28  Bruce Korb  <bkorb@gnu.org>
16822
16823         * users.txt: Mention sharutils.
16824
16825 2011-01-28  Simon Josefsson  <simon@josefsson.org>
16826
16827         * users.txt: Mention OATH Toolkit.
16828
16829 2011-01-27  Bruno Haible  <bruno@clisp.org>
16830
16831         Prepare for supporting FreeBSD 10.
16832         * build-aux/config.libpath: Remove handling of freebsd1*.
16833
16834 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
16835
16836         Prepare for supporting FreeBSD 10.
16837         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
16838         match FreeBSD 10.0.
16839
16840 2011-01-27  Bruno Haible  <bruno@clisp.org>
16841
16842         vma-iter, get-rusage-as: Add OpenBSD support.
16843         * modules/vma-iter (configure.ac): Test for mquery.
16844         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
16845         * lib/vma-iter.c: Include <sys/mman.h>.
16846         (vma_iterate): Add an implementation based on mquery().
16847         * lib/resource-ext.h (get_rusage_as): Update comments.
16848         * lib/get-rusage-as.c: Likewise.
16849         * lib/get-rusage-data.c: Likewise.
16850
16851 2011-01-26  Karl Berry  <karl@gnu.org>
16852
16853         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
16854         variables to make it easier to override the makeinfo program used.
16855
16856 2011-01-26  Eric Blake  <eblake@redhat.com>
16857
16858         fcntl: work around Haiku F_DUPFD bugs
16859         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
16860         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
16861         cloexec bit on duplication.
16862         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
16863
16864 2011-01-26  Bruno Haible  <bruno@clisp.org>
16865
16866         Enable memory leak tests on AIX.
16867         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
16868         * tests/test-fprintf-posix3.c (main): Likewise.
16869
16870 2011-01-26  Bruno Haible  <bruno@clisp.org>
16871
16872         Tests for module 'get-rusage-data'.
16873         * modules/get-rusage-data-tests: New file.
16874         * tests/test-get-rusage-data.c: New file.
16875
16876         New module 'get-rusage-data'.
16877         * lib/resource-ext.h (get_rusage_data): New declaration.
16878         * lib/get-rusage-data.c: New file.
16879         * modules/get-rusage-data: New file.
16880
16881 2011-01-25  Bruno Haible  <bruno@clisp.org>
16882
16883         get-rusage-as: Allow for easier testing.
16884         * lib/resource-ext.h (get_rusage_as): Add comment.
16885         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
16886         (main): New function for interactive testing.
16887
16888 2011-01-25  Bruno Haible  <bruno@clisp.org>
16889
16890         vma-iter: Treat Haiku like BeOS.
16891         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
16892         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
16893
16894 2011-01-25  Eric Blake  <eblake@redhat.com>
16895
16896         c-stack: fix regression on cygwin when libsigsegv is present
16897         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
16898
16899 2011-01-24  Bruno Haible  <bruno@clisp.org>
16900
16901         vma-iter: Avoid empty intervals.
16902         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
16903         on an empty interval.
16904
16905 2011-01-24  Jim Meyering  <meyering@redhat.com>
16906
16907         u64: remove unnecessary #include
16908         * lib/u64.h: Don't include <stddef.h>.  It was not used.
16909
16910 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16911
16912         Allow the user to avoid the HAVE_RAW_DECL_* macros.
16913         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
16914
16915 2011-01-23  Bruno Haible  <bruno@clisp.org>
16916
16917         New module 'vma-iter'.
16918         * lib/vma-iter.h: New file.
16919         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
16920         * modules/vma-iter: New file.
16921         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
16922         for get_rusage_as_via_iterator.
16923         (vma_iterate_callback): New function.
16924         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
16925         * modules/get-rusage-as (Depends-on): Add vma-iter.
16926
16927 2011-01-23  Bruno Haible  <bruno@clisp.org>
16928
16929         uninorm: Tweak includes.
16930         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
16931         Reported by Jim Meyering.
16932
16933 2011-01-23  Bruno Haible  <bruno@clisp.org>
16934
16935         get-rusage-as: Improve on NetBSD.
16936         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
16937         /proc, like on FreeBSD.
16938
16939 2011-01-23  Jim Meyering  <meyering@redhat.com>
16940
16941         xreadlink.h: remove unnecessary #include
16942         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
16943
16944         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
16945         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
16946
16947 2011-01-23  Bruno Haible  <bruno@clisp.org>
16948
16949         get-rusage-as: Fix bug.
16950         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
16951         original limit when aborting the first loop.
16952
16953 2011-01-23  Bruno Haible  <bruno@clisp.org>
16954
16955         wctype: Ensure valid C syntax.
16956         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
16957         unconditionally, instead of gl_NEXT_HEADERS conditionally.
16958
16959 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
16960
16961         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
16962         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
16963         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
16964         as they are needed only for configure's test case.
16965         This removes two unnecessary symbols from config.h.
16966
16967         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
16968         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
16969         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
16970         AC_CHECK_HEADERS_ONCE on a header that we also invoke
16971         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
16972         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
16973         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
16974         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
16975         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16976         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16977         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
16978         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16979         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16980         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16981         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
16982         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16983         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
16984         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16985
16986 2011-01-21  Eric Blake  <eblake@redhat.com>
16987
16988         maintainer-makefile: work with older git for submodule check
16989         * top/maint.mk (public-submodule-commit): Rewrite to avoid
16990         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
16991         Reported by Matthias Bolte.
16992
16993         bootstrap: minor portability fixes
16994         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
16995         (usage): Omit leading capital and trailing . on help phrases, per
16996         GNU Coding Standards.
16997         (check_versions, top level): Prefix messages with script name.
16998
16999 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
17000
17001         bootstrap: support --no-git option
17002         * build-aux/bootstrap: Add --no-git option, to be used when
17003         --gnulib-srcdir points to the exact desired checkout.
17004
17005 2011-01-21  Eric Blake  <eblake@redhat.com>
17006
17007         strerror_r-posix: work with glibc 2.13
17008         * lib/strerror_r.c (strerror_r): Fix return type.
17009
17010 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17011             Bruno Haible  <bruno@clisp.org>
17012
17013         uN_strstr: New unit tests.
17014         * modules/unistr/u8-strstr-tests: New file.
17015         * modules/unistr/u16-strstr-tests: New file.
17016         * modules/unistr/u32-strstr-tests: New file.
17017         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
17018         * tests/unistr/test-u8-strstr.c: New file.
17019         * tests/unistr/test-u16-strstr.c: New file.
17020         * tests/unistr/test-u32-strstr.c: New file.
17021
17022 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17023             Bruno Haible  <bruno@clisp.org>
17024
17025         Make uN_strstr functions O(n) worst-case.
17026         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
17027         16-bit and 32-bit unit cases, use the unibyte algorithm from
17028         lib/mbsstr.c.
17029         * lib/unistr/u8-strstr.c: Include <string.h>.
17030         (UNIT_IS_UINT8_T): New macro.
17031         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
17032         (U_STRLEN, U_STRNLEN): New macros.
17033         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
17034         (U_STRLEN, U_STRNLEN): New macros.
17035         * modules/unistr/u8-strstr (Depends-on): Add strstr.
17036         (configure.ac): Update required libunistring version.
17037         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
17038         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
17039         malloca.
17040         (configure.ac): Update required libunistring version.
17041         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
17042         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
17043         malloca.
17044         (configure.ac): Update required libunistring version.
17045
17046 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17047             Bruno Haible  <bruno@clisp.org>
17048
17049         Prepare for faster uN_strstr functions.
17050         * lib/str-kmp.h: Support definable UNITs.
17051         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
17052         needle_len argument.
17053         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
17054         * lib/mbscasestr.c (mbscasestr): Likewise.
17055
17056 2011-01-21  Pádraig Brady <P@draigBrady.com>
17057
17058         malloca-tests: make faster by unsetting MALLOC_PERTURB_
17059         * tests/test-malloca.c (main): Unset the environment variable
17060         to greatly speed up the test.
17061         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
17062         * modules/malloca-tests: Depend on unsetenv.
17063
17064 2011-01-21  Pádraig Brady <P@draigBrady.com>
17065
17066         ignore-value: remove stdint dependency
17067         * lib/ignore-value.h: Remove <stdint.h>
17068         * modules/ignore-value: Remove stdint dependency.
17069
17070 2011-01-21  Jim Meyering  <meyering@redhat.com>
17071
17072         maint.mk: adjust variable name to be consistent with other gl_ vars
17073         * top/maint.mk (gl_public_submodule_commit): Rename the variable
17074         to be lower case.
17075
17076 2011-01-20  Jim Meyering  <meyering@redhat.com>
17077
17078         maint.mk: make "check" depend on public-submodule-commit by default
17079         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
17080
17081 2011-01-20  Bruno Haible  <bruno@clisp.org>
17082
17083         mbfile, mbiter: Complete change from 2008-12-21.
17084         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
17085         * m4/mbiter.m4 (gl_MBITER): Likewise.
17086
17087 2011-01-20  Jim Meyering  <meyering@redhat.com>
17088
17089         init.sh: insert space between each function name and "()"
17090         * tests/init.sh: Make it a little easier to see that a function's
17091         name is "warn_", and not "warn" when looking at the first part of
17092         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
17093
17094 2011-01-20  Jim Meyering  <meyering@redhat.com>
17095
17096         mountlist: clean up code formatting
17097         * lib/mountlist.c (read_file_system_list): Split a long line,
17098         correct bracing style, use NULL in place of "(struct statfs *)0",
17099         don't parenthesize return value, add spaces around "=" and after
17100         ";-in-for-stmt".
17101
17102 2011-01-14  Markus Duft <mduft@gentoo.org>
17103
17104         mountlist: add support for Interix
17105         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
17106         Apply statvfs to all entries of /dev/fs.
17107         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
17108         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
17109
17110 2011-01-20  Jim Meyering  <meyering@redhat.com>
17111
17112         maint.mk: improve the public-submodule-commit rule
17113         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
17114         to suppress printing of its commands... unless V=1.
17115         Add git submodule's --quiet option to suppress printing of e.g.,
17116         "Entering gnulib" output.
17117         "cd" into $(srcdir) before running git submodule.
17118
17119 2011-01-20  Bruno Haible  <bruno@clisp.org>
17120
17121         include_next: Fix bug introduced on 2011-01-18.
17122         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
17123         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
17124         ac_cv_header_... variable if the second argument is not 'check'.
17125         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
17126         gl_NEXT_HEADERS_INTERNAL.
17127
17128 2011-01-20  Bruno Haible  <bruno@clisp.org>
17129
17130         Allow the user to avoid the GNULIB_TEST_* macros.
17131         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
17132         Suggested by Paul Eggert.
17133
17134 2011-01-14  Jim Meyering  <meyering@redhat.com>
17135
17136         bootstrap: avoid failure when there is no .gitmodules file
17137         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
17138         has been assigned to, even when its value is the empty string.
17139         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
17140         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
17141         Reported by John W. Eaton <jwe@gnu.org>.
17142
17143 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
17144
17145         assume <ctype.h>, ..., <time.h> exist
17146         For years gnulib has been assuming the existence of the headers
17147         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
17148         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
17149         them, since they don't appear to be needed.
17150         * README (Portability guidelines): Document this.
17151         * lib/flock.c: Assume <fcntl.h> exists.
17152         * lib/regex_internal.h: Assume <locale.h> exists.
17153         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
17154         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
17155         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
17156         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
17157         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
17158         * m4/regex.m4 (gl_REGEX): Likewise.
17159         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
17160         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
17161         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
17162         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
17163         * tests/test-argp.c: Likewise.
17164         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
17165
17166         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
17167         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
17168         AA_APPLE_UNIVERSAL_BUILD.  See
17169         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
17170         * NEWS: Document this.
17171
17172 2011-01-19  Eric Blake  <eblake@redhat.com>
17173
17174         c-stack: assume stack overflow if SA_SIGINFO unsupported
17175         * lib/c-stack.c (SIGACTION_WORKS): Rename...
17176         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
17177         sigaction will work.
17178         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
17179         behavior match Linux.
17180         * tests/test-c-stack.c (main): Prefer NULL for pointers.
17181
17182         stdbool-tests: accomodate Haiku
17183         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
17184
17185         binary-io: fix O_TEXT on Haiku
17186         * modules/binary-io (Depends-on): Add fcntl-h.
17187         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
17188         than blindly undefining O_TEXT.
17189         Reported by Scott McCreary.
17190
17191 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
17192
17193         include_next: do not check for standard headers like stddef.h
17194
17195         I found this problem when modifying Emacs to use gnulib.
17196         I noticed that it added HAVE_STDDEF_H to config.h, even though
17197         gnulib always assumes <stddef.h> exists as per README and this
17198         symbol is unnecessary.
17199         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
17200         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
17201         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
17202         faster for headers like stddef.h that are known to exist.
17203         (gl_CHECK_NEXT_HEADERS): Use it.
17204         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
17205         rather than gl_CHECK_NEXT_HEADERS.
17206         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
17207         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
17208
17209 2011-01-18  Eric Blake  <eblake@redhat.com>
17210
17211         ansi-c++-opt: skip C++ dependency style if C++ is unused
17212         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
17213         tests when we know C++ compilation is not desired.
17214         Reported by Scott McCreary.
17215
17216 2011-01-18  Bruno Haible  <bruno@clisp.org>
17217
17218         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
17219         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
17220         (main): Perform test also when getrlimit and setrlimit don't exist or
17221         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
17222         limiting the address space size using setrlimit, compare the address
17223         space size before and after the the test.
17224         * tests/test-dprintf-posix2.c: Likewise.
17225         * tests/test-fprintf-posix3.sh: Update skip messages.
17226         * tests/test-dprintf-posix2.sh: Likewise.
17227         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
17228         * modules/dprintf-posix-tests (Depends-on): Likewise.
17229         Reported by Bruce Korb <bkorb@gnu.org> and
17230         Gary V. Vaughan <gary@gnu.org>.
17231
17232 2011-01-18  Bruno Haible  <bruno@clisp.org>
17233
17234         get-rusage-as: Improvement for Cygwin.
17235         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
17236         areas that are merely reserved.
17237
17238 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
17239
17240         strftime: remove dependencies on multibyte modules
17241
17242         strftime depended on mbrlen, mbsinit, and wchar, but these modules
17243         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
17244         only if __osf__ is defined, and I suspect OSF doesn't need these
17245         other modules.  If my guess is wrong, we'll need to come up with a
17246         variant of strftime that doesn't need the multibyte modules.
17247
17248         I discovered this problem when attempting modify Emacs to use the
17249         strftime module.  With the previous gnulib, this caused Emacs to
17250         need 31 new files, ranging from lib/config.charset to
17251         m4/wint_t.m4.  This was overkill and I expect would be offputting
17252         to the Emacs maintainers.  After this change, only 6 new files are
17253         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
17254         stdbool.m4, and tm_gmtoff.m4.
17255
17256         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
17257         Suggested by Bruno Haible in
17258         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
17259         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
17260         and do not check for wchar.h.
17261         * modules/strftime (Files): Remove m4/mbstate_t.m4.
17262         (Depends-on): Remove mbrlen, mbsinit, wchar.
17263
17264 2011-01-18  Bruno Haible  <bruno@clisp.org>
17265
17266         Tests for module 'get-rusage-as'.
17267         * modules/get-rusage-as-tests: New file.
17268         * tests/test-get-rusage-as.c: New file.
17269
17270         New module 'get-rusage-as'.
17271         * modules/get-rusage-as: New file.
17272         * lib/resource-ext.h: New file.
17273         * lib/get-rusage-as.c: New file.
17274
17275 2011-01-17  Eric Blake  <eblake@redhat.com>
17276
17277         sigaction: relax license from LGPLv3+ to LGPLv2+
17278         * modules/sigaction (License): Relax to LGPLv2+.
17279
17280 2011-01-14  Bruno Haible  <bruno@clisp.org>
17281
17282         filemode: Make function declarations usable in C++ mode.
17283         * lib/filemode.h: Enclose function declarations in extern "C" block.
17284         Reported by John W. Eaton <jwe@gnu.org>.
17285
17286 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
17287
17288         save-cwd: no longer include "xgetcwd.h"
17289         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
17290         This avoids a compilation failure in projects that use save-cwd
17291         without also using the xgetcwd module.
17292
17293 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
17294
17295         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
17296         This is so that a program like Emacs, which needs only dtoastr,
17297         does not have to bother with distributing and compiling ftoastr
17298         and ldtoastr.
17299         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
17300         * modules/dtoastr, modules/ldtoastr: New files.
17301         * modules/ftoastr: Now works just for 'float'.
17302         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
17303         (Makefile.am): Remove ftoastr.h (not needed and no effect),
17304         dtoastr.c, ldtoastr.c.
17305
17306 2011-01-11  Jim Meyering  <meyering@redhat.com>
17307
17308         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
17309         There is no need to work around the lack of the fchdir function,
17310         since gnulib can now provide a replacement when required.
17311         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
17312         * modules/save-cwd (Depends-on): Add fchdir.
17313
17314 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
17315
17316         openat, save-cwd: avoid xmalloc
17317
17318         This removes a direct (but undocumented) dependency of openat on
17319         xalloc, along with an indirect dependency via save-cwd.  It also
17320         removes a dependency of save-cwd on xgetcwd, and thereby
17321         indirectly on xalloc.  This change causes the openat substitute
17322         to fall back on save_cwd when memory is tight, and for save_cwd to
17323         fail instead of dying when memory is tight, but that's good enough.
17324         Problem and initial idea for fix reported by Bastien Roucaries in
17325         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
17326
17327         * lib/openat-proc.c: Include stdlib.h (for malloc), not
17328         xalloc.h (for xmalloc).
17329         (openat_proc_name): Use malloc, not xmalloc.
17330         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
17331         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
17332
17333         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
17334         This avoids heap allocation for file names whose lengths are in
17335         the range 512..1023, with the upper bound increasing to at most
17336         4031 depending on the platform's PATH_MAX.  (We do not want
17337         pathmax.h here as it might supply a non-constant PATH_MAX.)
17338         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
17339         Perhaps they should be moved to malloca.h?
17340         (OPENAT_BUFFER_SIZE): Use them.
17341
17342 2011-01-10  Bruno Haible  <bruno@clisp.org>
17343
17344         doc: Update users.txt.
17345         * users.txt: Add recutils.
17346
17347 2011-01-09  Karl Berry  <karl@gnu.org>
17348
17349         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
17350
17351         * doc/configmake.texi: New file.
17352         * doc/gnulib.texi: Include it.
17353         * modules/configmake: Move documentation from here.
17354
17355 2011-01-09  Bruno Haible  <bruno@clisp.org>
17356
17357         Update to Unicode 6.0.0.
17358         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
17359         (get_lbp): Update for Unicode 6.0.0.
17360         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
17361         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
17362         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
17363         U+11001, U+11038..U+11046. Remove U+06DE.
17364         (uc_width): Fix bounds of planes.
17365         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17366         lib/uniwidth/width.c.
17367         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
17368         trailing whitespace removed.
17369         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
17370         without comments, but with the original copyright notice.
17371         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
17372         * lib/unicase/ignorable.h: Likewise.
17373         * lib/unicase/tocasefold.h: Likewise.
17374         * lib/unicase/tolower.h: Likewise.
17375         * lib/unicase/totitle.h: Likewise.
17376         * lib/unicase/toupper.h: Likewise.
17377         * lib/unictype/bidi_of.h: Likewise.
17378         * lib/unictype/blocks.h: Likewise.
17379         * lib/unictype/categ_C.h: Likewise.
17380         * lib/unictype/categ_Cn.h: Likewise.
17381         * lib/unictype/categ_L.h: Likewise.
17382         * lib/unictype/categ_Ll.h: Likewise.
17383         * lib/unictype/categ_Lm.h: Likewise.
17384         * lib/unictype/categ_Lo.h: Likewise.
17385         * lib/unictype/categ_Lu.h: Likewise.
17386         * lib/unictype/categ_M.h: Likewise.
17387         * lib/unictype/categ_Mc.h: Likewise.
17388         * lib/unictype/categ_Me.h: Likewise.
17389         * lib/unictype/categ_Mn.h: Likewise.
17390         * lib/unictype/categ_N.h: Likewise.
17391         * lib/unictype/categ_Nd.h: Likewise.
17392         * lib/unictype/categ_No.h: Likewise.
17393         * lib/unictype/categ_P.h: Likewise.
17394         * lib/unictype/categ_Po.h: Likewise.
17395         * lib/unictype/categ_S.h: Likewise.
17396         * lib/unictype/categ_Sc.h: Likewise.
17397         * lib/unictype/categ_Sk.h: Likewise.
17398         * lib/unictype/categ_Sm.h: Likewise.
17399         * lib/unictype/categ_So.h: Likewise.
17400         * lib/unictype/categ_of.h: Likewise.
17401         * lib/unictype/combining.h: Likewise.
17402         * lib/unictype/ctype_alnum.h: Likewise.
17403         * lib/unictype/ctype_alpha.h: Likewise.
17404         * lib/unictype/ctype_graph.h: Likewise.
17405         * lib/unictype/ctype_lower.h: Likewise.
17406         * lib/unictype/ctype_print.h: Likewise.
17407         * lib/unictype/ctype_punct.h: Likewise.
17408         * lib/unictype/ctype_upper.h: Likewise.
17409         * lib/unictype/decdigit.h: Likewise.
17410         * lib/unictype/digit.h: Likewise.
17411         * lib/unictype/numeric.h: Likewise.
17412         * lib/unictype/pr_alphabetic.h: Likewise.
17413         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17414         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17415         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17416         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17417         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17418         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17419         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17420         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17421         * lib/unictype/pr_case_ignorable.h: Likewise.
17422         * lib/unictype/pr_cased.h: Likewise.
17423         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
17424         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
17425         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
17426         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
17427         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
17428         * lib/unictype/pr_combining.h: Likewise.
17429         * lib/unictype/pr_composite.h: Likewise.
17430         * lib/unictype/pr_currency_symbol.h: Likewise.
17431         * lib/unictype/pr_decimal_digit.h: Likewise.
17432         * lib/unictype/pr_deprecated.h: Likewise.
17433         * lib/unictype/pr_format_control.h: Likewise.
17434         * lib/unictype/pr_grapheme_base.h: Likewise.
17435         * lib/unictype/pr_grapheme_extend.h: Likewise.
17436         * lib/unictype/pr_grapheme_link.h: Likewise.
17437         * lib/unictype/pr_id_continue.h: Likewise.
17438         * lib/unictype/pr_id_start.h: Likewise.
17439         * lib/unictype/pr_ideographic.h: Likewise.
17440         * lib/unictype/pr_lowercase.h: Likewise.
17441         * lib/unictype/pr_math.h: Likewise.
17442         * lib/unictype/pr_numeric.h: Likewise.
17443         * lib/unictype/pr_other_alphabetic.h: Likewise.
17444         * lib/unictype/pr_other_id_continue.h: Likewise.
17445         * lib/unictype/pr_other_math.h: Likewise.
17446         * lib/unictype/pr_punctuation.h: Likewise.
17447         * lib/unictype/pr_sentence_terminal.h: Likewise.
17448         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17449         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17450         * lib/unictype/pr_unified_ideograph.h: Likewise.
17451         * lib/unictype/pr_uppercase.h: Likewise.
17452         * lib/unictype/pr_xid_continue.h: Likewise.
17453         * lib/unictype/pr_xid_start.h: Likewise.
17454         * lib/unictype/scripts.h: Likewise.
17455         * lib/unictype/scripts_byname.gperf: Likewise.
17456         * lib/unictype/sy_java_ident.h: Likewise.
17457         * lib/unigbrk/gbrkprop.h: Likewise.
17458         * lib/unilbrk/lbrkprop1.h: Likewise.
17459         * lib/unilbrk/lbrkprop2.h: Likewise.
17460         * lib/uninorm/decomposition-table2.h: Likewise.
17461         * lib/uniwbrk/wbrkprop.h: Likewise.
17462         * tests/unicase/test-cased.c: Likewise.
17463         * tests/unicase/test-ignorable.c: Likewise.
17464         * tests/unicase/test-uc_tolower.c: Likewise.
17465         * tests/unicase/test-uc_totitle.c: Likewise.
17466         * tests/unicase/test-uc_toupper.c: Likewise.
17467         * tests/unictype/test-categ_C.c: Likewise.
17468         * tests/unictype/test-categ_Cn.c: Likewise.
17469         * tests/unictype/test-categ_L.c: Likewise.
17470         * tests/unictype/test-categ_Ll.c: Likewise.
17471         * tests/unictype/test-categ_Lm.c: Likewise.
17472         * tests/unictype/test-categ_Lo.c: Likewise.
17473         * tests/unictype/test-categ_Lu.c: Likewise.
17474         * tests/unictype/test-categ_M.c: Likewise.
17475         * tests/unictype/test-categ_Mc.c: Likewise.
17476         * tests/unictype/test-categ_Me.c: Likewise.
17477         * tests/unictype/test-categ_Mn.c: Likewise.
17478         * tests/unictype/test-categ_N.c: Likewise.
17479         * tests/unictype/test-categ_Nd.c: Likewise.
17480         * tests/unictype/test-categ_No.c: Likewise.
17481         * tests/unictype/test-categ_P.c: Likewise.
17482         * tests/unictype/test-categ_Po.c: Likewise.
17483         * tests/unictype/test-categ_S.c: Likewise.
17484         * tests/unictype/test-categ_Sc.c: Likewise.
17485         * tests/unictype/test-categ_Sk.c: Likewise.
17486         * tests/unictype/test-categ_Sm.c: Likewise.
17487         * tests/unictype/test-categ_So.c: Likewise.
17488         * tests/unictype/test-ctype_alnum.c: Likewise.
17489         * tests/unictype/test-ctype_alpha.c: Likewise.
17490         * tests/unictype/test-ctype_graph.c: Likewise.
17491         * tests/unictype/test-ctype_lower.c: Likewise.
17492         * tests/unictype/test-ctype_print.c: Likewise.
17493         * tests/unictype/test-ctype_punct.c: Likewise.
17494         * tests/unictype/test-ctype_upper.c: Likewise.
17495         * tests/unictype/test-decdigit.h: Likewise.
17496         * tests/unictype/test-digit.h: Likewise.
17497         * tests/unictype/test-numeric.h: Likewise.
17498         * tests/unictype/test-pr_alphabetic.c: Likewise.
17499         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17500         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
17501         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
17502         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17503         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17504         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17505         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17506         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17507         * tests/unictype/test-pr_case_ignorable.c: Likewise.
17508         * tests/unictype/test-pr_cased.c: Likewise.
17509         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
17510         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
17511         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
17512         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
17513         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
17514         * tests/unictype/test-pr_combining.c: Likewise.
17515         * tests/unictype/test-pr_composite.c: Likewise.
17516         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17517         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17518         * tests/unictype/test-pr_deprecated.c: Likewise.
17519         * tests/unictype/test-pr_format_control.c: Likewise.
17520         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17521         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17522         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17523         * tests/unictype/test-pr_id_continue.c: Likewise.
17524         * tests/unictype/test-pr_id_start.c: Likewise.
17525         * tests/unictype/test-pr_ideographic.c: Likewise.
17526         * tests/unictype/test-pr_lowercase.c: Likewise.
17527         * tests/unictype/test-pr_math.c: Likewise.
17528         * tests/unictype/test-pr_numeric.c: Likewise.
17529         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17530         * tests/unictype/test-pr_other_id_continue.c: Likewise.
17531         * tests/unictype/test-pr_other_math.c: Likewise.
17532         * tests/unictype/test-pr_punctuation.c: Likewise.
17533         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17534         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17535         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17536         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17537         * tests/unictype/test-pr_uppercase.c: Likewise.
17538         * tests/unictype/test-pr_xid_continue.c: Likewise.
17539         * tests/unictype/test-pr_xid_start.c: Likewise.
17540         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17541         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17542         changes.
17543         * lib/unictype/categ_Cc.h: Likewise.
17544         * lib/unictype/categ_Cf.h: Likewise.
17545         * lib/unictype/categ_Co.h: Likewise.
17546         * lib/unictype/categ_Cs.h: Likewise.
17547         * lib/unictype/categ_Lt.h: Likewise.
17548         * lib/unictype/categ_Nl.h: Likewise.
17549         * lib/unictype/categ_Pc.h: Likewise.
17550         * lib/unictype/categ_Pd.h: Likewise.
17551         * lib/unictype/categ_Pe.h: Likewise.
17552         * lib/unictype/categ_Pf.h: Likewise.
17553         * lib/unictype/categ_Pi.h: Likewise.
17554         * lib/unictype/categ_Ps.h: Likewise.
17555         * lib/unictype/categ_Z.h: Likewise.
17556         * lib/unictype/categ_Zl.h: Likewise.
17557         * lib/unictype/categ_Zp.h: Likewise.
17558         * lib/unictype/categ_Zs.h: Likewise.
17559         * lib/unictype/ctype_blank.h: Likewise.
17560         * lib/unictype/ctype_cntrl.h: Likewise.
17561         * lib/unictype/ctype_digit.h: Likewise.
17562         * lib/unictype/ctype_space.h: Likewise.
17563         * lib/unictype/ctype_xdigit.h: Likewise.
17564         * lib/unictype/mirror.h: Likewise.
17565         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17566         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17567         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17568         * lib/unictype/pr_bidi_control.h: Likewise.
17569         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17570         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17571         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17572         * lib/unictype/pr_bidi_pdf.h: Likewise.
17573         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17574         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17575         * lib/unictype/pr_dash.h: Likewise.
17576         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17577         * lib/unictype/pr_diacritic.h: Likewise.
17578         * lib/unictype/pr_extender.h: Likewise.
17579         * lib/unictype/pr_hex_digit.h: Likewise.
17580         * lib/unictype/pr_hyphen.h: Likewise.
17581         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17582         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17583         * lib/unictype/pr_ignorable_control.h: Likewise.
17584         * lib/unictype/pr_iso_control.h: Likewise.
17585         * lib/unictype/pr_join_control.h: Likewise.
17586         * lib/unictype/pr_left_of_pair.h: Likewise.
17587         * lib/unictype/pr_line_separator.h: Likewise.
17588         * lib/unictype/pr_logical_order_exception.h: Likewise.
17589         * lib/unictype/pr_non_break.h: Likewise.
17590         * lib/unictype/pr_not_a_character.h: Likewise.
17591         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17592         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17593         * lib/unictype/pr_other_id_start.h: Likewise.
17594         * lib/unictype/pr_other_lowercase.h: Likewise.
17595         * lib/unictype/pr_other_uppercase.h: Likewise.
17596         * lib/unictype/pr_paired_punctuation.h: Likewise.
17597         * lib/unictype/pr_paragraph_separator.h: Likewise.
17598         * lib/unictype/pr_pattern_syntax.h: Likewise.
17599         * lib/unictype/pr_pattern_white_space.h: Likewise.
17600         * lib/unictype/pr_private_use.h: Likewise.
17601         * lib/unictype/pr_quotation_mark.h: Likewise.
17602         * lib/unictype/pr_radical.h: Likewise.
17603         * lib/unictype/pr_soft_dotted.h: Likewise.
17604         * lib/unictype/pr_space.h: Likewise.
17605         * lib/unictype/pr_titlecase.h: Likewise.
17606         * lib/unictype/pr_variation_selector.h: Likewise.
17607         * lib/unictype/pr_white_space.h: Likewise.
17608         * lib/unictype/pr_zero_width.h: Likewise.
17609         * lib/unictype/sy_c_ident.h: Likewise.
17610         * lib/unictype/sy_c_whitespace.h: Likewise.
17611         * lib/unictype/sy_java_whitespace.h: Likewise.
17612         * lib/uninorm/composition-table.gperf: Likewise.
17613         * lib/uninorm/decomposition-table1.h: Likewise.
17614         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
17615         LB8.
17616         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17617         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17618         * modules/unictype/*: Bump version number of expected libunistring
17619         version.
17620
17621 2011-01-09  Bruno Haible  <bruno@clisp.org>
17622
17623         Update to Unicode 5.2.0.
17624         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
17625         trailing whitespace removed.
17626
17627 2011-01-09  Bruno Haible  <bruno@clisp.org>
17628
17629         New Unicode character properties, from Unicode 5.2.0.
17630         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
17631         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
17632         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
17633         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
17634         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
17635         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
17636         uc_is_property_cased, uc_is_property_case_ignorable,
17637         uc_is_property_changes_when_lowercased,
17638         uc_is_property_changes_when_uppercased,
17639         uc_is_property_changes_when_titlecased,
17640         uc_is_property_changes_when_casefolded,
17641         uc_is_property_changes_when_casemapped): New declarations.
17642         * lib/unictype/pr_byname.gperf: Add the new properties.
17643         * modules/unictype/property-byname (Depends-on): Depend on the new
17644         properties modules.
17645         * modules/unictype/property-all (Depends-on): Likewise.
17646         * MODULES.html.sh (Unicode string functions): Add
17647         unictype/property-case-ignorable, unictype/property-cased,
17648         unictype/property-changes-when-casefolded,
17649         unictype/property-changes-when-casemapped,
17650         unictype/property-changes-when-lowercased,
17651         unictype/property-changes-when-titlecased,
17652         unictype/property-changes-when-uppercased.
17653
17654         New module 'unictype/property-changes-when-casemapped'.
17655         * modules/unictype/property-changes-when-casemapped: New file.
17656         * lib/unictype/pr_changes_when_casemapped.c: New file.
17657         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
17658         generated by gen-uni-tables.
17659         * modules/unictype/property-changes-when-casemapped-tests: New file.
17660         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
17661         automatically generated by gen-uni-tables.
17662
17663         New module 'unictype/property-changes-when-casefolded'.
17664         * modules/unictype/property-changes-when-casefolded: New file.
17665         * lib/unictype/pr_changes_when_casefolded.c: New file.
17666         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
17667         generated by gen-uni-tables.
17668         * modules/unictype/property-changes-when-casefolded-tests: New file.
17669         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
17670         automatically generated by gen-uni-tables.
17671
17672         New module 'unictype/property-changes-when-titlecased'.
17673         * modules/unictype/property-changes-when-titlecased: New file.
17674         * lib/unictype/pr_changes_when_titlecased.c: New file.
17675         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
17676         generated by gen-uni-tables.
17677         * modules/unictype/property-changes-when-titlecased-tests: New file.
17678         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
17679         automatically generated by gen-uni-tables.
17680
17681         New module 'unictype/property-changes-when-uppercased'.
17682         * modules/unictype/property-changes-when-uppercased: New file.
17683         * lib/unictype/pr_changes_when_uppercased.c: New file.
17684         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
17685         generated by gen-uni-tables.
17686         * modules/unictype/property-changes-when-uppercased-tests: New file.
17687         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
17688         automatically generated by gen-uni-tables.
17689
17690         New module 'unictype/property-changes-when-lowercased'.
17691         * modules/unictype/property-changes-when-lowercased: New file.
17692         * lib/unictype/pr_changes_when_lowercased.c: New file.
17693         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
17694         generated by gen-uni-tables.
17695         * modules/unictype/property-changes-when-lowercased-tests: New file.
17696         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
17697         automatically generated by gen-uni-tables.
17698
17699         New module 'unictype/property-case-ignorable'.
17700         * modules/unictype/property-case-ignorable: New file.
17701         * lib/unictype/pr_case_ignorable.c: New file.
17702         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
17703         by gen-uni-tables.
17704         * modules/unictype/property-case-ignorable-tests: New file.
17705         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
17706         generated by gen-uni-tables.
17707
17708         New module 'unictype/property-cased'.
17709         * modules/unictype/property-cased: New file.
17710         * lib/unictype/pr_cased.c: New file.
17711         * lib/unictype/pr_cased.h: New file, automatically generated by
17712         gen-uni-tables.
17713         * modules/unictype/property-cased-tests: New file.
17714         * tests/unictype/test-pr_cased.c: New file, automatically generated by
17715         gen-uni-tables.
17716
17717 2011-01-09  Bruno Haible  <bruno@clisp.org>
17718
17719         Update to Unicode 5.2.0.
17720         * lib/gen-uni-tables.c (output_predicate, output_category,
17721         output_combclass, output_bidi_category, output_decimal_digit_test,
17722         output_decimal_digit, output_digit_test, output_digit,
17723         output_numeric_test, output_numeric, output_mirror, output_scripts,
17724         output_scripts_byname, output_blocks, output_ident_category): Fix
17725         comment header.
17726         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
17727         get_wbp.
17728         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
17729         items.
17730         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
17731         Changes_When_Lowercased, Changes_When_Uppercased,
17732         Changes_When_Titlecased, Changes_When_Casefolded,
17733         Changes_When_Casemapped.
17734         (is_property_alphabetic, is_property_default_ignorable_code_point):
17735         Update for Unicode 5.2.0.
17736         (is_property_cased, is_property_case_ignorable,
17737         is_property_changes_when_lowercased,
17738         is_property_changes_when_uppercased,
17739         is_property_changes_when_titlecased,
17740         is_property_changes_when_casefolded,
17741         is_property_changes_when_casemapped): New functions.
17742         (output_properties): Output also the properties cased, case_ignorable,
17743         changes_when_lowercased, changes_when_uppercased,
17744         changes_when_titlecased, changes_when_casefolded,
17745         changes_when_casemapped.
17746         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
17747         Unicode TR#11 revision 17 -> 19.
17748         (LBP_CP): New enumeration value.
17749         (LBP_*): Adjust values accordingly.
17750         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17751         TR#14 revision 22 -> 24.
17752         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
17753         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
17754         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17755         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
17756         is_WBP_MIDLETTER.
17757         (output_composition_tables): Allow for 24 bits instead of 16 bits in
17758         the code1 and code2 of each composition rule.
17759         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
17760         * lib/unicase/ignorable.h: Likewise.
17761         * lib/unicase/tocasefold.h: Likewise.
17762         * lib/unicase/tolower.h: Likewise.
17763         * lib/unicase/totitle.h: Likewise.
17764         * lib/unicase/toupper.h: Likewise.
17765         * lib/unictype/bidi_of.h: Likewise.
17766         * lib/unictype/blocks.h: Likewise.
17767         * lib/unictype/categ_C.h: Likewise.
17768         * lib/unictype/categ_Cf.h: Likewise.
17769         * lib/unictype/categ_Cn.h: Likewise.
17770         * lib/unictype/categ_L.h: Likewise.
17771         * lib/unictype/categ_Ll.h: Likewise.
17772         * lib/unictype/categ_Lm.h: Likewise.
17773         * lib/unictype/categ_Lo.h: Likewise.
17774         * lib/unictype/categ_Lu.h: Likewise.
17775         * lib/unictype/categ_M.h: Likewise.
17776         * lib/unictype/categ_Mc.h: Likewise.
17777         * lib/unictype/categ_Mn.h: Likewise.
17778         * lib/unictype/categ_N.h: Likewise.
17779         * lib/unictype/categ_Nd.h: Likewise.
17780         * lib/unictype/categ_Nl.h: Likewise.
17781         * lib/unictype/categ_No.h: Likewise.
17782         * lib/unictype/categ_P.h: Likewise.
17783         * lib/unictype/categ_Pd.h: Likewise.
17784         * lib/unictype/categ_Po.h: Likewise.
17785         * lib/unictype/categ_S.h: Likewise.
17786         * lib/unictype/categ_Sc.h: Likewise.
17787         * lib/unictype/categ_So.h: Likewise.
17788         * lib/unictype/categ_of.h: Likewise.
17789         * lib/unictype/combining.h: Likewise.
17790         * lib/unictype/ctype_alnum.h: Likewise.
17791         * lib/unictype/ctype_alpha.h: Likewise.
17792         * lib/unictype/ctype_graph.h: Likewise.
17793         * lib/unictype/ctype_lower.h: Likewise.
17794         * lib/unictype/ctype_print.h: Likewise.
17795         * lib/unictype/ctype_punct.h: Likewise.
17796         * lib/unictype/ctype_upper.h: Likewise.
17797         * lib/unictype/decdigit.h: Likewise.
17798         * lib/unictype/digit.h: Likewise.
17799         * lib/unictype/numeric.h: Likewise.
17800         * lib/unictype/pr_alphabetic.h: Likewise.
17801         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17802         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17803         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17804         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17805         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17806         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17807         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17808         * lib/unictype/pr_combining.h: Likewise.
17809         * lib/unictype/pr_composite.h: Likewise.
17810         * lib/unictype/pr_currency_symbol.h: Likewise.
17811         * lib/unictype/pr_dash.h: Likewise.
17812         * lib/unictype/pr_decimal_digit.h: Likewise.
17813         * lib/unictype/pr_deprecated.h: Likewise.
17814         * lib/unictype/pr_diacritic.h: Likewise.
17815         * lib/unictype/pr_extender.h: Likewise.
17816         * lib/unictype/pr_grapheme_base.h: Likewise.
17817         * lib/unictype/pr_grapheme_extend.h: Likewise.
17818         * lib/unictype/pr_grapheme_link.h: Likewise.
17819         * lib/unictype/pr_id_continue.h: Likewise.
17820         * lib/unictype/pr_id_start.h: Likewise.
17821         * lib/unictype/pr_ideographic.h: Likewise.
17822         * lib/unictype/pr_ignorable_control.h: Likewise.
17823         * lib/unictype/pr_logical_order_exception.h: Likewise.
17824         * lib/unictype/pr_lowercase.h: Likewise.
17825         * lib/unictype/pr_numeric.h: Likewise.
17826         * lib/unictype/pr_other_alphabetic.h: Likewise.
17827         * lib/unictype/pr_punctuation.h: Likewise.
17828         * lib/unictype/pr_sentence_terminal.h: Likewise.
17829         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17830         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17831         * lib/unictype/pr_unified_ideograph.h: Likewise.
17832         * lib/unictype/pr_uppercase.h: Likewise.
17833         * lib/unictype/pr_xid_continue.h: Likewise.
17834         * lib/unictype/pr_xid_start.h: Likewise.
17835         * lib/unictype/pr_zero_width.h: Likewise.
17836         * lib/unictype/scripts.h: Likewise.
17837         * lib/unictype/scripts_byname.gperf: Likewise.
17838         * lib/unictype/sy_java_ident.h: Likewise.
17839         * lib/unigbrk/gbrkprop.h: Likewise.
17840         * lib/unilbrk/lbrkprop1.h: Likewise.
17841         * lib/unilbrk/lbrkprop2.h: Likewise.
17842         * lib/unilbrk/lbrktables.h: Likewise.
17843         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
17844         LBP_CP. Implement rule LB30.
17845         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
17846         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
17847         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
17848         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
17849         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
17850         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
17851         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
17852         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
17853         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
17854         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
17855         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
17856         bits instead of 16 bits in the code1 and code2 of each composition
17857         rule.
17858         (uc_composition): Update for Unicode 5.2.0.
17859         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
17860         * lib/uninorm/decomposition-table2.h: Likewise.
17861         * lib/uniwbrk/wbrkprop.h: Likewise.
17862         * tests/unicase/test-cased.c: Likewise.
17863         * tests/unicase/test-ignorable.c: Likewise.
17864         * tests/unicase/test-uc_tolower.c: Likewise.
17865         * tests/unicase/test-uc_totitle.c: Likewise.
17866         * tests/unicase/test-uc_toupper.c: Likewise.
17867         * tests/unictype/test-categ_C.c: Likewise.
17868         * tests/unictype/test-categ_Cf.c: Likewise.
17869         * tests/unictype/test-categ_Cn.c: Likewise.
17870         * tests/unictype/test-categ_L.c: Likewise.
17871         * tests/unictype/test-categ_Ll.c: Likewise.
17872         * tests/unictype/test-categ_Lm.c: Likewise.
17873         * tests/unictype/test-categ_Lo.c: Likewise.
17874         * tests/unictype/test-categ_Lu.c: Likewise.
17875         * tests/unictype/test-categ_M.c: Likewise.
17876         * tests/unictype/test-categ_Mc.c: Likewise.
17877         * tests/unictype/test-categ_Mn.c: Likewise.
17878         * tests/unictype/test-categ_N.c: Likewise.
17879         * tests/unictype/test-categ_Nd.c: Likewise.
17880         * tests/unictype/test-categ_Nl.c: Likewise.
17881         * tests/unictype/test-categ_No.c: Likewise.
17882         * tests/unictype/test-categ_P.c: Likewise.
17883         * tests/unictype/test-categ_Pd.c: Likewise.
17884         * tests/unictype/test-categ_Po.c: Likewise.
17885         * tests/unictype/test-categ_S.c: Likewise.
17886         * tests/unictype/test-categ_Sc.c: Likewise.
17887         * tests/unictype/test-categ_So.c: Likewise.
17888         * tests/unictype/test-ctype_alnum.c: Likewise.
17889         * tests/unictype/test-ctype_alpha.c: Likewise.
17890         * tests/unictype/test-ctype_graph.c: Likewise.
17891         * tests/unictype/test-ctype_lower.c: Likewise.
17892         * tests/unictype/test-ctype_print.c: Likewise.
17893         * tests/unictype/test-ctype_punct.c: Likewise.
17894         * tests/unictype/test-ctype_upper.c: Likewise.
17895         * tests/unictype/test-decdigit.h: Likewise.
17896         * tests/unictype/test-digit.h: Likewise.
17897         * tests/unictype/test-numeric.h: Likewise.
17898         * tests/unictype/test-pr_alphabetic.c: Likewise.
17899         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17900         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17901         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
17902         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17903         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17904         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17905         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17906         * tests/unictype/test-pr_combining.c: Likewise.
17907         * tests/unictype/test-pr_composite.c: Likewise.
17908         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17909         * tests/unictype/test-pr_dash.c: Likewise.
17910         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17911         * tests/unictype/test-pr_deprecated.c: Likewise.
17912         * tests/unictype/test-pr_diacritic.c: Likewise.
17913         * tests/unictype/test-pr_extender.c: Likewise.
17914         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17915         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17916         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17917         * tests/unictype/test-pr_id_continue.c: Likewise.
17918         * tests/unictype/test-pr_id_start.c: Likewise.
17919         * tests/unictype/test-pr_ideographic.c: Likewise.
17920         * tests/unictype/test-pr_ignorable_control.c: Likewise.
17921         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
17922         * tests/unictype/test-pr_lowercase.c: Likewise.
17923         * tests/unictype/test-pr_numeric.c: Likewise.
17924         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17925         * tests/unictype/test-pr_punctuation.c: Likewise.
17926         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17927         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17928         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17929         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17930         * tests/unictype/test-pr_uppercase.c: Likewise.
17931         * tests/unictype/test-pr_xid_continue.c: Likewise.
17932         * tests/unictype/test-pr_xid_start.c: Likewise.
17933         * tests/unictype/test-pr_zero_width.c: Likewise.
17934         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17935         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
17936         changed behaviour: line breaking is now disallowed between a letter
17937         or '=' and '('.
17938         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17939         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17940         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
17941         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
17942         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17943         lib/uniwidth/width.c.
17944         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
17945         without comments, but with the original copyright notice.
17946         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17947         changes.
17948         * lib/unictype/categ_Cc.h: Likewise.
17949         * lib/unictype/categ_Co.h: Likewise.
17950         * lib/unictype/categ_Cs.h: Likewise.
17951         * lib/unictype/categ_Lt.h: Likewise.
17952         * lib/unictype/categ_Me.h: Likewise.
17953         * lib/unictype/categ_Pc.h: Likewise.
17954         * lib/unictype/categ_Pe.h: Likewise.
17955         * lib/unictype/categ_Pf.h: Likewise.
17956         * lib/unictype/categ_Pi.h: Likewise.
17957         * lib/unictype/categ_Ps.h: Likewise.
17958         * lib/unictype/categ_Sk.h: Likewise.
17959         * lib/unictype/categ_Sm.h: Likewise.
17960         * lib/unictype/categ_Z.h: Likewise.
17961         * lib/unictype/categ_Zl.h: Likewise.
17962         * lib/unictype/categ_Zp.h: Likewise.
17963         * lib/unictype/categ_Zs.h: Likewise.
17964         * lib/unictype/ctype_blank.h: Likewise.
17965         * lib/unictype/ctype_cntrl.h: Likewise.
17966         * lib/unictype/ctype_digit.h: Likewise.
17967         * lib/unictype/ctype_space.h: Likewise.
17968         * lib/unictype/ctype_xdigit.h: Likewise.
17969         * lib/unictype/mirror.h: Likewise.
17970         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17971         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17972         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17973         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17974         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17975         * lib/unictype/pr_bidi_control.h: Likewise.
17976         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17977         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17978         * lib/unictype/pr_bidi_pdf.h: Likewise.
17979         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17980         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17981         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17982         * lib/unictype/pr_format_control.h: Likewise.
17983         * lib/unictype/pr_hex_digit.h: Likewise.
17984         * lib/unictype/pr_hyphen.h: Likewise.
17985         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17986         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17987         * lib/unictype/pr_iso_control.h: Likewise.
17988         * lib/unictype/pr_join_control.h: Likewise.
17989         * lib/unictype/pr_left_of_pair.h: Likewise.
17990         * lib/unictype/pr_line_separator.h: Likewise.
17991         * lib/unictype/pr_math.h: Likewise.
17992         * lib/unictype/pr_non_break.h: Likewise.
17993         * lib/unictype/pr_not_a_character.h: Likewise.
17994         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17995         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17996         * lib/unictype/pr_other_id_continue.h: Likewise.
17997         * lib/unictype/pr_other_id_start.h: Likewise.
17998         * lib/unictype/pr_other_lowercase.h: Likewise.
17999         * lib/unictype/pr_other_math.h: Likewise.
18000         * lib/unictype/pr_other_uppercase.h: Likewise.
18001         * lib/unictype/pr_paired_punctuation.h: Likewise.
18002         * lib/unictype/pr_paragraph_separator.h: Likewise.
18003         * lib/unictype/pr_pattern_syntax.h: Likewise.
18004         * lib/unictype/pr_pattern_white_space.h: Likewise.
18005         * lib/unictype/pr_private_use.h: Likewise.
18006         * lib/unictype/pr_quotation_mark.h: Likewise.
18007         * lib/unictype/pr_radical.h: Likewise.
18008         * lib/unictype/pr_soft_dotted.h: Likewise.
18009         * lib/unictype/pr_space.h: Likewise.
18010         * lib/unictype/pr_titlecase.h: Likewise.
18011         * lib/unictype/pr_variation_selector.h: Likewise.
18012         * lib/unictype/pr_white_space.h: Likewise.
18013         * lib/unictype/sy_c_ident.h: Likewise.
18014         * lib/unictype/sy_c_whitespace.h: Likewise.
18015         * lib/unictype/sy_java_whitespace.h: Likewise.
18016         * modules/uni*/*: Bump version number of expected libunistring version.
18017         Reported by Simon Josefsson.
18018
18019 2011-01-09  Karl Heuer  <kwzh@gnu.org>
18020
18021         useless-if-before-free: fix typo in --help and make the internal,
18022         automatic version date update process work once again.
18023         --help output contained a NUL character instead of the
18024         backslash-zero that was intended.  Also, the "must lie within
18025         the first 8 lines" line is on line 9, and hence not getting
18026         automatically updated.
18027         * build-aux/useless-if-before-free: Fix the former by adding a
18028         backslash, and the latter by condensing the three lines of what-it-does
18029         to a single line, leaving one line of slack for the future.
18030
18031 2011-01-09  Bruno Haible  <bruno@clisp.org>
18032
18033         uniwidth/width: Fix width of U+1D173..U+1D17A.
18034         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
18035         symbolic_width, output_width_property_test): New functions.
18036         (main): Invoke output_nonspacing_property, output_width_property_test.
18037         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
18038         U+1D173..U+1D17A.
18039         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
18040         1.
18041         * modules/uniwidth/*: Bump version number of expected libunistring
18042         version.
18043         * modules/unilbrk/*: Likewise.
18044
18045 2011-01-08  Bruno Haible  <bruno@clisp.org>
18046
18047         uninorm tests: Preserve copyright of Unicode data file.
18048         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
18049         Mention modifications.
18050
18051 2011-01-08  Bruno Haible  <bruno@clisp.org>
18052
18053         gen-uni-tables: Prepare for Unicode 5.2.0.
18054         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
18055         (debug_output_lbp, output_lbp): Update.
18056
18057 2011-01-08  Bruno Haible  <bruno@clisp.org>
18058
18059         unilbrk: Clarify gen-uni-tables.c code.
18060         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
18061         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
18062         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
18063
18064 2011-01-07  Bruno Haible  <bruno@clisp.org>
18065
18066         strtod: Restore errno when successfully parsing Infinity or NaN.
18067         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
18068         restore the original errno.
18069
18070 2011-01-07  Bruno Haible  <bruno@clisp.org>
18071
18072         remove test: Avoid failure on HP-UX 11.
18073         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
18074
18075 2011-01-07  Bruno Haible  <bruno@clisp.org>
18076
18077         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
18078         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
18079         error code.
18080
18081 2011-01-07  Pádraig Brady <P@draigBrady.com>
18082
18083         ignore-value: fixup comments, and add Eric Blake
18084         as an author since he rewrote the macros.
18085         * lib/ignore-value.h (ignore_value):  State that
18086         we now support aggregates.  Also specify exactly
18087         when the GCC warn_unused_result feature was added.
18088
18089 2011-01-06  Eric Blake  <eblake@redhat.com>
18090
18091         ignore-value: support aggregate types
18092         * lib/ignore-value.h (ignore_value): Provide separate gcc
18093         definition.
18094         * modules/ignore-value-tests: New test module.
18095         * tests/test-ignore-value.c: New test.
18096
18097         maint.mk: improve sc_prohibit_strcmp regex
18098         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
18099         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
18100         definition of STRNEQ.
18101
18102         signal: work around Haiku issue with SIGBUS
18103         * lib/siglist.h: Add comment.
18104         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
18105         strsignal's favoring of SIGSEGV.
18106         * tests/test-signal.c (main): Avoid test failure.
18107         * doc/posix-headers/signal.texi (signal.h): Document the issue.
18108         Reported by Scott McCreary.
18109
18110         maint.mk: add pre-release check to ensure submodule commits are public
18111         * top/maint.mk (public-submodule-commit): New rule.
18112         (submodule-checks): New variable.
18113         (alpha beta stable): Depend on the variable.
18114
18115 2011-01-05  Pádraig Brady <P@draigBrady.com>
18116         and Jim Meyering  <meyering@redhat.com>
18117
18118         ignore-value: make ignore_value more generic; deprecate ignore_ptr
18119         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
18120         (ATTRIBUTE_DEPRECATED): Define.
18121         (_ignore_case): New function.
18122         (ignore_value): New macro, to replace the old function.
18123         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
18124         * modules/ignore-value (Depends-on): Add stdint.
18125
18126 2011-01-04  Eric Blake  <eblake@redhat.com>
18127
18128         doc: regenerate INSTALL
18129         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
18130         @firstparagraphindent support, now that autoconf dropped it.
18131         (INSTALL_PRELUDE): Reinstate old macro.
18132         * doc/install.texi: Resync from autoconf.
18133         * doc/INSTALL: Reflect recent autoconf update.
18134         * doc/INSTALL.ISO: Likewise.
18135         * doc/INSTALL.UTF-8: Likewise.
18136         Reported by Karl Berry.
18137
18138 2011-01-04  Bruce Korb  <address@hidden>
18139
18140         git-version-gen: avoid a sub-shell
18141         * build-aux/git-version-gen: Redirect stderr in `...` via
18142         "exec 2>...", rather than via an added sub-shell.
18143
18144 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
18145
18146         git-version-gen: use (...) rather than sh -c '...'
18147         * build-aux/git-version-gen: Rather than hard-coding a shell's name
18148         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
18149
18150 2011-01-03  Jim Meyering  <meyering@redhat.com>
18151
18152         git-version-gen: convert leading TABs to spaces
18153         * build-aux/git-version-gen: Expand leading TABs.
18154
18155         git-version-gen: handle failed "git rev-list"
18156         * build-aux/git-version-gen: Rather than leaking a "fatal" error
18157         from git and proceeding as if it had succeeded but printed no SHA1
18158         checksums, suppress the diagnostic and handle the failure.
18159         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
18160
18161         git-version-gen: include command name in one more diagnostic
18162         * build-aux/git-version-gen: When the required .tarball-version file
18163         was missing or unreadable, you might see the diagnostic from "cat",
18164         but no trace of the name of the invoking script.  Now, you still see
18165         the diagnostic from cat, but also get one from "git-version-gen: ".
18166         Inspired by a patch from Bruce Korb.
18167
18168         update-copyright: adjust test to match changed code
18169         * tests/test-update-copyright.sh: Change test's expected output
18170         to match new actual output.
18171
18172 2011-01-02  Bruno Haible  <bruno@clisp.org>
18173
18174         getlogin_r: Avoid test failure on HP-UX 11.
18175         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
18176         ERANGE when the second argument is zero.
18177         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
18178         portability problem.
18179
18180 2011-01-02  Bruce Korb  <bkorb@gnu.org>
18181
18182         * build-aux/update-copyright: doc Simon's changes
18183
18184 2011-01-02  Simon Josefsson  <simon@josefsson.org>
18185
18186         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
18187         environment variable.
18188
18189 2011-01-02  Bruno Haible  <bruno@clisp.org>
18190
18191         unigbrk: Avoid gcc warnings.
18192         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
18193         unused variable.
18194         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
18195         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
18196         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
18197         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
18198         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
18199         Change type of first argument to 'const char *'.
18200         (main): Remove unused variable.
18201         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
18202         type of first argument to 'const char *'.
18203         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
18204         Likewise.
18205         (main): Change type of variable 's'.
18206         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
18207         to 'int'.
18208
18209 2011-01-02  Bruno Haible  <bruno@clisp.org>
18210
18211         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
18212         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
18213         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
18214         bug.
18215         * lib/pwrite.c: Undo 2010-12-31 patch.
18216         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
18217
18218 2011-01-02  Bruno Haible  <bruno@clisp.org>
18219
18220         pread: Fix test whether it works.
18221         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
18222
18223 2011-01-02  Bruno Haible  <bruno@clisp.org>
18224
18225         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
18226         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
18227         ends in "6". Don't require a specific month name. Try also the locale
18228         names found on HP-UX 11 and Solaris 7.
18229
18230 2011-01-02  Bruno Haible  <bruno@clisp.org>
18231
18232         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
18233         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
18234         C linkage.
18235         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
18236
18237 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18238
18239         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
18240         for consistency, since the "cluster" term is not used elsewhere.
18241         * lib/unigbrk.in.h: Update name.
18242         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
18243         * lib/unigbrk/u16-grapheme-next.c: Update name.
18244         * lib/unigbrk/u16-grapheme-prev.c: Update name.
18245         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
18246         * lib/unigbrk/u32-grapheme-next.c: Update name.
18247         * lib/unigbrk/u32-grapheme-prev.c: Update name.
18248         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
18249         * lib/unigbrk/u8-grapheme-next.c: Update name.
18250         * lib/unigbrk/u8-grapheme-prev.c: Update name.
18251         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
18252         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
18253         Suggested by Bruno Haible.
18254
18255 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18256
18257         Remove module 'u8-grapheme-len' as too redundant with
18258         'u8-grapheme-next'.
18259         * modules/unigbrk/u8-grapheme-len: Delete file.
18260         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
18261         * lib/unigbrk.in.h: Remove prototype for deleted function.
18262         * lib/unigbrk/u8-grapheme-len.c: Delete file.
18263         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
18264
18265         Remove module 'u16-grapheme-len' as too redundant with
18266         'u16-grapheme-next'.
18267         * modules/unigbrk/u16-grapheme-len: Delete file.
18268         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
18269         * lib/unigbrk.in.h: Remove prototype for deleted function.
18270         * lib/unigbrk/u16-grapheme-len.c: Delete file.
18271         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
18272
18273         Remove module 'u32-grapheme-len' as too redundant with
18274         'u32-grapheme-next'.
18275         * modules/unigbrk/u32-grapheme-len: Delete file.
18276         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
18277         * lib/unigbrk.in.h: Remove prototype for deleted function.
18278         * lib/unigbrk/u32-grapheme-len.c: Delete file.
18279         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
18280
18281         Suggested by Bruno Haible.
18282
18283 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18284
18285         * unigbrk.in.h: Fix typo: "ben" => "been".
18286         Reported by Bruno Haible.
18287
18288 2011-01-01  Jim Meyering  <meyering@redhat.com>
18289
18290         maint: update almost all copyright ranges to include 2011
18291         Run the new "make update-copyright" rule.
18292
18293 2011-01-01  Jim Meyering  <meyering@redhat.com>
18294
18295         maint: update-copyright: exempt doc/INSTALL*
18296         * Makefile (update-copyright): Also exclude doc/INSTALL*,
18297         since they are generated.  Suggested by Bruno Haible.
18298
18299 2011-01-01  Jim Meyering  <meyering@redhat.com>
18300
18301         maint: refine the update-copyright rule
18302         * Makefile (update-copyright): Also exclude any file that includes
18303         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
18304         code that merely generates the comment.
18305
18306 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
18307
18308         New module 'u8-grapheme-len'.
18309         * modules/unigbrk/u8-grapheme-len: New file.
18310         * modules/unigbrk/u8-grapheme-len-tests: New file.
18311         * lib/unigbrk.in.h: Add prototype for new function.
18312         * lib/unigbrk/u8-grapheme-len.c: New file.
18313         * tests/unigbrk/test-u8-grapheme-len.c: New file.
18314
18315         New module 'u16-grapheme-len'.
18316         * modules/unigbrk/u16-grapheme-len: New file.
18317         * modules/unigbrk/u16-grapheme-len-tests: New file.
18318         * lib/unigbrk.in.h: Add prototype for new function.
18319         * lib/unigbrk/u16-grapheme-len.c: New file.
18320         * tests/unigbrk/test-u16-grapheme-len.c: New file.
18321
18322         New module 'u32-grapheme-len'.
18323         * modules/unigbrk/u32-grapheme-len: New file.
18324         * modules/unigbrk/u32-grapheme-len-tests: New file.
18325         * lib/unigbrk.in.h: Add prototype for new function.
18326         * lib/unigbrk/u32-grapheme-len.c: New file.
18327         * tests/unigbrk/test-u32-grapheme-len.c: New file.
18328
18329         New module 'u8-grapheme-next'.
18330         * modules/unigbrk/u8-grapheme-next: New file.
18331         * modules/unigbrk/u8-grapheme-next-tests: New file.
18332         * lib/unigbrk.in.h: Add prototype for new function.
18333         * lib/unigbrk/u8-grapheme-next.c: New file.
18334         * tests/unigbrk/test-u8-grapheme-next.c: New file.
18335
18336         New module 'u16-grapheme-next'.
18337         * modules/unigbrk/u16-grapheme-next: New file.
18338         * modules/unigbrk/u16-grapheme-next-tests: New file.
18339         * lib/unigbrk.in.h: Add prototype for new function.
18340         * lib/unigbrk/u16-grapheme-next.c: New file.
18341         * tests/unigbrk/test-u16-grapheme-next.c: New file.
18342
18343         New module 'u32-grapheme-next'.
18344         * modules/unigbrk/u32-grapheme-next: New file.
18345         * modules/unigbrk/u32-grapheme-next-tests: New file.
18346         * lib/unigbrk.in.h: Add prototype for new function.
18347         * lib/unigbrk/u32-grapheme-next.c: New file.
18348         * tests/unigbrk/test-u32-grapheme-next.c: New file.
18349
18350         New module 'u8-grapheme-prev'.
18351         * modules/unigbrk/u8-grapheme-prev: New file.
18352         * modules/unigbrk/u8-grapheme-prev-tests: New file.
18353         * lib/unigbrk.in.h: Add prototype for new function.
18354         * lib/unigbrk/u8-grapheme-prev.c: New file.
18355         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
18356
18357         New module 'u16-grapheme-prev'.
18358         * modules/unigbrk/u16-grapheme-prev: New file.
18359         * modules/unigbrk/u16-grapheme-prev-tests: New file.
18360         * lib/unigbrk.in.h: Add prototype for new function.
18361         * lib/unigbrk/u16-grapheme-prev.c: New file.
18362         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
18363
18364         New module 'u32-grapheme-prev'.
18365         * modules/unigbrk/u32-grapheme-prev: New file.
18366         * modules/unigbrk/u32-grapheme-prev-tests: New file.
18367         * lib/unigbrk.in.h: Add prototype for new function.
18368         * lib/unigbrk/u32-grapheme-prev.c: New file.
18369         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
18370
18371         New module 'u8-grapheme-breaks'.
18372         * modules/unigbrk/u8-grapheme-breaks: New file.
18373         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
18374         * lib/unigbrk.in.h: Add prototype for new function.
18375         * lib/unigbrk/u8-grapheme-breaks.c: New file.
18376         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
18377
18378         New module 'u16-grapheme-breaks'.
18379         * modules/unigbrk/u16-grapheme-breaks: New file.
18380         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
18381         * lib/unigbrk.in.h: Add prototype for new function.
18382         * lib/unigbrk/u16-grapheme-breaks.c: New file.
18383         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
18384
18385         New module 'u32-grapheme-breaks'.
18386         * modules/unigbrk/u32-grapheme-breaks: New file.
18387         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
18388         * lib/unigbrk.in.h: Add prototype for new function.
18389         * lib/unigbrk/u32-grapheme-breaks.c: New file.
18390         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
18391
18392         New module 'ulc-grapheme-breaks'.
18393         * modules/unigbrk/ulc-grapheme-breaks: New file.
18394         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
18395         * m4/locale-ar.m4: New file.
18396         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
18397         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
18398         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
18399
18400 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
18401
18402         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
18403         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
18404         modified how this file was generated before I initially submitted
18405         the module, but failed to regenerate it.  This meant that several
18406         of the level2 entries were wrong.
18407         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
18408         Remove the division-by-2 that is folded into the table now that
18409         gbrkprop.h has been regenerated properly.  Now -1 entries are
18410         handled correctly.
18411
18412         New module 'unigbrk/uc-gbrk-prop-tests'.
18413         * modules/unigbrk/uc-gbrk-prop-tests: New file.
18414         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
18415         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
18416         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
18417
18418 2011-01-01  Bruno Haible  <bruno@clisp.org>
18419
18420         Avoid use of hexadecimal escapes.
18421         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
18422         instead of hexadecimal escapes.
18423
18424 2011-01-01  Jim Meyering  <meyering@redhat.com>
18425
18426         maint: new rule to update copyright year ranges
18427         * Makefile (update-copyright): New rule.
18428
18429         maint: indent with TABs in Makefile
18430         * Makefile: Expand leading sequences of spaces to TABs
18431
18432         version-etc: update the copyright year it reports
18433         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
18434
18435 2010-12-31  Bruno Haible  <bruno@clisp.org>
18436
18437         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
18438         * lib/isfinite.c (zerof, zerod, zerol): New variables.
18439         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
18440         zero.
18441
18442 2010-12-31  Bruno Haible  <bruno@clisp.org>
18443
18444         pwrite: Work around HP-UX 11.11 bug.
18445         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
18446         works and set REPLACE_PWRITE if not.
18447         * lib/pwrite.c (pwrite): Add an implementation that uses the system
18448         function.
18449         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
18450
18451 2010-12-31  Bruno Haible  <bruno@clisp.org>
18452
18453         pread: Work around HP-UX 11 bugs.
18454         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
18455         and set REPLACE_PREAD if not.
18456         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
18457
18458 2010-12-31  Eric Blake  <eblake@redhat.com>
18459
18460         nl_langinfo: fix YESEXPR on Irix 6.5
18461         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
18462         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
18463         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
18464         it.
18465
18466 2010-12-31  Bruno Haible  <bruno@clisp.org>
18467
18468         iconv: Document HP-UX 11 bug.
18469         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
18470
18471 2010-12-31  Bruno Haible  <bruno@clisp.org>
18472
18473         ldexpl: Fix link error on HP-UX 11.
18474         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
18475         LDEXPL_LIBM, using $ISNANL_LIBM.
18476
18477 2010-12-31  Eric Blake  <eblake@redhat.com>
18478
18479         ftello: avoid compilation failure with SunStudio c89
18480         * lib/ftello.c (ftello): Use lseek, not llseek.
18481
18482         tests: avoid failing coreutils tests on cygwin
18483         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
18484         (create_exe_shims_): Return 0 when skipping.
18485
18486 2010-12-31  Bruno Haible  <bruno@clisp.org>
18487
18488         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
18489         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
18490
18491 2010-12-31  Bruno Haible  <bruno@clisp.org>
18492
18493         waitpid: Fix link error in C++ mode.
18494         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
18495
18496 2010-12-31  Bruno Haible  <bruno@clisp.org>
18497
18498         isnan: Use GCC built-ins when possible.
18499         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
18500         __builtin_isnan.
18501         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
18502         (isnan): Define using GCC built-ins for GCC >= 4.0.
18503
18504 2010-12-31  Bruno Haible  <bruno@clisp.org>
18505
18506         isnand: Fix mistake.
18507         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
18508         __builtin_isnand.
18509
18510 2010-12-31  Bruno Haible  <bruno@clisp.org>
18511
18512         open: Avoid C++ error on HP-UX 11.
18513         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
18514
18515 2010-12-31  Bruno Haible  <bruno@clisp.org>
18516
18517         time_r: Add missing declarations on HP-UX 11.
18518         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
18519         instead of HAVE_LOCALTIME_R.
18520         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
18521         HAVE_LOCALTIME_R always.
18522         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
18523         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
18524         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
18525         HAVE_LOCALTIME_R.
18526         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
18527         * doc/posix-functions/localtime_r.texi: Likewise.
18528
18529 2010-12-29  Eric Blake  <eblake@redhat.com>
18530
18531         mountlist: tweak previous commit
18532         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
18533         Reported by Paul Eggert.
18534
18535         mountlist: fix local drive detection on cygwin
18536         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
18537         that works for cygwin.
18538
18539 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
18540
18541         ftoastr, snprintf: ftoastr + snprintf module
18542         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
18543         since the snprintf module now should be good enough here.
18544         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
18545         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
18546         and gl_MODULE_INDICATOR([snprintf]), but the former enables
18547         GNULIB_SNPRINTF only for the test directory, and the latter
18548         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
18549         seems to suffice by itself.
18550
18551 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
18552
18553         alloca: one step towards thread-safety
18554         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
18555         need for a static variable.  All callers changed.  This does not
18556         make the alloca replacement thread-safe, but it's one step.
18557
18558         tests: minor indenting change
18559         * tests/init.sh: Sync from coreutils housekeeping patch
18560         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
18561         to keep lines within 80 columns.
18562
18563 2010-12-28  Jim Meyering  <meyering@redhat.com>
18564
18565         regex: don't infloop on persistent failing calloc
18566         * lib/regexec.c (build_trtable): Return failure indication upon
18567         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18568         In glibc, this was fixed for version 2.13:
18569         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
18570
18571 2010-12-28  Bruno Haible  <bruno@clisp.org>
18572             Paul Eggert <eggert@cs.ucla.edu>
18573
18574         linkat: Make implementation robust against system behaviour variations.
18575         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
18576         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
18577         way, and to -2 if it needs a generic runtime test.
18578         * lib/linkat.c (solaris_optimized_link_immediate,
18579         solaris_optimized_link_follow): New functions.
18580         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
18581         (check_same_link): Use it.
18582
18583 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
18584
18585         New module 'unigbrk/base'.
18586         * modules/unigbrk/base: New file.
18587         * lib/unigbrk.in.h: New file.
18588
18589         New module 'unigbrk/uc-gbrk-prop'.
18590         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
18591         * modules/unigbrk/uc-gbrk-prop: New file.
18592         * lib/unigbrk/gbrkprop.h: New file.
18593         * lib/unigbrk/uc-gbrk-prop.c: New file.
18594
18595         New module 'unigbrk/uc-is-grapheme-break'.
18596         * modules/unigbrk/uc-is-grapheme-break: New file.
18597         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
18598         * lib/unigbrk/uc-is-grapheme-break.c: New file.
18599         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
18600         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
18601         * tests/unigbrk/GraphemeBreakTest.txt: New file.
18602
18603         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
18604
18605 2010-12-27  Bruno Haible  <bruno@clisp.org>
18606
18607         linkat test: Avoid failure on Solaris 11 2010-11.
18608         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
18609
18610 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18611
18612         utimens: work around glibc rounding bug on more platforms
18613         * lib/utimens.c (fdutimens): Work around rounding bug even if
18614         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
18615         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
18616
18617 2010-12-27  Bruno Haible  <bruno@clisp.org>
18618
18619         select tests: Improve comments.
18620         * tests/test-select.c (do_select): Add comments.
18621
18622 2010-12-27  Bruno Haible  <bruno@clisp.org>
18623
18624         select tests: Safer way of handling timeout.
18625         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
18626         at every invocation.
18627
18628 2010-12-27  Bruno Haible  <bruno@clisp.org>
18629
18630         select tests: Use 'bool' where appropriate.
18631         * tests/test-select.c (connect_to_socket): Change argument type to
18632         'bool'.
18633
18634 2010-12-27  Bruno Haible  <bruno@clisp.org>
18635
18636         select tests: Use existing modules.
18637         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
18638         (configure.ac): Don't test for unistd.h.
18639         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
18640         declared in <unistd.h>.
18641
18642 2010-12-27  Bruno Haible  <bruno@clisp.org>
18643
18644         mbrtowc: Work around a Solaris 7 bug.
18645         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
18646         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
18647         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
18648         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
18649         MBRTOWC_NULL_ARG1_BUG.
18650         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
18651         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
18652         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
18653         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
18654
18655 2010-12-27  Jim Meyering  <meyering@redhat.com>
18656
18657         read-file.c: tweak syntax
18658         * lib/read-file.c (fread_file): Remove space after "*" in function
18659         definitions.
18660
18661 2010-12-27  Bruno Haible  <bruno@clisp.org>
18662
18663         times test: Avoid gcc warnings on OSF/1.
18664         * tests/test-times.c (main): Cast printf arguments from clock_t to
18665         'long int'.
18666
18667 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18668
18669         utimens: work around glibc rounding bug on older Linux kernels
18670         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
18671         on Linux with a glibc whose utimes might not work, then work
18672         around a longstanding glibc bug involving rounding rather than
18673         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
18674         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18675
18676 2010-12-26  Bruno Haible  <bruno@clisp.org>
18677
18678         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
18679         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
18680         _GL_CXXALIAS_SYS.
18681         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18682
18683 2010-12-26  Bruno Haible  <bruno@clisp.org>
18684
18685         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
18686         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
18687         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18688         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
18689         looking for the declaration.
18690         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
18691         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
18692         problem.
18693         * doc/posix-functions/inet_pton.texi: Likewise.
18694
18695 2010-12-26  Bruno Haible  <bruno@clisp.org>
18696
18697         arpa_inet: Use the common idioms with C++ support.
18698         * lib/arpa_inet.in.h: Include c++defs.h.
18699         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
18700         support.
18701         * modules/arpa_inet (Depends-on): Add c++defs.
18702         (Makefile.am): Substitute the contents of c++defs.h.
18703         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
18704         * modules/arpa_inet-c++-tests: New file.
18705         * tests/test-arpa_inet-c++.cc: New file.
18706
18707 2010-12-25  Bruno Haible  <bruno@clisp.org>
18708
18709         Fix more C++ link errors on Solaris 8.
18710         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
18711         $(LIB_EACCESS).
18712         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
18713         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
18714         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
18715         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
18716         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
18717
18718 2010-12-25  Bruno Haible  <bruno@clisp.org>
18719
18720         printf-posix: Fix link error when a non-GCC compiler is used.
18721         * lib/stdio.in.h (printf): When not using GCC, override printf
18722         correctly.
18723         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18724
18725 2010-12-25  Bruno Haible  <bruno@clisp.org>
18726
18727         strerror_r-posix: Update doc.
18728         * doc/posix-functions/strerror_r.texi: Update doc about the return
18729         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
18730
18731 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
18732
18733         utimens: simplify the logic of the previous change
18734         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
18735         This should not affect whether the test succeeds or fails.
18736
18737         utimens: configure better on hosts with NFS clock skew
18738         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
18739         uses the clock of the local host.  It might use the clock of the
18740         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
18741         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18742
18743 2010-12-25  Bruno Haible  <bruno@clisp.org>
18744
18745         ptsname test: Avoid failure on Solaris.
18746         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
18747         open a pseudo-terminal; don't use BSD-style ptys.
18748         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
18749
18750 2010-12-25  Bruno Haible  <bruno@clisp.org>
18751
18752         ptsname: Avoid ERANGE failure on some systems.
18753         * lib/ptsname.c (buffer): Increase size.
18754
18755 2010-12-25  Bruno Haible  <bruno@clisp.org>
18756
18757         rename, renameat: Avoid test failures at NFS mounted locations.
18758         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
18759         so that subsequent mkdir calls succeed.
18760
18761 2010-12-25  Bruno Haible  <bruno@clisp.org>
18762
18763         iswblank: Fix C++ link error on Solaris 8.
18764         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
18765         _GL_FUNCDECL_SYS.
18766
18767 2010-12-25  Bruno Haible  <bruno@clisp.org>
18768
18769         unistd: Fix C++ link error on Solaris 8.
18770         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
18771
18772 2010-12-25  Bruno Haible  <bruno@clisp.org>
18773
18774         readlink doc: Mention an old glibc bug.
18775         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
18776
18777 2010-12-25  Bruno Haible  <bruno@clisp.org>
18778
18779         fcntl-h: Fix for use of C++ on glibc systems.
18780         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18781         also on glibc systems in C++ mode.
18782         Reported by Gary V. Vaughan <gary@gnu.org>.
18783
18784 2010-12-25  Bruno Haible  <bruno@clisp.org>
18785
18786         roundl-ieee: Make it work on OSF/1 5.1 with cc.
18787         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
18788
18789 2010-12-25  Bruno Haible  <bruno@clisp.org>
18790
18791         truncl-ieee: Make it work on OSF/1 5.1 with cc.
18792         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
18793         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
18794         test whether truncl works according to ISO C 99 with IEC 60559.
18795         * m4/truncl-ieee.m4: New file.
18796         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
18797         m4/signbit.m4.
18798         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
18799
18800 2010-12-25  Bruno Haible  <bruno@clisp.org>
18801
18802         ceill-ieee: Make it work on OSF/1 5.1 with cc.
18803         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
18804         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
18805         test whether ceill works according to ISO C 99 with IEC 60559.
18806         * m4/ceill-ieee.m4: New file.
18807         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
18808         m4/signbit.m4.
18809         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
18810
18811 2010-12-25  Bruno Haible  <bruno@clisp.org>
18812
18813         Ensure all prerequisites of <wchar.h> are included.
18814         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
18815         before <wchar.h>.
18816         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
18817         gl_MBRLEN_NUL_RETVAL): Likewise.
18818         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18819         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
18820         AC_FUNC_MBRTOWC): Likewise.
18821         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18822         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
18823         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18824         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18825         Likewise.
18826         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18827         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
18828         (gl_WCHAR_H): Improve comments.
18829         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
18830
18831 2010-12-25  Bruno Haible  <bruno@clisp.org>
18832
18833         strtok_r: Fix C syntax error in autoconf macro.
18834         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
18835         characters in test program.
18836
18837 2010-12-24  Bruno Haible  <bruno@clisp.org>
18838
18839         ceil, trunc, round: Fix gcc warnings.
18840         * lib/ceil.c (MIN): Undefine before redefining.
18841         * lib/trunc.c (MIN): Likewise.
18842         * lib/round.c (MIN): Likewise.
18843         Include <math.h> first.
18844
18845 2010-12-24  Bruno Haible  <bruno@clisp.org>
18846
18847         select tests: Avoid failures on OSF/1 5.1.
18848         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
18849         failure of closing the last socket; it may fail with ECONNRESET.
18850
18851 2010-12-24  Eric Blake  <eblake@redhat.com>
18852
18853         stdint: avoid HP-UX 10.20 preprocessor bug
18854         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
18855         than #if.
18856         * tests/test-floor2.c (main): Likewise.
18857         Reported by Peter O'Gorman.
18858
18859         pipe: make obsoletion transition easier
18860         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
18861         * modules/pipe (Files): Include revived file.
18862         (Include): Drop reference, to mirror getdate's behavior.
18863
18864 2010-12-24  Bruno Haible  <bruno@clisp.org>
18865
18866         sys_socket: Hide mismatch of declarations on NonStop Kernel.
18867         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
18868         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
18869         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18870
18871 2010-12-24  Bruno Haible  <bruno@clisp.org>
18872
18873         gethostname: Ensure declaration on NonStop Kernel.
18874         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
18875         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18876
18877 2010-12-24  Bruno Haible  <bruno@clisp.org>
18878
18879         sys_select: Ensure all necessary types on NonStop Kernel.
18880         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
18881         include <sys/time.h>.
18882         * doc/posix-headers/sys_select.texi: Mention that it's missing on
18883         NonStop Kernel.
18884         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18885
18886 2010-12-24  Bruno Haible  <bruno@clisp.org>
18887
18888         sys_select: Remove unneeded include.
18889         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
18890         have <sys/select.h>.
18891
18892 2010-12-24  Bruno Haible  <bruno@clisp.org>
18893
18894         gethostname: Provide a fallback for HOST_NAME_MAX.
18895         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
18896         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
18897         instead.
18898         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18899
18900 2010-12-24  Bruno Haible  <bruno@clisp.org>
18901
18902         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
18903         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
18904         (SA_RESTART): Likewise.
18905         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18906
18907 2010-12-24  Bruno Haible  <bruno@clisp.org>
18908
18909         signal: Define NSIG.
18910         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
18911         * tests/test-signal.c (nsig): New variable.
18912         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18913
18914 2010-12-24  Bruno Haible  <bruno@clisp.org>
18915
18916         rename, renameat: Avoid test failures on OSF/1 5.1.
18917         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
18918         alternative error codes.
18919         * tests/test-renameat.c (main): Likewise.
18920
18921 2010-12-24  Bruno Haible  <bruno@clisp.org>
18922
18923         *printf: Detect large precisions bug on Solaris 10/SPARC.
18924         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
18925         by Paul Eggert.
18926         * tests/test-snprintf-posix.h (test_function): Add this test code here
18927         too.
18928         * tests/test-sprintf-posix.h (test_function): Likewise.
18929         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18930         * tests/test-vasprintf-posix.c (test_function): Likewise.
18931         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
18932         around by gnulib.
18933         * doc/posix-functions/printf.texi: Likewise.
18934         * doc/posix-functions/snprintf.texi: Likewise.
18935         * doc/posix-functions/sprintf.texi: Likewise.
18936         * doc/posix-functions/vfprintf.texi: Likewise.
18937         * doc/posix-functions/vprintf.texi: Likewise.
18938         * doc/posix-functions/vsnprintf.texi: Likewise.
18939         * doc/posix-functions/vsprintf.texi: Likewise.
18940         * doc/posix-functions/dprintf.texi: Undo last commit.
18941         * doc/posix-functions/vdprintf.texi: Likewise.
18942
18943 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18944
18945         tests: port test-fdutimensat.c to Solaris 8
18946         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
18947         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
18948         On Solaris 8, it fails with errno == ENOSYS, because there is no
18949         futimens (so it can't use the fd), and there is no lutimens (so it
18950         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
18951
18952         vsnprintf: make more consistent with snprintf; doc fixes
18953
18954         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
18955         the byte count return problem was promoted from the snprintf-posix
18956         to the snprintf module.
18957         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
18958         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
18959         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
18960         * tests/test-snprintf.c (main): Check the byte count returned.
18961         * tests/test-vsnprintf.c (main): Likewise.
18962
18963 2010-12-23  Eric Blake  <eblake@redhat.com>
18964
18965         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
18966         * modules/sigpipe (License): Relax license.
18967
18968 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18969
18970         doc: document Solaris printf bug with large float precisions
18971         * doc/posix-functions/dprintf.texi (dprintf):
18972         * doc/posix-functions/fprintf.texi (fprintf):
18973         * doc/posix-functions/printf.texi (printf):
18974         * doc/posix-functions/snprintf.texi (snprintf):
18975         * doc/posix-functions/sprintf.texi (sprintf):
18976         * doc/posix-functions/vdprintf.texi (vdprintf):
18977         * doc/posix-functions/vfprintf.texi (vfprintf):
18978         * doc/posix-functions/vprintf.texi (vprintf):
18979         * doc/posix-functions/vsnprintf.texi (vsnprintf):
18980         * doc/posix-functions/vsprintf.texi (vsprintf):
18981         Mention that these functions mishandle large floating point
18982         precisions on Solaris 10.  The same bug is also present in Solaris
18983         8, and I assume earlier.  This causes "cd gnulib-tests; make
18984         check" to fail on Solaris 8 (and I assume, later) when building
18985         the latest coreutils, in test-vasprintf-posix's call to
18986         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
18987         the wide flavors (e.g., wprintf) so this patch just updates the
18988         documentation for the narrow ones.
18989
18990         test-posixtm.c: add two tests
18991         * tests/test-posixtm.c: Add two tests, to highlight the
18992         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
18993         around this bug; this is merely to document it.
18994
18995 2010-12-22  Bruno Haible  <bruno@clisp.org>
18996
18997         getlogin_r: Work around portability problem on OSF/1.
18998         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
18999         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
19000         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
19001         test for a truncated result.
19002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
19003         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
19004         * modules/getlogin_r (Depends-on): Add memchr.
19005         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
19006
19007 2010-12-22  Bruno Haible  <bruno@clisp.org>
19008
19009         ptsname: Avoid test failure on OSF/1 5.1.
19010         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
19011         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
19012         (same_slave): New function.
19013         (main): Use it to compare ptsname's result with the expected file name.
19014
19015 2010-12-22  Bruno Haible  <bruno@clisp.org>
19016
19017         Port extended stdio modules to HP NonStop Kernel.
19018         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
19019         macros.
19020         * lib/fbufmode.c: Update comments.
19021         * lib/fflush.c: Likewise.
19022         * lib/fpurge.c: Likewise.
19023         * lib/freadable.c: Likewise.
19024         * lib/freadahead.c: Likewise.
19025         * lib/freading.c: Likewise.
19026         * lib/freadptr.c: Likewise.
19027         * lib/freadseek.c: Likewise.
19028         * lib/fseeko.c: Likewise.
19029         * lib/fseterr.c: Likewise.
19030         * lib/fwritable.c: Likewise.
19031         * lib/fwriting.c: Likewise.
19032         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19033
19034 2010-12-22  Bruno Haible  <bruno@clisp.org>
19035
19036         ttyname_r: Work around bug on OSF/1 5.1.
19037         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
19038         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
19039         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
19040         present.
19041         * lib/ttyname_r.c (ttyname_r): Update comments.
19042
19043 2010-12-22  Bruno Haible  <bruno@clisp.org>
19044
19045         round: Implement result sign according to IEEE 754.
19046         * lib/round.c (MIN, MINUS_ZERO): New macros.
19047         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
19048         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
19049         * tests/test-round-ieee.c (main): Likewise.
19050         * tests/test-roundl-ieee.c (main): Likewise.
19051
19052         trunc: Implement result sign according to IEEE 754.
19053         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
19054         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
19055         * tests/test-trunc2.c: Include minus-zero.h.
19056         (MINUS_ZERO): New macro.
19057         (trunc_reference): Keep in sync with lib/trunc.c.
19058         * tests/test-truncf2.c: Include minus-zero.h.
19059         (MINUS_ZERO): New macro.
19060         (truncf_reference): Keep in sync with lib/trunc.c.
19061         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
19062         * tests/test-trunc-ieee.c (main): Likewise.
19063         * tests/test-truncl-ieee.c (main): Likewise.
19064
19065         ceil: Implement result sign according to IEEE 754.
19066         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
19067         (FUNC): Return -0.0 for -1 < x < 0.
19068         * tests/test-ceil2.c: Include minus-zero.h.
19069         (MINUS_ZERO): New macro.
19070         (ceil_reference): Keep in sync with lib/ceil.c.
19071         * tests/test-ceilf2.c: Include minus-zero.h.
19072         (MINUS_ZERO): New macro.
19073         (ceilf_reference): Keep in sync with lib/ceil.c.
19074         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
19075         * tests/test-ceil-ieee.c (main): Likewise.
19076         * tests/test-ceill-ieee.c (main): Likewise.
19077
19078         floor: Implement result sign according to IEEE 754.
19079         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
19080         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
19081         * tests/test-floorf2.c (floorf_reference): Likewise.
19082         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
19083         * tests/test-floor-ieee.c (main): Likewise.
19084         * tests/test-floorl-ieee.c (main): Likewise.
19085
19086 2010-12-22  Bruno Haible  <bruno@clisp.org>
19087
19088         getaddrinfo: Update doc.
19089         * doc/posix-functions/gai_strerror.texi: Return type is also different
19090         on AIX and HP-UX.
19091
19092 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19093
19094         getaddrinfo, inet_ntop: Update doc for Solaris.
19095         * doc/posix-functions/gai_strerror.texi: Return type is also an
19096         issue on Solaris 9 and earlier.
19097         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
19098         on Solaris 10 and earlier.
19099
19100 2010-12-21  Bruno Haible  <bruno@clisp.org>
19101
19102         New module 'roundl-ieee'.
19103         * modules/roundl-ieee: New file.
19104         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
19105         test whether roundl works according to ISO C 99 with IEC 60559.
19106         * m4/roundl-ieee.m4: New file.
19107         * modules/roundl-ieee-tests: New file.
19108         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
19109         * tests/test-roundl.c (main): Remove signbit tests.
19110         * modules/roundl-tests (Depends-on): Remove signbit.
19111         * doc/posix-functions/roundl.texi: Mention the new module.
19112
19113 2010-12-21  Bruno Haible  <bruno@clisp.org>
19114
19115         New module 'truncl-ieee'.
19116         * modules/truncl-ieee: New file.
19117         * modules/truncl-ieee-tests: New file.
19118         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
19119         * tests/test-truncl.c (main): Remove signbit tests.
19120         * modules/truncl-tests (Depends-on): Remove signbit.
19121         * doc/posix-functions/truncl.texi: Mention the new module.
19122
19123 2010-12-21  Bruno Haible  <bruno@clisp.org>
19124
19125         New module 'ceill-ieee'.
19126         * modules/ceill-ieee: New file.
19127         * modules/ceill-ieee-tests: New file.
19128         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
19129         * tests/test-ceill.c (main): Remove signbit tests.
19130         * modules/ceill-tests (Depends-on): Remove signbit.
19131         * doc/posix-functions/ceill.texi: Mention the new module.
19132
19133 2010-12-21  Bruno Haible  <bruno@clisp.org>
19134
19135         New module 'floorl-ieee'.
19136         * modules/floorl-ieee: New file.
19137         * modules/floorl-ieee-tests: New file.
19138         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
19139         * tests/test-floorl.c (main): Remove signbit tests.
19140         * modules/floorl-tests (Depends-on): Remove signbit.
19141         * doc/posix-functions/floorl.texi: Mention the new module.
19142
19143 2010-12-21  Bruno Haible  <bruno@clisp.org>
19144
19145         New module 'round-ieee'.
19146         * modules/round-ieee: New file.
19147         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
19148         whether round works according to ISO C 99 with IEC 60559.
19149         * m4/round-ieee.m4: New file.
19150         * modules/round-ieee-tests: New file.
19151         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
19152         * tests/test-round1.c (main): Remove signbit tests.
19153         * modules/round-tests (Depends-on): Remove 'signbit'.
19154         * doc/posix-functions/round.texi: Mention the new module.
19155
19156 2010-12-21  Bruno Haible  <bruno@clisp.org>
19157
19158         New module 'trunc-ieee'.
19159         * modules/trunc-ieee: New file.
19160         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
19161         whether trunc works according to ISO C 99 with IEC 60559.
19162         * m4/trunc-ieee.m4: New file.
19163         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
19164         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
19165         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
19166         * modules/trunc-ieee-tests: New file.
19167         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
19168         * tests/test-trunc1.c (main): Remove signbit tests.
19169         * modules/trunc-tests (Depends-on): Remove 'signbit'.
19170         * doc/posix-functions/trunc.texi: Mention the new module.
19171
19172 2010-12-21  Bruno Haible  <bruno@clisp.org>
19173
19174         New module 'ceil-ieee'.
19175         * modules/ceil-ieee: New file.
19176         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
19177         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
19178         ISO C 99 with IEC 60559.
19179         * m4/ceil-ieee.m4: New file.
19180         * modules/ceil (Files): Add lib/ceil.c.
19181         (Depends-on): Add 'float'.
19182         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19183         * lib/math.in.h (ceil): New declaration.
19184         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
19185         REPLACE_CEIL.
19186         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
19187         * modules/ceil-ieee-tests: New file.
19188         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
19189         * tests/test-math-c++.cc: Check the signature of 'ceil'.
19190         * doc/posix-functions/ceil.texi: Mention the new module.
19191
19192 2010-12-21  Bruno Haible  <bruno@clisp.org>
19193
19194         New module 'floor-ieee'.
19195         * modules/floor-ieee: New file.
19196         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
19197         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
19198         ISO C 99 with IEC 60559.
19199         * m4/floor-ieee.m4: New file.
19200         * modules/floor (Files): Add lib/floor.c.
19201         (Depends-on): Add 'float'.
19202         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19203         * lib/math.in.h (floor): New declaration.
19204         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
19205         REPLACE_FLOOR.
19206         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
19207         * modules/floor-ieee-tests: New file.
19208         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
19209         * tests/test-math-c++.cc: Check the signature of 'floor'.
19210         * doc/posix-functions/floor.texi: Mention the new module.
19211
19212 2010-12-21  Bruno Haible  <bruno@clisp.org>
19213
19214         New module 'roundf-ieee'.
19215         * modules/roundf-ieee: New file.
19216         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
19217         test whether roundf works according to ISO C 99 with IEC 60559.
19218         * m4/roundf-ieee.m4: New file.
19219         * modules/roundf-ieee-tests: New file.
19220         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
19221         * tests/test-roundf1.c (main): Remove signbit tests.
19222         * modules/roundf-tests (Depends-on): Remove 'signbit'.
19223         * doc/posix-functions/roundf.texi: Mention the new module.
19224
19225 2010-12-21  Bruno Haible  <bruno@clisp.org>
19226
19227         New module 'truncf-ieee'.
19228         * modules/truncf-ieee: New file.
19229         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
19230         test whether truncf works according to ISO C 99 with IEC 60559.
19231         * m4/truncf-ieee.m4: New file.
19232         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
19233         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
19234         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
19235         * modules/truncf-ieee-tests: New file.
19236         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
19237         * tests/test-truncf1.c (main): Remove signbit tests.
19238         * modules/truncf-tests (Depends-on): Remove 'signbit'.
19239         * doc/posix-functions/truncf.texi: Mention the new module.
19240
19241 2010-12-21  Bruno Haible  <bruno@clisp.org>
19242
19243         New module 'ceilf-ieee'.
19244         * modules/ceilf-ieee: New file.
19245         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
19246         test whether ceilf works according to ISO C 99 with IEC 60559.
19247         * m4/ceilf-ieee.m4: New file.
19248         * modules/ceilf-ieee-tests: New file.
19249         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
19250         * tests/test-ceilf1.c (main): Remove signbit tests.
19251         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
19252         * doc/posix-functions/ceilf.texi: Mention the new module.
19253
19254 2010-12-21  Bruno Haible  <bruno@clisp.org>
19255
19256         New module 'floorf-ieee'.
19257         * modules/floorf-ieee: New file.
19258         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
19259         test whether floorf works according to ISO C 99 with IEC 60559.
19260         * m4/floorf-ieee.m4: New file.
19261         * modules/floorf-ieee-tests: New file.
19262         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
19263         * tests/test-floorf1.c (main): Remove signbit tests.
19264         * modules/floorf-tests (Depends-on): Remove 'signbit'.
19265         * doc/posix-functions/floorf.texi: Mention the new module.
19266
19267 2010-12-21  Bruno Haible  <bruno@clisp.org>
19268
19269         Support for minus zero in autoconf macros.
19270         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
19271         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
19272         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
19273         * tests/minus-zero.h: Update comments.
19274
19275 2010-12-21  Bruno Haible  <bruno@clisp.org>
19276
19277         Tests for module 'ceil'.
19278         * modules/ceil-tests: New file.
19279         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
19280         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
19281
19282 2010-12-21  Bruno Haible  <bruno@clisp.org>
19283
19284         Tests for module 'floor'.
19285         * modules/floor-tests: New file.
19286         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
19287         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
19288
19289 2010-12-21  Bruno Haible  <bruno@clisp.org>
19290
19291         math: Fix indentation.
19292         * lib/math.in.h (floorf): Fix indentation.
19293
19294 2010-12-21  Bruno Haible  <bruno@clisp.org>
19295
19296         Fix cross-compilation guesses on Solaris.
19297         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
19298         not match "solaris2.10".
19299         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19300         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
19301         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
19302
19303 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
19304
19305         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
19306         This fixes a problem observed with the latest coreutils snapshot
19307         that caused a test to fail on Solaris 8.  src/csplit.c's call
19308         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
19309         earlier, instead of returning the number of bytes that would have
19310         been generated; this causes csplit to incorrectly report memory
19311         exhaustion.
19312         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
19313         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
19314         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
19315         comments to match.
19316         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
19317         Fix typo in matching older versions of Solaris: "solaris2.10"
19318         is matched by the shell pattern "solaris2.[0-9]*".  This matters
19319         only for guessing while cross-compiling.
19320         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
19321
19322 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
19323
19324         ftoastr: fix comment again
19325         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
19326         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
19327         Also, simplify example a bit by using flags = 0.
19328
19329 2010-12-20  Bruno Haible  <bruno@clisp.org>
19330
19331         round*, trunc*: Update documentation regarding glibc.
19332         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
19333         * doc/posix-functions/round.texi: Likewise.
19334         * doc/posix-functions/roundl.texi: Likewise.
19335         * doc/posix-functions/truncf.texi: Likewise.
19336         * doc/posix-functions/trunc.texi: Likewise.
19337         * doc/posix-functions/truncl.texi: Likewise.
19338
19339 2010-12-20  Bruno Haible  <bruno@clisp.org>
19340
19341         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
19342         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
19343         * doc/posix-functions/round.texi: Likewise.
19344         * doc/posix-functions/roundl.texi: Likewise.
19345
19346 2010-12-20  Bruno Haible  <bruno@clisp.org>
19347
19348         ttyname_r: Add missing declaration on HP-UX 11.
19349         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
19350         HAVE_TTYNAME_R.
19351         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
19352         declared. Set HAVE_TTYNAME_R always.
19353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19354         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
19355         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
19356         HAVE_TTYNAME_R.
19357         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
19358
19359 2010-12-20  Bruno Haible  <bruno@clisp.org>
19360
19361         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
19362         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
19363         * doc/posix-functions/getlogin_r.texi: Likewise.
19364         * tests/test-getlogin.c: Include <errno.h>.
19365         (main): Avoid test failure on HP-UX 11.11.
19366         * tests/test-getlogin_r.c (main): Likewise.
19367
19368 2010-12-20  Bruno Haible  <bruno@clisp.org>
19369
19370         getlogin_r: Add missing declaration on HP-UX 11.
19371         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
19372         declared also when it exists as a function.
19373         * doc/posix-functions/getlogin_r.texi: Document this workaround.
19374
19375 2010-12-20  Bruno Haible  <bruno@clisp.org>
19376
19377         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
19378         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
19379         through wcrtomb.
19380
19381 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
19382
19383         ftoastr: fix comment
19384         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
19385         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
19386
19387 2010-12-19  Bruno Haible  <bruno@clisp.org>
19388
19389         isnan: Ensure it is a macro.
19390         * lib/math.in.h (isnan): Define as a macro if not already a macro.
19391         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
19392         Solaris.
19393
19394 2010-12-19  Bruno Haible  <bruno@clisp.org>
19395
19396         ldexpl test: Fix link error on OSF/1 5.1.
19397         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
19398
19399 2010-12-19  Bruno Haible  <bruno@clisp.org>
19400
19401         wctype: Make it work in C++ mode on OSF/1 5.1.
19402         * lib/wctype.in.h (iswblank): Declare but not define here.
19403         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
19404         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
19405         * modules/wctype (Files): Add lib/iswblank.c.
19406
19407 2010-12-19  Bruno Haible  <bruno@clisp.org>
19408
19409         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
19410         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
19411         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
19412
19413 2010-12-19  Bruno Haible  <bruno@clisp.org>
19414
19415         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
19416         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
19417         _POSIX_PII_SOCKET.
19418         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
19419         * doc/posix-functions/recvfrom.texi: Likewise.
19420         * doc/posix-functions/send.texi: Likewise.
19421         * doc/posix-functions/sendto.texi: Likewise.
19422
19423 2010-12-19  Bruno Haible  <bruno@clisp.org>
19424
19425         tcgetsid: Add missing declaration on OSF/1 5.1.
19426         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
19427         HAVE_TCGETSID.
19428         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
19429         Don't set HAVE_TCGETSID.
19430         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
19431         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
19432         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
19433         HAVE_TCGETSID.
19434         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
19435
19436 2010-12-19  Bruno Haible  <bruno@clisp.org>
19437
19438         stdio: Fix problem with popen() declaration on OSF/1 5.1.
19439         * lib/stdio.in.h: During the include_next statement, let recursive
19440         includes of this file include only the system header file.
19441
19442 2010-12-19  Bruno Haible  <bruno@clisp.org>
19443
19444         iconv_open: Fix regression from 2010-12-04.
19445         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
19446         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
19447
19448 2010-12-19  Bruno Haible  <bruno@clisp.org>
19449
19450         stdbool test: Avoid a gcc warning.
19451         * tests/test-stdbool.c (main): Fail if e1 is false.
19452         Reported by Jim Meyering.
19453
19454 2010-12-19  Jim Meyering  <meyering@redhat.com>
19455
19456         setenv: restore to working order
19457         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
19458         mistakenly removed.
19459         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
19460         HAVE_SETENV.
19461         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
19462         HAVE_SETENV.
19463
19464 2010-12-19  Bruno Haible  <bruno@clisp.org>
19465
19466         Document some different function declarations on OSF/1 5.1.
19467         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
19468         * doc/posix-functions/inet_ntop.texi: Likewise.
19469         * doc/posix-functions/gethostname.texi: Likewise.
19470         * lib/unistd.in.h (gethostname): Update comment.
19471
19472 2010-12-19  Bruno Haible  <bruno@clisp.org>
19473
19474         doc: Mention vasprintf-posix module.
19475         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
19476         the 'vasprintf-posix' module.
19477         * doc/glibc-functions/vasprintf.texi: Likewise.
19478
19479 2010-12-19  Bruno Haible  <bruno@clisp.org>
19480
19481         unsetenv: Add missing declaration on OSF/1 5.1.
19482         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
19483         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
19484         Don't set HAVE_UNSETENV. In the test program, set _BSD.
19485         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
19486         not HAVE_UNSETENV.
19487         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
19488         HAVE_UNSETENV.
19489         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
19490
19491 2010-12-19  Bruno Haible  <bruno@clisp.org>
19492
19493         setenv: Add missing declaration on OSF/1 5.1.
19494         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
19495         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
19496         declared. Don't set HAVE_SETENV.
19497         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
19498         not HAVE_SETENV.
19499         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
19500         HAVE_SETENV.
19501         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
19502
19503 2010-12-19  Bruno Haible  <bruno@clisp.org>
19504
19505         nl_langinfo tests: Avoid gcc warning.
19506         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
19507
19508 2010-12-19  Bruno Haible  <bruno@clisp.org>
19509
19510         mknod: Avoid error in C++ mode on OSF/1 with GCC.
19511         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
19512         _GL_CXXALIAS_SYS.
19513
19514 2010-12-19  Bruno Haible  <bruno@clisp.org>
19515
19516         stdbool: Relax test.
19517         * tests/test-stdbool.c (e): Don't require that casts from a variable's
19518         address to 'bool' work in static initializer, for compilers other than
19519         GCC.
19520
19521 2010-12-19  Bruno Haible  <bruno@clisp.org>
19522
19523         ftello: Add missing declaration on OSF/1 5.1.
19524         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
19525         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
19526         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
19527         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
19528         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
19529
19530 2010-12-19  Bruno Haible  <bruno@clisp.org>
19531
19532         fseeko: Add missing declaration on OSF/1 5.1.
19533         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
19534         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
19535         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
19536         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
19537         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
19538
19539 2010-12-19  Bruno Haible  <bruno@clisp.org>
19540
19541         fchdir: Add missing declaration on OSF/1 5.1.
19542         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
19543         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
19544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
19545         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
19546         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
19547
19548 2010-12-19  Bruno Haible  <bruno@clisp.org>
19549
19550         relocatable-prog-wrapper: Separate from relocatable-prog.
19551         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
19552         uninstall-relocwrapper rule here.
19553         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
19554         Reported by Ian Beckwith <ianb@erislabs.net>.
19555
19556 2010-12-19  Bruno Haible  <bruno@clisp.org>
19557
19558         unistr/u8-mbsnlen: Add missing dependency.
19559         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
19560         Reported by Ian Beckwith <ianb@erislabs.net>.
19561
19562 2010-12-19  Bruno Haible  <bruno@clisp.org>
19563
19564         iconv: Make it possible again to use this module without 'iconv-h'.
19565         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
19566         if it is not defined.
19567         Reported by Ian Beckwith <ianb@erislabs.net>.
19568
19569 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19570
19571         acl: port to Solaris 8 when copying from tmpfs to ufs
19572         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
19573         error number.  Problem observed on Solaris 8 with latest
19574         coreutils, with "mv A B", where A is on a tmpfs file system and B
19575         is on a ufs file system.  This caused coreutils' mv/part-symlink
19576         test to fail.
19577
19578         tests: set fail=0 at start
19579         * tests/init.sh (setup_): Move fail=0 initialization here ...
19580         (mktempd_): ... from here, so that tests can rely on fail being
19581         set to 0 initially.  This fixes a problem in coreutils; see:
19582         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
19583
19584 2010-12-18  Bruno Haible  <bruno@clisp.org>
19585
19586         memmem-simple: Stylistic changes.
19587         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
19588         Fix preprocessor directive indentation.
19589
19590 2010-12-15  Pádraig Brady <P@draigBrady.com>
19591
19592         memmem, memmem-simple: reorganize and expand empty needle check
19593         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
19594         functional checks to memmem-simple so that one has a fully functional
19595         memmem by using just this module.
19596         Restrict the performance only check to the memmem module.
19597         Also expand the empty needle check to ensure the correct
19598         pointer is returned, not just a non NULL pointer.
19599         * doc/glibc-functions/memmem.texi: Rearrange the portability
19600         documentation to correlate with the rearranged checks.
19601         Clarify exactly how the memmem and memmem-simple modules
19602         relate to each other.
19603
19604 2010-12-15  Pádraig Brady <P@draigBrady.com>
19605             Bruno Haible  <bruno@clisp.org>
19606
19607         Improve cross-compilation guesses for uClibc.
19608         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
19609         that uClibc does not have the glibc bug.
19610         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
19611         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
19612
19613 2010-12-14  Eric Blake  <eblake@redhat.com>
19614
19615         configmake: provide fallbacks for oldest supported autotools
19616         * m4/configmake.m4: New file.
19617         * modules/configmake (Files): Ship it.
19618         (configure.ac): Use it to guarantee fallbacks.
19619
19620 2010-12-13  Pádraig Brady <P@draigBrady.com>
19621
19622         read-file: Improve handling of large files
19623         * lib/read-file.c (fread_file): Minimize realloc()s
19624         for regular files, and better manage sizes around SIZE_MAX.
19625
19626 2010-12-13  Eric Blake  <eblake@redhat.com>
19627
19628         cloexec, fcntl: relax license
19629         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
19630         consent from all contributors.
19631         * modules/fcntl (License): Likewise.
19632
19633 2010-12-10  Bruno Haible  <bruno@clisp.org>
19634
19635         Tests for module 'pipe-posix'.
19636         * modules/pipe-posix-tests: New file.
19637         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
19638
19639 2010-12-10  Bruno Haible  <bruno@clisp.org>
19640
19641         pipe-posix: Make it work in C++ mode.
19642         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
19643         (pipe): Use common idiom, not a macro definition.
19644         * lib/pipe.c: New file.
19645         * m4/pipe.m4: New file.
19646         * modules/pipe-posix (Description): Enhance.
19647         (Files): Add lib/pipe.c, m4/pipe.m4.
19648         (configure.ac): Invoke gl_FUNC_PIPE.
19649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
19650         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
19651         * tests/test-unistd-c++.cc: Check the signature of pipe.
19652
19653 2010-12-10  Bruno Haible  <bruno@clisp.org>
19654
19655         Rename module 'pipe' to 'spawn-pipe'.
19656         * modules/spawn-pipe: New file, renamed from modules/pipe.
19657         (Files, configure.ac, Makefile.am): Update.
19658         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
19659         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
19660         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
19661         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
19662         "spawn-pipe.h" instead of "pipe.h".
19663         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
19664         to gl_SPAWN_PIPE.
19665         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
19666         (Files, Makefile.am): Update.
19667         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
19668         Update.
19669         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
19670         Include "spawn-pipe.h" instead of "pipe.h".
19671         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
19672         * lib/javacomp.c: Likewise.
19673         * lib/javaversion.c: Likewise.
19674         * lib/pipe-filter-gi.c: Likewise.
19675         * lib/pipe-filter-ii.c: Likewise.
19676         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
19677         * modules/javacomp (Depends-on): Likewise.
19678         * modules/javaversion (Depends-on): Likewise.
19679         * modules/pipe-filter-gi (Depends-on): Likewise.
19680         * modules/pipe-filter-ii (Depends-on): Likewise.
19681         * MODULES.html.sh (Executing programs): Update.
19682         * NEWS: Mention the change.
19683
19684 2010-12-10  Eric Blake  <eblake@redhat.com>
19685
19686         pipe-posix: new module
19687         * modules/pipe-posix: New file.
19688         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
19689         (gl_UNISTD_H): Check for declaration.
19690         * modules/unistd (Makefile.am): Substitute it.
19691         * lib/unistd.in.h (pipe): Provide it for mingw.
19692         * doc/posix-functions/pipe.texi (pipe): Update documentation.
19693         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
19694
19695 2010-12-07  Bruno Haible  <bruno@clisp.org>
19696
19697         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
19698         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
19699         u8_strcmp_gnu.
19700         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
19701
19702 2010-12-06  Bruno Haible  <bruno@clisp.org>
19703
19704         Update internal documentation.
19705         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
19706
19707 2010-12-04  Bruno Haible  <bruno@clisp.org>
19708
19709         Put more information about failed tests into the test return codes.
19710         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
19711         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
19712         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19713         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
19714         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19715         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19716         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19717         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19718         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
19719         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19720         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
19721         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19722         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
19723         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19724         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
19725         returns a bit mask.
19726         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
19727         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
19728         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
19729         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
19730         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19731         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19732         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19733         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
19734         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19735         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19736         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19737         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19738         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19739         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19740         * m4/link.m4 (gl_FUNC_LINK): Likewise.
19741         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19742         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
19743         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
19744         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19745         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
19746         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19747         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19748         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
19749         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19750         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19751         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19752         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
19753         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19754         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19755         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
19756         gl_PRINTF_PRECISION): Likewise.
19757         * m4/regex.m4 (gl_REGEX): Likewise.
19758         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19759         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19760         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
19761         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19762         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19763         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19764         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19765         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
19766         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19767         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19768         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19769         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19770         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19771         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19772         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19773         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19774         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
19775         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19776         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19777         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
19778         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
19779         enumerated value.
19780         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
19781
19782 2010-12-04  Bruno Haible  <bruno@clisp.org>
19783
19784         Update for Solaris 11 2010-11.
19785         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
19786         Express, released in November 2010.
19787
19788 2010-12-04  Bruno Haible  <bruno@clisp.org>
19789
19790         nproc: Relax license.
19791         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
19792         and Paul Eggert.
19793         Requested by Ludovic Courtès <ludo@gnu.org>.
19794
19795 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
19796
19797         utimecmp: fine-grained src to nearby coarse-grained dest
19798
19799         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
19800         and the source is on a file system with higher-resolution time
19801         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
19802         not work, and the time stamps are close together, the algorithm to
19803         determine the exact resolution from the read-back mtime was buggy:
19804         it had a "!=" where it should have had an "==".  This bug has been
19805         in the code ever since it was introduced to gnulib.
19806         Problem reported by Dan Jacobson in
19807         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
19808
19809 2010-11-30  Bruno Haible  <bruno@clisp.org>
19810
19811         strerror_r-posix: Fix autoconf test.
19812         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
19813
19814 2010-11-28  Bruno Haible  <bruno@clisp.org>
19815             Paul Eggert  <eggert@cs.ucla.edu>
19816
19817         Tests for module 'getdomainname'.
19818         * modules/getdomainname-tests: New file.
19819         * tests/test-getdomainname.c: New file, based on
19820         tests/test-gethostname.c.
19821
19822 2010-11-28  Bruno Haible  <bruno@clisp.org>
19823             Paul Eggert  <eggert@cs.ucla.edu>
19824
19825         getdomainname: Use the system function when possible.
19826         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
19827         (getdomainname): Replace if needed. Provide the declaration if it is
19828         missing. Don't use _GL_CXXALIAS_SYS_CAST.
19829         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
19830         (getdomainname): When the system has getdomainname, call the system
19831         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
19832         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19833         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
19834         found in libnsl. Look for the declaration also in <netdb.h>. Replace
19835         the function if its second argument is of type 'int' or if it is found
19836         in libnsl.
19837         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
19838         <sys/systeminfo.h> and sysinfo().
19839         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
19840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19841         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
19842         HAVE_GETDOMAINNAME.
19843         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
19844         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
19845         * doc/glibc-functions/getdomainname.texi: Document the problems with
19846         the getdomainname declaration.
19847
19848 2010-11-28  Bruno Haible  <bruno@clisp.org>
19849
19850         sys_socket: Ensure ss_family field on AIX.
19851         * lib/sys_socket.in.h (ss_family): New macro definition.
19852         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
19853         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
19854         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19855         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19856         * modules/sys_socket (Makefile.am): Substitute
19857         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19858         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
19859
19860 2010-11-27  Bruno Haible  <bruno@clisp.org>
19861
19862         readline: Improve configure output.
19863         * m4/readline.m4 (gl_FUNC_READLINE): Make the
19864         "checking for readline..." result understandable.
19865
19866 2010-11-27  Bruno Haible  <bruno@clisp.org>
19867
19868         *printf-posix: Detect a bug on Solaris 10/x86.
19869         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
19870         for floating-point output.
19871         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
19872         directive.
19873         * tests/test-snprintf-posix.h (test_function): Likewise.
19874         * tests/test-sprintf-posix.h (test_function): Likewise.
19875         * tests/test-vasprintf-posix.c (test_function): Likewise.
19876         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
19877         * doc/posix-functions/printf.texi: Likewise.
19878         * doc/posix-functions/snprintf.texi: Likewise.
19879         * doc/posix-functions/sprintf.texi: Likewise.
19880         * doc/posix-functions/vfprintf.texi: Likewise.
19881         * doc/posix-functions/vprintf.texi: Likewise.
19882         * doc/posix-functions/vsnprintf.texi: Likewise.
19883         * doc/posix-functions/vsprintf.texi: Likewise.
19884         * doc/glibc-functions/obstack_printf.texi: Likewise.
19885         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
19886
19887 2010-11-27  Bruno Haible  <bruno@clisp.org>
19888
19889         Fix link error when module libunistring-optional is in use.
19890         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
19891         * modules/striconveha-tests (Makefile.am): Likewise.
19892
19893 2010-11-27  Bruno Haible  <bruno@clisp.org>
19894
19895         regex: Mention link dependencies.
19896         * modules/regex (Link): New section.
19897         * modules/rpmatch (Link): Likewise.
19898         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
19899
19900 2010-11-27  Bruno Haible  <bruno@clisp.org>
19901
19902         ftoastr: Fix compilation error on Solaris.
19903         * lib/ftoastr.c: Include <config.h>.
19904
19905 2010-11-27  Bruno Haible  <bruno@clisp.org>
19906
19907         getloadavg: Update documentation.
19908         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
19909
19910 2010-11-27  Bruno Haible  <bruno@clisp.org>
19911
19912         sys_socket: Fix test whether the functions are declared.
19913         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
19914         not <sys/select.h>.
19915
19916 2010-11-27  Bruno Haible  <bruno@clisp.org>
19917
19918         getpass: Make sure to get system declaration on some platforms.
19919         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
19920         gl_USE_SYSTEM_EXTENSIONS.
19921         * modules/getpass (Depends-on): Add extensions.
19922
19923 2010-11-26  Bruno Haible  <bruno@clisp.org>
19924
19925         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
19926         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
19927         'iconv' module is present.
19928         (ICONV_CONST): New macro.
19929         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
19930         ICONV_CONST.
19931         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
19932         set ICONV_CONST.
19933         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
19934         here.
19935         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
19936         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
19937         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
19938         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
19939         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
19940         present.
19941
19942 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
19943
19944         ftoastr: comment fix
19945         * lib/ftoastr.c: "little" -> "little or no" in comment
19946
19947 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
19948
19949         stdint: port to GCC 4.3 + OSX + Octave
19950         On this platform, stdint.h is buggy and defines int64_t to long
19951         long int.  The replacement defined it to long int, causing
19952         problems with C++ style name mangling.  Instead, trust the system
19953         definition if INT64_MAX is defined, and likewise for the unsigned
19954         variant.   Problem reported by Jarno Rajahalme in
19955         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
19956         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
19957         and don't mess with int64_t and INT64_MAX in this case.
19958         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
19959
19960 2010-11-24  Bruno Haible  <bruno@clisp.org>
19961
19962         doc: Corrections regarding MacOS X 10.4 and 10.5.
19963         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
19964         MacOS X.
19965         Reported by Simon Josefsson.
19966
19967 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
19968
19969         Uninstall ".bin" files installed by relocwrapper.
19970         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
19971         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
19972         unless it is already there.
19973
19974 2010-11-21  Bruno Haible  <bruno@clisp.org>
19975
19976         Update for NetBSD 5.0.
19977         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19978         NetBSD; the test fails on NetBSD 5.0.
19979         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19980         about NetBSD.
19981
19982 2010-11-21  Bruno Haible  <bruno@clisp.org>
19983
19984         Update for HP-UX 11.23 and HP-UX 11.31.
19985         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
19986         HP-UX.
19987
19988 2010-11-21  Bruno Haible  <bruno@clisp.org>
19989
19990         Update for MacOS X 10.5.
19991         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19992         MacOS X; the test fails on MacOS X 10.5.8.
19993         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19994         about MacOS X.
19995
19996 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
19997
19998         bootstrap: add bootstrap_sync option.
19999         See discussion at
20000         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
20001         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
20002         * build-aux/bootstrap: Accept --bootstrap-sync to update
20003         bootstrap if it is not identical to the local gnulib's
20004         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
20005         enable this by default.  Accept --no-bootstrap-sync to disable
20006         it.
20007
20008 2010-11-20  Bruno Haible  <bruno@clisp.org>
20009
20010         Ensure that <features.h> is included before __GLIBC__ is tested.
20011         * lib/printf-parse.h: Include <features.h>.
20012         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
20013         Reported by Mike Frysinger <vapier@gentoo.org>.
20014
20015         Ensure that <features.h> is included before __GLIBC__ is tested.
20016         * lib/wchar.in.h: Include <features.h>.
20017         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
20018         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
20019         Reported by Mike Frysinger <vapier@gentoo.org>.
20020
20021         Ensure that <features.h> is included before __GLIBC__ is tested.
20022         * lib/arpa_inet.in.h: Include <features.h>.
20023         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
20024         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
20025         Reported by Mike Frysinger <vapier@gentoo.org>.
20026
20027         Ensure that <features.h> is included before __GLIBC__ is tested.
20028         * build-aux/link-warning.h: Include <features.h>.
20029         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
20030         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
20031         Reported by Mike Frysinger <vapier@gentoo.org>.
20032
20033         Ensure that <features.h> is included before __GLIBC__ is tested.
20034         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
20035         Reported by Mike Frysinger <vapier@gentoo.org>.
20036
20037 2010-11-20  Bruno Haible  <bruno@clisp.org>
20038
20039         memmem: Fix autoconf test.
20040         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
20041
20042 2010-11-20  Bruno Haible  <bruno@clisp.org>
20043
20044         Port to uClibc.
20045         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
20046         * lib/fcntl.in.h: Likewise.
20047         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
20048         * lib/mbrtowc.c (mbrtowc): Likewise.
20049         * lib/relocatable.c (find_shared_library_fullname): Likewise.
20050         * lib/strerror_r.c: Likewise.
20051         * lib/unistr/u8-strnlen.c: Likewise.
20052         * lib/vasnprintf.c (decimal_point_char): Likewise.
20053         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
20054         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20055         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
20056         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
20057         * tests/test-sigaction.c (handler, main): Likewise.
20058         * lib/freading.h: Treat uClibc like a non-glibc platform.
20059         * lib/freading.c: Likewise.
20060         * lib/gettext.h: Likewise.
20061         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
20062         Likewise.
20063         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
20064         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
20065         * lib/propername.c (proper_name_utf8): Likewise.
20066         * lib/spawn.in.h: Likewise.
20067         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
20068         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
20069         mem_cd_iconveh_internal): Likewise.
20070         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
20071         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20072         strstr, strcasestr): Likewise.
20073         * lib/unicodeio.c (unicode_to_mb): Likewise.
20074         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
20075         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
20076         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
20077         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
20078         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
20079         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
20080         * lib/unistr/u8-stpncpy.c: Likewise.
20081         * lib/vasnprintf.c (VASNPRINTF): Likewise.
20082         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
20083         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
20084         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20085         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
20086         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
20087         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
20088         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
20089         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
20090         Likewise.
20091         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20092         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20093         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
20094         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20095         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
20096         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20097         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20098         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20099         * tests/test-getopt.h (OPTIND_MIN): Likewise.
20100         * tests/test-striconveha.c (main): Likewise.
20101         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20102         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
20103         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
20104         * doc/posix-functions/getline.texi: Likewise.
20105         Reported by Mike Frysinger <vapier@gentoo.org>.
20106
20107 2010-11-20  Bruno Haible  <bruno@clisp.org>
20108
20109         nproc: Fix condition.
20110         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
20111         HAVE_PTHREAD_AFFINITY_NP.
20112
20113 2010-11-20  Bruno Haible  <bruno@clisp.org>
20114
20115         Fix a comment.
20116         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
20117
20118 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
20119
20120         ftoastr: don't assume snprintf
20121         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
20122         Implement a subset of snprintf here, by using sprintf safely.
20123         * modules/ftoastr (Depends-on): Remove snprintf.
20124
20125 2010-11-19  Jim Meyering  <meyering@redhat.com>
20126
20127         test-rename.h: fix compilation failure
20128         * tests/test-rename.h (test_rename): Add omitted "}".
20129
20130 2010-11-17  Jim Meyering  <meyering@redhat.com>
20131
20132         maint.mk: add a URL discussing the no-@acronym policy
20133         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
20134
20135 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
20136
20137         ftoastr: depend on snprintf, improve comments
20138         * lib/ftoastr.c: Also mention Loitsch's draft.
20139         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
20140         needed in the current implementation, but it might simplify
20141         speeding up the code later.
20142         * modules/ftoastr: Depend on snprintf; this improves portability.
20143         Suggested by Bruno Haible in the same email.
20144
20145         ftoastr: port to hosts lacking strtof and strtold
20146         Problem reported by Bruno Haible in
20147         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
20148         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
20149         environment and strtold (and presumably strtof) are not available.
20150         * modules/ftoastr (Files): Add m4/c-strtod.m4.
20151         (configure.ac): Require gl_C99_STRTOLD.
20152
20153 2010-11-18  Bruno Haible  <bruno@clisp.org>
20154
20155         c-strtold: Avoid link error on AIX 7.
20156         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
20157         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
20158         (gl_C_STRTOLD): Test whether strtold_l exists.
20159         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20160
20161 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
20162
20163         intprops: new macro INT_BITS_STRLEN_BOUND
20164         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
20165         ftoastr.h.  This exposes an internal of intprops.h that was formerly
20166         not exposed.  Also, it uses a slightly tighter bound than before;
20167         though this makes no practical difference, we might as well be as
20168         tight as we easily can.
20169
20170         ftoastr: new module, for lossless conversion of floats to short strings
20171         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
20172         * modules/ftoastr: New files.
20173
20174 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
20175
20176         bootstrap: port to Solaris sed
20177         * build-aux/bootstrap (get_version): Port to Solaris sed.
20178         See Ralf Wildenhues's note in
20179         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
20180
20181 2010-11-14  Jim Meyering  <meyering@redhat.com>
20182
20183         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
20184         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
20185         and move definition closer to sole use.
20186
20187 2010-11-13  Jim Meyering  <meyering@redhat.com>
20188
20189         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
20190         Now we require at least autoconf-2.59, which means the work-around
20191         is no longer needed.
20192         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
20193         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20194         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
20195         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
20196         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20197
20198 2010-11-13  Bruno Haible  <bruno@clisp.org>
20199
20200         rename, renameat: Avoid test failures at NFS mounted locations.
20201         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
20202         functions.
20203         (test_rename): Use assert_nonexistent.
20204         * tests/test-rename.c: Include <dirent.h>.
20205         * tests/test-renameat.c: Likewise.
20206         Reported by Gary V. Vaughan <gary@gnu.org>.
20207
20208         rename, renameat: Document Linux bug with NFS
20209         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
20210         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
20211         * doc/posix-functions/renameat.texi: Likewise.
20212         Suggested by Eric Blake.
20213
20214 2010-11-13  Bruno Haible  <bruno@clisp.org>
20215
20216         rename test: Add comments.
20217         * tests/test-rename.h (test_rename): Add structure and comments.
20218
20219 2010-11-13  Eric Blake  <eblake@redhat.com>
20220
20221         maintainer-makefile: cover a few more files
20222         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
20223         scripts generated within C files, for libvirt.
20224
20225 2010-11-13  Bruno Haible  <bruno@clisp.org>
20226
20227         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
20228         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
20229         character, return the number of bytes that belong together, not always
20230         1.
20231         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
20232         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
20233         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
20234         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
20235         number of bytes of an invalid character.
20236         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
20237         (main): Invoke it.
20238         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
20239         results.
20240         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
20241         malformed byte sequences.
20242         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
20243         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
20244         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
20245         Reported by Ben Pfaff and Paolo Bonzini.
20246
20247 2010-11-13  Bruno Haible  <bruno@clisp.org>
20248
20249         openat: Work around glibc bug with fchownat() and empty file names.
20250         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
20251         (gl_FUNC_FCHOWNAT): Invoke it.
20252         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
20253         * doc/posix-functions/fchownat.texi: Document the glibc bug.
20254         Reported by Gary V. Vaughan <gary@gnu.org>.
20255
20256 2010-11-13  Bruno Haible  <bruno@clisp.org>
20257
20258         openat: Ensure autoconf macro ordering.
20259         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
20260         gl_USE_SYSTEM_EXTENSIONS.
20261         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
20262
20263 2010-11-13  Bruno Haible  <bruno@clisp.org>
20264
20265         Update comments.
20266         * lib/unistr/u8-check.c: Update file name in comments.
20267         * lib/unistr/u8-mblen.c: Likewise.
20268         * lib/unistr/u8-prev.c: Likewise.
20269         * lib/unistr/u8-strmblen.c: Likewise.
20270         * lib/unistr/u8-strmbtouc.c: Likewise.
20271
20272 2010-11-13  Jim Meyering  <meyering@redhat.com>
20273
20274         tests: avoid test failure on Solaris 10 due to lack of PATH export
20275         * tests/test-update-copyright.sh: Don't forget to export PATH.
20276
20277         init.sh: ensure that IFS is defined, just in case...
20278         * tests/init.sh (setup_): Ensure that IFS is defined,
20279         so that saving and restoring it works as expected.  This
20280         appears to be useful at least for an old version of dash
20281         from a long time ago (RH 6).  See here for details:
20282         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
20283
20284         maint.mk: tighten "test a == b" check
20285         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
20286         test to files that contain something like #!/bin/sh.
20287         Without this, coreutils would get two false positives in
20288         the comments of C source files.
20289
20290 2010-11-12  Eric Blake  <eblake@redhat.com>
20291
20292         bootstrap: fix typo in previous attempt
20293         * build-aux/bootstrap (buildreq): Correct the grouping.
20294         Reported by Paul Eggert.
20295
20296         maintainer-makefile: prohibit test x == x
20297         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
20298         Based on a report by Matthias Bolte.
20299
20300         bootstrap: allow FreeBSD gzip
20301         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
20302         which has no '.' and goes to stderr.
20303         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
20304         Reported by Matthias Bolte.
20305
20306         maintainer-makefile: check for i18n setup
20307         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
20308         will likely work.
20309
20310 2010-11-12  Bruno Haible  <bruno@clisp.org>
20311
20312         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
20313         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
20314         * lib/nanosleep.c (nanosleep): Likewise.
20315
20316 2010-11-11  Bruno Haible  <bruno@clisp.org>
20317
20318         fcntl-h: Fix for use of C++ on glibc systems.
20319         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
20320         also on glibc systems in C++ mode.
20321         Reported by Gary V. Vaughan <gary@gnu.org>.
20322
20323 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20324
20325         mknod: avoid false failure with dash
20326         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
20327
20328 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
20329
20330         unlink: Fix "is it should" typo in diagnostic.
20331         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
20332         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
20333
20334 2010-11-11  Bruno Haible  <bruno@clisp.org>
20335
20336         Tests for module 'strerror_r-posix'.
20337         * modules/strerror_r-posix-tests: New file.
20338         * tests/test-strerror_r.c: New file.
20339         * tests/test-string-c++.cc: Check the signature of strerror_r.
20340
20341         New module 'strerror_r-posix'.
20342         * lib/string.in.h (strerror_r): New declaration.
20343         * lib/strerror_r.c: New file.
20344         * m4/strerror_r.m4: New file.
20345         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
20346         of strerror_r.
20347         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
20348         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
20349         * modules/strerror_r-posix: New file.
20350         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
20351         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
20352         * doc/posix-functions/strerror_r.texi: Mention the new module and the
20353         portability problems.
20354
20355 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
20356
20357         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
20358         line is also considered for output. Quoted function name in shell
20359         command, so temporary files for functions like MyClass::operator()
20360         are removed correctly without errors.
20361
20362 2010-11-09  Bruno Haible  <bruno@clisp.org>
20363
20364         * doc/posix-functions/strerror.texi: List more failing platforms.
20365
20366         * doc/posix-functions/strerror.texi: Add a comment.
20367
20368 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20369
20370         fdopendir: fix bug on MacOS X when low on file descriptors
20371
20372         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
20373         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
20374         All callers changed.
20375         (fdopendir): Invoke save_cwd at the top level, not after using
20376         multiple dup() calls to use up file descriptors.  Then retry
20377         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
20378         less than the maximum number of open file descriptors, because
20379         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
20380         on Mac OS X 10.6.4 for tar 1.24
20381         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
20382         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
20383         and for tar 1.25
20384         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
20385
20386 2010-11-07  Bruno Haible  <bruno@clisp.org>
20387
20388         vasnprintf: Support I flag on glibc systems.
20389         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
20390         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
20391         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
20392         snprintf function.
20393         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
20394         glibc systems.
20395         * tests/test-vasnprintf-posix3.c: New file.
20396         * modules/vasnprintf-posix-tests (Files): Add it.
20397         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
20398
20399 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20400
20401         [html] Fix copy/paste bug: Use unique name for compiler warnings.
20402         * MODULES.html.sh: For compiler warnings, use name
20403         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
20404
20405 2010-11-05  Eric Blake  <eblake@redhat.com>
20406
20407         ceil, floor: avoid spurious failure with icc
20408         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
20409         [denormals-as-zero] when optimizing without -mieee-fp option.
20410         * tests/test-floorf2.c (floorf_reference): Likewise.
20411         * tests/test-ceilf1.c (dummy): New function.
20412         (main): Use it to outsmart icc's optimization.
20413         * tests/test-floorf1.c (dummy, main): Likewise.
20414
20415         tests: require working signbit
20416         * modules/ceilf-tests (Depends-on): Add signbit.
20417         * modules/ceill-tests (Depends-on): Likewise.
20418         * modules/floorf-tests (Depends-on): Likewise.
20419         * modules/floorl-tests (Depends-on): Likewise.
20420         * modules/round-tests (Depends-on): Likewise.
20421         * modules/roundf-tests (Depends-on): Likewise.
20422         * modules/roundl-tests (Depends-on): Likewise.
20423         * modules/trunc-tests (Depends-on): Likewise.
20424         * modules/truncf-tests (Depends-on): Likewise.
20425         * modules/truncl-tests (Depends-on): Likewise.
20426
20427         strtod: work around icc bug
20428         * lib/strtod.c (minus_zero): Define to working value.
20429         (strtod): Use it to avoid icc bug.
20430
20431         copysign: enhance tests
20432         * modules/copysign-tests (Files): Add minus-zero.h.
20433         * tests/test-copysign.c (main): Also test zeros.
20434
20435 2010-11-04  Eric Blake  <eblake@redhat.com>
20436
20437         ceil, floor, round, trunc: enhance tests of -0
20438         * tests/test-ceilf1.c (main): Ensure correct sign of result.
20439         * tests/test-ceill.c (main): Likewise.
20440         * tests/test-floorf1.c (main): Likewise.
20441         * tests/test-floorl.c (main): Likewise.
20442         * tests/test-round1.c (main): Likewise.
20443         * tests/test-roundf1.c (main): Likewise.
20444         * tests/test-roundl.c (main): Likewise.
20445         * tests/test-trunc1.c (main): Likewise.
20446         * tests/test-truncf1.c (main): Likewise.
20447         * tests/test-truncl.c (main): Likewise.
20448
20449 2010-11-04  Eric Blake  <eblake@redhat.com>
20450
20451         frexp, tests: work around ICC bug with -zero
20452         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
20453         works with more compilers.
20454         * tests/minus-zero.h: New file.
20455         * modules/ceilf-tests (Files): Include it.
20456         * modules/ceill-tests (Files): Likewise.
20457         * modules/floorf-tests (Files): Likewise.
20458         * modules/floorl-tests (Files): Likewise.
20459         * modules/frexp-nolibm-tests (Files): Likewise.
20460         * modules/frexp-tests (Files): Likewise.
20461         * modules/frexpl-nolibm-tests (Files): Likewise.
20462         * modules/frexpl-tests (Files): Likewise.
20463         * modules/isnan-tests (Files): Likewise.
20464         * modules/isnand-nolibm-tests (Files): Likewise.
20465         * modules/isnand-tests (Files): Likewise.
20466         * modules/isnanf-nolibm-tests (Files): Likewise.
20467         * modules/isnanf-tests (Files): Likewise.
20468         * modules/isnanl-nolibm-tests (Files): Likewise.
20469         * modules/isnanl-tests (Files): Likewise.
20470         * modules/round-tests (Files): Likewise.
20471         * modules/roundf-tests (Files): Likewise.
20472         * modules/roundl-tests (Files): Likewise.
20473         * modules/ldexpl-tests (Files): Likewise.
20474         * modules/signbit-tests (Files): Likewise.
20475         * modules/snprintf-posix-tests (Files): Likewise.
20476         * modules/sprintf-posix-tests (Files): Likewise.
20477         * modules/strtod-tests (Files): Likewise.
20478         * modules/trunc-tests (Files): Likewise.
20479         * modules/truncf-tests (Files): Likewise.
20480         * modules/truncl-tests (Files): Likewise.
20481         * modules/vsnprintf-posix-tests (Files): Likewise.
20482         * modules/vsprintf-posix-tests (Files): Likewise.
20483         * modules/vasnprintf-posix-tests (Files): Likewise.
20484         * modules/vasprintf-posix-tests (Files): Likewise.
20485         * tests/test-ceilf1.c (main): Use it.
20486         * tests/test-ceill.c (main): Likewise.
20487         * tests/test-floorf1.c (main): Likewise.
20488         * tests/test-floorl.c (main): Likewise.
20489         * tests/test-frexp.c (main): Likewise.
20490         * tests/test-frexpl.c (main): Likewise.
20491         * tests/test-isnan.c (main): Likewise.
20492         * tests/test-isnand.h (main): Likewise.
20493         * tests/test-isnanf.h (main): Likewise.
20494         * tests/test-isnanl.h (main): Likewise.
20495         * tests/test-ldexpl.c (main): Likewise.
20496         * tests/test-round.c (main): Likewise.
20497         * tests/test-roundf.c (main): Likewise.
20498         * tests/test-roundl.c (main): Likewise.
20499         * tests/test-signbit.c (test_signbitf, test_signbitd)
20500         (test_signbitl): Likewise.
20501         * tests/test-snprintf-posix.h (test_function): Likewise.
20502         * tests/test-sprintf-posix.h (test_function): Likewise.
20503         * tests/test-strtod.c (main): Likewise.
20504         * tests/test-trunc1.c (main): Likewise.
20505         * tests/test-truncf1.c (main): Likewise.
20506         * tests/test-truncl.c (main): Likewise.
20507
20508         isnanl: work around icc bug
20509         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
20510
20511 2010-11-03  Eric Blake  <eblake@redhat.com>
20512
20513         tests: fix compiler warnings
20514         * tests/test-getopt.h (test_getopt): Fix condition.
20515         * tests/test-getopt_long.h (test_getopt_long): Likewise.
20516         * tests/test-pipe2.c (main): Likewise.
20517         * tests/test-quotearg-simple.c (main): Avoid icc warning.
20518
20519         utimens: fix broken m4 test
20520         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
20521
20522 2010-10-28  Bruno Haible  <bruno@clisp.org>
20523
20524         posix_spawn*, getdtablesize: Relax license.
20525         * modules/posix_spawn (License): Change to LGPLv2+.
20526         * modules/posix_spawnp (License): Likewise.
20527         * modules/posix_spawn-internal (License): Likewise.
20528         * modules/posix_spawnattr_init (License): Likewise.
20529         * modules/posix_spawnattr_getflags (License): Likewise.
20530         * modules/posix_spawnattr_setflags (License): Likewise.
20531         * modules/posix_spawnattr_getpgroup (License): Likewise.
20532         * modules/posix_spawnattr_setpgroup (License): Likewise.
20533         * modules/posix_spawnattr_getschedparam (License): Likewise.
20534         * modules/posix_spawnattr_setschedparam (License): Likewise.
20535         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
20536         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
20537         * modules/posix_spawnattr_getsigdefault (License): Likewise.
20538         * modules/posix_spawnattr_setsigdefault (License): Likewise.
20539         * modules/posix_spawnattr_getsigmask (License): Likewise.
20540         * modules/posix_spawnattr_setsigmask (License): Likewise.
20541         * modules/posix_spawnattr_destroy (License): Likewise.
20542         * modules/posix_spawn_file_actions_init (License): Likewise.
20543         * modules/posix_spawn_file_actions_addclose (License): Likewise.
20544         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
20545         * modules/posix_spawn_file_actions_addopen (License): Likewise.
20546         * modules/posix_spawn_file_actions_destroy (License): Likewise.
20547         * modules/getdtablesize (License): Likewise.
20548         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
20549
20550 2010-10-26  Bruno Haible  <bruno@clisp.org>
20551
20552         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
20553         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
20554         Cygwin and mingw.
20555         Suggested by Eric Blake.
20556
20557 2010-10-26  Bruno Haible  <bruno@clisp.org>
20558
20559         stdio: Work around compilation error due to renameat() on Solaris 10.
20560         * lib/stdio.in.h: Include <unistd.h> on Solaris.
20561         * lib/renameat.c: Don't include <unistd.h> here.
20562         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
20563         Reported by Paul Eggert and Eric Blake.
20564
20565 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
20566
20567         renameat: port to Solaris 10, which declares renameat in unistd.h
20568
20569         * lib/renameat.c: Include unistd.h before stdio.h, because
20570         Solaris 10 declares renameat in unistd.h.  Problem encountered
20571         when building GNU tar 1.24 on Solaris 10.
20572
20573 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20574
20575         fdopendir: fix C89 compilation
20576         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
20577         compilers.
20578
20579 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
20580
20581         inttostr: simplify by removing unnecessary redundancy
20582         * lib/anytostr.c: Don't include verify.h.
20583         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
20584         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
20585         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
20586         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
20587         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
20588         Likewise.
20589         * modules/inttostr (Depends-on): Remove 'verify'.
20590
20591 2010-10-23  Bruno Haible  <bruno@clisp.org>
20592
20593         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
20594         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
20595         Reported by Eric Blake.
20596
20597 2010-10-23  Bruno Haible  <bruno@clisp.org>
20598
20599         Tests: Fix LOCALE_JA on MirBSD 10.
20600         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
20601         to an UTF-8 locale.
20602         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
20603         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20604         Reported by Eric Blake.
20605
20606 2010-10-21  Bruno Haible  <bruno@clisp.org>
20607
20608         nl_langinfo test: Avoid test failure on NetBSD 5.
20609         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
20610         Reported by Eric Blake.
20611
20612 2010-10-21  Eric Blake  <eblake@redhat.com>
20613
20614         c-stack: work around libsigsegv 2.8 bug
20615         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
20616         overflow on at least PowerPC64.
20617
20618 2010-10-17  Bruno Haible  <bruno@clisp.org>
20619
20620         userspec: Drop redundant file.
20621         * modules/userspec (Files): Remove lib/inttostr.h.
20622
20623 2010-10-17  Bruno Haible  <bruno@clisp.org>
20624
20625         nl_langinfo tests: Silence some warnings.
20626         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
20627         Reported by Jim Meyering.
20628
20629 2010-10-17  Bruno Haible  <bruno@clisp.org>
20630
20631         Make use of GCC's attribute __alloc_size__.
20632         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
20633         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
20634         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
20635         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
20636         __alloc_size__.
20637         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
20638         Suggested by Jim Meyering.
20639
20640 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
20641
20642         bootstrap: anchor .gitignore entries.
20643         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
20644         with...
20645         (insert_vc_ignore): ... this new function, which prepends `/' to
20646         all .gitignore entries before passing them to
20647         insert_sorted_if_absent.
20648
20649 2010-10-16  Bruno Haible  <bruno@clisp.org>
20650
20651         nextafter: Fix configure check.
20652         * modules/nextafter (configure.ac): Correct expected prototype.
20653
20654 2010-10-16  Bruno Haible  <bruno@clisp.org>
20655
20656         termios: Update documentation.
20657         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
20658
20659 2010-10-16  Bruno Haible  <bruno@clisp.org>
20660
20661         tests: Make them compile with TinyCC.
20662         * tests/test-strstr.c (main): Remove parentheses around array
20663         initializer.
20664
20665 2010-10-15  Eric Blake  <eblake@redhat.com>
20666
20667         ignore-value: make header idempotent
20668         * lib/ignore-value.h: Add double-inclusion guards.
20669         Reported by Stefan Berger.
20670
20671 2010-10-15  Jim Meyering  <meyering@redhat.com>
20672
20673         GNUmakefile: handle "stable" target, not "major"
20674         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
20675         lists in maint.mk and announce-gen.  Without this, "make stable"
20676         would fail to ensure that $(VERSION) is up to date.
20677
20678 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
20679
20680         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
20681         & co.
20682
20683 2010-10-14  Bruno Haible  <bruno@clisp.org>
20684
20685         vasnprintf: Don't set errno to 0.
20686         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
20687         block that sets it to 0.
20688         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
20689
20690 2010-10-14  Bruno Haible  <bruno@clisp.org>
20691
20692         socketlib: Fix.
20693         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
20694         gl_PREREQ_SYS_H_WINSOCK2.
20695         Reported by Ian Beckwith <ianb@erislabs.net>.
20696
20697 2010-10-13  Jim Meyering  <meyering@redhat.com>
20698
20699         test-select-stdin.c: avoid warn_unused_result warnings
20700         * tests/test-select-stdin.c: Include "macros.h".
20701         ASSERT that read and fflush succeed.
20702
20703 2010-10-13  Jim Meyering  <meyering@redhat.com>
20704
20705         git-version-gen: do require git-VC'd files in cwd
20706         * build-aux/git-version-gen: Reject a git version string
20707         if there are no commits associated with the current directory.
20708         This avoids an unlikely false-positive (unrelated dir whose parent
20709         repository also contains a tag matching v*), as pointed out
20710         by Giuseppe Scrivano in
20711         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
20712
20713 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
20714
20715         argv-iter: omit nonconforming declaration
20716         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
20717         enum arg_iter_err declaration, which doesn't conform to C99.
20718         Solaris 10 cc warns about this.
20719
20720 2010-10-13  Eric Blake  <eblake@redhat.com>
20721
20722         termios: fix compilation on mingw
20723         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
20724         (gl_TERMIOS_H): Adjust it on mingw.
20725         * modules/termios (Makefile.am): Substitute new key.
20726         * lib/termios.in.h (includes): Make include_next conditional.
20727         * doc/posix-headers/termios.texi (termios.h): Update
20728         documentation.
20729         Reported by Daniel P. Berrange.
20730
20731 2010-10-13  Jim Meyering  <meyering@redhat.com>
20732
20733         git-version-gen: don't require that .git/ be in the current dir
20734         * build-aux/git-version-gen: Adjust this script so that it works
20735         when run from any working directory beneath the top-level .git/-
20736         containing directory.  Inspired by a patch from Giuseppe Scrivano,
20737         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
20738
20739         test-select: avoid warn_unused_result warnings
20740         * tests/test-select.c: Include "macros.h".
20741         ASSERT that each call to read, write, and pipe succeeds.
20742         While not technically required, also check each "close".
20743         * modules/select-tests (Files): Add tests/macros.h.
20744
20745         test-symlinkat: remove declaration of unused local
20746         * tests/test-symlinkat.c (main): Remove unused local, "buf".
20747
20748         test-inttostr: avoid shadowing warnings
20749         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
20750         and use malloc rather than the stack for the same reason as
20751         mentioned in the comment justifying the other allocation.
20752
20753 2010-10-11  Bruno Haible  <bruno@clisp.org>
20754
20755         stdlib: Allow multiple gnulib generated replacements to coexist.
20756         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
20757         Reported by Sam Steingold <sds@gnu.org>.
20758
20759 2010-10-11  Jim Meyering  <meyering@redhat.com>
20760
20761         fix a documentation typo
20762         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
20763
20764 2010-10-11  Eric Blake  <eblake@redhat.com>
20765
20766         futimens: work around Solaris 11 bug
20767         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
20768         * tests/test-futimens.h (test_futimens): Enhance, rather than
20769         weaken test.
20770         * doc/posix-functions/futimens.texi (futimens): Document the bug.
20771
20772 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20773
20774         Indentation.
20775         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
20776         higher-level operators more to the left.
20777
20778 2010-10-11  Jim Meyering  <meyering@redhat.com>
20779
20780         test-futimens: avoid unwarranted test failure on Solaris 5.11
20781         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
20782         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
20783         because it tries to dereference the NULL name argument.
20784
20785 2010-10-11  Bruno Haible  <bruno@clisp.org>
20786
20787         Indentation.
20788         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
20789         indentation.
20790
20791 2010-10-11  Jim Meyering  <meyering@redhat.com>
20792
20793         spawn.in.h: make indentation consistent with parentheses
20794         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
20795         Make indentation consistent with parentheses.
20796
20797 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
20798
20799         Fix mismatched parens in previous commit
20800         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
20801         parens.
20802
20803 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20804
20805         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
20806
20807         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
20808         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
20809         * lib/malloca.c: Include "verify.h".
20810         (verify1): Remove, replacing with a verify call.
20811         * lib/relocwrapper.c (verify1): Likewise.
20812         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
20813         Likewise.
20814         * modules/malloca (Depends-on): Add 'verify'.
20815         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
20816         * modules/vasnprintf (Depends-on): Add 'verify'.
20817         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20818         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20819         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20820         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20821         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20822         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20823         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20824
20825         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
20826
20827         Formerly the style was sometimes 2*X - 1, because the C standard
20828         was wrongly thought to disallow ?: in integral constant expressions.
20829         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
20830         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
20831         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20832         * lib/stdint.in.h (_verify_intmax_size): Likewise.
20833         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
20834         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
20835         verify that time_t cannot be floating.
20836
20837 2010-10-08  Eric Blake  <eblake@redhat.com>
20838
20839         time: enforce recent POSIX ruling that time_t is integral
20840         * lib/time.in.h (__time_t_must_be_integral): Detect any
20841         problematic systems, allowing the rest of gnulib to assume POSIX.
20842
20843 2010-10-08  Jim Meyering  <meyering@redhat.com>
20844
20845         fdopendir: fix a bug on systems lacking openat and /proc support
20846         OpenBSD 4.7 is one such system.  The most noticeable effect was
20847         failure of any application making nontrivial use of fts: rm, du,
20848         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
20849           ./rm: traversal failed: `a': Bad file descriptor
20850         Debugging that, you see that even though FD 6 was closed just
20851         prior to the opendir call in fd_clone_opendir, its resulting
20852         dir->dd_fd was 8, rather than the expected value of 6:
20853
20854         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
20855         93                close (fd);
20856         (gdb) n
20857         94                dir = fd_clone_opendir (dupfd);
20858         (gdb) n
20859         95                saved_errno = errno;
20860         (gdb) p dir->dd_fd
20861         $11 = 8
20862
20863         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
20864         The problem is that on OpenBSD, fd_clone_opendir has to resort
20865         to using the old-style save/restore CWD mechanism, due to its
20866         lack of openat/proc support, and *that* would steal the FD (6)
20867         that opendir was supposed to use.
20868
20869         The fix is to squirrel away the desired FD so that save_cwd uses a
20870         different one, and then free the dest FD right before calling opendir.
20871         That guarantees opendir will use the required file descriptor.
20872
20873         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
20874
20875 2010-10-08  Bruno Haible  <bruno@clisp.org>
20876
20877         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
20878         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
20879
20880 2010-10-08  Bruno Haible  <bruno@clisp.org>
20881
20882         nanosleep: Make replacement POSIX compliant.
20883         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
20884         is out of range.
20885         Reported by Jim Meyering.
20886
20887 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20888
20889         bootstrap: add hook for altering gnulib.mk, for Bison
20890         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
20891         the Bison bootstrapping process can rewrite file names and variables
20892         in this file before later parts of 'bootstrap' use the file.
20893         Bison wants to include lib/gnulib.mk from the top-level makefile,
20894         so it needs the file names in this file to be relative to the top
20895         level, not relative to lib; plus it needs variable names to be
20896         rewritten.
20897         (slurp): Use the new function.
20898
20899         bootstrap: reformat for readability
20900         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
20901
20902 2010-10-08  Eric Blake  <eblake@redhat.com>
20903
20904         docs: update cygwin progress
20905         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
20906         1.7.7.
20907         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
20908         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
20909         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
20910         * doc/posix-functions/carg.texi (carg): Likewise.
20911         * doc/posix-functions/cargf.texi (cargf): Likewise.
20912         * doc/posix-functions/casin.texi (casin): Likewise.
20913         * doc/posix-functions/casinf.texi (casinf): Likewise.
20914         * doc/posix-functions/casinh.texi (casinh): Likewise.
20915         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
20916         * doc/posix-functions/catan.texi (catan): Likewise.
20917         * doc/posix-functions/catanf.texi (catanf): Likewise.
20918         * doc/posix-functions/catanh.texi (catanh): Likewise.
20919         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
20920         * doc/posix-functions/ccos.texi (ccos): Likewise.
20921         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
20922         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
20923         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
20924         * doc/posix-functions/cexp.texi (cexp): Likewise.
20925         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
20926         * doc/posix-functions/cimag.texi (cimag): Likewise.
20927         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
20928         * doc/posix-functions/clog.texi (clog): Likewise.
20929         * doc/posix-functions/clogf.texi (clogf): Likewise.
20930         * doc/posix-functions/conj.texi (conj): Likewise.
20931         * doc/posix-functions/conjf.texi (conjf): Likewise.
20932         * doc/posix-functions/cpow.texi (cpow): Likewise.
20933         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
20934         * doc/posix-functions/cproj.texi (cproj): Likewise.
20935         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
20936         * doc/posix-functions/creal.texi (creal): Likewise.
20937         * doc/posix-functions/crealf.texi (crealf): Likewise.
20938         * doc/posix-functions/csin.texi (csin): Likewise.
20939         * doc/posix-functions/csinf.texi (csinf): Likewise.
20940         * doc/posix-functions/csinh.texi (csinh): Likewise.
20941         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
20942         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
20943         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
20944         * doc/posix-functions/ctan.texi (ctan): Likewise.
20945         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
20946         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
20947         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
20948         * doc/posix-headers/complex.texi (complex.h): Likewise.
20949
20950 2010-10-07  Jim Meyering  <meyering@redhat.com>
20951
20952         parse-datetime: avoid compilation failure on OpenBSD 4.7
20953         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
20954         This works around a compilation failure on OpenBSD 4.7:
20955         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
20956
20957 2010-10-07  Eric Blake  <eblake@redhat.com>
20958
20959         docs: update cygwin progress
20960         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
20961         1.7.6.
20962         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
20963         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
20964         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
20965         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
20966         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
20967         Likewise.
20968         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
20969         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
20970         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
20971         Likewise.
20972         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
20973         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
20974         Likewise.
20975         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
20976         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
20977         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
20978         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
20979         Likewise.
20980         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
20981         Likewise.
20982         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
20983
20984         docs: update parse-datetime history
20985         * doc/parse-datetime.texi (Authors of parse_datetime): Better
20986         documentation of this function's history and alternatives.
20987
20988         cygwin: use more robust version check
20989         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
20990         exclude an eventual cygwin 1.9.1.
20991         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20992         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20993         (gl_FUNC_STRCASESTR): Likewise.
20994         Reported by Bruno Haible.
20995
20996 2010-10-06  Bruno Haible  <bruno@clisp.org>
20997
20998         string, sys_select: Avoid #including large headers unless necessary.
20999         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
21000         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
21001         OSF/1, BeOS, Haiku.
21002         Reported by Jim Meyering.
21003
21004 2010-10-05  Eric Blake  <eblake@redhat.com>
21005
21006         memmem, strstr, strcasestr: fix bug with long periodic needle
21007         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
21008         periodic needle having false positive.
21009         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
21010         and cygwin 1.7.7.
21011         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
21012         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
21013         (gl_FUNC_STRCASESTR): Likewise.
21014         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21015         * tests/test-memmem.c (main): Expose the bug.
21016         * tests/test-strcasestr.c (main): Likewise.
21017         * tests/test-strstr.c (main): Likewise.
21018         * tests/test-c-strcasestr.c (main): Likewise.
21019         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
21020         * doc/posix-functions/strstr.texi (strstr): Likewise.
21021         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
21022         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
21023
21024 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21025
21026         parse-datetime: do some more renaming
21027         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
21028         parse_datetime, not get_date.  Mention the renaming.
21029         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
21030         in comments.
21031         * m4/bison.m4: Likewise.
21032
21033 2010-10-05  Eric Blake  <eblake@redhat.com>
21034
21035         parse-datetime: better name than get_date
21036         * NEWS: Reword the deprecation notice.
21037         * modules/get_date: Rename to modules/parse-datetime.
21038         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
21039         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
21040         * lib/get_date.y: Rename to lib/parse-datetime.y.
21041         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
21042         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
21043         * doc/getdate.texi: Provide fallback wrapper.
21044         * lib/getdate.h: Move guts, and wrap...
21045         * lib/parse-datetime.h: ...new file.
21046         * lib/parse-datetime.y (get_date): Rename...
21047         (parse_datetime): ...to this.
21048         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
21049         (gl_PARSE_DATETIME): ...to this.
21050         * doc/posix-functions/getdate.texi (get_date): Provide fallback
21051         documentation.
21052         * modules/getdate (Files): Provide fallback docs and header.
21053         (Notice, Depends-on): Update references.
21054         * tests/test-parse-datetime.c: Likewise.
21055         * DEPENDENCIES: Likewise.
21056         * MODULES.html.sh (Date and time <time.h>): Likewise.
21057         * doc/parse-datetime.texi (Date input formats)
21058         (Authors of parse_datetime): Likewise.
21059         * modules/parse-datetime (Files, configure.ac, Makefile.am)
21060         (Include): Likewise.
21061         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
21062         * gnulib-tool: Likewise.
21063         * m4/bison.m4 (gl_BISON): Likewise.
21064         Suggested by Bruno Haible.
21065
21066 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21067
21068         more ports to Solaris tr, which needs [] around ranges
21069         * gnulib-tool: Solaris tr needs [] around ranges.
21070         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
21071         * tests/test-pipe-filter-gi1.c (main): Likewise.
21072         * tests/test-pipe-filter-ii1.c (main): Likewise.
21073
21074 2010-10-05  Eric Blake  <eblake@redhat.com>
21075
21076         bootstrap: fix Solaris regression
21077         * build-aux/bootstrap (check_versions): Solaris tr still needs []
21078         around ranges.
21079         Reported by Pádraig Brady.
21080
21081         bootstrap: work with pkg-config
21082         * build-aux/bootstrap (check_versions): Also transliterate - in
21083         prerequisite name.
21084         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
21085         prerequisites that were already found, to avoid confusion.
21086         Reported by Justin Clift.
21087
21088         faccessat: remove unused wrappers
21089         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
21090         presence of these wrappers dragged in -lgen on Solaris.
21091         Reported by Clemens Brogi; fix suggested by Paul Eggert.
21092
21093 2010-10-05  Jim Meyering  <meyering@redhat.com>
21094
21095         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
21096         * Makefile (sc_pragma_columns): New syntax-check rule.
21097
21098 2010-10-04  Bruno Haible  <bruno@clisp.org>
21099
21100         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
21101         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
21102         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
21103         Reported by Bruce Korb and Eric Blake.
21104
21105 2010-10-04  Bruno Haible  <bruno@clisp.org>
21106
21107         threadlib: Make option --with-libpth-prefix work.
21108         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
21109         use $LIBPTH, not just -lpth.
21110
21111 2010-10-04  Bruno Haible  <bruno@clisp.org>
21112
21113         Avoid line length limitation from HP NonStop system header files.
21114         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
21115         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
21116         * lib/ctype.in.h: Likewise.
21117         * lib/dirent.in.h: Likewise.
21118         * lib/errno.in.h: Likewise.
21119         * lib/fcntl.in.h: Likewise.
21120         * lib/float.in.h: Likewise.
21121         * lib/getopt.in.h: Likewise.
21122         * lib/iconv.in.h: Likewise.
21123         * lib/inttypes.in.h: Likewise.
21124         * lib/langinfo.in.h: Likewise.
21125         * lib/locale.in.h: Likewise.
21126         * lib/math.in.h: Likewise.
21127         * lib/netdb.in.h: Likewise.
21128         * lib/netinet_in.in.h: Likewise.
21129         * lib/poll.in.h: Likewise.
21130         * lib/pthread.in.h: Likewise.
21131         * lib/pty.in.h: Likewise.
21132         * lib/sched.in.h: Likewise.
21133         * lib/se-selinux.in.h: Likewise.
21134         * lib/search.in.h: Likewise.
21135         * lib/signal.in.h: Likewise.
21136         * lib/spawn.in.h: Likewise.
21137         * lib/stdarg.in.h: Likewise.
21138         * lib/stddef.in.h: Likewise.
21139         * lib/stdint.in.h: Likewise.
21140         * lib/stdio.in.h: Likewise.
21141         * lib/stdlib.in.h: Likewise.
21142         * lib/string.in.h: Likewise.
21143         * lib/strings.in.h: Likewise.
21144         * lib/sys_file.in.h: Likewise.
21145         * lib/sys_ioctl.in.h: Likewise.
21146         * lib/sys_select.in.h: Likewise.
21147         * lib/sys_socket.in.h: Likewise.
21148         * lib/sys_stat.in.h: Likewise.
21149         * lib/sys_time.in.h: Likewise.
21150         * lib/sys_times.in.h: Likewise.
21151         * lib/sys_utsname.in.h: Likewise.
21152         * lib/sys_wait.in.h: Likewise.
21153         * lib/sysexits.in.h: Likewise.
21154         * lib/termios.in.h: Likewise.
21155         * lib/time.in.h: Likewise.
21156         * lib/unistd.in.h: Likewise.
21157         * lib/wchar.in.h: Likewise.
21158         * lib/wctype.in.h: Likewise.
21159         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
21160         * modules/ctype (Makefile.am): Likewise.
21161         * modules/dirent (Makefile.am): Likewise.
21162         * modules/errno (Makefile.am): Likewise.
21163         * modules/fcntl-h (Makefile.am): Likewise.
21164         * modules/float (Makefile.am): Likewise.
21165         * modules/getopt-posix (Makefile.am): Likewise.
21166         * modules/iconv-h (Makefile.am): Likewise.
21167         * modules/inttypes (Makefile.am): Likewise.
21168         * modules/langinfo (Makefile.am): Likewise.
21169         * modules/locale (Makefile.am): Likewise.
21170         * modules/math (Makefile.am): Likewise.
21171         * modules/netdb (Makefile.am): Likewise.
21172         * modules/netinet_in (Makefile.am): Likewise.
21173         * modules/poll-h (Makefile.am): Likewise.
21174         * modules/pthread (Makefile.am): Likewise.
21175         * modules/pty (Makefile.am): Likewise.
21176         * modules/sched (Makefile.am): Likewise.
21177         * modules/search (Makefile.am): Likewise.
21178         * modules/selinux-h (Makefile.am): Likewise.
21179         * modules/signal (Makefile.am): Likewise.
21180         * modules/spawn (Makefile.am): Likewise.
21181         * modules/stdarg (Makefile.am): Likewise.
21182         * modules/stddef (Makefile.am): Likewise.
21183         * modules/stdint (Makefile.am): Likewise.
21184         * modules/stdio (Makefile.am): Likewise.
21185         * modules/stdlib (Makefile.am): Likewise.
21186         * modules/string (Makefile.am): Likewise.
21187         * modules/strings (Makefile.am): Likewise.
21188         * modules/sys_file (Makefile.am): Likewise.
21189         * modules/sys_ioctl (Makefile.am): Likewise.
21190         * modules/sys_select (Makefile.am): Likewise.
21191         * modules/sys_socket (Makefile.am): Likewise.
21192         * modules/sys_stat (Makefile.am): Likewise.
21193         * modules/sys_time (Makefile.am): Likewise.
21194         * modules/sys_times (Makefile.am): Likewise.
21195         * modules/sys_utsname (Makefile.am): Likewise.
21196         * modules/sys_wait (Makefile.am): Likewise.
21197         * modules/sysexits (Makefile.am): Likewise.
21198         * modules/termios (Makefile.am): Likewise.
21199         * modules/time (Makefile.am): Likewise.
21200         * modules/unistd (Makefile.am): Likewise.
21201         * modules/wchar (Makefile.am): Likewise.
21202         * modules/wctype (Makefile.am): Likewise.
21203
21204 2010-10-04  Bruno Haible  <bruno@clisp.org>
21205
21206         read-file tests: Avoid a test failure on NonStop Kernel.
21207         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
21208         a regular file.
21209         Reported by Joachim Schmitz <schmitz@hp.com>.
21210
21211 2010-10-03  Bruno Haible  <bruno@clisp.org>
21212
21213         gnulib-tool: Fixes for --create-testdir with --libtool.
21214         * gnulib-tool (func_get_automake_snippet): Don't augment
21215         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
21216         an executable.
21217         (func_create_testdir): Handle module 'alloca' like func_import.
21218         Reported by Bruce Korb <bruce.korb@gmail.com>.
21219
21220 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
21221
21222         Avoid some lines longer than 80 characters.
21223         * lib/stdint.in.h: Break long comment lines.
21224         * lib/math.in.h: Likewise.
21225         (_GL_NUM_UINT_WORDS): New macro, for readability.
21226         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
21227         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
21228         * lib/stdlib.in.h: Likewise.
21229         * lib/spawn.in.h: Likewise.
21230         * lib/sys_socket.in.h: Update an URL.
21231         * lib/sys_stat.in.h: Break long line.
21232
21233 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
21234
21235         Improve pmccabe2html.
21236         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
21237         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
21238         when the sources change. Remove the line in the HTML about "Used
21239         ranges" (which implied that there might be other unused ranges),
21240         rename "Resume" to "Summary" (easier to understand for more users).
21241         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
21242         styles, and some unnecessary blank lines.
21243
21244 2010-10-03  Bruno Haible  <bruno@clisp.org>
21245             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
21246
21247         acl: Add support for ACLs on NonStop Kernel.
21248         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
21249         Check whether the function aclsort() exists.
21250         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
21251         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
21252         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21253         (acl_nontrivial [HAVE_ACLSORT]: New function.
21254         (file_has_acl): Implement for NonStop Kernel.
21255         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21256         (qset_acl): Implement for NonStop Kernel.
21257         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
21258         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21259         (main): Implement for NonStop Kernel.
21260         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
21261         Kernel. Handle this flavor.
21262         * tests/test-set-mode-acl.sh: Likewise.
21263         * tests/test-copy-acl.sh: Likewise.
21264         * tests/test-copy-file.sh: Likewise.
21265
21266 2010-10-03  Bruno Haible  <bruno@clisp.org>
21267
21268         Info about ACLs on NonStop Kernel.
21269         * doc/acl-resources.txt: Add info about NonStop Kernel.
21270         References by Joachim Schmitz <schmitz@hp.com>.
21271
21272 2010-10-02  Bruno Haible  <bruno@clisp.org>
21273
21274         Define missing EDQUOT on NonStop Kernel.
21275         * lib/errno.in.h (EDQUOT): Assign a value if missing.
21276         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
21277         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
21278         missing.
21279         * doc/posix-headers/errno.texi: Mention the NSK bug.
21280         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
21281         Reported by Joachim Schmitz <schmitz@hp.com>.
21282
21283 2010-10-02  Bruno Haible  <bruno@clisp.org>
21284
21285         Update doc for POSIX:2008.
21286         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
21287         Update URL of POSIX specification.
21288
21289 2010-10-02  Bruno Haible  <bruno@clisp.org>
21290
21291         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
21292         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
21293         from gnulib, not from Automake.
21294
21295 2010-10-02  Bruno Haible  <bruno@clisp.org>
21296
21297         New module 'system-posix'.
21298         * modules/system-posix: New file.
21299         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
21300         module is present.
21301         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
21302         GNULIB_SYSTEM_POSIX.
21303         * modules/stdlib (Depends-on): Remove sys_wait.
21304         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
21305         * doc/posix-functions/system.texi: Mention the new module.
21306         * doc/posix-headers/stdlib.texi: Likewise.
21307         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
21308         define test_sys_wait_macros to a no-op.
21309         Reported by Sam Steingold <sds@gnu.org>.
21310
21311 2010-09-30  Bruno Haible  <bruno@clisp.org>
21312
21313         More renaming from 'getdate' to 'get_date'.
21314         * doc/get_date.texi: Renamed from doc/getdate.texi.
21315         * modules/get_date (Files): Update.
21316         * MODULES.html.sh (Date and time <time.h>): Update.
21317         * DEPENDENCIES: Update.
21318         * gnulib-tool: Update comment.
21319         * m4/bison.m4 (gl_BISON): Likewise.
21320         * m4/get_date.m4 (gl_GET_DATE): Likewise.
21321
21322 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
21323
21324         bootstrap: support ACLOCAL_FLAGS during aclocal
21325         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
21326         can add additional -I dir for third-party .m4 files.
21327
21328 2010-09-30  Eric Blake  <eblake@redhat.com>
21329
21330         bootstrap: use glibtoolize on MacOS
21331         * build-aux/bootstrap (check_versions): Convert libtool into
21332         libtoolize.
21333         (tool search): Move libtool check earlier, and look for
21334         glibtoolize for MacOS.
21335         (gnulib_tool_options): Auto-add --libtool when appropriate.
21336         Reported by Justin Clift.
21337
21338         poll: fix typo that broke test on MacOS
21339         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
21340         Reported by Justin Clift.
21341
21342         getdate: rename to get_date
21343         Note: getdate.h is not renamed, to minimize client impact.
21344         * modules/getdate: Mark obsolete.  Move old contents...
21345         * modules/get_date: ...to new module name.
21346         * modules/getdate-tests: Move...
21347         * modules/get_date-tests: ...here.
21348         * m4/getdate.m4: Move...
21349         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
21350         * lib/getdate.y: Move...
21351         * lib/get_date.y: ...here.
21352         * tests/test-getdate.c: Move...
21353         * tests/test-get_date.c: ...here.
21354         * doc/posix-functions/getdate.texi (getdate): Update name.
21355         * NEWS: Mention the change.
21356
21357 2010-09-29  Bruno Haible  <bruno@clisp.org>
21358
21359         Separate the module 'waitpid' from the module 'sys_wait'.
21360         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
21361         present.
21362         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
21363         gl_MODULE_INDICATOR_FOR_TESTS.
21364         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
21365         * modules/sys_wait (Depends-on): Remove waitpid.
21366         (Makefile.am): Substitute GNULIB_WAITPID.
21367         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
21368         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
21369         signature only if the 'waitpid' module is present.
21370         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
21371         * NEWS: Mention the change.
21372         * modules/grantpt (Depends-on): Add waitpid.
21373         * modules/wait-process (Depends-on): Likewise.
21374
21375 2010-09-29  Bruno Haible  <bruno@clisp.org>
21376
21377         More tests for module 'sys_wait'.
21378         * modules/sys_wait-c++-tests: New file.
21379         * tests/test-sys_wait-c++.cc: New file.
21380         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
21381         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
21382
21383 2010-09-29  Bruno Haible  <bruno@clisp.org>
21384
21385         New module 'waitpid'.
21386         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
21387         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
21388         Don't include <process.h>.
21389         (waitpid): Declare only, using modern idiom.
21390         * m4/waitpid.m4: New file.
21391         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
21392         * modules/waitpid: New file.
21393         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
21394         (Makefile.am): Update.
21395         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
21396
21397 2010-09-28  Bruno Haible  <bruno@clisp.org>
21398
21399         poll: Assume ANSI C.
21400         * lib/poll.c (poll): Use an ANSI C declaration.
21401
21402 2010-09-28  Bruno Haible  <bruno@clisp.org>
21403
21404         poll-h: Create poll.h on all platforms.
21405         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
21406         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
21407         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
21408         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
21409         (gl_REPLACE_POLL_H): Don't set POLL_H.
21410         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
21411         * modules/poll-h (Depends-on): Add include_next.
21412         (Makefile.am): Create poll.h unconditionally. Substitute also
21413         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
21414
21415 2010-09-28  Bruno Haible  <bruno@clisp.org>
21416
21417         Tests for module 'poll-h'.
21418         * modules/poll-h-c++-tests: New file.
21419         * tests/test-poll-h-c++.cc: New file.
21420
21421         Tests for module 'poll-h'.
21422         * modules/poll-h-tests: New file.
21423         * tests/test-poll-h.c: New file.
21424
21425 2010-09-28  Bruno Haible  <bruno@clisp.org>
21426
21427         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
21428         * modules/poll-h (Depends-on): Add 'extensions'.
21429
21430 2010-09-28  Bruno Haible  <bruno@clisp.org>
21431
21432         New module 'poll-h'.
21433         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
21434         (poll): Use modern idiom.
21435         * modules/poll-h: New file.
21436         * modules/poll (Files): Remove lib/poll.in.h.
21437         (Depends-on): Add poll-h.
21438         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
21439         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
21440         * m4/poll_h.m4: New file.
21441         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
21442         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
21443         and invoke gl_REPLACE_POLL_H.
21444         * lib/poll.c: Use common idiom.
21445         * tests/test-poll.c: Likewise.
21446         * doc/posix-headers/poll.texi: Mention the poll-h module.
21447         Suggested by Eric Blake.
21448
21449 2010-09-26  Bruno Haible  <bruno@clisp.org>
21450
21451         sys_wait: Implement WSTOPSIG.
21452         * lib/sys_wait.in.h (WSTOPSIG): New macro.
21453         Reported by Simon Josefsson.
21454
21455 2010-09-26  Simon Josefsson  <simon@josefsson.org>
21456
21457         stdlib, sys_wait: Avoid compilation error on mingw.
21458         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
21459
21460 2010-09-26  Bruno Haible  <bruno@clisp.org>
21461
21462         stdlib tests: Avoid code duplication.
21463         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
21464         * modules/sys_wait-tests (Files): Likewise.
21465         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
21466         * tests/test-stdlib.c: Include test-sys_wait.h.
21467         (main): Invoke test_sys_wait_macros.
21468         * tests/test-sys_wait.c: Include test-sys_wait.h.
21469         (main): Invoke test_sys_wait_macros.
21470
21471 2010-09-25  Simon Josefsson  <simon@josefsson.org>
21472
21473         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
21474         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
21475         sure Windows sockets are working before calling getaddrinfo.
21476         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
21477         * doc/gnulib.texi (Windows sockets): Fix typo.
21478
21479 2010-09-25  Bruno Haible  <bruno@clisp.org>
21480
21481         Tests for module 'regex-quote'.
21482         * modules/regex-quote-tests: New file.
21483         * tests/test-regex-quote.c: New file.
21484
21485         New module 'regex-quote'.
21486         * lib/regex-quote.h: New file.
21487         * lib/regex-quote.c: New file.
21488         * modules/regex-quote: New file.
21489         Suggested by Reuben Thomas <rrt@sc3d.org>.
21490
21491 2010-09-24  Bruno Haible  <bruno@clisp.org>
21492
21493         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
21494         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
21495
21496 2010-09-23  Bruno Haible  <bruno@clisp.org>
21497
21498         setenv: Relax license.
21499         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
21500         Blake.
21501         Requested by Eric Blake.
21502
21503 2010-09-22  Bruno Haible  <bruno@clisp.org>
21504
21505         termios: Relax license.
21506         * modules/termios (License): Change to LGPLv2+.
21507         Requested by Eric Blake.
21508
21509 2010-09-22  Bruno Haible  <bruno@clisp.org>
21510
21511         threadlib: Allow the package to change the default to 'no'.
21512         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
21513         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
21514         Reported by Paul Eggert.
21515
21516 2010-09-22  Pádraig Brady  <P@draigbrady.com>
21517             Bruno Haible  <bruno@clisp.org>
21518
21519         Fix endless loop in mbmemcasecoll.
21520         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
21521         byte.
21522         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
21523
21524 2010-09-22  Bruno Haible  <bruno@clisp.org>
21525
21526         Tests for module 'memcoll'.
21527         * modules/memcoll-tests: New file.
21528         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
21529
21530         memcoll, xmemcoll: Clarify size vs. length.
21531         * modules/memcoll.c (memcoll0): Clarify specification.
21532         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
21533         passed to collate_error.
21534
21535 2010-09-22  Bruno Haible  <bruno@clisp.org>
21536
21537         Tests for module 'memcasecmp'.
21538         * modules/memcasecmp-tests: New file.
21539         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
21540
21541 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21542
21543         * lib/pthread.in.h: Add split double-inclusion guard, and include
21544         system <pthread.h> if there is one.  Use @@-style as in other
21545         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
21546         pthread.h doesn't.
21547         (pthread_mutexattr_destroy, pthread_mutexattr_init):
21548         (pthread_mutexattr_settype, pthread_mutex_trylock):
21549         New static inline functions, if there's no system <pthread.h>.
21550         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
21551         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
21552         Approximate with mutexes if the system lacks spinlocks, as in
21553         MacOS.
21554         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
21555         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
21556         @@-style.  Check for spinlocks separately.
21557         (gl_PTHREAD_DEFAULTS): New macro.
21558         * modules/pthread: Redo to use a more typical style for in.h files.
21559
21560 2010-09-21  Eric Blake  <eblake@redhat.com>
21561
21562         net_if: enhance tests
21563         * tests/test-net_if.c (main): Move signature checks earlier.
21564         Print failures to stderr.
21565         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
21566         Document the bug that we do not yet fix.
21567
21568 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
21569
21570         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
21571         about gnulib, not GSS.
21572
21573 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
21574
21575         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
21576         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
21577         for Emacs.
21578         * build-aux/pmccabe2html: Make Makefile.am example code more
21579         cut-and-paste friendly.
21580
21581 2010-09-21  Simon Josefsson  <simon@josefsson.org>
21582
21583         * tests/test-net_if.c: New file.
21584         * modules/net_if-tests: New file.
21585
21586 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21587
21588         pthread: add pthread_spin_destroy
21589         * lib/pthread.in.h (pthread_spin_destroy): New function.
21590
21591 2010-09-19  Bruno Haible  <bruno@clisp.org>
21592
21593         gnulib-tool: Fix --help output.
21594         * gnulib-tool (func_usage): Fix help message.
21595         Reported by Reuben Thomas <rrt@sc3d.org>.
21596
21597 2010-09-18  Jim Meyering  <meyering@redhat.com>
21598
21599         maint.mk: avoid unexpanded \n in two diagnostics
21600         * top/maint.mk (sc_prohibit_always_true_header_tests):
21601         Don't use a literal \n in a halt=... assignment.  It would not be
21602         expanded, and the two \n bytes would appear in the diagnostic output
21603         rather than the desired newline.  Use halt=$$(printf ... instead.
21604         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21605
21606 2010-09-18  Bruno Haible  <bruno@clisp.org>
21607
21608         netinet_in: Doc tweak.
21609         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
21610         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21611
21612 2010-09-18  Jim Meyering  <meyering@redhat.com>
21613
21614         init.sh: correct an outdated comment
21615         * tests/init.sh (create_exe_shims_):  s/function/alias/
21616
21617         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
21618         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
21619         a file named "*.exe" is removed between the glob expansion and the
21620         processing of that oddly named file.
21621
21622 2010-09-17  Eric Blake  <eblake@redhat.com>
21623
21624         mirbsd: add some more support
21625         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
21626         in BSD family.
21627         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
21628         devices as OpenBSD.
21629         * m4/host-os.m4 (mirbsd): Add MirBSD.
21630
21631         tests: fix unportable assumption on sys/wait.h
21632         * tests/test-sys_wait.c (main): Relax test.
21633         * tests/test-stdlib.c (main): Likewise.
21634
21635         init.sh: accomodate directory with no .exes
21636         * tests/init.sh: Accomodate directory containing only scripts.
21637
21638         tests: avoid compiler warning
21639         * tests/test-stdlib.c (main): Use the variable.
21640
21641         fdutimens, fdutimensat: update signature, again
21642         * lib/utimens.h (gl_futimens): Delete, and move signature...
21643         (fdutimens): ...here.
21644         (fdutimensat): Rearrange signature.
21645         (lutimensat): Rename variable for clarity.
21646         * lib/fdutimensat.c (fdutimensat): Update signature.
21647         * lib/utimens.c (fdutimens): Likewise.
21648         (gl_futimens): Delete.
21649         (utimens, lutimens): Update callers.
21650         * lib/futimens.c (futimens): Likewise.
21651         * tests/test-fdutimensat.c: Likewise.
21652         * tests/test-utimens.c: Likewise.
21653         * tests/test-futimens.h: Update comment.
21654         * NEWS: Mention this.
21655         Suggested by Paul Eggert.
21656
21657 2010-09-17  Bruno Haible  <bruno@clisp.org>
21658
21659         Take over the maintenance of some older macros from Autoconf.
21660         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
21661         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
21662         GNU Autoconf.
21663         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
21664         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
21665
21666 2010-09-17  Eric Blake  <eblake@redhat.com>
21667
21668         fdutimensat: drop atflag validation
21669         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
21670         with valid fd, to close a race scenario where futimens is
21671         unsupported and FILE was replaced by a symlink.
21672         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
21673         accordingly.
21674         Suggested by Paul Eggert.
21675
21676 2010-09-16  Bruno Haible  <bruno@clisp.org>
21677
21678         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
21679         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
21680
21681 2010-09-16  Bruno Haible  <bruno@clisp.org>
21682
21683         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
21684         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
21685         login_tty exists.
21686         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21687
21688 2010-09-16  Bruno Haible  <bruno@clisp.org>
21689
21690         login_tty: Make the replacement code work on BSD systems.
21691         * lib/login_tty.c: Include <sys/ioctl.h>.
21692         (login_tty): Use ioctl TIOCSCTTY when available.
21693         * modules/login_tty (Depends-on): Add sys_ioctl.
21694         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21695
21696 2010-09-16  Bruno Haible  <bruno@clisp.org>
21697
21698         login_tty: Stricter unit test.
21699         * modules/login_tty-tests (Depends-on): Add tcgetsid.
21700         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
21701         and tcgetsid() after login_tty.
21702         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21703
21704 2010-09-16  Bruno Haible  <bruno@clisp.org>
21705
21706         New module 'tcgetsid'.
21707         * lib/tcgetsid.c: New file.
21708         * m4/tcgetsid.m4: New file.
21709         * modules/tcgetsid: New file.
21710         * modules/termios (Depends-on): Add c++defs, warn-on-use.
21711         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
21712         GNULIB_TCGETSID, HAVE_TCGETSID.
21713         * lib/termios.in.h: Include <sys/types.h>.
21714         (tcgetsid): New declaration.
21715         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
21716         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
21717         * doc/posix-functions/tcgetsid.texi: Mention the new module.
21718         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
21719
21720 2010-09-16  Bruno Haible  <bruno@clisp.org>
21721
21722         Tests for module 'termios'.
21723         * modules/termios-c++-tests: New file.
21724         * modules/termios-tests: New file.
21725         * tests/test-termios-c++.cc: New file.
21726         * tests/test-termios.c: New file.
21727
21728         New module 'termios'.
21729         * modules/termios: New file.
21730         * lib/termios.in.h: New file.
21731         * m4/termios_h.m4: New file.
21732         * doc/posix-headers/termios.texi: Mention the new module.
21733
21734 2010-09-16  Eric Blake  <eblake@redhat.com>
21735
21736         fdutimensat: add an atflag parameter
21737         * lib/fdutimensat.c (fdutimensat): Add new parameter.
21738         * lib/utimens.h (fdutimensat): Update prototype.
21739         * tests/test-fdutimensat.c: Adjust test to match.
21740         * NEWS: Document the change.
21741         Suggested by Paul Eggert.
21742
21743 2010-09-16  Bruno Haible  <bruno@clisp.org>
21744
21745         Fix typos in comments.
21746         * lib/striconveh.h: Fix typo in comment.
21747         * lib/login_tty.c (login_tty): Likewise.
21748
21749 2010-09-15  Bruno Haible  <bruno@clisp.org>
21750
21751         stdlib: clarify MirBSD WEXITSTATUS bug
21752         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
21753         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21754
21755 2010-09-15  Eric Blake  <eblake@redhat.com>
21756
21757         stdlib: work around MirBSD WEXITSTATUS bug
21758         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
21759         * modules/stdlib (Depends-on): Add sys_wait.
21760         * tests/test-sys_wait.c (main): Enhance test.
21761         * tests/test-stdlib.c (main): Likewise.
21762         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
21763
21764         docs: mention MacOS issue with WEXITSTATUS(constant)
21765         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
21766         issue.
21767         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21768
21769         strnlen: add tests
21770         * modules/strnlen-tests: New file.
21771         * tests/test-strnlen.c: Likewise.
21772
21773 2010-09-14  Bruno Haible  <bruno@clisp.org>
21774
21775         unistr/base: Avoid link errors when module 'libunistring' is also used.
21776         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
21777         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
21778         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
21779         Declare also when HAVE_LIBUNISTRING is set.
21780         Reported by Pádraig Brady <P@draigbrady.com>.
21781
21782 2010-09-14  Eric Blake  <eblake@redhat.com>
21783
21784         test-rawmemchr: make more robust
21785         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
21786         (Depends-on, configure.ac): Add needed prerequisites to use it.
21787         * modules/memchr-tests (Files, Depends-on, configure.ac):
21788         Likewise, to avoid implicit reliance on memchr module prereqs.
21789         * tests/test-memchr.c (main): Ensure proper masking.
21790         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
21791         reads.
21792
21793         memchr: detect glibc Alpha bug
21794         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
21795         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
21796         Alpha.
21797         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
21798         * tests/test-memchr.c (main): Enhance test.
21799         Reported by Nelson H. F. Beebe.
21800
21801 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21802
21803         fts, getcwd, glob: audit for dirfd returning -1
21804         * lib/fts.c (opendir): Remove #define; no longer used.
21805         (opendirat): New arg PDIR_FD.  All callers changed.
21806         (fts_build, _opendir2): Use new opendirat to avoid the need for
21807         dirfd, or for checking whether dirfd returns a negative value.
21808         Don't use opendir; always use openat followed by fdopendir.
21809         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
21810         it.
21811         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
21812         returns -1 here.
21813         * modules/fts (Depends-on): Remove dirfd.
21814         * modules/getcwd (Depends-on): Likewise.
21815
21816 2010-09-13  Eric Blake  <eblake@redhat.com>
21817
21818         float: fix broken MirBSD header
21819         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
21820         * doc/posix-headers/float.texi (float.h): Document it.
21821
21822 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21823
21824         fts: use O_NOFOLLOW to avoid race condition when opening a directory
21825         * lib/fts.c (opendirat): New arg extra_flags.
21826         (__opendir2): Use it to avoid following symlinks when opening
21827         a directory, if symlinks are not supposed to be followed.  See
21828         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
21829
21830         fdopendir: preserve argument fd before returning
21831         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
21832         (fdopendir_with_dup, fd_clone_opendir): New static functions.
21833         (fdopendir): Use them, arranging for FD to be open to the same
21834         directory that it was when it started.  (It might be temporarily
21835         closed while fdopendir is running, so this not thread- or
21836         signal-safe.)  Be careful to do the right thing even when file
21837         descriptors are scarce and dup fails with errno == EMFILE.  See
21838         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
21839
21840 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
21841
21842         regex: Pass the system regex if its only problem is 32-bit regoff_t.
21843         * NEWS: Document change.
21844         * m4/regex.m4: Disable test for regoff_t size.
21845
21846 2010-09-13  Jim Meyering  <meyering@redhat.com>
21847
21848         fts: don't operate on an invalid file descriptor after failed dup
21849         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
21850         negative file descriptor.
21851
21852 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
21853
21854         savedir: add streamsavedir, deprecate fdsavedir
21855         * NEWS: Mention deprecation of fdsavedir.
21856         * lib/savedir.c (streamsavedir): New extern function, whose name
21857         ends in "savedir" to be consistent with the others.  This differs
21858         from savedirstream in that it doesn't close its argument.  The
21859         next version of GNU tar will use this instead of fdsavedir, to
21860         avoid some race conditions and conserve file descriptors.
21861         (savedirstream): Reimplement as a wrapper around streamsavedir.
21862         (fdsavedir): Add a comment deprecating this function.  As far as
21863         I know, only GNU tar used it, and GNU tar doesn't need it any more.
21864         * lib/savedir.h (streamsavedir): New decl.
21865         (fdsavedir): Add a comment deprecating this.
21866
21867 2010-09-10  Bruno Haible  <bruno@clisp.org>
21868
21869         langinfo: Fix last commit.
21870         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
21871         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
21872         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21873
21874 2010-09-10  Bruno Haible  <bruno@clisp.org>
21875
21876         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
21877         * lib/progreloc.c (O_EXEC): Define fallback.
21878
21879 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21880
21881         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
21882         * NEWS: Document recent changes to fcntl-h.
21883         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
21884         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
21885         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
21886         Similarly for O_SEARCH; this last was already true, but not documented.
21887         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
21888         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
21889         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
21890         Likewise.
21891         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
21892         is zero, not whether it is defined.
21893         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
21894         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
21895         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
21896
21897 2010-09-10  Bruno Haible  <bruno@clisp.org>
21898
21899         langinfo, nl_langinfo: Fix for IRIX 5.3.
21900         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
21901         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
21902         HAVE_LANGINFO_YESEXPR.
21903         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
21904         HAVE_LANGINFO_YESEXPR.
21905         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
21906         HAVE_LANGINFO_T_FMT_AMPM is 0.
21907         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
21908         HAVE_LANGINFO_YESEXPR is 0.
21909         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
21910         NOEXPR.
21911         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
21912         * doc/posix-functions/nl_langinfo.texi: Likewise.
21913         Reported by Eric Blake.
21914
21915 2010-09-10  Bruno Haible  <bruno@clisp.org>
21916
21917         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
21918         * doc/glibc-functions/login_tty.texi: Mention the include file problem
21919         on FreeBSD 8.0 and OpenBSD 4.6.
21920         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
21921         * m4/pty_h.m4 (gl_PTY_H): Likewise.
21922         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
21923         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
21924         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
21925         ac_includes_default.
21926         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21927
21928 2010-09-09  Eric Blake  <eblake@redhat.com>
21929
21930         strsignal: work around NetBSD bug
21931         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
21932         * lib/string.in.h (includes): Likewise.
21933         * doc/posix-functions/strsignal.texi (strsignal): Document the
21934         bug.
21935         Reported by Nelson H. F. Beebe.
21936
21937         gnulib-tool: work with NetBSD /bin/sh
21938         * gnulib-tool (func_cache_var, func_cache_lookup_module)
21939         (func_get_description, func_get_comment, func_get_status)
21940         (func_get_notice, func_get_applicability, func_get_filelist)
21941         (func_get_dependencies, func_get_autoconf_early_snippet)
21942         (func_get_autoconf_snippet, func_get_automake_snippet)
21943         (func_get_include_directive, func_get_link_directive)
21944         (func_get_license, func_get_maintainer, func_import): Avoid
21945         shell syntax errors from parsing syntax extensions.
21946
21947 2010-09-09  Bruno Haible  <bruno@clisp.org>
21948
21949         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21950         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
21951         a reliable way to determine whether the 'alias' command works.
21952
21953 2010-09-08  Jim Meyering  <meyering@redhat.com>
21954
21955         init.sh: penalize a set-x-impaired shell; don't disqualify it
21956         * tests/init.sh: Too many shells corrupt application stderr when
21957         you set -x, so we can't afford to disqualify them, since at least
21958         on Irix-6.5, that would disqualify all bourne shells.
21959         Instead, use a two-pass approach.
21960         On the first pass, try to find a shell that meets the stricter
21961         condition that set -x does not corrupt stderr.
21962         If no shell meets the stricter condition, retest each candidate
21963         shell, but without that extra condition.  Finally, when
21964         VERBOSE=yes is requested and set -x might cause trouble, simply
21965         issue a warning and refrain from enabling debug output.
21966
21967 2010-09-08  Eric Blake  <eblake@redhat.com>
21968
21969         unsetenv: fix OpenBSD bug
21970         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
21971         * doc/posix-functions/unsetenv.texi (unsetenv): Update
21972         documentation.
21973         Reported by Jim Meyering.
21974
21975         strtod: work around IRIX 6.5 bug
21976         * lib/strtod.c (strtod): Reparse number on shorter string if
21977         exponent parse was invalid.
21978         * tests/test-strtod.c (main): Add check for "0x1p 2".
21979         Reported by Tom G. Christensen.
21980
21981         getopt: optimize previous patch
21982         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
21983         empty variable.  Speed up awk script.
21984         Reported by Paolo Bonzini.
21985
21986 2010-09-08  Jim Meyering  <meyering@redhat.com>
21987
21988         test.sh: disqualify shells for which set -x corrupts stderr
21989         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
21990         and OpenBSD 4.7.  They make it so with "set -x", environment settings
21991         appear in stderr output.  For example, this command:
21992             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
21993         prints "P=1" on those two systems:
21994
21995 2010-09-08  Bruno Haible  <bruno@clisp.org>
21996
21997         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21998         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
21999         commands, because some shells ignore redirections when there is an
22000         error in the command lookup.
22001         Reported by Eric Blake.
22002
22003 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
22004
22005         * lib/regex.h: Fix a mention of `regex_compile' (should be
22006         `re_compile_pattern').
22007         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
22008         (re_set_registers): Correct name of parameter in comment.
22009
22010         * doc/regex.texi: Add documentation for missing syntax flags.
22011         Remove commented-out documentation of defunct syntax option
22012         RE_NO_EMPTY_ALTS.
22013         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
22014         Add documentation of re_set_registers.
22015         Document trick to re-use a pattern buffer by setting fastmap manually.
22016         Update documentation of struct re_pattern_buffer per public members.
22017         Uncomment documentation of equivalence class operators and
22018         collating symbol operators, since they are now implemented,
22019         Explain leftmost-longest matching in relation to alternatives.
22020         Tidy documentation of substring matching.
22021         Remove POSIX documentation, which is done better in
22022         glibc, and refer the reader there. Keep BSD API documentation, as
22023         that is not readily available elsewhere.
22024
22025 2010-09-07  Eric Blake  <eblake@redhat.com>
22026
22027         getopt: handle POSIXLY_CORRECT set but not exported
22028         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
22029         export state of POSIXLY_CORRECT, due to bash set -o posix.
22030         Reported by Dustin J. Mitchell.
22031
22032 2010-09-05  Bruno Haible  <bruno@clisp.org>
22033
22034         gnulib-tool: Highlight the changed options.
22035         * gnulib-tool (func_usage): Display the --import, --add-import,
22036         --remove-import explanations in bold font.
22037
22038 2010-09-06  Karl Berry  <karl@gnu.org>
22039
22040         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
22041
22042 2010-09-05  Bruno Haible  <bruno@clisp.org>
22043
22044         uniwidth/width: Update comment.
22045         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
22046         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
22047
22048 2010-09-05  Bruno Haible  <bruno@clisp.org>
22049
22050         isinf, isnan: Relax license.
22051         * modules/isinf (License): Change from GPL to LGPL, with consent from
22052         Ben Pfaff.
22053         * modules/isnan (License): Likewise.
22054         Requested by Ludovic Courtès.
22055
22056 2010-09-04  Bruno Haible  <bruno@clisp.org>
22057
22058         gnulib-tool: Help migration from --import to --add-import or --update.
22059         * gnulib-tool: Emit a verbose error message when --import is used
22060         without any module name.
22061
22062 2010-09-04  Bruno Haible  <bruno@clisp.org>
22063
22064         Update doc about gnulib-tool.
22065         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
22066         'gnulib-tool --update' in more detail.
22067         Reported by Eric Blake.
22068
22069 2010-09-04  Bruno Haible  <bruno@clisp.org>
22070
22071         gnulib-tool: Change --import. New options --add/remove-import.
22072         * gnulib-tool: New options --add-import, --remove-import.
22073         (func_usage): Document them.
22074         (have_associative): Define always.
22075         (func_import): In import mode, don't merge the specified settings with
22076         the cached settings. Implement remove-import mode.
22077         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
22078         Explain when to use them versus --import.
22079         (Simple update): Use --add-import instead of --import.
22080         * NEWS: Mention the change.
22081
22082 2010-09-04  Bruno Haible  <bruno@clisp.org>
22083
22084         * doc/gnulib-tool.texi (Initial import): Update paragraph about
22085         separate gnulib.mk.
22086
22087 2010-09-04  Bruno Haible  <bruno@clisp.org>
22088
22089         gnulib-tool: Don't talk about CVS any more.
22090         * gnulib-tool (func_usage, func_import): Write "version control"
22091         instead of CVS.
22092
22093 2010-09-04  Jim Meyering  <meyering@redhat.com>
22094
22095         maint.mk: avoid obscure sc_copyright_check failure in coreutils
22096         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
22097         false positives (whose names may be ill-chosen) when searching
22098         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
22099         would cause a false-positive.
22100
22101         avoid coreutils "make distcheck" failure
22102         Coreutils tests with an absolute build directory name that contains
22103         a space.  Not quoting this directory name caused a failure.
22104         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
22105         * tests/test-vc-list-files-cvs.sh: Likewise.
22106
22107 2010-09-04  Bruno Haible  <bruno@clisp.org>
22108
22109         gnulib-tool: Avoid error when run in a package without Makefile.am.
22110         * gnulib-tool: When collecting the m4dirs in a package that does not
22111         have a Makefile.am, eliminate those directories that contain no
22112         gnulib-cache.m4. Fix expression that counts these directories.
22113
22114 2010-09-04  Bruno Haible  <bruno@clisp.org>
22115
22116         update-copyright test: Improve output when perl is missing or too old.
22117         * tests/test-update-copyright.sh: Move test of Perl version down after
22118         the test whether Perl exists. Provide an explanation relating Perl's
22119         error message to Automake's SKIP: message.
22120
22121 2010-09-04  Bruno Haible  <bruno@clisp.org>
22122
22123         Don't augment PATH in TESTS_ENVIRONMENT.
22124         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
22125         set abs_aux_dir instead of augmenting PATH.
22126         * modules/vc-list-files-tests (Makefile.am): Likewise.
22127         * tests/test-update-copyright.sh: Augment PATH here.
22128         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
22129         path_prepend_.
22130         * tests/test-vc-list-files-git.sh: Likewise.
22131
22132 2010-09-04  Jim Meyering  <meyering@redhat.com>
22133
22134         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
22135         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
22136
22137 2010-09-04  Bruno Haible  <bruno@clisp.org>
22138
22139         strdup: Fix compilation error in C++ mode.
22140         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
22141         the macro.
22142
22143 2010-09-04  Bruno Haible  <bruno@clisp.org>
22144
22145         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
22146         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
22147         macro into a function.
22148         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22149
22150 2010-09-04  Bruno Haible  <bruno@clisp.org>
22151
22152         Set PATH_SEPARATOR the same way autoconf does.
22153         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
22154         the value of PATH_SEPARATOR the same way autoconf-generated configure
22155         scripts do.
22156         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
22157         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22158
22159 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22160
22161         Set PATH_SEPARATOR the same way autoconf does.
22162         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
22163         the same way autoconf-generated configure scripts do.
22164         * posix-modules: Likewise.
22165
22166 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22167
22168         hash: fix safe_hasher const typo
22169         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
22170         const; otherwise, there is a type error later.
22171
22172 2010-09-02  Jim Meyering  <meyering@redhat.com>
22173
22174         test-update-copyright.sh: require perl 5.8.0
22175         * tests/test-update-copyright.sh: Require 5.8.0,
22176         which Tom G. Christensen has confirmed is adequate,
22177         while 5.6.1 is not.
22178
22179 2010-09-02  Eric Blake  <eblake@redhat.com>
22180
22181         tests: init.sh improvements for re-exec'ing with zsh
22182         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
22183         -vx through shell re-exec.
22184         Reported by Tom G. Christensen.
22185
22186         wctype: fix typo in previous commit
22187         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
22188         Reported by Ludovic Courtès.
22189
22190 2010-09-02  Jim Meyering  <meyering@redhat.com>
22191
22192         test-update-copyright.sh: skip test if Perl is too old
22193         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
22194         Reported by Tom G. Christensen.
22195
22196 2010-09-02  Bruno Haible  <bruno@clisp.org>
22197
22198         wctype: Avoid compilation error on IRIX 6.5.30.
22199         * lib/wctype.in.h (iswblank): Declare with a replacement if
22200         REPLACE_ISWBLANK is set.
22201         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
22202         declared. Set REPLACE_ISWBLANK.
22203         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
22204         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
22205         * doc/posix-headers/wctype.texi: Likewise.
22206         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22207
22208 2010-09-01  Bruno Haible  <bruno@clisp.org>
22209
22210         New module 'socketlib'.
22211         * modules/socketlib: New file.
22212         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
22213         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
22214         * modules/sockets (Depends-on): Add socketlib.
22215         Suggested by Sam Steingold <sds@gnu.org>.
22216
22217 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22218
22219         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
22220
22221         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
22222         when one needs search access to a directory but not read access.
22223         On systems where it is available, it works in some cases where
22224         O_RDONLY does not, namely on directories that are searchable but
22225         not readable, and which need only to be searchable.  If O_SEARCH
22226         is not available, fall back to the traditional method of using
22227         O_RDONLY.
22228
22229         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
22230         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
22231         when opening a directory that needs only to be searchable.
22232         * lib/chdir-safer.c (chdir_no_follow): Likewise.
22233         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
22234         * lib/openat-proc.c (openat_proc_name): Likewise.
22235         * lib/openat.c (openat_needs_fchdir): Likewise.
22236         * lib/save-cwd.c (save_cwd): Likewise.
22237         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
22238
22239 2010-08-28  Bruno Haible  <bruno@clisp.org>
22240
22241         New module 'host-cpu-c-abi'.
22242         * modules/host-cpu-c-abi: New file.
22243         * m4/host-cpu-c-abi.m4: New file, based on part of
22244         clisp/src/m4/general.m4.
22245         Requested by Sam Steingold <sds@gnu.org>.
22246
22247 2010-08-31  Eric Blake  <eblake@redhat.com>
22248         and Jim Meyering  <meyering@redhat.com>
22249
22250         hash: factor, and guard against misbehaving hasher function
22251         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
22252         of table->hasher's return value.  Also protect against a hash value
22253         so large that adding it to table->bucket results in a NULL pointer.
22254         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
22255         Use it in place of open-coded check-and-abort.
22256
22257 2010-08-30  Bruno Haible  <bruno@clisp.org>
22258
22259         hash: silence spurious clang warning
22260         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
22261         Reported by Eric Blake.
22262
22263 2010-08-30  Eric Blake  <eblake@redhat.com>
22264
22265         strstr, memmem, strcasestr: avoid leaked shell message
22266         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
22267         FreeBSD.
22268         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22269         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22270
22271         tests: silence clang warning
22272         * tests/test-malloca.c (do_allocation): Avoid dead store.
22273
22274 2010-08-29  Bruno Haible  <bruno@clisp.org>
22275
22276         gettext: Fix recent mistake.
22277         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
22278
22279 2010-08-29  Bruno Haible  <bruno@clisp.org>
22280
22281         selinux-h: Offer a --without-selinux option.
22282         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
22283         --without-selinux was specified, skip all tests and define
22284         HAVE_SELINUX_SELINUX_H to 0.
22285         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
22286         set LIB_SELINUX to empty.
22287         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
22288         gl_LIBSELINUX. If --without-selinux was specified, replace
22289         selinux/context.h.
22290         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
22291
22292 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22293             Bruno Haible  <bruno@clisp.org>
22294
22295         Make the module 'realloc-gnu' work again on AIX and OSF/1.
22296         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
22297         of HAVE_REALLOC.
22298         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
22299         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
22300         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
22301         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
22302
22303 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22304             Bruno Haible  <bruno@clisp.org>
22305
22306         Make the module 'calloc-gnu' work again on AIX and OSF/1.
22307         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
22308         HAVE_CALLOC.
22309         * lib/xmalloc.c: Update accordingly.
22310         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
22311         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
22312         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
22313
22314 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22315             Bruno Haible  <bruno@clisp.org>
22316
22317         Make the module 'malloc-gnu' work again on AIX and OSF/1.
22318         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
22319         HAVE_MALLOC.
22320         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
22321         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
22322         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
22323
22324 2010-08-29  Bruno Haible  <bruno@clisp.org>
22325
22326         Update modules list.
22327         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
22328         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
22329         (String handling <string.h>): Add astrxfrm.
22330         (File system functions): Add readlinkat.
22331
22332 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22333
22334         Tests for module 'realloc-gnu'.
22335         * modules/realloc-gnu-tests: New file.
22336         * tests/test-realloc-gnu.c: New file.
22337
22338         Tests for module 'calloc-gnu'.
22339         * modules/calloc-gnu-tests: New file.
22340         * tests/test-calloc-gnu.c: New file.
22341
22342         Tests for module 'malloc-gnu'.
22343         * modules/malloc-gnu-tests: New file.
22344         * tests/test-malloc-gnu.c: New file.
22345
22346 2010-08-28  Bruno Haible  <bruno@clisp.org>
22347
22348         Rename module 'realloc' -> 'realloc-gnu'.
22349         * modules/realloc-gnu: New file, copied from modules/realloc.
22350         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
22351         obsolete.
22352         * modules/mgetgroups (Depends-on): Update.
22353         * doc/posix-functions/realloc.texi: Update.
22354         * NEWS: Mention the change.
22355
22356         Rename module 'calloc' -> 'calloc-gnu'.
22357         * modules/calloc-gnu: New file, copied from modules/calloc.
22358         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
22359         obsolete.
22360         * doc/posix-functions/calloc.texi: Update.
22361         * NEWS: Mention the change.
22362
22363         Rename module 'malloc' -> 'malloc-gnu'.
22364         * modules/malloc-gnu: New file, copied from modules/malloc.
22365         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
22366         obsolete.
22367         * modules/argp (Depends-on): Update.
22368         * modules/regex (Depends-on): Update.
22369         * doc/posix-functions/malloc.texi: Update.
22370         * NEWS: Mention the change.
22371
22372 2010-08-28  Eric Blake  <eblake@redhat.com>
22373
22374         pread, pwrite: add missing dependency
22375         * modules/pread (Depends-on): Add extensions.
22376         * modules/pwrite (Depends-on): Likewise.
22377
22378 2010-08-28  Bruno Haible  <bruno@clisp.org>
22379
22380         unistr/u*-strchr: Fix tests dependencies.
22381         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
22382         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
22383         Reported by Ian Beckwith <ianb@erislabs.net>.
22384
22385 2010-08-28  Bruno Haible  <bruno@clisp.org>
22386
22387         read-file: Don't occupy too much unused memory.
22388         * lib/read-file.c (fread_file): Shrink the buffer at the end.
22389
22390 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
22391             Eric Blake  <eblake@redhat.com>
22392             Bruno Haible  <bruno@clisp.org>
22393
22394         read-file: Avoid memory reallocations with regular files.
22395         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
22396         (fread_file): With regular files, use the remaining length as the
22397         initial buffer size.  Check against overflow.
22398         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
22399         sys_stat.
22400
22401 2010-08-28  Bruno Haible  <bruno@clisp.org>
22402
22403         ftello: Relax license.
22404         * modules/ftello (License): Relax to LGPLv2+.
22405         Reported by Eric Blake.
22406
22407 2010-08-28  Bruno Haible  <bruno@clisp.org>
22408
22409         Avoid relocwrapper link errors due to gnulib replacement functions.
22410         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
22411         function.
22412         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22413
22414 2010-08-28  Bruno Haible  <bruno@clisp.org>
22415
22416         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
22417         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
22418         defined.
22419         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
22420         Suggested by Eric Blake.
22421
22422 2010-08-28  Bruno Haible  <bruno@clisp.org>
22423
22424         sys_socket, netdb: Ensure socklen_t gets defined.
22425         * modules/sys_socket (Depends-on): Add socklen.
22426         * modules/netdb (Depends-on): Likewise.
22427         * modules/getaddrinfo (Depends-on): Remove socklen.
22428         * modules/getsockopt (Depends-on): Likewise.
22429         * modules/setsockopt (Depends-on): Likewise.
22430         * tests/test-sys_socket.c: Check that socklen_t is defined.
22431         * tests/test-netdb.c: Likewise.
22432         * m4/socklen.m4: Update comments.
22433         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22434
22435 2010-08-27  Eric Blake  <eblake@redhat.com>
22436
22437         login_tty: add missing dependency
22438         * modules/login_tty (Depends-on): Add pty.
22439
22440 2010-08-26  Eric Blake  <eblake@redhat.com>
22441
22442         lib-symbol-versions: fix m4 quoting
22443         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
22444         format for AC_LINK_IFELSE.
22445
22446         glob: fix compile test
22447         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
22448
22449         btowc: fix missing file
22450         * modules/btowc (Files): Also ship locale-fr.m4.
22451
22452         lseek: fix link test
22453         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
22454         AC_LINK_IFELSE.
22455
22456         include_next: silence autoconf 2.68 warning
22457         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
22458         AC_COMPILE_IFELSE as special.
22459         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
22460         autoconf < 2.68.
22461
22462         acl: fix compilation test
22463         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
22464         AC_COMPILE_IFELSE.
22465
22466 2010-08-26  Bruno Haible  <bruno@clisp.org>
22467
22468         Modernize AC_TRY_RUN invocations.
22469         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
22470         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
22471         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
22472         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
22473         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
22474         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22475         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22476         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22477         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22478         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22479         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
22480         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22481         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22482         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22483         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22484         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22485         gl_MBRLEN_NUL_RETVAL): Likewise.
22486         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22487         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
22488         Likewise.
22489         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22490         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22491         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22492         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22493         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
22494         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
22495         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
22496         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
22497         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
22498         Likewise.
22499         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
22500         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
22501         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22502         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22503         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22504         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
22505         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22506         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
22507         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22508         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22509
22510 2010-08-26  Bruno Haible  <bruno@clisp.org>
22511
22512         Modernize AC_TRY_LINK invocations.
22513         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
22514         AC_TRY_LINK.
22515         * m4/argp.m4 (gl_ARGP): Likewise.
22516         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
22517         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22518         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
22519         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
22520         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
22521         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
22522         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
22523         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
22524         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
22525         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
22526         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
22527         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
22528         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
22529         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22530         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22531         * m4/hostent.m4 (gl_HOSTENT): Likewise.
22532         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22533         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
22534         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
22535         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
22536         Likewise.
22537         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
22538         Likewise.
22539         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
22540         Likewise.
22541         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
22542         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
22543         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
22544         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
22545         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
22546         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22547         * m4/servent.m4 (gl_SERVENT): Likewise.
22548         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
22549         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
22550         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
22551         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
22552         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22553         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
22554         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
22555         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22556         * modules/tsearch-tests (configure.ac): Likewise.
22557
22558 2010-08-26  Bruno Haible  <bruno@clisp.org>
22559
22560         Modernize AC_TRY_COMPILE invocations.
22561         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
22562         AC_TRY_COMPILE.
22563         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
22564         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
22565         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
22566         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
22567         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
22568         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22569         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22570         * m4/lock.m4 (gl_LOCK): Likewise.
22571         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
22572         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22573         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
22574         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
22575         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
22576         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
22577         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
22578         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
22579         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
22580         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
22581         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
22582         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
22583         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
22584         extraneous semicolon.
22585
22586 2010-08-26  Jim Meyering  <meyering@redhat.com>
22587
22588         stat-time: relax license LGPL
22589         * modules/stat-time (License): Change from GPL to LGPL,
22590         with consent from all contributors, for use in libguile.
22591         Requested by Ludovic Courtès.
22592
22593 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
22594
22595         poll: return immediately on POLLHUP.
22596         * lib/poll.c (poll): Always set timeout before wait_timeout is
22597         computed.
22598
22599 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22600
22601         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
22602         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
22603         rmdir ("dir/.//"), unlinkat.
22604
22605 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22606
22607         stdbool: avoid spurious failure with modern xlc
22608         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22609
22610 2010-08-24  Bruno Haible  <bruno@clisp.org>
22611
22612         getloadavg: simplify code
22613         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
22614         gl_have_func. Update comments.
22615
22616 2010-08-24  Eric Blake  <eblake@redhat.com>
22617
22618         getloadavg: don't define SVR4 on cygwin
22619         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
22620         only define SVR4 when -lkvm is required.
22621         Reported by Yaakov Selkowitz.
22622
22623 2010-08-24  Bruno Haible  <bruno@clisp.org>
22624
22625         priv-set: fix comment
22626         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
22627
22628 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22629
22630         priv-set: fix comments
22631         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
22632         to match code, as suggested by David Bartley in:
22633         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
22634
22635 2010-08-23  Eric Blake  <eblake@redhat.com>
22636
22637         stdbool: avoid rejecting clang
22638         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22639         * tests/test-stdbool.c: Enable more tests if using the system
22640         <stdbool.h> instead of the gnulib replacement.
22641         (main): Move xlc bug test to a runtime test for all compilers.
22642         Reported by Anders Kaseorg.
22643
22644         argz: fix shell quoting issue
22645         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
22646         Reported by Charles Wilson.
22647
22648 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
22649             Erik Faye-Lund <kusmabite@gmail.com>
22650
22651         poll, select: handle ERROR_BROKEN_PIPE.
22652         * lib/poll.c (win32_compute_revents): Return POLLHUP when
22653         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22654         * lib/select.c (win32_compute_revents): Do not mark a pipe
22655         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22656
22657 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
22658
22659         fts: allow compilation with C++
22660         * lib/fts_.h: Specify extern "C" linkage with C++.
22661
22662 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22663
22664         Fix gnulib-tool sed script de-commentation for AIX sed.
22665         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
22666         sed.
22667
22668 2010-08-17  Eric Blake  <eblake@redhat.com>
22669
22670         test-stddef: test for (some) offsetof bugs
22671         * tests/test-stddef.c: Enhance test to ensure correct type of
22672         offsetof.
22673         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
22674         that we are not fixing at this time.
22675
22676 2010-08-15  Bruno Haible  <bruno@clisp.org>
22677
22678         stpncpy: Allow stpncpy to be defined as a macro.
22679         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
22680         if it's already correctly declared.
22681         * lib/string.in.h (stpncpy): Undefine before redefining.
22682         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
22683
22684 2010-08-14  Bruno Haible  <bruno@clisp.org>
22685
22686         Rename module 'memxfrm' to 'amemxfrm'.
22687         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
22688         (amemxfrm): Renamed from memxfrm.
22689         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
22690         (amemxfrm): Renamed from memxfrm.
22691         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
22692         * NEWS: Mention the change.
22693         * MODULES.html.sh (String handling <string.h>): Update.
22694         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
22695         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
22696         * lib/unicase/u16-casexfrm.c: Likewise.
22697         * lib/unicase/u32-casexfrm.c: Likewise.
22698         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
22699         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
22700         * lib/uninorm/u16-normxfrm.c: Likewise.
22701         * lib/uninorm/u32-normxfrm.c: Likewise.
22702         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
22703         memxfrm.
22704         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
22705         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
22706         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
22707         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
22708         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
22709         Suggested by Paul Eggert.
22710
22711 2010-08-14  Bruno Haible  <bruno@clisp.org>
22712
22713         Tests for module 'astrxfrm'.
22714         * modules/astrxfrm-tests: New file.
22715         * tests/test-astrxfrm.c: New file.
22716
22717         New module 'astrxfrm'.
22718         * lib/astrxfrm.h: New file.
22719         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
22720         * modules/astrxfrm: New file.
22721
22722 2010-08-14  Reuben Thomas <rrt@sc3d.org>
22723
22724         regex: Tweak doc.
22725         * doc/regex.texi (Overview): Don't mention regex.c.
22726         (GNU Regular Expression Compiling): Likewise.
22727         (Match-end-of-line Operator): Mention 'not_eol'.
22728
22729 2010-08-14  Brian Gough  <bjg@gnu.org>
22730             Bruno Haible  <bruno@clisp.org>
22731
22732         git-merge-changelog: add doc relating to use with bzr and hg.
22733         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
22734
22735 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
22736
22737         pthread: fix pthread.h creation for srcdir != builddir
22738         * modules/pthread (Makefile.am): Fix the rule to work also in a
22739         non-srcdir build.
22740
22741 2010-08-13  Karl Berry  <karl@gnu.org>
22742
22743         * doc/regex.texi (Predefined Syntaxes): @smallexample.
22744         * doc/posix-*/*: force line break before @url of POSIX
22745         specifications.
22746         Suggested by Werner Lemberg.
22747
22748 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22749
22750         strtod: fix const diagnostic
22751         * lib/strtod.c (strtod): Don't assign const char * to char *,
22752         as this elicits a warning from GCC when warnings are enabled.
22753
22754 2010-08-10  Pádraig Brady <P@draigbrady.com>
22755         and Eric Blake  <eblake@redhat.com>
22756
22757         copy-acl: ignore ENOTSUP on HP-UX
22758         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
22759         so that it is available for HP-UX.
22760         * lib/copy-acl.c (qcopy_acl): Use it.
22761         Reported by Patrick M. Callahan.
22762
22763 2010-08-10  Eric Blake  <eblake@redhat.com>
22764
22765         open, chown: relax license
22766         * modules/open (License): Change to LGPLv2+, with consent by all
22767         authors, for use in augeas.
22768         * modules/chown (License): Likewise.
22769         * modules/lchown (Likewise): Likewise.
22770         Requested by Adam Stokes.
22771
22772 2010-08-09  Karl Berry  <karl@gnu.org>
22773
22774         * build-aux/ar-lib: new file, import from Automake.
22775         * config/srclist.txt: autocheck for updates.
22776
22777 2010-08-09  Eric Blake  <eblake@redhat.com>
22778
22779         readlinkat: adjust client modules
22780         * modules/areadlinkat (Depends-on): Use readlinkat, not
22781         symlinkat.
22782         * modules/areadlinkat-with-size (Depends-on): Likewise.
22783
22784         mknod: be more vocal about danger of running tests as root
22785         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
22786         root, since that is just asking for problems.
22787         Suggested by Bruno Haible, based on a report by Rainer Tammer.
22788
22789         readlinkat: split into its own module
22790         * modules/symlinkat: Split readlinkat...
22791         * modules/readlinkat: ...into separate module.
22792         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
22793         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
22794         * lib/symlinkat.c (readlinkat): Move...
22795         * lib/readlinkat.c: ...into new file.
22796         * modules/symlinkat-tests: Split readlinkat test...
22797         * modules/readlinkat-tests: ...into separate module.
22798         * tests/test-symlinkat.c: Split...
22799         * tests/test-readlinkat.c: ...into new file.
22800         * NEWS: Document the split.
22801         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22802         * lib/unistd.in.h (readlinkat): Likewise.
22803         Suggested by Bruno Haible.
22804
22805 2010-08-08  Bruno Haible  <bruno@clisp.org>
22806
22807         memxfrm: Speed up.
22808         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
22809         that usually only one call to strxfrm is necessary for each string
22810         part.
22811         Reported by Paul Eggert <eggert@cs.ucla.edu>.
22812
22813 2010-08-07  Karl Berry  <karl@gnu.org>
22814
22815         * doc/posix-headers/limits.texi,
22816         * doc/posix-functions/malloc.texi,
22817         * doc/posix-functions/strsignal.texi: missing @item.
22818         * doc/ld-version-script.texi: spurious leading i.
22819         * doc/regex.texi (Interval Operators): no commas inside @var.
22820
22821 2010-08-01  Bruno Haible  <bruno@clisp.org>
22822
22823         Integrate the regex documentation.
22824         * doc/gnulib.texi: Define 'cn' index.
22825         (Regular expressions): New a chapter that includes regex.texi and
22826         regexprops-generic.texi.
22827         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
22828         syntax.
22829
22830         Whitespace cleanup.
22831         * doc/regex.texi: Remove trailing spaces.
22832
22833         Add regex documentation.
22834         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
22835         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
22836         Written by Kathy A. Hargreaves and Karl Berry.
22837
22838 2010-08-01  Bruno Haible  <bruno@clisp.org>
22839
22840         link: Update documentation.
22841         * doc/posix-functions/link.texi: Update regarding Solaris.
22842
22843 2010-07-31  Bruno Haible  <bruno@clisp.org>
22844
22845         Update modules list.
22846         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
22847         (String handling <string.h>): Add memcmp2, memxfrm.
22848         (Container data structures): Add xlist, xsublist, xoset.
22849         (Core language properties): Add alignof, unused-parameter.
22850         (Process control, Numeric conversion functions <stdlib.h>): Renamed
22851         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
22852         (Unibyte characters <ctype.h>): New section.
22853         (String handling <string.h>): New section.
22854         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
22855         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
22856         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
22857         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
22858         tan, tanh, tanl, y0, y1, yn.
22859         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
22860         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
22861         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
22862         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
22863         unlockpt, vdprintf, vdprintf-posix.
22864         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
22865         (File system functions): Add concat-filename, sys_file, sys_ioctl,
22866         xconcat-filename.
22867         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
22868         getdtablesize, pipe2, pipe2-safer.
22869         (Security): New section.
22870         (Networking functions): Add accept4.
22871         (Signal handling): Add sigpipe.
22872         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
22873         mbmemcasecoll.
22874         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
22875         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
22876         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
22877         pipe-filter-ii.
22878         (Misc): Add argp-version-etc, login_tty, parse-duration.
22879
22880 2010-07-31  Bruno Haible  <bruno@clisp.org>
22881
22882         Improve doc in MODULES.html.
22883         * modules/linkat (Description): Add the word "function".
22884         * modules/mkfifo (Description): Likewise.
22885         * modules/mknod (Description): Likewise.
22886         * modules/remove (Description): Likewise.
22887         * modules/renameat (Description): Likewise.
22888         * modules/stat (Description): Likewise.
22889         * modules/symlink (Description): Likewise.
22890         * modules/unlink (Description): Likewise.
22891
22892 2010-07-31  Bruno Haible  <bruno@clisp.org>
22893
22894         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
22895         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
22896         option --enable/disable-c++ instead of --enable/disable-cxx.
22897         * NEWS: Mention the change.
22898
22899 2010-07-31  Bruno Haible  <bruno@clisp.org>
22900
22901         readlink, areadlink: Relax test a bit.
22902         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
22903         alternative to ENOTDIR.
22904         * tests/test-areadlink.h (test_areadlink): Likewise.
22905         Reported by Rainer Tammer.
22906
22907 2010-07-31  Bruno Haible  <bruno@clisp.org>
22908
22909         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
22910         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
22911         character, perform the search using U_STRCHR.
22912         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
22913         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
22914         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
22915         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
22916         Suggested by Paolo Bonzini.
22917
22918 2010-07-31  Bruno Haible  <bruno@clisp.org>
22919
22920         unistr/u*-strstr: Fix dependencies.
22921         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
22922         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
22923         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
22924
22925 2010-07-31  Bruno Haible  <bruno@clisp.org>
22926
22927         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
22928         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
22929         the beginning of the loop.
22930         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
22931         cases in 'switch' statement.
22932
22933         unistr/u8-strchr: Fix several bugs.
22934         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
22935         the string. When not found, return NULL, not a pointer near the end.
22936
22937         More tests for unistr/u8-strchr.
22938         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
22939         that the function does not read past the first occurrence of the byte
22940         being searched.
22941         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
22942         * tests/unistr/test-u16-strchr.c (main): New function.
22943         * tests/unistr/test-u32-strchr.c (main): New function.
22944
22945 2010-07-31  Bruno Haible  <bruno@clisp.org>
22946
22947         posix-modules: Ignore backup files of documentation files.
22948         * posix-modules: grep only through files named *.texi.
22949
22950 2010-07-31  Bruno Haible  <bruno@clisp.org>
22951
22952         symlinkat: Fix documentation.
22953         * doc/posix-functions/readlinkat.texi: Fix module name.
22954
22955 2010-07-31  Bruno Haible  <bruno@clisp.org>
22956
22957         fchownat: Replace also when chown has the trailing slash bug.
22958         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
22959         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
22960         introduced on 2010-04-10.
22961         Reported by Rainer Tammer.
22962
22963 2010-07-31  Bruno Haible  <bruno@clisp.org>
22964
22965         linkat: Work around AIX 7.1 bug.
22966         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
22967         whether linkat handles trailing slash correctly. If not, replace linkat
22968         and define LINKAT_TRAILING_SLASH_BUG.
22969         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
22970         check whether (fd1,file1) points to a directory if file1 or file2 ends
22971         in a slash. Code taken from lib/link.c.
22972         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
22973         Reported by Rainer Tammer.
22974
22975 2010-07-31  Bruno Haible  <bruno@clisp.org>
22976
22977         Correctly determine whether pow is available in libc on AIX 7 with xlc.
22978         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
22979         This disables an xlc optimization that was causing wrong test results.
22980         Reported by Rainer Tammer.
22981
22982 2010-07-31  Bruno Haible  <bruno@clisp.org>
22983
22984         iconv: Work around AIX 6.1..7.1 bug.
22985         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
22986         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
22987         cross-compiling, guess no on all versions of AIX.
22988         Reported by Rainer Tammer.
22989
22990 2010-07-31  Bruno Haible  <bruno@clisp.org>
22991
22992         readlink: Relax test a bit.
22993         * tests/test-readlink.h (test_readlink): Allow different errno value
22994         when readlink is called with a file name that ends in / and refers to
22995         a file.
22996         Suggested by Eric Blake.
22997         Reported by Rainer Tammer.
22998
22999 2010-07-31  Bruno Haible  <bruno@clisp.org>
23000
23001         copysign: Does not require -lm on glibc systems.
23002         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
23003         gl_COMMON_DOUBLE_MATHFUNC.
23004         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
23005
23006 2010-07-31  Bruno Haible  <bruno@clisp.org>
23007
23008         duplocale: Work around AIX 7.1 bug.
23009         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
23010         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
23011         * lib/duplocale.c (rpl_duplocale): Update comment.
23012         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
23013         Reported by Rainer Tammer.
23014
23015 2010-07-30  Bruno Haible  <bruno@clisp.org>
23016
23017         dirfd: Avoid link error on AIX 7.1.
23018         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
23019         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
23020         exist, set REPLACE_DIRFD.
23021         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
23022         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
23023         * doc/posix-functions/dirfd.texi: Update.
23024         Reported by Rainer Tammer.
23025
23026 2010-07-30  Eric Blake  <eblake@redhat.com>
23027
23028         strtod: next round of AIX fixes
23029         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
23030         exponent.
23031         * tests/test-strtod.c (main): Enhance tests.
23032         * doc/posix-functions/strtod.texi (strtod): Document next bug.
23033         Reported by Rainer Tammer.
23034
23035         futimens: fix configure check
23036         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
23037         Reported by Bruno Haible.
23038
23039 2010-07-30  Bruno Haible  <bruno@clisp.org>
23040
23041         getline: Update regarding AIX.
23042         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
23043         Reported by Rainer Tammer.
23044
23045 2010-07-30  Bruno Haible  <bruno@clisp.org>
23046
23047         wcwidth: Drop replacement on AIX 7.
23048         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
23049         AIX 7.
23050         Reported by Rainer Tammer.
23051
23052 2010-07-30  Bruno Haible  <bruno@clisp.org>
23053
23054         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
23055         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
23056         a 'char *'.
23057         Reported by Rainer Tammer.
23058
23059 2010-07-30  Bruno Haible  <bruno@clisp.org>
23060
23061         unlink: Update regarding AIX.
23062         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
23063         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
23064         Reported by Rainer Tammer.
23065
23066 2010-07-30  Bruno Haible  <bruno@clisp.org>
23067
23068         symlink: Update regarding AIX.
23069         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
23070         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
23071         Reported by Rainer Tammer.
23072
23073 2010-07-30  Bruno Haible  <bruno@clisp.org>
23074
23075         strndup: Update regarding AIX.
23076         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
23077         AIX 7.
23078         Reported by Rainer Tammer.
23079
23080 2010-07-30  Bruno Haible  <bruno@clisp.org>
23081
23082         stat: Update regarding AIX.
23083         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
23084         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
23085         Reported by Rainer Tammer.
23086
23087 2010-07-30  Bruno Haible  <bruno@clisp.org>
23088
23089         truncl: Fix autoconf test.
23090         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
23091         whether truncl works.
23092         Reported by Rainer Tammer.
23093
23094 2010-07-30  Bruno Haible  <bruno@clisp.org>
23095
23096         round: Update regarding AIX.
23097         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
23098         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
23099         Reported by Rainer Tammer.
23100
23101 2010-07-30  Bruno Haible  <bruno@clisp.org>
23102
23103         rename: Update regarding AIX.
23104         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
23105         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
23106         Reported by Rainer Tammer.
23107
23108 2010-07-30  Bruno Haible  <bruno@clisp.org>
23109
23110         printf.m4: Update regarding AIX.
23111         * m4/printf.m4: Update comments regarding AIX.
23112         Reported by Rainer Tammer.
23113
23114 2010-07-30  Bruno Haible  <bruno@clisp.org>
23115
23116         iconv: Update regarding AIX.
23117         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
23118         AIX 7.
23119         Reported by Rainer Tammer.
23120
23121 2010-07-30  Bruno Haible  <bruno@clisp.org>
23122
23123         getopt: Update regarding AIX.
23124         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
23125         no on AIX.
23126         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
23127         Reported by Rainer Tammer.
23128
23129 2010-07-30  Bruno Haible  <bruno@clisp.org>
23130
23131         ldexpl; Update regarding AIX.
23132         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
23133         on AIX 7.
23134         Reported by Rainer Tammer.
23135
23136 2010-07-30  Bruno Haible  <bruno@clisp.org>
23137
23138         frexpl: Update regarding AIX.
23139         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
23140         on AIX 7.
23141         Reported by Rainer Tammer.
23142
23143 2010-07-30  Bruno Haible  <bruno@clisp.org>
23144
23145         open, fopen: Update regarding AIX.
23146         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
23147         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
23148         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
23149         * doc/posix-functions/fopen.texi: Likewise.
23150         Reported by Rainer Tammer.
23151
23152 2010-07-30  Bruno Haible  <bruno@clisp.org>
23153
23154         chown: Update doc regarding AIX.
23155         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
23156         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
23157         Reported by Rainer Tammer.
23158
23159 2010-07-30  Eric Blake  <eblake@redhat.com>
23160
23161         strtod: fix bug in replacement function on AIX
23162         * lib/strtod.c (strtod): Special case broken "0x" parse in
23163         underlying strtod.
23164         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
23165         * doc/posix-functions/strtod.texi (strtod): Likewise.
23166         Reported by Rainer Tammer.
23167
23168 2010-07-30  Bruno Haible  <bruno@clisp.org>
23169
23170         mbrlen: Fix cross-compilation guess for AIX.
23171         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
23172         guess. Leftover from 2008-12-22.
23173
23174 2010-07-30  Bruno Haible  <bruno@clisp.org>
23175
23176         mbrtowc: Fix cross-compilation guess for AIX.
23177         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
23178         guess. Leftover from 2008-12-21.
23179
23180 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
23181
23182         init.sh: work around trap limitation of some shells
23183         * tests/init.sh (setup_): Move exit trap outside of shell function.
23184
23185 2010-07-29  Eric Blake  <eblake@redhat.com>
23186
23187         strtod: aid debugging
23188         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
23189         understanding why strtod is rejected.
23190
23191 2010-07-28  Bruno Haible  <bruno@clisp.org>
23192
23193         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
23194         * lib/unistr/u8-chr.c: Include <string.h>.
23195         * tests/unistr/test-u8-chr.c: Likewise.
23196         * tests/unistr/test-u16-chr.c: Likewise.
23197         * tests/unistr/test-u32-chr.c: Likewise.
23198         * tests/unistr/test-u8-strchr.c: Likewise.
23199         * tests/unistr/test-u16-strchr.c: Likewise.
23200         * tests/unistr/test-u32-strchr.c: Likewise.
23201         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
23202         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
23203         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
23204         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
23205
23206 2010-07-28  Bruno Haible  <bruno@clisp.org>
23207
23208         Use spaces for indentation, not tabs.
23209         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
23210
23211 2010-07-27  Bruno Haible  <bruno@clisp.org>
23212
23213         mbspcasecmp: Fix function specification.
23214         * lib/string.in.h (mbspcasecmp): Fix specification comment.
23215         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
23216         Reported by Eric Blake <eblake@redhat.com>.
23217
23218 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
23219
23220         timespec: use cast and not conditional, as truncation isn't possible
23221         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
23222         instead of a conditional.  Comment about the situation in more detail.
23223         This undoes most of the 2009-10-29 patch.
23224
23225 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
23226
23227         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
23228         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
23229         * lib/unistr/u8-strchr.c: Likewise.
23230         * modules/unistr/u8-chr: Depend on memchr.
23231
23232         unistr/u*-strchr: add tests
23233         * modules/unistr/u8-strchr-tests: New file.
23234         * modules/unistr/u16-strchr-tests: New file.
23235         * modules/unistr/u32-strchr-tests: New file.
23236         * tests/unistr/test-strchr.h: New file.
23237         * tests/unistr/test-u8-strchr.c: New file.
23238         * tests/unistr/test-u16-strchr.c: New file.
23239         * tests/unistr/test-u32-strchr.c: New file.
23240
23241         unistr/u*-chr: test multibyte sequences more
23242         * tests/unistr/test-chr.h: Do complete testing of the characters in the
23243         test vector.
23244         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
23245         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
23246         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
23247
23248         unistr/u*-chr: test multibyte sequences
23249         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
23250
23251         unistr/u*-chr: prepare for multibyte tests
23252         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
23253         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
23254         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
23255         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
23256         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
23257         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
23258
23259 2010-07-18  Bruno Haible  <bruno@clisp.org>
23260
23261         unistr/u8-strchr: Optimize non-ASCII argument case.
23262         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
23263         because the first byte often matches anyway.
23264         Reported by Pádraig Brady <P@draigbrady.com>.
23265
23266 2010-07-15  Karl Berry  <karl@gnu.org>
23267
23268         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
23269
23270 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
23271
23272         getcwd: on Solaris, work better if ancestors are inaccessible
23273         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
23274         buffer and size, try again with a large buffer.  This works better
23275         on Solaris, since its getcwd succeeds even if the path to the root
23276         is inaccessible, and this is helpful in common cases such as .zfs
23277         hidden directories.  Problem reported by J Chapman Flack in
23278         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
23279         Use system getcwd if it's declared, not merely if it's partly
23280         working; use the partly-working test only to avoid needless effort
23281         if the system getcwd fails.
23282         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
23283         comment that was already obsolete and is now even more obsolete.
23284         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
23285         now might call strdup.
23286
23287 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
23288
23289         pthread: Add enough so that coreutils/src/sort.c compiles.
23290         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
23291         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
23292         gnulib. Include <sched.h> and <time.h>, as per POSIX.
23293         Include <sys/types.h>, in case it defines pthread_t.
23294         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
23295         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
23296         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
23297         (pthread_rwlockattr_t, pthread_spinlock_t):
23298         New typedefs, if HAVE_PTHREAD_T is not defined.
23299         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
23300         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
23301         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
23302         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
23303         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
23304         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
23305         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
23306         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
23307         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
23308         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
23309         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
23310         New macros.
23311         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
23312         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
23313         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
23314         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
23315         (pthread_spin_unlock): New dummy functions.
23316         (pthread_create): Return EAGAIN; don't set errno.
23317         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
23318         require AC_C_INLINE.
23319         * modules/pthread (Depends-on): Add sched, time.
23320         (pthread.h): Use AM_V_GEN.
23321
23322 2010-07-13  Bruno Haible  <bruno@clisp.org>
23323
23324         striconveh: Don't malloc memory if the result buffer is sufficient.
23325         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
23326         buffer if its size is sufficient.
23327         Reported by Ludovic Courtès <ludo@gnu.org>.
23328
23329 2010-07-13  Bruno Haible  <bruno@clisp.org>
23330
23331         strtod: Add safety check.
23332         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
23333
23334 2010-07-12  Bruno Haible  <bruno@clisp.org>
23335
23336         Unify tests that set gl_cv_func_ldexpl_no_libm.
23337         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
23338         gl_FUNC_LDEXPL.
23339         (gl_FUNC_LDEXPL): Invoke it.
23340         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23341
23342 2010-07-12  Bruno Haible  <bruno@clisp.org>
23343
23344         Unify tests that set gl_cv_func_ldexp_no_libm.
23345         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
23346         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
23347         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
23348         (configure.ac): Simply invoke gl_FUNC_LDEXP.
23349         * modules/strtod (Files): Add m4/ldexp.m4.
23350
23351 2010-07-12  Bruno Haible  <bruno@clisp.org>
23352
23353         Unify tests that set gl_cv_func_frexpl_no_libm.
23354         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
23355         gl_FUNC_FREXPL_NO_LIBM.
23356         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
23357         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23358
23359 2010-07-12  Bruno Haible  <bruno@clisp.org>
23360
23361         Unify tests that set gl_cv_func_frexp_no_libm.
23362         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
23363         gl_FUNC_FREXP_NO_LIBM.
23364         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
23365         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
23366
23367 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
23368
23369         memcoll: clarify sizes versus lengths, document better, and tweak perf
23370         * lib/memcoll.c (strcoll_loop, memcoll0):
23371         Improve quality of descriptive comments.  Name variables
23372         consistently as to whether they are lengths (which do not include
23373         terminating null) versus sizes (which do).
23374         * lib/xmemcoll.c (xmemcoll0): Likewise.
23375         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
23376         returned when s1size == 0; this is easier to compile and saves
23377         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
23378
23379 2010-07-12  Bruno Haible  <bruno@clisp.org>
23380
23381         Tests for module '_Exit'.
23382         * modules/_Exit-tests: New file.
23383         * tests/test-_Exit.sh: New file.
23384         * tests/test-_Exit.c: New file.
23385
23386         New module '_Exit'.
23387         * lib/stdlib.in.h (__attribute__): New macro.
23388         (_Exit): New declaration.
23389         * lib/_Exit.c: New file.
23390         * m4/_Exit.m4: New file.
23391         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
23392         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
23393         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
23394         * modules/_Exit: New file.
23395         * tests/test-stdlib-c++.cc (_Exit): Check signature.
23396         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
23397
23398 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
23399
23400         strtod: make it more-accurate typically, and don't require libm
23401         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
23402         Include limits.h.  Don't include string.h.
23403         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
23404         (locale_isspace): New function, so that no casts are needed to
23405         check whether *s is a space.
23406         (ldexp): Provide an unused dummy if not available.
23407         (scale_radix_exp, parse_number, underlying_strtod): New functions.
23408         (strtod): Use them.  This implementation prefers to use the
23409         underlying strtod if available, falling back on our own code
23410         only to fix known bugs.  This is more likely to produce an
23411         accurate result.  Also, it avoids the use of libm functions.
23412         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
23413         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
23414         was absent, but it caused a test failure with coreutils.
23415         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
23416         with libm.
23417         * modules/strtod (Makefile.am, Link): libm is no longer needed.
23418         * modules/strtod-tests (Makefile.am): Likewise.
23419
23420 2010-07-11  Pádraig Brady  <P@draigBrady.com>
23421             Bruno Haible  <bruno@clisp.org>
23422
23423         unistr/u8-strchr: Optimize ASCII argument case.
23424         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
23425
23426 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
23427
23428         (x)memcoll: minor tweaks
23429         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
23430         is after the type that it qualifies.
23431         (memcoll0): Likewise.
23432         * lib/memcoll.h (memcoll0): Likewise.
23433         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
23434         * lib/xmemcoll.h (xmemcoll0): Likewise.
23435         * lib/memcoll.c (memcoll0): Correct the comment.  This function
23436         differs from memcoll in that the NUL byte is part of the argument.
23437         Omit the abort-checks, as performance is a real issue here.  Plus,
23438         the checks were wrong anyway (an off-by-one error).  Omit local
23439         variable 'diff', as it's a bit clearer that way.
23440         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
23441         no longer needed.
23442
23443 2010-07-08  Chen Guo <chenguo4@yahoo.com>
23444
23445         (x)memcoll: speedup when input is known to be NUL delimited
23446         * lib/memcoll.c: Include stdlib.
23447         (memcoll0): New function.
23448         (strcoll_loop): New function, refactored for use in both memcoll
23449         and memcoll0.
23450         * lib/memcoll.h (memcoll0): Add prototype.
23451         * lib/xmemcoll.c (xmemcoll0): New function.
23452         (collate_error): New function, refactored for use in both xmemcoll
23453         and xmemcoll0.
23454         * lib/xmemcoll.h (xmemcoll0): Add prototype.
23455         * m4/memcoll.m4: add inline invocation.
23456
23457 2010-07-06  Pádraig Brady  <P@draigBrady.com>
23458
23459         * build-aux/bootstrap: Remove any local translations
23460         from the translation project synchronization directory,
23461         so that local only translations are not distributed.
23462
23463 2010-07-04  Bruno Haible  <bruno@clisp.org>
23464
23465         fsusage: Clarify which code applies to which platforms.
23466         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
23467         platform.
23468         * lib/fsusage.c (get_fs_usage): Likewise.
23469
23470 2010-07-04  Bruno Haible  <bruno@clisp.org>
23471
23472         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
23473         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
23474         Reported by Martin Lambers <marlam@marlam.de>.
23475
23476 2010-07-04  Jim Meyering  <meyering@redhat.com>
23477
23478         hash: once again explicitly disallow insertion of NULL
23479         * lib/hash.c (hash_insert0): Reinstate just-removed test:
23480         inserting a NULL pointer cannot work with these functions.
23481         Add a comment with details.
23482         This reverts part of the 2010-07-01 commit, 5bef1a35
23483         "hash: extend module to deal with non-pointer keys".
23484
23485 2010-07-01  Bruno Haible  <bruno@clisp.org>
23486
23487         stdbool: Update doc.
23488         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
23489         Info from Christian Weisgerber <naddy@mips.inka.de>.
23490
23491 2010-07-01  Jim Meyering  <meyering@redhat.com>
23492
23493         hash: extend module to deal with non-pointer keys
23494         * lib/hash.c (hash_insert0): New interface, much like hash_insert
23495         but that allows insertion of non-pointer entries.
23496         Do not disallow an ENTRY value of NULL.
23497         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
23498         * lib/hash.h (hash_insert0): Declare.
23499
23500 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23501
23502         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
23503         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
23504         not present (i.e. with autoconf 2.59 and when using gettextize, not
23505         gnulib), require AC_GNU_SOURCE instead.
23506
23507 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
23508
23509         idpriv-drop: Fix tests.
23510         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
23511         not to the test-idpriv-droptemp program.
23512
23513 2010-06-29  Bruno Haible  <bruno@clisp.org>
23514
23515         string: Fix syntax error with g++ 2.96.
23516         * lib/string.in.h (__pure__): Remove definition.
23517         (_GL_ATTRIBUTE_PURE): New macro.
23518         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
23519         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
23520         Reported by Christian Weisgerber <naddy@mips.inka.de>.
23521
23522 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
23523
23524         unitypes: Fix bug introduced on 2010-05-18.
23525         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
23526
23527 2010-06-22  Eric Blake  <eblake@redhat.com>
23528
23529         memmem: slight optimization
23530         * lib/str-two-way.h (critical_factorization): Update comments.
23531         Reduce work during factorization phase.
23532         Reported by Carlos Bueno <carlos@bueno.org>.
23533
23534 2010-06-21  Bruno Haible  <bruno@clisp.org>
23535
23536         Fix HAVE_CALLOC_POSIX misnomer.
23537         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
23538         !HAVE_CALLOC_POSIX.
23539         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
23540         HAVE_CALLOC_POSIX.
23541         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
23542         instead of HAVE_CALLOC_POSIX.
23543         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
23544         HAVE_CALLOC_POSIX.
23545
23546         Use modern idiom for calloc() replacement.
23547         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
23548         AC_FUNC_CALLOC.
23549         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
23550         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
23551         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23552         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
23553         (gl_REPLACE_CALLOC): New macro.
23554
23555 2010-06-21  Bruno Haible  <bruno@clisp.org>
23556
23557         Fix HAVE_REALLOC_POSIX misnomer.
23558         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
23559         !HAVE_REALLOC_POSIX.
23560         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
23561         HAVE_REALLOC_POSIX.
23562         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
23563         instead of HAVE_REALLOC_POSIX.
23564         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
23565         HAVE_REALLOC_POSIX.
23566
23567         Use modern idiom for realloc() replacement.
23568         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
23569         AC_FUNC_REALLOC.
23570         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
23571         Autoconf's AC_FUNC_REALLOC.
23572         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23573         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
23574         (gl_REPLACE_REALLOC): New macro.
23575         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
23576
23577 2010-06-21  Bruno Haible  <bruno@clisp.org>
23578
23579         Fix HAVE_MALLOC_POSIX misnomer.
23580         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
23581         !HAVE_MALLOC_POSIX.
23582         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
23583         HAVE_MALLOC_POSIX.
23584         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
23585         instead of HAVE_MALLOC_POSIX.
23586         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
23587         HAVE_MALLOC_POSIX.
23588
23589         Use modern idiom for malloc() replacement.
23590         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
23591         AC_FUNC_MALLOC.
23592         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
23593         Autoconf's AC_FUNC_MALLOC.
23594         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23595         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
23596         (gl_REPLACE_MALLOC): New macro.
23597         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
23598
23599 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
23600
23601         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
23602         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
23603         This macro takes 3 arguments, not 4.
23604
23605 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
23606
23607         ipv6: fix detection under mingw
23608         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
23609         in6_addr.
23610
23611 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
23612
23613         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
23614         that strtod() works when cross-compiling to a glibc version known
23615         to work.
23616
23617 2010-06-15  Bruno Haible  <bruno@clisp.org>
23618
23619         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
23620
23621 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
23622
23623         select: Correct timeout.
23624         * lib/select.c (rpl_select): Compute wait_timeout correctly.
23625
23626 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23627
23628         git-version-gen: init shell var to avoid env var influence
23629         * build-aux/git-version-gen (v): Init shell var to empty.
23630
23631 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
23632
23633         priv-set: Don't assume that priv.h exists merely because getppriv does.
23634         See Jan Andersen's bug report about AIX 5L in
23635         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
23636         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
23637         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
23638         * lib/priv-set.h: Likewise.
23639         * tests/test-priv-set.c: Likewise.
23640
23641 2010-06-13  Bruno Haible  <bruno@clisp.org>
23642
23643         relocatable: Make it easier to test whether to install wrappers.
23644         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
23645         RELOCATABLE_VIA_WRAPPER.
23646
23647 2010-06-13  Bruno Haible  <bruno@clisp.org>
23648
23649         gnulib-tool: Display specified modules and dependencies differently.
23650         * gnulib-tool (func_show_module_list): New function.
23651         (func_import, func_create_testdir): Invoke it.
23652         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23653
23654 2010-06-13  Bruno Haible  <bruno@clisp.org>
23655
23656         gnulib-tool: Align code of func_import and func_create_testdir.
23657         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
23658         specified_modules.
23659
23660 2010-06-12  Jim Meyering  <meyering@redhat.com>
23661
23662         test-inttostr: avoid spurious failure on Solaris 9
23663         * tests/test-inttostr.c (main): Skip the test when snprintf fails
23664         to accept "%ju".  Reported by Bruno Haible.
23665
23666 2010-06-11  Jim Meyering  <meyering@redhat.com>
23667
23668         test-sys_socket: mark variables as used more readably
23669         * tests/test-sys_socket.c (main): Mark otherwise unused variables
23670         as "used" explicitly via (void) statement casts.  This is more
23671         readable than using them in an artificial return expression.
23672         Suggestion from Bruno Haible.
23673
23674 2010-06-11  Bruno Haible  <bruno@clisp.org>
23675
23676         Avoid some more warnings from "gcc -Wwrite-strings".
23677         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
23678         to 'const char *'.
23679         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
23680         * tests/test-c-strcasestr.c (main): Likewise.
23681         * tests/test-mbscasestr1.c (main): Likewise.
23682         * tests/test-mbscasestr2.c (main): Likewise.
23683         * tests/test-memmem.c (main): Likewise.
23684         * tests/test-strstr.c (main): Likewise.
23685         * tests/test-strcasestr.c (main): Likewise.
23686
23687 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23688
23689         init.sh: change framework_failure_ to fail with status 99, not 1
23690         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
23691         automake's parallel-tests rule that this is an unexpected failure,
23692         even if the test is listed in XFAIL_TESTS.
23693
23694 2010-06-11  Jim Meyering  <meyering@redhat.com>
23695
23696         test-inttostr: avoid warnings about 4-6KB literal strings
23697         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
23698         Include "macros.h", for its definition of ASSERT.
23699         (CK): s/assert/ASSERT/
23700         * modules/inttostr-tests (Files): Add macros.h.
23701
23702         init.sh: don't use $ME_ or skip_ before they are defined
23703         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
23704         their first uses.  Also hoist their companions: warn_, fail_,
23705         framework_failure_, $stderr_fileno.  Prompted by a patch from
23706         Stefano Lattarini.
23707
23708         test-sys_socket: avoid set-but-not-used warnings from gcc
23709         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
23710         avoid warning about set-but-not-used variables.
23711
23712         test-xvasprintf: avoid 'const' discard warnings
23713         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
23714         "const" when assigning from literal strings.
23715         (test_xasprintf): Add "void" in function argument list to placate
23716         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
23717
23718         tests: avoid compilation warnings in argmatch and exclude tests...
23719         in packages that define ARGMATCH_DIE_DECL, like coreutils.
23720         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
23721         Since it always exits, declare with the "noreturn" attribute.
23722         * tests/test-argmatch.c: Likewise.
23723
23724         tests: avoid 'const' discard warnings in mbsstr tests
23725         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
23726         * tests/test-mbsstr2.c (main): Likewise.
23727
23728         test-verify: avoid warning from gcc's -Wmissing-declarations
23729         * tests/test-verify.c (function): Declare to be static.
23730
23731         test-inttostr.c: include <string.h> for use of strcmp
23732         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
23733
23734         test-linkat: avoid failed assertion on "other" architectures
23735         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
23736         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
23737         sparc: https://bugs.launchpad.net/bugs/591968
23738
23739 2010-06-11  Jim Meyering  <meyering@redhat.com>
23740
23741         printf.m4: avoid autoconf's "Expanded Before Required" warning
23742         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
23743         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
23744         autoconf warning.
23745
23746 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
23747
23748         Replacement header templates are now named with ".in", not "_".
23749         * doc/gnulib-intro.texi: Correct.
23750
23751 2010-06-10  Jim Meyering  <meyering@redhat.com>
23752
23753         inttostr-tests: depend on snprintf, not snprintf-posix
23754         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
23755         snprintf-posix, to avoid this aclocal failure:
23756           missing file gnulib-tests/vasnprintf.c
23757           configure.ac:45: error: expected source file, required through \
23758           AC_LIBSOURCES, not found
23759
23760 2010-06-10  Jim Meyering  <meyering@redhat.com>
23761
23762         inttostr: add a new function, inttostr, and tests
23763         The namesake function was not available.  The existence of the
23764         template file, inttostr.c makes its addition nontrivial.
23765         * lib/anytostr.c: Rename from inttostr.c.
23766         (anytostr): Rename from inttostr.
23767         * lib/inttostr.c: New file.
23768         * modules/inttostr (Files): Add anytostr.c.
23769         (Makefile.am): Set lib_SOURCES instead of ...
23770         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
23771         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
23772         * lib/offtostr.c: Likewise.
23773         * lib/uinttostr.c: Likewise.
23774         * lib/umaxtostr.c: Likewise.
23775         * modules/inttostr-tests: New file.
23776         * tests/test-inttostr.c: New file.  Test these functions.
23777
23778 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
23779             Bruno Haible  <bruno@clisp.org>
23780
23781         Add "Extending Gnulib" chapter to manual.
23782         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
23783         chapter.
23784         (Extending Gnulib): New chapter.
23785         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
23786         chapter.
23787
23788 2010-06-09  Bruno Haible  <bruno@clisp.org>
23789
23790         Avoid relocwrapper link errors due to gnulib replacement functions.
23791         * lib/areadlink.c: Use the system's malloc, realloc functions.
23792         (areadlink): Set errno to ENOMEM explicitly.
23793         * modules/areadlink (Depends-on): Remove malloc-posix.
23794         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23795
23796 2010-06-09  Bruno Haible  <bruno@clisp.org>
23797
23798         Avoid relocwrapper link errors due to gnulib replacement functions.
23799         * lib/canonicalize-lgpl.c: Use the system's malloc function.
23800         * lib/malloca.c: Likewise.
23801         * lib/relocatable.c: Likewise.
23802         * lib/progreloc.c: Use the system's malloc, sprintf functions.
23803         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
23804         * lib/setenv.c: Use the system's malloc, realloc functions.
23805         * lib/strerror.c: Use the system's sprintf function.
23806         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23807
23808 2010-06-04  Bruno Haible  <bruno@clisp.org>
23809
23810         Prefer documented low-level autoconf macro names.
23811         * m4/lib-link.m4: Use m4_translit instead of translit.
23812         * m4/environ.m4: Likewise.
23813         * m4/mathfunc.m4: Likewise.
23814         * m4/onceonly.m4: Likewise.
23815         * m4/stdint.m4: Likewise.
23816         Suggested by Eric Blake.
23817
23818 2010-06-04  Martin Lambers  <marlam@marlam.de>
23819             Bruno Haible  <bruno@clisp.org>
23820
23821         havelib: Allow library names with '+' characters.
23822         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
23823         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
23824
23825 2010-06-09  Bruno Haible  <bruno@clisp.org>
23826
23827         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
23828         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
23829         realloc failed.
23830
23831 2010-06-08  Peter Simons  <simons@cryp.to>
23832
23833         maint.mk: make the news-check rule more configurable
23834         * top/maint.mk (news-check-lines-spec): New variable.
23835         (news-check): Use "sed -n 1,10p" in place of "head".
23836
23837 2010-06-07  Jim Meyering  <meyering@redhat.com>
23838
23839         do-release-commit-and-tag: fix typo in --help
23840         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
23841
23842         regex: avoid new dead-code warning with gcc-4.6.0
23843         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
23844         if-block containing a while-loop.  It's been unused for at least
23845         5 years.
23846
23847 2010-06-05  Bruno Haible  <bruno@clisp.org>
23848
23849         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
23850         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
23851
23852 2010-06-04  Bruno Haible  <bruno@clisp.org>
23853
23854         Update to GNU gettext 0.18.1.
23855         * modules/gettext (configure.ac): Require gettext infrastructure from
23856         version 0.18.1.
23857
23858 2010-06-03  Bruno Haible  <bruno@clisp.org>
23859
23860         Don't use AC_LIBOBJ with file names in subdirectories.
23861         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
23862         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
23863         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
23864         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
23865         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
23866         gl_LIBUNISTRING_LIBSOURCE.
23867         (Makefile.am): Augment lib_SOURCES here, conditionally.
23868         * NEWS: Drop requirement for Automake option 'subdir-objects'.
23869
23870 2010-06-03  Bruno Haible  <bruno@clisp.org>
23871
23872         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
23873         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
23874         expansion does not end with a newline.
23875         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
23876         unnecessary newline.
23877
23878 2010-06-03  Bruno Haible  <bruno@clisp.org>
23879
23880         Reduce dependencies.
23881         * tests/test-quotearg.h: New file, extracted from
23882         tests/test-quotearg.c.
23883         * tests/test-quotearg-simple.c: New file, extracted from
23884         tests/test-quotearg.c.
23885         * tests/test-quotearg.c: Don't include <ctype.h>.
23886         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
23887         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
23888         use_quote_double_quotes, use_quotearg_colon): Moved to
23889         tests/test-quotearg.h.
23890         (results_g, flag_results, custom_quotes, custom_results): Moved
23891         to tests/test-quotearg-simple.c.
23892         (main): Moved the part that does not depend on gettext to
23893         tests/test-quotearg-simple.c. Return 77 if the test cannot be
23894         performed.
23895         * modules/quotearg-simple: New file.
23896         * modules/quotearg-simple-tests: New file.
23897         * modules/quotearg (Depends-on): Add quotearg-simple.
23898         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
23899         (Files): Add tests/test-quotearg.h.
23900         Reported by Paolo Bonzini.
23901
23902 2010-06-03  Bruno Haible  <bruno@clisp.org>
23903
23904         Reduce dependencies.
23905         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
23906
23907 2010-06-03  Bruno Haible  <bruno@clisp.org>
23908
23909         time: Undefine more broken macros.
23910         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
23911         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
23912         Reported by Eric Blake.
23913
23914 2010-06-03  Bruno Haible  <bruno@clisp.org>
23915
23916         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
23917         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
23918         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
23919         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
23920         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
23921         Reported by Ludovic Courtès <ludo@gnu.org>.
23922
23923 2010-06-02  Eric Blake  <eblake@redhat.com>
23924
23925         time: work with mingw + pthreads-win32 library
23926         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
23927         if timespec is defined only in pthread.h.
23928         * modules/time (Makefile.am): Substitute it.
23929         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
23930         <pthread.h>, when needed.
23931         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
23932         from the library.
23933
23934 2010-05-31  Bruno Haible  <bruno@clisp.org>
23935
23936         Avoid expanding two macros in the wrong order.
23937         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
23938         gl_LIBUNISTRING if it is defined.
23939         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
23940         autoconf >= 2.64.
23941         Reported by Ludovic Courtès <ludo@gnu.org>.
23942
23943 2010-05-27  Jim Meyering  <meyering@redhat.com>
23944
23945         maint.mk: also prohibit "#undef" of always-defined symbols
23946         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
23947         Allow more than one space before the symbol name.
23948         (sc_prohibit_always-defined_macros): Use grep's -E, now that
23949         the regexp uses alternation.
23950
23951 2010-05-26  Eric Blake  <eblake@redhat.com>
23952
23953         maint.mk: avoid echo -e
23954         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
23955         Convert all uses of echo -* to printf.
23956         Reported by Matthias Bolte.
23957
23958 2010-05-25  Bruno Haible  <bruno@clisp.org>
23959
23960         Update to GNU gettext 0.18, part 2.
23961         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
23962         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
23963
23964 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23965
23966         Add missing include in test-pwrite.c.
23967         * tests/test-pwrite.c: Include string.h, for strcmp.
23968
23969 2010-05-24  Bruno Haible  <bruno@clisp.org>
23970
23971         * NEWS: Mention requirement for Automake option 'subdir-objects'.
23972
23973 2010-05-24  Bruno Haible  <bruno@clisp.org>
23974
23975         Don't use conversion with transliteration in u{8,16,32}_strcoll.
23976         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
23977         iconveh_error argument.
23978         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
23979         U_STRCONV_TO_LOCALE.
23980         * lib/unistr/u16-strcoll.c: Likewise.
23981         * lib/unistr/u32-strcoll.c: Likewise.
23982         * modules/unistr/u8-strcoll (Depends-on): Add
23983         uniconv/u8-strconv-to-enc, localcharset. Remove
23984         uniconv/u8-strconv-to-locale.
23985         (configure.ac): Bump version number.
23986         * modules/unistr/u16-strcoll (Depends-on): Add
23987         uniconv/u16-strconv-to-enc, localcharset. Remove
23988         uniconv/u16-strconv-to-locale.
23989         (configure.ac): Bump version number.
23990         * modules/unistr/u32-strcoll (Depends-on): Add
23991         uniconv/u32-strconv-to-enc, localcharset. Remove
23992         uniconv/u32-strconv-to-locale.
23993         (configure.ac): Bump version number.
23994
23995 2010-05-24  Bruno Haible  <bruno@clisp.org>
23996
23997         Avoid a test failure on NetBSD 5.0.
23998         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
23999         an iconv() bug.
24000
24001 2010-05-24  Bruno Haible  <bruno@clisp.org>
24002
24003         Adjust #include directive style.
24004         * modules/regex (Includes): Recommend to write <regex.h>.
24005
24006 2010-05-24  Bruno Haible  <bruno@clisp.org>
24007
24008         regex: Don't require alloca.
24009         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
24010         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
24011         only inside if (0).
24012
24013 2010-05-23  Jim Meyering  <meyering@redhat.com>
24014
24015         test-renameat.c: include <sys/stat.h>
24016         * tests/test-renameat.c: Include <sys/stat.h>; required for
24017         definition of S_IS* macros.
24018
24019 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
24020
24021         Update maintainer documentation for 'relocatable-prog' module.
24022         * doc/relocatable-maint.texi: Update.
24023         Comments by Bruno Haible.
24024
24025 2010-05-23  Bruno Haible  <bruno@clisp.org>
24026
24027         git-merge-changelog: Enable --split-merged-entry by default.
24028         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
24029         (usage): Don't mention this option any more.
24030         Reported by Ralf Wildenhues.
24031
24032 2010-05-23  Jim Meyering  <meyering@redhat.com>
24033
24034         test-pwrite: do not leave behind a test file named "out"
24035         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
24036         The trivial-looking use of init.sh is really necessary.
24037         It ensures that the temporary file, "out", is created in
24038         a temporary directory, and removed upon termination.
24039         * tests/test-pwrite.sh: Re-add file.
24040         * modules/pwrite-tests: Reference it.
24041
24042 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24043
24044         Fix output redirection buglet in init.sh.
24045         * tests/init.sh: Fix redirection of stderr.
24046
24047 2010-05-20  Simon Josefsson  <simon@josefsson.org>
24048
24049         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
24050
24051 2010-05-17  Simon Josefsson  <simon@josefsson.org>
24052
24053         * modules/valgrind-tests: New file.
24054         * m4/valgrind-tests.m4: New file.
24055         * doc/valgrind-tests.texi: New file.
24056         * doc/gnulib.texi (Running self-tests under valgrind): New
24057         section.
24058
24059 2010-05-19  Bruno Haible  <bruno@clisp.org>
24060
24061         Clean up dead code in recent commit.
24062         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
24063         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
24064         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
24065         Suggested by Paolo Bonzini.
24066
24067 2010-05-19  Bruno Haible  <bruno@clisp.org>
24068
24069         Avoid valgrind error reports from libunistring.
24070         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
24071         * modules/libunistring (Files): Add it.
24072         * modules/libunistring-optional (Files): Likewise.
24073
24074 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
24075             Bruno Haible  <bruno@clisp.org>
24076
24077         New module 'libunistring-optional'.
24078         * modules/libunistring-optional: New file.
24079         * m4/libunistring-base.m4: New file.
24080         * m4/libunistring-optional.m4: New file.
24081         * lib/unicase.in.h: Renamed from lib/unicase.h.
24082         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
24083         * lib/unictype.in.h: Renamed from lib/unictype.h.
24084         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
24085         * lib/uniname.in.h: Renamed from lib/uniname.h.
24086         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
24087         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
24088         * lib/unistr.in.h: Renamed from lib/unistr.h.
24089         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
24090         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
24091         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
24092         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
24093         gl_LIBUNISTRING. If the library was found, determine the installed
24094         version and set LIBUNISTRING_VERSION.
24095         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
24096         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
24097         handle a configuration option --with-included-libunistring.
24098         * modules/libunistring (Files): Add m4/absolute-header.m4.
24099         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
24100         Add m4/libunistring-base.m4.
24101         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24102         (Makefile.am): Build unicase.h from unicase.in.h.
24103         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
24104         Add m4/libunistring-base.m4.
24105         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24106         (Makefile.am): Build uniconv.h from uniconv.in.h.
24107         * modules/unictype/base (Files): Use unictype.in.h instead of
24108         unictype.h. Add m4/libunistring-base.m4.
24109         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24110         (Makefile.am): Build unictype.h from unictype.in.h.
24111         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
24112         Add m4/libunistring-base.m4.
24113         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24114         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
24115         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
24116         Add m4/libunistring-base.m4.
24117         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24118         (Makefile.am): Build uniname.h from uniname.in.h.
24119         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
24120         Add m4/libunistring-base.m4.
24121         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24122         (Makefile.am): Build uninorm.h from uninorm.in.h.
24123         * modules/unistdio/base (Files): Use unistdio.in.h instead of
24124         unistdio.h. Add m4/libunistring-base.m4.
24125         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24126         (Makefile.am): Build unistdio.h from unistdio.in.h.
24127         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
24128         Add m4/libunistring-base.m4.
24129         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24130         (Makefile.am): Build unistr.h from unistr.in.h.
24131         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
24132         Add m4/libunistring-base.m4.
24133         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24134         (Makefile.am): Build unitypes.h from unitypes.in.h.
24135         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
24136         Add m4/libunistring-base.m4.
24137         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24138         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
24139         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
24140         uniwidth.h. Add m4/libunistring-base.m4.
24141         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24142         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
24143         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
24144         instead of augmenting lib_SOURCES.
24145         * modules/unicase/empty-suffix-context: Likewise.
24146         * modules/unicase/locale-language: Likewise.
24147         * modules/unicase/tolower: Likewise.
24148         * modules/unicase/totitle: Likewise.
24149         * modules/unicase/toupper: Likewise.
24150         * modules/unicase/u8-casecmp: Likewise.
24151         * modules/unicase/u8-casecoll: Likewise.
24152         * modules/unicase/u8-casefold: Likewise.
24153         * modules/unicase/u8-casexfrm: Likewise.
24154         * modules/unicase/u8-ct-casefold: Likewise.
24155         * modules/unicase/u8-ct-tolower: Likewise.
24156         * modules/unicase/u8-ct-totitle: Likewise.
24157         * modules/unicase/u8-ct-toupper: Likewise.
24158         * modules/unicase/u8-is-cased: Likewise.
24159         * modules/unicase/u8-is-casefolded: Likewise.
24160         * modules/unicase/u8-is-lowercase: Likewise.
24161         * modules/unicase/u8-is-titlecase: Likewise.
24162         * modules/unicase/u8-is-uppercase: Likewise.
24163         * modules/unicase/u8-prefix-context: Likewise.
24164         * modules/unicase/u8-suffix-context: Likewise.
24165         * modules/unicase/u8-tolower: Likewise.
24166         * modules/unicase/u8-totitle: Likewise.
24167         * modules/unicase/u8-toupper: Likewise.
24168         * modules/unicase/u16-casecmp: Likewise.
24169         * modules/unicase/u16-casecoll: Likewise.
24170         * modules/unicase/u16-casefold: Likewise.
24171         * modules/unicase/u16-casexfrm: Likewise.
24172         * modules/unicase/u16-ct-casefold: Likewise.
24173         * modules/unicase/u16-ct-tolower: Likewise.
24174         * modules/unicase/u16-ct-totitle: Likewise.
24175         * modules/unicase/u16-ct-toupper: Likewise.
24176         * modules/unicase/u16-is-cased: Likewise.
24177         * modules/unicase/u16-is-casefolded: Likewise.
24178         * modules/unicase/u16-is-lowercase: Likewise.
24179         * modules/unicase/u16-is-titlecase: Likewise.
24180         * modules/unicase/u16-is-uppercase: Likewise.
24181         * modules/unicase/u16-prefix-context: Likewise.
24182         * modules/unicase/u16-suffix-context: Likewise.
24183         * modules/unicase/u16-tolower: Likewise.
24184         * modules/unicase/u16-totitle: Likewise.
24185         * modules/unicase/u16-toupper: Likewise.
24186         * modules/unicase/u32-casecmp: Likewise.
24187         * modules/unicase/u32-casecoll: Likewise.
24188         * modules/unicase/u32-casefold: Likewise.
24189         * modules/unicase/u32-casexfrm: Likewise.
24190         * modules/unicase/u32-ct-casefold: Likewise.
24191         * modules/unicase/u32-ct-tolower: Likewise.
24192         * modules/unicase/u32-ct-totitle: Likewise.
24193         * modules/unicase/u32-ct-toupper: Likewise.
24194         * modules/unicase/u32-is-cased: Likewise.
24195         * modules/unicase/u32-is-casefolded: Likewise.
24196         * modules/unicase/u32-is-lowercase: Likewise.
24197         * modules/unicase/u32-is-titlecase: Likewise.
24198         * modules/unicase/u32-is-uppercase: Likewise.
24199         * modules/unicase/u32-prefix-context: Likewise.
24200         * modules/unicase/u32-suffix-context: Likewise.
24201         * modules/unicase/u32-tolower: Likewise.
24202         * modules/unicase/u32-totitle: Likewise.
24203         * modules/unicase/u32-toupper: Likewise.
24204         * modules/unicase/ulc-casecmp: Likewise.
24205         * modules/unicase/ulc-casecoll: Likewise.
24206         * modules/unicase/ulc-casexfrm: Likewise.
24207         * modules/uniconv/u8-conv-from-enc: Likewise.
24208         * modules/uniconv/u8-conv-to-enc: Likewise.
24209         * modules/uniconv/u8-strconv-from-enc: Likewise.
24210         * modules/uniconv/u8-strconv-from-locale: Likewise.
24211         * modules/uniconv/u8-strconv-to-enc: Likewise.
24212         * modules/uniconv/u8-strconv-to-locale: Likewise.
24213         * modules/uniconv/u16-conv-from-enc: Likewise.
24214         * modules/uniconv/u16-conv-to-enc: Likewise.
24215         * modules/uniconv/u16-strconv-from-enc: Likewise.
24216         * modules/uniconv/u16-strconv-from-locale: Likewise.
24217         * modules/uniconv/u16-strconv-to-enc: Likewise.
24218         * modules/uniconv/u16-strconv-to-locale: Likewise.
24219         * modules/uniconv/u32-conv-from-enc: Likewise.
24220         * modules/uniconv/u32-conv-to-enc: Likewise.
24221         * modules/uniconv/u32-strconv-from-enc: Likewise.
24222         * modules/uniconv/u32-strconv-from-locale: Likewise.
24223         * modules/uniconv/u32-strconv-to-enc: Likewise.
24224         * modules/uniconv/u32-strconv-to-locale: Likewise.
24225         * modules/unictype/bidicategory-byname: Likewise.
24226         * modules/unictype/bidicategory-name: Likewise.
24227         * modules/unictype/bidicategory-of: Likewise.
24228         * modules/unictype/bidicategory-test: Likewise.
24229         * modules/unictype/block-list: Likewise.
24230         * modules/unictype/block-test: Likewise.
24231         * modules/unictype/category-C: Likewise.
24232         * modules/unictype/category-Cc: Likewise.
24233         * modules/unictype/category-Cf: Likewise.
24234         * modules/unictype/category-Cn: Likewise.
24235         * modules/unictype/category-Co: Likewise.
24236         * modules/unictype/category-Cs: Likewise.
24237         * modules/unictype/category-L: Likewise.
24238         * modules/unictype/category-Ll: Likewise.
24239         * modules/unictype/category-Lm: Likewise.
24240         * modules/unictype/category-Lo: Likewise.
24241         * modules/unictype/category-Lt: Likewise.
24242         * modules/unictype/category-Lu: Likewise.
24243         * modules/unictype/category-M: Likewise.
24244         * modules/unictype/category-Mc: Likewise.
24245         * modules/unictype/category-Me: Likewise.
24246         * modules/unictype/category-Mn: Likewise.
24247         * modules/unictype/category-N: Likewise.
24248         * modules/unictype/category-Nd: Likewise.
24249         * modules/unictype/category-Nl: Likewise.
24250         * modules/unictype/category-No: Likewise.
24251         * modules/unictype/category-P: Likewise.
24252         * modules/unictype/category-Pc: Likewise.
24253         * modules/unictype/category-Pd: Likewise.
24254         * modules/unictype/category-Pe: Likewise.
24255         * modules/unictype/category-Pf: Likewise.
24256         * modules/unictype/category-Pi: Likewise.
24257         * modules/unictype/category-Po: Likewise.
24258         * modules/unictype/category-Ps: Likewise.
24259         * modules/unictype/category-S: Likewise.
24260         * modules/unictype/category-Sc: Likewise.
24261         * modules/unictype/category-Sk: Likewise.
24262         * modules/unictype/category-Sm: Likewise.
24263         * modules/unictype/category-So: Likewise.
24264         * modules/unictype/category-Z: Likewise.
24265         * modules/unictype/category-Zl: Likewise.
24266         * modules/unictype/category-Zp: Likewise.
24267         * modules/unictype/category-Zs: Likewise.
24268         * modules/unictype/category-and: Likewise.
24269         * modules/unictype/category-and-not: Likewise.
24270         * modules/unictype/category-byname: Likewise.
24271         * modules/unictype/category-name: Likewise.
24272         * modules/unictype/category-none: Likewise.
24273         * modules/unictype/category-of: Likewise.
24274         * modules/unictype/category-or: Likewise.
24275         * modules/unictype/category-test: Likewise.
24276         * modules/unictype/combining-class: Likewise.
24277         * modules/unictype/ctype-alnum: Likewise.
24278         * modules/unictype/ctype-alpha: Likewise.
24279         * modules/unictype/ctype-blank: Likewise.
24280         * modules/unictype/ctype-cntrl: Likewise.
24281         * modules/unictype/ctype-digit: Likewise.
24282         * modules/unictype/ctype-graph: Likewise.
24283         * modules/unictype/ctype-lower: Likewise.
24284         * modules/unictype/ctype-print: Likewise.
24285         * modules/unictype/ctype-punct: Likewise.
24286         * modules/unictype/ctype-space: Likewise.
24287         * modules/unictype/ctype-upper: Likewise.
24288         * modules/unictype/ctype-xdigit: Likewise.
24289         * modules/unictype/decimal-digit: Likewise.
24290         * modules/unictype/digit: Likewise.
24291         * modules/unictype/mirror: Likewise.
24292         * modules/unictype/numeric: Likewise.
24293         * modules/unictype/property-alphabetic: Likewise.
24294         * modules/unictype/property-ascii-hex-digit: Likewise.
24295         * modules/unictype/property-bidi-arabic-digit: Likewise.
24296         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
24297         * modules/unictype/property-bidi-block-separator: Likewise.
24298         * modules/unictype/property-bidi-boundary-neutral: Likewise.
24299         * modules/unictype/property-bidi-common-separator: Likewise.
24300         * modules/unictype/property-bidi-control: Likewise.
24301         * modules/unictype/property-bidi-embedding-or-override: Likewise.
24302         * modules/unictype/property-bidi-eur-num-separator: Likewise.
24303         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
24304         * modules/unictype/property-bidi-european-digit: Likewise.
24305         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
24306         * modules/unictype/property-bidi-left-to-right: Likewise.
24307         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
24308         * modules/unictype/property-bidi-other-neutral: Likewise.
24309         * modules/unictype/property-bidi-pdf: Likewise.
24310         * modules/unictype/property-bidi-segment-separator: Likewise.
24311         * modules/unictype/property-bidi-whitespace: Likewise.
24312         * modules/unictype/property-byname: Likewise.
24313         * modules/unictype/property-combining: Likewise.
24314         * modules/unictype/property-composite: Likewise.
24315         * modules/unictype/property-currency-symbol: Likewise.
24316         * modules/unictype/property-dash: Likewise.
24317         * modules/unictype/property-decimal-digit: Likewise.
24318         * modules/unictype/property-default-ignorable-code-point: Likewise.
24319         * modules/unictype/property-deprecated: Likewise.
24320         * modules/unictype/property-diacritic: Likewise.
24321         * modules/unictype/property-extender: Likewise.
24322         * modules/unictype/property-format-control: Likewise.
24323         * modules/unictype/property-grapheme-base: Likewise.
24324         * modules/unictype/property-grapheme-extend: Likewise.
24325         * modules/unictype/property-grapheme-link: Likewise.
24326         * modules/unictype/property-hex-digit: Likewise.
24327         * modules/unictype/property-hyphen: Likewise.
24328         * modules/unictype/property-id-continue: Likewise.
24329         * modules/unictype/property-id-start: Likewise.
24330         * modules/unictype/property-ideographic: Likewise.
24331         * modules/unictype/property-ids-binary-operator: Likewise.
24332         * modules/unictype/property-ids-trinary-operator: Likewise.
24333         * modules/unictype/property-ignorable-control: Likewise.
24334         * modules/unictype/property-iso-control: Likewise.
24335         * modules/unictype/property-join-control: Likewise.
24336         * modules/unictype/property-left-of-pair: Likewise.
24337         * modules/unictype/property-line-separator: Likewise.
24338         * modules/unictype/property-logical-order-exception: Likewise.
24339         * modules/unictype/property-lowercase: Likewise.
24340         * modules/unictype/property-math: Likewise.
24341         * modules/unictype/property-non-break: Likewise.
24342         * modules/unictype/property-not-a-character: Likewise.
24343         * modules/unictype/property-numeric: Likewise.
24344         * modules/unictype/property-other-alphabetic: Likewise.
24345         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
24346         * modules/unictype/property-other-grapheme-extend: Likewise.
24347         * modules/unictype/property-other-id-continue: Likewise.
24348         * modules/unictype/property-other-id-start: Likewise.
24349         * modules/unictype/property-other-lowercase: Likewise.
24350         * modules/unictype/property-other-math: Likewise.
24351         * modules/unictype/property-other-uppercase: Likewise.
24352         * modules/unictype/property-paired-punctuation: Likewise.
24353         * modules/unictype/property-paragraph-separator: Likewise.
24354         * modules/unictype/property-pattern-syntax: Likewise.
24355         * modules/unictype/property-pattern-white-space: Likewise.
24356         * modules/unictype/property-private-use: Likewise.
24357         * modules/unictype/property-punctuation: Likewise.
24358         * modules/unictype/property-quotation-mark: Likewise.
24359         * modules/unictype/property-radical: Likewise.
24360         * modules/unictype/property-sentence-terminal: Likewise.
24361         * modules/unictype/property-soft-dotted: Likewise.
24362         * modules/unictype/property-space: Likewise.
24363         * modules/unictype/property-terminal-punctuation: Likewise.
24364         * modules/unictype/property-test: Likewise.
24365         * modules/unictype/property-titlecase: Likewise.
24366         * modules/unictype/property-unassigned-code-value: Likewise.
24367         * modules/unictype/property-unified-ideograph: Likewise.
24368         * modules/unictype/property-uppercase: Likewise.
24369         * modules/unictype/property-variation-selector: Likewise.
24370         * modules/unictype/property-white-space: Likewise.
24371         * modules/unictype/property-xid-continue: Likewise.
24372         * modules/unictype/property-xid-start: Likewise.
24373         * modules/unictype/property-zero-width: Likewise.
24374         * modules/unictype/scripts: Likewise.
24375         * modules/unictype/syntax-c-ident: Likewise.
24376         * modules/unictype/syntax-c-whitespace: Likewise.
24377         * modules/unictype/syntax-java-ident: Likewise.
24378         * modules/unictype/syntax-java-whitespace: Likewise.
24379         * modules/unilbrk/u8-possible-linebreaks: Likewise.
24380         * modules/unilbrk/u8-width-linebreaks: Likewise.
24381         * modules/unilbrk/u16-possible-linebreaks: Likewise.
24382         * modules/unilbrk/u16-width-linebreaks: Likewise.
24383         * modules/unilbrk/u32-possible-linebreaks: Likewise.
24384         * modules/unilbrk/u32-width-linebreaks: Likewise.
24385         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
24386         * modules/unilbrk/ulc-width-linebreaks: Likewise.
24387         * modules/uniname/uniname: Likewise.
24388         * modules/uninorm/canonical-decomposition: Likewise.
24389         * modules/uninorm/composition: Likewise.
24390         * modules/uninorm/decomposing-form: Likewise.
24391         * modules/uninorm/decomposition: Likewise.
24392         * modules/uninorm/filter: Likewise.
24393         * modules/uninorm/nfc: Likewise.
24394         * modules/uninorm/nfd: Likewise.
24395         * modules/uninorm/nfkc: Likewise.
24396         * modules/uninorm/nfkd: Likewise.
24397         * modules/uninorm/u8-normalize: Likewise.
24398         * modules/uninorm/u8-normcmp: Likewise.
24399         * modules/uninorm/u8-normcoll: Likewise.
24400         * modules/uninorm/u8-normxfrm: Likewise.
24401         * modules/uninorm/u16-normalize: Likewise.
24402         * modules/uninorm/u16-normcmp: Likewise.
24403         * modules/uninorm/u16-normcoll: Likewise.
24404         * modules/uninorm/u16-normxfrm: Likewise.
24405         * modules/uninorm/u32-normalize: Likewise.
24406         * modules/uninorm/u32-normcmp: Likewise.
24407         * modules/uninorm/u32-normcoll: Likewise.
24408         * modules/uninorm/u32-normxfrm: Likewise.
24409         * modules/unistdio/u8-asnprintf: Likewise.
24410         * modules/unistdio/u8-asprintf: Likewise.
24411         * modules/unistdio/u8-snprintf: Likewise.
24412         * modules/unistdio/u8-sprintf: Likewise.
24413         * modules/unistdio/u8-u8-asnprintf: Likewise.
24414         * modules/unistdio/u8-u8-asprintf: Likewise.
24415         * modules/unistdio/u8-u8-snprintf: Likewise.
24416         * modules/unistdio/u8-u8-sprintf: Likewise.
24417         * modules/unistdio/u8-u8-vasnprintf: Likewise.
24418         * modules/unistdio/u8-u8-vasprintf: Likewise.
24419         * modules/unistdio/u8-u8-vsnprintf: Likewise.
24420         * modules/unistdio/u8-u8-vsprintf: Likewise.
24421         * modules/unistdio/u8-vasnprintf: Likewise.
24422         * modules/unistdio/u8-vasprintf: Likewise.
24423         * modules/unistdio/u8-vsnprintf: Likewise.
24424         * modules/unistdio/u8-vsprintf: Likewise.
24425         * modules/unistdio/u16-asnprintf: Likewise.
24426         * modules/unistdio/u16-asprintf: Likewise.
24427         * modules/unistdio/u16-snprintf: Likewise.
24428         * modules/unistdio/u16-sprintf: Likewise.
24429         * modules/unistdio/u16-u16-asnprintf: Likewise.
24430         * modules/unistdio/u16-u16-asprintf: Likewise.
24431         * modules/unistdio/u16-u16-snprintf: Likewise.
24432         * modules/unistdio/u16-u16-sprintf: Likewise.
24433         * modules/unistdio/u16-u16-vasnprintf: Likewise.
24434         * modules/unistdio/u16-u16-vasprintf: Likewise.
24435         * modules/unistdio/u16-u16-vsnprintf: Likewise.
24436         * modules/unistdio/u16-u16-vsprintf: Likewise.
24437         * modules/unistdio/u16-vasnprintf: Likewise.
24438         * modules/unistdio/u16-vasprintf: Likewise.
24439         * modules/unistdio/u16-vsnprintf: Likewise.
24440         * modules/unistdio/u16-vsprintf: Likewise.
24441         * modules/unistdio/u32-asnprintf: Likewise.
24442         * modules/unistdio/u32-asprintf: Likewise.
24443         * modules/unistdio/u32-snprintf: Likewise.
24444         * modules/unistdio/u32-sprintf: Likewise.
24445         * modules/unistdio/u32-u32-asnprintf: Likewise.
24446         * modules/unistdio/u32-u32-asprintf: Likewise.
24447         * modules/unistdio/u32-u32-snprintf: Likewise.
24448         * modules/unistdio/u32-u32-sprintf: Likewise.
24449         * modules/unistdio/u32-u32-vasnprintf: Likewise.
24450         * modules/unistdio/u32-u32-vasprintf: Likewise.
24451         * modules/unistdio/u32-u32-vsnprintf: Likewise.
24452         * modules/unistdio/u32-u32-vsprintf: Likewise.
24453         * modules/unistdio/u32-vasnprintf: Likewise.
24454         * modules/unistdio/u32-vasprintf: Likewise.
24455         * modules/unistdio/u32-vsnprintf: Likewise.
24456         * modules/unistdio/u32-vsprintf: Likewise.
24457         * modules/unistdio/ulc-asnprintf: Likewise.
24458         * modules/unistdio/ulc-asprintf: Likewise.
24459         * modules/unistdio/ulc-fprintf: Likewise.
24460         * modules/unistdio/ulc-snprintf: Likewise.
24461         * modules/unistdio/ulc-sprintf: Likewise.
24462         * modules/unistdio/ulc-vasnprintf: Likewise.
24463         * modules/unistdio/ulc-vasprintf: Likewise.
24464         * modules/unistdio/ulc-vfprintf: Likewise.
24465         * modules/unistdio/ulc-vsnprintf: Likewise.
24466         * modules/unistdio/ulc-vsprintf: Likewise.
24467         * modules/unistr/u8-check: Likewise.
24468         * modules/unistr/u8-chr: Likewise.
24469         * modules/unistr/u8-cmp: Likewise.
24470         * modules/unistr/u8-cmp2: Likewise.
24471         * modules/unistr/u8-cpy: Likewise.
24472         * modules/unistr/u8-cpy-alloc: Likewise.
24473         * modules/unistr/u8-endswith: Likewise.
24474         * modules/unistr/u8-mblen: Likewise.
24475         * modules/unistr/u8-mbsnlen: Likewise.
24476         * modules/unistr/u8-mbtouc: Likewise.
24477         * modules/unistr/u8-mbtouc-unsafe: Likewise.
24478         * modules/unistr/u8-mbtoucr: Likewise.
24479         * modules/unistr/u8-move: Likewise.
24480         * modules/unistr/u8-next: Likewise.
24481         * modules/unistr/u8-prev: Likewise.
24482         * modules/unistr/u8-set: Likewise.
24483         * modules/unistr/u8-startswith: Likewise.
24484         * modules/unistr/u8-stpcpy: Likewise.
24485         * modules/unistr/u8-stpncpy: Likewise.
24486         * modules/unistr/u8-strcat: Likewise.
24487         * modules/unistr/u8-strchr: Likewise.
24488         * modules/unistr/u8-strcmp: Likewise.
24489         * modules/unistr/u8-strcoll: Likewise.
24490         * modules/unistr/u8-strcpy: Likewise.
24491         * modules/unistr/u8-strcspn: Likewise.
24492         * modules/unistr/u8-strdup: Likewise.
24493         * modules/unistr/u8-strlen: Likewise.
24494         * modules/unistr/u8-strmblen: Likewise.
24495         * modules/unistr/u8-strmbtouc: Likewise.
24496         * modules/unistr/u8-strncat: Likewise.
24497         * modules/unistr/u8-strncmp: Likewise.
24498         * modules/unistr/u8-strncpy: Likewise.
24499         * modules/unistr/u8-strnlen: Likewise.
24500         * modules/unistr/u8-strpbrk: Likewise.
24501         * modules/unistr/u8-strrchr: Likewise.
24502         * modules/unistr/u8-strspn: Likewise.
24503         * modules/unistr/u8-strstr: Likewise.
24504         * modules/unistr/u8-strtok: Likewise.
24505         * modules/unistr/u8-to-u16: Likewise.
24506         * modules/unistr/u8-to-u32: Likewise.
24507         * modules/unistr/u8-uctomb: Likewise.
24508         * modules/unistr/u16-check: Likewise.
24509         * modules/unistr/u16-chr: Likewise.
24510         * modules/unistr/u16-cmp: Likewise.
24511         * modules/unistr/u16-cmp2: Likewise.
24512         * modules/unistr/u16-cpy: Likewise.
24513         * modules/unistr/u16-cpy-alloc: Likewise.
24514         * modules/unistr/u16-endswith: Likewise.
24515         * modules/unistr/u16-mblen: Likewise.
24516         * modules/unistr/u16-mbsnlen: Likewise.
24517         * modules/unistr/u16-mbtouc: Likewise.
24518         * modules/unistr/u16-mbtouc-unsafe: Likewise.
24519         * modules/unistr/u16-mbtoucr: Likewise.
24520         * modules/unistr/u16-move: Likewise.
24521         * modules/unistr/u16-next: Likewise.
24522         * modules/unistr/u16-prev: Likewise.
24523         * modules/unistr/u16-set: Likewise.
24524         * modules/unistr/u16-startswith: Likewise.
24525         * modules/unistr/u16-stpcpy: Likewise.
24526         * modules/unistr/u16-stpncpy: Likewise.
24527         * modules/unistr/u16-strcat: Likewise.
24528         * modules/unistr/u16-strchr: Likewise.
24529         * modules/unistr/u16-strcmp: Likewise.
24530         * modules/unistr/u16-strcoll: Likewise.
24531         * modules/unistr/u16-strcpy: Likewise.
24532         * modules/unistr/u16-strcspn: Likewise.
24533         * modules/unistr/u16-strdup: Likewise.
24534         * modules/unistr/u16-strlen: Likewise.
24535         * modules/unistr/u16-strmblen: Likewise.
24536         * modules/unistr/u16-strmbtouc: Likewise.
24537         * modules/unistr/u16-strncat: Likewise.
24538         * modules/unistr/u16-strncmp: Likewise.
24539         * modules/unistr/u16-strncpy: Likewise.
24540         * modules/unistr/u16-strnlen: Likewise.
24541         * modules/unistr/u16-strpbrk: Likewise.
24542         * modules/unistr/u16-strrchr: Likewise.
24543         * modules/unistr/u16-strspn: Likewise.
24544         * modules/unistr/u16-strstr: Likewise.
24545         * modules/unistr/u16-strtok: Likewise.
24546         * modules/unistr/u16-to-u32: Likewise.
24547         * modules/unistr/u16-to-u8: Likewise.
24548         * modules/unistr/u16-uctomb: Likewise.
24549         * modules/unistr/u32-check: Likewise.
24550         * modules/unistr/u32-chr: Likewise.
24551         * modules/unistr/u32-cmp: Likewise.
24552         * modules/unistr/u32-cmp2: Likewise.
24553         * modules/unistr/u32-cpy: Likewise.
24554         * modules/unistr/u32-cpy-alloc: Likewise.
24555         * modules/unistr/u32-endswith: Likewise.
24556         * modules/unistr/u32-mblen: Likewise.
24557         * modules/unistr/u32-mbsnlen: Likewise.
24558         * modules/unistr/u32-mbtouc: Likewise.
24559         * modules/unistr/u32-mbtouc-unsafe: Likewise.
24560         * modules/unistr/u32-mbtoucr: Likewise.
24561         * modules/unistr/u32-move: Likewise.
24562         * modules/unistr/u32-next: Likewise.
24563         * modules/unistr/u32-prev: Likewise.
24564         * modules/unistr/u32-set: Likewise.
24565         * modules/unistr/u32-startswith: Likewise.
24566         * modules/unistr/u32-stpcpy: Likewise.
24567         * modules/unistr/u32-stpncpy: Likewise.
24568         * modules/unistr/u32-strcat: Likewise.
24569         * modules/unistr/u32-strchr: Likewise.
24570         * modules/unistr/u32-strcmp: Likewise.
24571         * modules/unistr/u32-strcoll: Likewise.
24572         * modules/unistr/u32-strcpy: Likewise.
24573         * modules/unistr/u32-strcspn: Likewise.
24574         * modules/unistr/u32-strdup: Likewise.
24575         * modules/unistr/u32-strlen: Likewise.
24576         * modules/unistr/u32-strmblen: Likewise.
24577         * modules/unistr/u32-strmbtouc: Likewise.
24578         * modules/unistr/u32-strncat: Likewise.
24579         * modules/unistr/u32-strncmp: Likewise.
24580         * modules/unistr/u32-strncpy: Likewise.
24581         * modules/unistr/u32-strnlen: Likewise.
24582         * modules/unistr/u32-strpbrk: Likewise.
24583         * modules/unistr/u32-strrchr: Likewise.
24584         * modules/unistr/u32-strspn: Likewise.
24585         * modules/unistr/u32-strstr: Likewise.
24586         * modules/unistr/u32-strtok: Likewise.
24587         * modules/unistr/u32-to-u16: Likewise.
24588         * modules/unistr/u32-to-u8: Likewise.
24589         * modules/unistr/u32-uctomb: Likewise.
24590         * modules/uniwbrk/u8-wordbreaks: Likewise.
24591         * modules/uniwbrk/u16-wordbreaks: Likewise.
24592         * modules/uniwbrk/u32-wordbreaks: Likewise.
24593         * modules/uniwbrk/ulc-wordbreaks: Likewise.
24594         * modules/uniwbrk/wordbreak-property: Likewise.
24595         * modules/uniwidth/u8-strwidth: Likewise.
24596         * modules/uniwidth/u8-width: Likewise.
24597         * modules/uniwidth/u16-strwidth: Likewise.
24598         * modules/uniwidth/u16-width: Likewise.
24599         * modules/uniwidth/u32-strwidth: Likewise.
24600         * modules/uniwidth/u32-width: Likewise.
24601         * modules/uniwidth/width: Likewise.
24602         * modules/unicase/cased-tests (Makefile.am): Link all test programs
24603         with $(LIBUNISTRING).
24604         * modules/unicase/ignorable-tests: Likewise.
24605         * modules/unicase/locale-language-tests: Likewise.
24606         * modules/unicase/tolower-tests: Likewise.
24607         * modules/unicase/totitle-tests: Likewise.
24608         * modules/unicase/toupper-tests: Likewise.
24609         * modules/unicase/u8-casecmp-tests: Likewise.
24610         * modules/unicase/u8-casecoll-tests: Likewise.
24611         * modules/unicase/u8-casefold-tests: Likewise.
24612         * modules/unicase/u8-is-cased-tests: Likewise.
24613         * modules/unicase/u8-is-casefolded-tests: Likewise.
24614         * modules/unicase/u8-is-lowercase-tests: Likewise.
24615         * modules/unicase/u8-is-titlecase-tests: Likewise.
24616         * modules/unicase/u8-is-uppercase-tests: Likewise.
24617         * modules/unicase/u8-tolower-tests: Likewise.
24618         * modules/unicase/u8-totitle-tests: Likewise.
24619         * modules/unicase/u8-toupper-tests: Likewise.
24620         * modules/unicase/u16-casecmp-tests: Likewise.
24621         * modules/unicase/u16-casecoll-tests: Likewise.
24622         * modules/unicase/u16-casefold-tests: Likewise.
24623         * modules/unicase/u16-is-cased-tests: Likewise.
24624         * modules/unicase/u16-is-casefolded-tests: Likewise.
24625         * modules/unicase/u16-is-lowercase-tests: Likewise.
24626         * modules/unicase/u16-is-titlecase-tests: Likewise.
24627         * modules/unicase/u16-is-uppercase-tests: Likewise.
24628         * modules/unicase/u16-tolower-tests: Likewise.
24629         * modules/unicase/u16-totitle-tests: Likewise.
24630         * modules/unicase/u16-toupper-tests: Likewise.
24631         * modules/unicase/u32-casecmp-tests: Likewise.
24632         * modules/unicase/u32-casecoll-tests: Likewise.
24633         * modules/unicase/u32-casefold-tests: Likewise.
24634         * modules/unicase/u32-is-cased-tests: Likewise.
24635         * modules/unicase/u32-is-casefolded-tests: Likewise.
24636         * modules/unicase/u32-is-lowercase-tests: Likewise.
24637         * modules/unicase/u32-is-titlecase-tests: Likewise.
24638         * modules/unicase/u32-is-uppercase-tests: Likewise.
24639         * modules/unicase/u32-tolower-tests: Likewise.
24640         * modules/unicase/u32-totitle-tests: Likewise.
24641         * modules/unicase/u32-toupper-tests: Likewise.
24642         * modules/unicase/ulc-casecmp-tests: Likewise.
24643         * modules/unicase/ulc-casecoll-tests: Likewise.
24644         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
24645         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
24646         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
24647         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
24648         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
24649         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
24650         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
24651         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
24652         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
24653         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
24654         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
24655         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
24656         * modules/unictype/bidicategory-byname-tests: Likewise.
24657         * modules/unictype/bidicategory-name-tests: Likewise.
24658         * modules/unictype/bidicategory-of-tests: Likewise.
24659         * modules/unictype/bidicategory-test-tests: Likewise.
24660         * modules/unictype/block-list-tests: Likewise.
24661         * modules/unictype/block-of-tests: Likewise.
24662         * modules/unictype/block-test-tests: Likewise.
24663         * modules/unictype/category-C-tests: Likewise.
24664         * modules/unictype/category-Cc-tests: Likewise.
24665         * modules/unictype/category-Cf-tests: Likewise.
24666         * modules/unictype/category-Cn-tests: Likewise.
24667         * modules/unictype/category-Co-tests: Likewise.
24668         * modules/unictype/category-Cs-tests: Likewise.
24669         * modules/unictype/category-L-tests: Likewise.
24670         * modules/unictype/category-Ll-tests: Likewise.
24671         * modules/unictype/category-Lm-tests: Likewise.
24672         * modules/unictype/category-Lo-tests: Likewise.
24673         * modules/unictype/category-Lt-tests: Likewise.
24674         * modules/unictype/category-Lu-tests: Likewise.
24675         * modules/unictype/category-M-tests: Likewise.
24676         * modules/unictype/category-Mc-tests: Likewise.
24677         * modules/unictype/category-Me-tests: Likewise.
24678         * modules/unictype/category-Mn-tests: Likewise.
24679         * modules/unictype/category-N-tests: Likewise.
24680         * modules/unictype/category-Nd-tests: Likewise.
24681         * modules/unictype/category-Nl-tests: Likewise.
24682         * modules/unictype/category-No-tests: Likewise.
24683         * modules/unictype/category-P-tests: Likewise.
24684         * modules/unictype/category-Pc-tests: Likewise.
24685         * modules/unictype/category-Pd-tests: Likewise.
24686         * modules/unictype/category-Pe-tests: Likewise.
24687         * modules/unictype/category-Pf-tests: Likewise.
24688         * modules/unictype/category-Pi-tests: Likewise.
24689         * modules/unictype/category-Po-tests: Likewise.
24690         * modules/unictype/category-Ps-tests: Likewise.
24691         * modules/unictype/category-S-tests: Likewise.
24692         * modules/unictype/category-Sc-tests: Likewise.
24693         * modules/unictype/category-Sk-tests: Likewise.
24694         * modules/unictype/category-Sm-tests: Likewise.
24695         * modules/unictype/category-So-tests: Likewise.
24696         * modules/unictype/category-Z-tests: Likewise.
24697         * modules/unictype/category-Zl-tests: Likewise.
24698         * modules/unictype/category-Zp-tests: Likewise.
24699         * modules/unictype/category-Zs-tests: Likewise.
24700         * modules/unictype/category-and-not-tests: Likewise.
24701         * modules/unictype/category-and-tests: Likewise.
24702         * modules/unictype/category-byname-tests: Likewise.
24703         * modules/unictype/category-name-tests: Likewise.
24704         * modules/unictype/category-none-tests: Likewise.
24705         * modules/unictype/category-of-tests: Likewise.
24706         * modules/unictype/category-or-tests: Likewise.
24707         * modules/unictype/category-test-withtable-tests: Likewise.
24708         * modules/unictype/combining-class-tests: Likewise.
24709         * modules/unictype/ctype-alnum-tests: Likewise.
24710         * modules/unictype/ctype-alpha-tests: Likewise.
24711         * modules/unictype/ctype-blank-tests: Likewise.
24712         * modules/unictype/ctype-cntrl-tests: Likewise.
24713         * modules/unictype/ctype-digit-tests: Likewise.
24714         * modules/unictype/ctype-graph-tests: Likewise.
24715         * modules/unictype/ctype-lower-tests: Likewise.
24716         * modules/unictype/ctype-print-tests: Likewise.
24717         * modules/unictype/ctype-punct-tests: Likewise.
24718         * modules/unictype/ctype-space-tests: Likewise.
24719         * modules/unictype/ctype-upper-tests: Likewise.
24720         * modules/unictype/ctype-xdigit-tests: Likewise.
24721         * modules/unictype/decimal-digit-tests: Likewise.
24722         * modules/unictype/digit-tests: Likewise.
24723         * modules/unictype/mirror-tests: Likewise.
24724         * modules/unictype/numeric-tests: Likewise.
24725         * modules/unictype/property-alphabetic-tests: Likewise.
24726         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
24727         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
24728         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
24729         * modules/unictype/property-bidi-block-separator-tests: Likewise.
24730         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
24731         * modules/unictype/property-bidi-common-separator-tests: Likewise.
24732         * modules/unictype/property-bidi-control-tests: Likewise.
24733         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
24734         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
24735         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
24736         * modules/unictype/property-bidi-european-digit-tests: Likewise.
24737         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
24738         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
24739         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
24740         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
24741         * modules/unictype/property-bidi-pdf-tests: Likewise.
24742         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
24743         * modules/unictype/property-bidi-whitespace-tests: Likewise.
24744         * modules/unictype/property-byname-tests: Likewise.
24745         * modules/unictype/property-combining-tests: Likewise.
24746         * modules/unictype/property-composite-tests: Likewise.
24747         * modules/unictype/property-currency-symbol-tests: Likewise.
24748         * modules/unictype/property-dash-tests: Likewise.
24749         * modules/unictype/property-decimal-digit-tests: Likewise.
24750         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
24751         * modules/unictype/property-deprecated-tests: Likewise.
24752         * modules/unictype/property-diacritic-tests: Likewise.
24753         * modules/unictype/property-extender-tests: Likewise.
24754         * modules/unictype/property-format-control-tests: Likewise.
24755         * modules/unictype/property-grapheme-base-tests: Likewise.
24756         * modules/unictype/property-grapheme-extend-tests: Likewise.
24757         * modules/unictype/property-grapheme-link-tests: Likewise.
24758         * modules/unictype/property-hex-digit-tests: Likewise.
24759         * modules/unictype/property-hyphen-tests: Likewise.
24760         * modules/unictype/property-id-continue-tests: Likewise.
24761         * modules/unictype/property-id-start-tests: Likewise.
24762         * modules/unictype/property-ideographic-tests: Likewise.
24763         * modules/unictype/property-ids-binary-operator-tests: Likewise.
24764         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
24765         * modules/unictype/property-ignorable-control-tests: Likewise.
24766         * modules/unictype/property-iso-control-tests: Likewise.
24767         * modules/unictype/property-join-control-tests: Likewise.
24768         * modules/unictype/property-left-of-pair-tests: Likewise.
24769         * modules/unictype/property-line-separator-tests: Likewise.
24770         * modules/unictype/property-logical-order-exception-tests: Likewise.
24771         * modules/unictype/property-lowercase-tests: Likewise.
24772         * modules/unictype/property-math-tests: Likewise.
24773         * modules/unictype/property-non-break-tests: Likewise.
24774         * modules/unictype/property-not-a-character-tests: Likewise.
24775         * modules/unictype/property-numeric-tests: Likewise.
24776         * modules/unictype/property-other-alphabetic-tests: Likewise.
24777         * modules/unictype/property-other-default-ignorable-code-point-tests:
24778         Likewise.
24779         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
24780         * modules/unictype/property-other-id-continue-tests: Likewise.
24781         * modules/unictype/property-other-id-start-tests: Likewise.
24782         * modules/unictype/property-other-lowercase-tests: Likewise.
24783         * modules/unictype/property-other-math-tests: Likewise.
24784         * modules/unictype/property-other-uppercase-tests: Likewise.
24785         * modules/unictype/property-paired-punctuation-tests: Likewise.
24786         * modules/unictype/property-paragraph-separator-tests: Likewise.
24787         * modules/unictype/property-pattern-syntax-tests: Likewise.
24788         * modules/unictype/property-pattern-white-space-tests: Likewise.
24789         * modules/unictype/property-private-use-tests: Likewise.
24790         * modules/unictype/property-punctuation-tests: Likewise.
24791         * modules/unictype/property-quotation-mark-tests: Likewise.
24792         * modules/unictype/property-radical-tests: Likewise.
24793         * modules/unictype/property-sentence-terminal-tests: Likewise.
24794         * modules/unictype/property-soft-dotted-tests: Likewise.
24795         * modules/unictype/property-space-tests: Likewise.
24796         * modules/unictype/property-terminal-punctuation-tests: Likewise.
24797         * modules/unictype/property-test-tests: Likewise.
24798         * modules/unictype/property-titlecase-tests: Likewise.
24799         * modules/unictype/property-unassigned-code-value-tests: Likewise.
24800         * modules/unictype/property-unified-ideograph-tests: Likewise.
24801         * modules/unictype/property-uppercase-tests: Likewise.
24802         * modules/unictype/property-variation-selector-tests: Likewise.
24803         * modules/unictype/property-white-space-tests: Likewise.
24804         * modules/unictype/property-xid-continue-tests: Likewise.
24805         * modules/unictype/property-xid-start-tests: Likewise.
24806         * modules/unictype/property-zero-width-tests: Likewise.
24807         * modules/unictype/scripts-tests: Likewise.
24808         * modules/unictype/syntax-c-ident-tests: Likewise.
24809         * modules/unictype/syntax-c-whitespace-tests: Likewise.
24810         * modules/unictype/syntax-java-ident-tests: Likewise.
24811         * modules/unictype/syntax-java-whitespace-tests: Likewise.
24812         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
24813         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
24814         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
24815         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
24816         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
24817         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
24818         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
24819         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
24820         * modules/uniname/uniname-tests: Likewise.
24821         * modules/uninorm/canonical-decomposition-tests: Likewise.
24822         * modules/uninorm/compat-decomposition-tests: Likewise.
24823         * modules/uninorm/composition-tests: Likewise.
24824         * modules/uninorm/decomposing-form-tests: Likewise.
24825         * modules/uninorm/decomposition-tests: Likewise.
24826         * modules/uninorm/filter-tests: Likewise.
24827         * modules/uninorm/nfc-tests: Likewise.
24828         * modules/uninorm/nfd-tests: Likewise.
24829         * modules/uninorm/nfkc-tests: Likewise.
24830         * modules/uninorm/nfkd-tests: Likewise.
24831         * modules/uninorm/u8-normcmp-tests: Likewise.
24832         * modules/uninorm/u8-normcoll-tests: Likewise.
24833         * modules/uninorm/u16-normcmp-tests: Likewise.
24834         * modules/uninorm/u16-normcoll-tests: Likewise.
24835         * modules/uninorm/u32-normcmp-tests: Likewise.
24836         * modules/uninorm/u32-normcoll-tests: Likewise.
24837         * modules/unistdio/u8-asnprintf-tests: Likewise.
24838         * modules/unistdio/u8-vasnprintf-tests: Likewise.
24839         * modules/unistdio/u8-vasprintf-tests: Likewise.
24840         * modules/unistdio/u8-vsnprintf-tests: Likewise.
24841         * modules/unistdio/u8-vsprintf-tests: Likewise.
24842         * modules/unistdio/u16-asnprintf-tests: Likewise.
24843         * modules/unistdio/u16-vasnprintf-tests: Likewise.
24844         * modules/unistdio/u16-vasprintf-tests: Likewise.
24845         * modules/unistdio/u16-vsnprintf-tests: Likewise.
24846         * modules/unistdio/u16-vsprintf-tests: Likewise.
24847         * modules/unistdio/u32-asnprintf-tests: Likewise.
24848         * modules/unistdio/u32-vasnprintf-tests: Likewise.
24849         * modules/unistdio/u32-vasprintf-tests: Likewise.
24850         * modules/unistdio/u32-vsnprintf-tests: Likewise.
24851         * modules/unistdio/u32-vsprintf-tests: Likewise.
24852         * modules/unistdio/ulc-asnprintf-tests: Likewise.
24853         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
24854         * modules/unistdio/ulc-vasprintf-tests: Likewise.
24855         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
24856         * modules/unistdio/ulc-vsprintf-tests: Likewise.
24857         * modules/unistr/u8-check-tests: Likewise.
24858         * modules/unistr/u8-chr-tests: Likewise.
24859         * modules/unistr/u8-cmp-tests: Likewise.
24860         * modules/unistr/u8-cmp2-tests: Likewise.
24861         * modules/unistr/u8-cpy-alloc-tests: Likewise.
24862         * modules/unistr/u8-cpy-tests: Likewise.
24863         * modules/unistr/u8-mblen-tests: Likewise.
24864         * modules/unistr/u8-mbsnlen-tests: Likewise.
24865         * modules/unistr/u8-mbtouc-tests: Likewise.
24866         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
24867         * modules/unistr/u8-mbtoucr-tests: Likewise.
24868         * modules/unistr/u8-move-tests: Likewise.
24869         * modules/unistr/u8-next-tests: Likewise.
24870         * modules/unistr/u8-prev-tests: Likewise.
24871         * modules/unistr/u8-set-tests: Likewise.
24872         * modules/unistr/u8-stpcpy-tests: Likewise.
24873         * modules/unistr/u8-stpncpy-tests: Likewise.
24874         * modules/unistr/u8-strcat-tests: Likewise.
24875         * modules/unistr/u8-strcmp-tests: Likewise.
24876         * modules/unistr/u8-strcoll-tests: Likewise.
24877         * modules/unistr/u8-strcpy-tests: Likewise.
24878         * modules/unistr/u8-strdup-tests: Likewise.
24879         * modules/unistr/u8-strlen-tests: Likewise.
24880         * modules/unistr/u8-strmblen-tests: Likewise.
24881         * modules/unistr/u8-strmbtouc-tests: Likewise.
24882         * modules/unistr/u8-strncat-tests: Likewise.
24883         * modules/unistr/u8-strncmp-tests: Likewise.
24884         * modules/unistr/u8-strncpy-tests: Likewise.
24885         * modules/unistr/u8-strnlen-tests: Likewise.
24886         * modules/unistr/u8-to-u16-tests: Likewise.
24887         * modules/unistr/u8-to-u32-tests: Likewise.
24888         * modules/unistr/u8-uctomb-tests: Likewise.
24889         * modules/unistr/u16-check-tests: Likewise.
24890         * modules/unistr/u16-chr-tests: Likewise.
24891         * modules/unistr/u16-cmp-tests: Likewise.
24892         * modules/unistr/u16-cmp2-tests: Likewise.
24893         * modules/unistr/u16-cpy-alloc-tests: Likewise.
24894         * modules/unistr/u16-cpy-tests: Likewise.
24895         * modules/unistr/u16-mblen-tests: Likewise.
24896         * modules/unistr/u16-mbsnlen-tests: Likewise.
24897         * modules/unistr/u16-mbtouc-tests: Likewise.
24898         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
24899         * modules/unistr/u16-mbtoucr-tests: Likewise.
24900         * modules/unistr/u16-move-tests: Likewise.
24901         * modules/unistr/u16-next-tests: Likewise.
24902         * modules/unistr/u16-prev-tests: Likewise.
24903         * modules/unistr/u16-set-tests: Likewise.
24904         * modules/unistr/u16-stpcpy-tests: Likewise.
24905         * modules/unistr/u16-stpncpy-tests: Likewise.
24906         * modules/unistr/u16-strcat-tests: Likewise.
24907         * modules/unistr/u16-strcmp-tests: Likewise.
24908         * modules/unistr/u16-strcoll-tests: Likewise.
24909         * modules/unistr/u16-strcpy-tests: Likewise.
24910         * modules/unistr/u16-strdup-tests: Likewise.
24911         * modules/unistr/u16-strlen-tests: Likewise.
24912         * modules/unistr/u16-strmblen-tests: Likewise.
24913         * modules/unistr/u16-strmbtouc-tests: Likewise.
24914         * modules/unistr/u16-strncat-tests: Likewise.
24915         * modules/unistr/u16-strncmp-tests: Likewise.
24916         * modules/unistr/u16-strncpy-tests: Likewise.
24917         * modules/unistr/u16-strnlen-tests: Likewise.
24918         * modules/unistr/u16-to-u32-tests: Likewise.
24919         * modules/unistr/u16-to-u8-tests: Likewise.
24920         * modules/unistr/u16-uctomb-tests: Likewise.
24921         * modules/unistr/u32-check-tests: Likewise.
24922         * modules/unistr/u32-chr-tests: Likewise.
24923         * modules/unistr/u32-cmp-tests: Likewise.
24924         * modules/unistr/u32-cmp2-tests: Likewise.
24925         * modules/unistr/u32-cpy-alloc-tests: Likewise.
24926         * modules/unistr/u32-cpy-tests: Likewise.
24927         * modules/unistr/u32-mblen-tests: Likewise.
24928         * modules/unistr/u32-mbsnlen-tests: Likewise.
24929         * modules/unistr/u32-mbtouc-tests: Likewise.
24930         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
24931         * modules/unistr/u32-mbtoucr-tests: Likewise.
24932         * modules/unistr/u32-move-tests: Likewise.
24933         * modules/unistr/u32-next-tests: Likewise.
24934         * modules/unistr/u32-prev-tests: Likewise.
24935         * modules/unistr/u32-set-tests: Likewise.
24936         * modules/unistr/u32-stpcpy-tests: Likewise.
24937         * modules/unistr/u32-stpncpy-tests: Likewise.
24938         * modules/unistr/u32-strcat-tests: Likewise.
24939         * modules/unistr/u32-strcmp-tests: Likewise.
24940         * modules/unistr/u32-strcoll-tests: Likewise.
24941         * modules/unistr/u32-strcpy-tests: Likewise.
24942         * modules/unistr/u32-strdup-tests: Likewise.
24943         * modules/unistr/u32-strlen-tests: Likewise.
24944         * modules/unistr/u32-strmblen-tests: Likewise.
24945         * modules/unistr/u32-strmbtouc-tests: Likewise.
24946         * modules/unistr/u32-strncat-tests: Likewise.
24947         * modules/unistr/u32-strncmp-tests: Likewise.
24948         * modules/unistr/u32-strncpy-tests: Likewise.
24949         * modules/unistr/u32-strnlen-tests: Likewise.
24950         * modules/unistr/u32-to-u16-tests: Likewise.
24951         * modules/unistr/u32-to-u8-tests: Likewise.
24952         * modules/unistr/u32-uctomb-tests: Likewise.
24953         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
24954         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
24955         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
24956         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
24957         * modules/uniwidth/u8-strwidth-tests: Likewise.
24958         * modules/uniwidth/u8-width-tests: Likewise.
24959         * modules/uniwidth/u16-strwidth-tests: Likewise.
24960         * modules/uniwidth/u16-width-tests: Likewise.
24961         * modules/uniwidth/u32-strwidth-tests: Likewise.
24962         * modules/uniwidth/u32-width-tests: Likewise.
24963         * modules/uniwidth/width-tests: Likewise.
24964
24965 2010-05-18  Richard Jones  <rjones@redhat.com>
24966
24967         doc: users.txt: list hivex
24968         * users.txt: Add hivex.
24969
24970 2010-05-18  Richard Jones  <rjones@redhat.com>
24971
24972         doc: users.txt: list febootstrap
24973         * users.txt: Add febootstrap.
24974
24975 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
24976
24977         bootstrap: fix an error when gnulib is not used as a git submodule
24978         * build-aux/bootstrap (gnulib_path): If its length is zero then
24979         assign "gnulib" to it.
24980         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
24981
24982 2010-05-16  Bruno Haible  <bruno@clisp.org>
24983
24984         Avoid autoconf warnings about AM_ICONV.
24985         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
24986         2.64.
24987
24988 2010-05-16  Bruno Haible  <bruno@clisp.org>
24989
24990         absolute-header: Make the macro usable in more situations.
24991         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
24992         from gl_ABSOLUTE_HEADER.
24993         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
24994
24995 2010-05-16  James Youngman  <jay@gnu.org>
24996
24997         doc: update users.txt
24998         * users.txt: Add CSSC.
24999
25000 2010-05-16  Jim Meyering  <meyering@redhat.com>
25001
25002         init.sh: fix an error in the previous change; add more comments
25003         * tests/init.sh: Compare exit code in loop against 9, not 2.
25004         Patch by Bruno Haible.
25005         Make the two tests more similar by adding an empty "then" clause.
25006         Add comments.
25007
25008         init.sh: avoid unnecessary shell re-exec
25009         * tests/init.sh: Improve the re-exec-required check to first test the
25010         current shell.  If it passes the test, do not search for a shell that
25011         does pass, and do not re-exec.  This test is particularly contorted to
25012         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
25013         of $(...) evokes a syntax error and causes immediate shell exit with
25014         status 2.  Bruno Haible reported that the re-exec made it impossible
25015         to single-step through any init.sh-using script.
25016
25017 2010-05-16  Bruno Haible  <bruno@clisp.org>
25018
25019         Fix collision between gnulib's and libintl's printf replacements.
25020         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
25021         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
25022         (printf): When using GNU C, map the __printf__ function to rpl_printf
25023         via __asm__. When not using GNU C, define rpl_printf instead of
25024         __printf__.
25025         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
25026         commit.
25027         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
25028         commit.
25029         * m4/asm-underscore.m4: New file.
25030         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
25031         * modules/stdio (Files): Add m4/asm-underscore.m4.
25032         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
25033         Reported by Ben Pfaff.
25034
25035 2010-05-16  Bruno Haible  <bruno@clisp.org>
25036
25037         verify: Avoid skipping the test on openSUSE 11.0.
25038         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
25039
25040 2010-05-13  Bruno Haible  <bruno@clisp.org>
25041
25042         Avoid useless warnings from G++.
25043         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
25044         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
25045         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25046
25047 2010-05-11  Jim Meyering  <meyering@redhat.com>
25048
25049         maint.mk: tweak preceding change
25050         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
25051         regexps tighter by anchoring at EOL, and make the new group "shy"
25052         for slightly decreased overhead.
25053
25054 2010-05-11  Eric Blake  <eblake@redhat.com>
25055
25056         maint.mk: gnulib doesn't guarantee NSIG
25057         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
25058
25059 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
25060
25061         test-pwrite.c: Remove unused variable declaration.
25062         * tests/test-pwrite.c (main): Remove read_buf declaration.
25063
25064         Remove useless test-pwrite.sh file.
25065         * tests/test-pwrite.sh: Delete file.
25066         * modules/pwrite-tests: Remove references.
25067         Reported by Bruno Haible.
25068
25069 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
25070
25071         init.sh: fix a typo
25072         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
25073
25074 2010-05-10  Jim Meyering  <meyering@redhat.com>
25075
25076         maint.mk: avoid using a temporary file in the always-defined-macros check
25077         * top/maint.mk (.re-defmac): Remove rule.
25078         (gl_trap_): Remove definition.
25079         (sc_prohibit_always-defined_macros): Rewrite not to create and
25080         depend on a temporary file.  Instead, depend on GNU grep's ability
25081         to read a list of regular expressions from stdin when given "-f -".
25082
25083 2010-05-09  Bruno Haible  <bruno@clisp.org>
25084
25085         Update to GNU gettext 0.18, part 1.
25086         * m4/gettext.m4: Update to GNU gettext 0.18.
25087         * m4/intl.m4: Likewise.
25088         * m4/po.m4: Likewise.
25089         * modules/gettext (Files): Add m4/fcntl-o.m4.
25090         (configure.ac): Require gettext infrastructure from version 0.18.
25091
25092 2010-05-09  Jim Meyering  <meyering@redhat.com>
25093
25094         init.sh: enable MALLOC_PERTURB_
25095         * tests/init.sh: Enable glibc's malloc-perturbing option.
25096
25097         maint.mk: improve sc_cross_check_PATH_usage_in_tests
25098         With my recent change in init.sh from the two-line form:
25099             -#   : ${srcdir=.}
25100             -#   . "$srcdir/init.sh"; path_prepend_ .
25101             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
25102         I noticed that using the one-line form would cause this test
25103         to fail with a false-positive, or to stop working altogether,
25104         depending on whether help-version changed or all the tests did.
25105         * top/maint.mk (_hv_regex): Remove this definition.
25106         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
25107         (_hv_regex_strong): Use a stronger regex to check for conformance.
25108         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
25109         Give a separate diagnostic for lack of conforming use.
25110
25111         maint.mk: prohibit definition of symbols defined by gnulib
25112         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
25113         definition of symbols defined by gnulib.
25114
25115 2010-05-09  Bruno Haible  <bruno@clisp.org>
25116
25117         acl: Avoid test failure on Cygwin-hosted mingw.
25118         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
25119
25120 2010-05-09  Bruno Haible  <bruno@clisp.org>
25121
25122         error: Use system's fcntl function.
25123         * lib/error.c (fcntl): Undefine.
25124
25125 2010-05-09  Jim Meyering  <meyering@redhat.com>
25126
25127         verify: adjust formatting to be more consistent
25128         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
25129         argument-list '('s, and after one comma.
25130
25131 2010-05-09  Bruno Haible  <bruno@clisp.org>
25132
25133         error: More reliable output on mingw.
25134         * lib/error.c: Include <windows.h>.
25135         (is_open): New function.
25136         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
25137         defined.
25138
25139 2010-05-09  Bruno Haible  <bruno@clisp.org>
25140
25141         vasnprintf: Fix syntax errors in libintl build on mingw.
25142         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
25143         pad_ourselves and prec_ourselves after use.
25144
25145 2010-05-08  Bruno Haible  <bruno@clisp.org>
25146
25147         * lib/config.charset: Update comments for Cygwin 1.7.
25148         * lib/localcharset.c: Likewise.
25149
25150 2010-05-07  Jim Meyering  <meyering@redhat.com>
25151
25152         init.sh: improve comments
25153         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
25154         . "${srcdir=.}/init.sh"; path_prepend_ .
25155         Add a note about path_prepend_ and the alternative of using
25156         TESTS_ENVIRONMENT.
25157
25158 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
25159
25160         exclude: Unescape hashed patterns in wildcard mode.
25161         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
25162         to the hash list.
25163         * tests/test-exclude8.sh: New test case.
25164         * modules/exclude-tests: Add new test.
25165
25166 2010-05-05  Eric Blake  <eblake@redhat.com>
25167
25168         verify: automate tests
25169         * modules/verify-tests: New module.
25170         * tests/test-verify.sh: New file.
25171         * tests/test-verify.c: Guard each negative test with a unique id.
25172         Also avoid warning about unused left hand of comma expressions.
25173
25174 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
25175
25176         Further improvements to verify.h, suggested by Eric Blake.
25177         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
25178         the GL_* versions, to avoid collision with OpenGL.
25179         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
25180         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
25181         than testing merely whether it's defined.
25182
25183         Modify verify.h to pacify gcc -Wredundant_decls.
25184         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
25185         These use the prefix "GL_" since they're likely to be useful elsewhere.
25186         We may need to break them out into a different .h file.
25187         (__COUNTER__): Define to 0 if the compiler doesn't support it.
25188         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
25189         of verify_function__.
25190
25191 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
25192
25193         Tests for module pwrite.
25194         * modules/pwrite-tests: New file.
25195         * tests/test-pwrite.sh: New file.
25196         * tests/test-pwrite.c: New file.
25197
25198         New module pwrite.
25199         * lib/unistd.in.h (pwrite): New declaration.
25200         * lib/pwrite.c: New file, from glibc with modifications.
25201         * m4/pwrite.m4: New file.
25202         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
25203         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
25204         REPLACE_PWRITE.
25205         * modules/pwrite: New file.
25206         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
25207         REPLACE_PWRITE.
25208         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
25209         * doc/posix-functions/pwrite.texi: Mention the new module.
25210
25211 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
25212
25213         pread: Update documentation.
25214         * doc/posix-functions/pread.texi: Mention the 'pread' module.
25215
25216 2010-05-04  Eric Blake  <eblake@redhat.com>
25217
25218         docs: update cygwin progress
25219         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
25220         this bug.
25221         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
25222         Added in cygwin 1.7.2.
25223         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
25224         Likewise.
25225         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
25226         Likewise.
25227         * doc/glibc-functions/dup3.texi (dup3): Likewise.
25228         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
25229         * doc/glibc-functions/accept4.texi (accept4): Likewise.
25230         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
25231         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
25232         Mention nproc module.
25233         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
25234         bug in cygwin 1.7.5 addition.
25235         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
25236         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
25237         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
25238         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
25239         1.7.5.
25240         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
25241         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
25242         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
25243         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
25244         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
25245         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
25246         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
25247         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
25248         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
25249         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
25250         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
25251         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
25252         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
25253         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
25254         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
25255         Likewise.
25256         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
25257         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
25258         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
25259         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
25260         Likewise.
25261         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
25262         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
25263         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
25264         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
25265         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
25266         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
25267         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
25268         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
25269         Likewise.
25270         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
25271         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
25272         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
25273         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
25274         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
25275         Likewise.
25276         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
25277         Likewise.
25278         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
25279         Likewise.
25280         * doc/glibc-functions/xdrrec_endofrecord.texi
25281         (xdrrec_endofrecord): Likewise.
25282         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
25283         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
25284         Likewise.
25285         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
25286         Likewise.
25287
25288 2010-05-04  Jim Meyering  <meyering@redhat.com>
25289
25290         gendocs.sh: make its "-s FILE" option more useful
25291         * build-aux/gendocs.sh: When honoring the -s FILE option, update
25292         $PACKAGE to reflect the probably-different basename of "FILE".
25293
25294 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
25295
25296         bootstrap: don't ignore download_po_files failure
25297         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
25298         failure.
25299
25300 2010-05-03  Jim Meyering  <meyering@redhat.com>
25301
25302         maint.mk: allow to pass options to gendocs.sh
25303         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
25304         (gendocs_options_): New overridable variable.
25305
25306         gnu-web-doc-update: don't ignore configure or build failure
25307         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
25308
25309         announce-gen: backslash-escape '@'s in --help output
25310         * build-aux/announce-gen: Fix syntax errors.
25311
25312         maint.mk, announce-gen: allow project-specific announcement mail headers
25313         * top/maint.mk (translation_project_): Define default.
25314         (announcement_Cc_, announcement_mail_headers_): Likewise.
25315         (announcement): Invoke announce-gen with new --mail-headers option.
25316         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
25317
25318         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
25319         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
25320         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
25321         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
25322         line in the "err2" output file when running "make check" in verbose
25323         mode (i.e., with set -x enabled).
25324
25325 2010-05-03  Bruno Haible  <bruno@clisp.org>
25326
25327         wctob: Fix for weird platforms.
25328         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
25329         argument value.
25330
25331 2010-05-03  Jim Meyering  <meyering@redhat.com>
25332
25333         maint.mk: prohibit unwarranted use of <strings.h>
25334         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
25335         strings.h in a file that does not also use strcasecmp, strncasecmp,
25336         ffs or ffsll.
25337
25338         maint.mk: remove obsolete comments
25339         * top/maint.mk: Remove stale, commented-out rules.
25340
25341 2010-05-02  Bruno Haible  <bruno@clisp.org>
25342
25343         wcwidth: Declare also when it's aliased.
25344         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
25345         macro.
25346
25347 2010-05-02  Bruno Haible  <bruno@clisp.org>
25348
25349         Fix regression from 2010-04-25.
25350         * gnulib-tool (func_modules_transitive_closure): Check the status of
25351         all modules, not only of the tests that are of the form foo-tests where
25352         foo is a module.
25353
25354 2010-05-02  Bruno Haible  <bruno@clisp.org>
25355
25356         wctob: Work around nasty Cygwin 1.7.2 bug.
25357         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
25358         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
25359
25360 2010-05-01  Bruno Haible  <bruno@clisp.org>
25361
25362         fpurge: Sharper test.
25363         * tests/test-fpurge.c (main): Add one more ftell check.
25364         * modules/fpurge-tests (Depends-on): Add ftell.
25365         Suggested by Eric Blake.
25366
25367 2010-05-01  Bruno Haible  <bruno@clisp.org>
25368
25369         ftello: Another test.
25370         * tests/test-ftello3.c: New file.
25371         * modules/ftello-tests (Files): Add it.
25372         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
25373         MOSTLYCLEANFILES.
25374
25375         ftell: Another test.
25376         * tests/test-ftell3.c: New file.
25377         * modules/ftell-tests (Files): Add it.
25378         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
25379         MOSTLYCLEANFILES.
25380
25381 2010-05-01  Bruno Haible  <bruno@clisp.org>
25382
25383         ftell, ftello: Work around Solaris bug.
25384         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
25385         * lib/ftello.c: Include stdio-impl.h.
25386         (ftello): On Solaris, when _IOWRT is set, compute the result without
25387         looking at _IOREAD.
25388         * modules/ftello (Files): Add lib/stdio-impl.h.
25389         * doc/posix-functions/ftell.texi: Mention Solaris bug.
25390         * doc/posix-functions/ftello.texi: Likewise.
25391         Reported by Eric Blake.
25392
25393 2010-05-01  Bruno Haible  <bruno@clisp.org>
25394
25395         freading: Adapt to special meaning of _IOREAD flag on Solaris.
25396         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
25397         the _IOWRT flag is also set.
25398
25399 2010-05-01  Bruno Haible  <bruno@clisp.org>
25400
25401         Fix doc about a HP-UX stdio bug.
25402         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
25403         * doc/posix-functions/ftello.texi: Likewise.
25404
25405 2010-05-01  Bruno Haible  <bruno@clisp.org>
25406
25407         lseek test: Fix failure on Solaris.
25408         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
25409         output.
25410
25411 2010-04-30  Jim Meyering  <meyering@redhat.com>
25412
25413         bootstrap: don't ignore failure to generate po*/Makevars
25414         * build-aux/bootstrap (with_gettext): Don't ignore failure
25415         to create po/Makevars or runtime-po/Makevars.
25416
25417 2010-04-29  Eric Blake  <eblake@redhat.com>
25418
25419         headers: relax license to LGPLv2+
25420         * modules/fcntl-h (License): Relax license.
25421         * modules/getopt-posix (License): Likewise.
25422         * modules/locale (License): Likewise.
25423         * modules/math (License): Likewise.
25424         * modules/pty (License): Likewise.
25425         * modules/sched (License): Likewise.
25426         * modules/search (License): Likewise.
25427         * modules/spawn (License): Likewise.
25428         * modules/stdarg (License): Likewise.
25429         * modules/sysexits (License): Likewise.
25430
25431 2010-04-29  Jim Meyering  <meyering@redhat.com>
25432
25433         inttypes: relax license to LGPLv2+
25434         * modules/inttypes (License): Relax license.
25435
25436 2010-04-29  Simon Josefsson  <simon@josefsson.org>
25437
25438         * top/maint.mk (indent): Run twice to produce idempotent results.
25439
25440 2010-04-28  Bruno Haible  <bruno@clisp.org>
25441
25442         getdate: Generate getdate.c in the source directory.
25443         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
25444         MOSTLYCLEANFILES.
25445         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
25446
25447 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
25448
25449         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
25450         is not declared as a const *; avoid warnings in that case.
25451
25452 2010-04-28  Eric Blake  <eblake@redhat.com>
25453
25454         canonicalize-lgpl: avoid compiler warning
25455         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
25456         declaration' / 'extraneous semicolon' warning with some compilers.
25457         Reported by Andreas Gruenbacher.
25458
25459 2010-04-28  Jim Meyering  <meyering@redhat.com>
25460
25461         init.sh: ensure a more reliable exit status when exiting via trap
25462         * tests/init.sh (setup_): Don't rely on $? in signal handler.
25463         Inspired by patches from Dmitry V. Levin.
25464         Also trap on signal 3 (SIGQUIT).
25465
25466 2010-04-27  Bruno Haible  <bruno@clisp.org>
25467
25468         Update doc about utimes().
25469         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
25470         'utimens' module.
25471         Reported by Andreas Gruenbacher <agruen@suse.de>.
25472
25473 2010-04-27  Eric Blake  <eblake@redhat.com>
25474
25475         full-read, full-write: relax license
25476         * modules/full-read (License): Drop to LGPLv2+.
25477         * modules/full-write (License): Likewise.
25478         * modules/safe-read (License): Likewise.
25479         * modules/safe-write (License): Likewise.
25480
25481         pthread: mention library for linking
25482         * modules/pthread (Link): Mention $(LIB_PTHREAD).
25483
25484 2010-04-27  Jim Meyering  <meyering@redhat.com>
25485
25486         maint.mk: fix a bug introduced in last change
25487         * top/maint.mk (gl_assured_headers_): Now that all names are on
25488         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
25489         is not anchored to end of word, it should be adequate.
25490
25491         maint.mk: avoid side-effect in latest syntax-check
25492         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
25493         to run commands via $(shell...), and hence to incur cost only when
25494         the new rule is actually run.
25495
25496         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
25497         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
25498         and use that to create a regexp used to detect all #if HAVE_..._H uses.
25499         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
25500         (gl_assured_headers_, az_, AZ_): Define.
25501         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
25502
25503 2010-04-26  Jim Meyering  <jim@meyering.net>
25504             Bruno Haible  <bruno@clisp.org>
25505
25506         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
25507         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
25508         Prompted by an exchange with Gilles Espinasse.
25509
25510 2010-04-26  Jim Meyering  <meyering@redhat.com>
25511
25512         git-version-gen: aesthetic tweak
25513         * build-aux/git-version-gen: Use "$nl" rather than a literal,
25514         so that the command remains on a single line.
25515
25516 2010-04-26  Eric Blake  <eblake@redhat.com>
25517
25518         git-version-gen: allow use on EBCDIC hosts
25519         * build-aux/git-version-gen (dirty): Use literal rather than tying
25520         ourselves to ascii.
25521         Reported by Steve Goetze.
25522
25523 2010-04-25  Bruno Haible  <bruno@clisp.org>
25524
25525         netdb: Add support for GNULIB_POSIXCHECK.
25526         * lib/netdb.in.h: Include warn-on-use.h.
25527         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
25528         functions are used when GNULIB_POSIXCHECK is defined and the
25529         getaddrinfo module is not in use.
25530         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
25531         freeaddrinfo, gai_strerror, getnameinfo are declared.
25532         * modules/netdb (Depends-on): Add warn-on-use.
25533         (Makefile.am): Include warn-on-use.h in netdb.h.
25534
25535 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
25536
25537         build: avoid "make check" failure without .git/ directory
25538         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
25539         there is no .git/ directory.
25540
25541 2010-04-25  Bruno Haible  <bruno@clisp.org>
25542
25543         ptsname: Fix misuse of ttyname_r.
25544         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
25545         of errno.
25546
25547 2010-04-25  Bruno Haible  <bruno@clisp.org>
25548
25549         ttyname_r: Make it work on Solaris 10.
25550         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
25551         if the system function has the POSIX declaration. Test whether the
25552         function fails if the buffer is less than 128 bytes large.
25553         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
25554         system's ttyname_r function. Provide a reasonably large buffer.
25555         * modules/ttyname_r (Depends-on): Add extensions.
25556         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
25557
25558 2010-04-25  Bruno Haible  <bruno@clisp.org>
25559
25560         Use the 'extensions' module for some more functions on Solaris.
25561         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
25562         module.
25563         * doc/posix-functions/ctime_r.texi: Likewise.
25564         * doc/posix-functions/getgrgid_r.texi: Likewise.
25565         * doc/posix-functions/getgrnam_r.texi: Likewise.
25566         * doc/posix-functions/getpwnam_r.texi: Likewise.
25567         * doc/posix-functions/getpwuid_r.texi: Likewise.
25568         * doc/posix-functions/readdir_r.texi: Likewise.
25569         * doc/posix-functions/sigwait.texi: Likewise.
25570         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
25571         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
25572
25573 2010-04-25  Bruno Haible  <bruno@clisp.org>
25574
25575         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
25576         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
25577         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
25578         * lib/ttyname_r.c: Include <limits.h>.
25579         (ttyname_r): Define using the system's ttyname_r function, if it exists
25580         and not on Solaris.
25581         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
25582         set.
25583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
25584         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
25585         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
25586         Reported by Simon Josefsson.
25587
25588 2010-04-25  Bruno Haible  <bruno@clisp.org>
25589
25590         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
25591         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
25592         * doc/posix-functions/ctime_r.texi: Likewise.
25593         * doc/posix-functions/getgrgid_r.texi: Likewise.
25594         * doc/posix-functions/getgrnam_r.texi: Likewise.
25595         * doc/posix-functions/getlogin_r.texi: Likewise.
25596         * doc/posix-functions/getpwnam_r.texi: Likewise.
25597         * doc/posix-functions/getpwuid_r.texi: Likewise.
25598         * doc/posix-functions/readdir_r.texi: Likewise.
25599         * doc/posix-functions/sigwait.texi: Likewise.
25600         * doc/posix-functions/ttyname_r.texi: Likewise.
25601         Reported by Simon Josefsson.
25602
25603 2010-04-25  Bruno Haible  <bruno@clisp.org>
25604
25605         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
25606         * gnulib-tool (func_usage): Document that --with-*-tests options apply
25607         also to --create-testdir.
25608         (func_acceptable): Don't consider the status of *-tests modules here.
25609         (func_modules_transitive_closure): Consider it here, before including a
25610         test module.
25611         (func_import, func_create_testdir): Set inc_all_direct_tests,
25612         inc_all_indirect_tests.
25613         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
25614         --create-testdir and --create-megatestdir.
25615
25616 2010-04-25  Bruno Haible  <bruno@clisp.org>
25617
25618         gnulib-tool: Add --without-*-tests options.
25619         * gnulib-tool (func_usage): Document the --without-*-tests options.
25620         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
25621         excl_unportable_tests): New variables.
25622         Fail if they are specified with --import or --update.
25623         (func_acceptable): Respect the excl_*_tests variables.
25624         (func_import): Set the excl_*_tests variables to empty.
25625
25626 2010-04-25  Simon Josefsson  <simon@josefsson.org>
25627             Bruno Haible  <bruno@clisp.org>
25628
25629         Work around a MacOS X 10.4 bug with openpty.
25630         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
25631         * tests/test-openpty.c (main): Close the master side explicitly.
25632
25633 2010-04-25  Bruno Haible  <bruno@clisp.org>
25634
25635         strnlen: Fix a C++ test error on MacOS X and Solaris.
25636         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
25637         the function is not declared.
25638         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
25639         Simon Josefsson.
25640
25641 2010-04-24  Bruno Haible  <bruno@clisp.org>
25642
25643         Avoid a gcc warning.
25644         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
25645         of correct type for %08lx directive.
25646         Reported by Eric Blake.
25647
25648 2010-04-24  Bruno Haible  <bruno@clisp.org>
25649
25650         vasnprintf: Correct errno value in case of out-of-memory.
25651         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
25652         or sprintf. Use the errno value from SNPRINTF or sprintf.
25653         Reported by Ian Beckwith <ianb@erislabs.net>.
25654
25655 2010-04-24  Bruno Haible  <bruno@clisp.org>
25656
25657         ansi-c++-opt: Find correct compiler when cross-compiling.
25658         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
25659         AC_CHECK_PROGS.
25660         Reported by Simon Josefsson.
25661
25662 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
25663
25664         vc-list-files: Add support for subversion
25665         * build-aux/vc-list-files: Use "svn list" to generate the list of
25666         files controlled by subversion.
25667
25668 2010-04-23  Jim Meyering  <meyering@redhat.com>
25669
25670         vc-list-files tests: convert to use init.sh
25671         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
25672         path_prepend_.
25673         Use Exit, not exit.
25674         Use skip_ rather than open coding it.
25675         Remove trap set-up and compare definitions.
25676         * tests/test-vc-list-files-git.sh: Likewise.
25677         * modules/vc-list-files-tests (Files): Add tests/init.sh.
25678
25679 2010-04-22  Simon Josefsson  <simon@josefsson.org>
25680
25681         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
25682         backup files.
25683
25684 2010-04-21  Simon Josefsson  <simon@josefsson.org>
25685
25686         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
25687
25688 2010-04-20  Eric Blake  <eblake@redhat.com>
25689
25690         tests: be robust to ignored SIGPIPE
25691         * tests/test-select-in.sh: Consume all output.
25692         * tests/test-lseek.sh: Check correct exit status, while avoiding
25693         EPIPE.
25694
25695 2010-04-20  Simon Josefsson  <simon@josefsson.org>
25696             Bruno Haible  <bruno@clisp.org>
25697
25698         visibility: Don't use -fvisibility if it leads to a warning.
25699         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
25700         yes, don't pretend that visibility works if it leads to a warning.
25701         Reported by Mike Gran <spk121@yahoo.com>.
25702
25703 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
25704
25705         * build-aux/bootstrap: Use "git -h" for testing for supported options
25706         instead of "git --help".  The short-form option only shows a summary,
25707         and doesn't layout the full man page.  Grep for the full option name
25708         in the summary, too.
25709
25710 2010-04-19  Bruno Haible  <bruno@clisp.org>
25711
25712         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
25713         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
25714         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
25715         mention of RELOCATABLE_STRIP.
25716         Reported by Sylvain Beucler <beuc@beuc.net>.
25717
25718 2010-04-19  Bruno Haible  <bruno@clisp.org>
25719
25720         * lib/diffseq.h: Fix typo in comment.
25721         Reported by Eric Blake.
25722
25723 2010-04-19  Bruno Haible  <bruno@clisp.org>
25724
25725         ioctl: Move autoconf macro to a .m4 file.
25726         * m4/ioctl.m4: New file, extracted from modules/ioctl.
25727         * modules/ioctl (Files): Add it.
25728         (configure.ac): Simply invoke gl_FUNC_IOCTL.
25729         Reported by Ian Beckwith <ianb@erislabs.net>.
25730
25731 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
25732             Bruno Haible  <bruno@clisp.org>
25733
25734         diffseq: Accommodate use-case with abstract arrays.
25735         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
25736         is not defined.
25737         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
25738         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
25739
25740 2010-04-18  Bruno Haible  <bruno@clisp.org>
25741
25742         * doc/posix-headers/stdbool.texi: More precise wording.
25743
25744 2010-04-17  Jim Meyering  <meyering@redhat.com>
25745
25746         maint.mk: use gnu-style indentation in an embedded perl script
25747         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
25748         Rename variable: s/two/last_two_bytes/
25749
25750 2010-04-16  Eric Blake  <eblake@redhat.com>
25751
25752         test-stdbool: skip test that fails with Solaris CC
25753         * tests/test-stdbool.c (f): Skip test that causes compilation
25754         error under buggy C++ compiler.
25755         * lib/stdbool.in.h: Document the limitation.
25756         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
25757
25758         setenv: allow compilation with C++
25759         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
25760         register keyword.
25761
25762         stdint: allow test to pass with C++
25763         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
25764
25765         getopt: allow compilation with C++
25766         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
25767         struct.
25768         * lib/getopt.c (_getopt_internal_r): Use correct type.
25769         Reported by Dagobert Michelson, via Joel E. Denny.
25770
25771 2010-04-16  Bruno Haible  <bruno@clisp.org>
25772
25773         Override netdb.h always.
25774         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
25775         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
25776         Reported by Ludovic Courtès <ludo@gnu.org>.
25777
25778 2010-04-15  Bruno Haible  <bruno@clisp.org>
25779
25780         openpty: Fix mistake from 2010-03-21.
25781         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
25782         Reported by Simon Josefsson.
25783
25784 2010-04-15  Eric Blake  <eblake@redhat.com>
25785
25786         test-forkpty: fix expected signature
25787         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
25788         Reported by Simon Josefsson.
25789
25790 2010-04-15  Jim Meyering  <meyering@redhat.com>
25791
25792         maint.mk: texinfo_suffix_re_: correct the default regexp
25793         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
25794
25795         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
25796         make it configurable via texinfo_suffix_re_.
25797
25798 2010-04-14  Eric Blake  <eblake@redhat.com>
25799
25800         strtok_r: relax license to LGPLv2+
25801         * modules/strtok_r (License): Relax license.
25802         Reported by Matthias Bolte.
25803
25804 2010-04-14  Simon Josefsson  <simon@josefsson.org>
25805
25806         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
25807         version 1.4.4 by default instead of requiring the libgcrypt
25808         version used during build.  This makes it possible to use the
25809         application with older but still binary compatible libgcrypt
25810         versions.
25811
25812 2010-04-13  Eric Blake  <eblake@redhat.com>
25813
25814         getopt-gnu: match recent glibc fixes and posix ruling
25815         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
25816         '+' handling, when requesting extensions.
25817         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
25818         'W;' handling.
25819         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
25820         * doc/posix-functions/getopt.texi (getopt): Document this.
25821         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25822         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25823         Likewise.
25824
25825         getopt: merge bug fixes from glibc
25826         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
25827         diagnostics.  Honor '+:' correctly.  Reject ';'.
25828
25829         getopt-posix: detect MacOS bug
25830         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
25831         optind when missing a required argument.
25832         * doc/posix-functions/getopt.texi (getopt): Document the bug.
25833         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25834         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25835         Likewise.
25836
25837         getopt-posix: avoid spurious failure on Solaris
25838         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
25839         an indicator that setting optind=1 is sufficient for reset.
25840
25841         getopt-posix: avoid spurious failure on FreeBSD
25842         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
25843         in POSIX mode, since the m4 test uses it.
25844
25845         gnulib-tool: silence warning on BSD sh
25846         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
25847
25848 2010-04-13  Jim Meyering  <meyering@redhat.com>
25849
25850         doc: users.txt: GNU patch now uses gnulib
25851         * users.txt: Add patch.
25852
25853 2010-04-12  Jim Meyering  <meyering@redhat.com>
25854
25855         maint.mk: generate more concise timing data for syntax-check rules
25856         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
25857         " done" from each line that reports a syntax-check test duration.
25858
25859 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
25860
25861         git-version-gen: use "git update-index..." rather than "git status"
25862         * build-aux/git-version-gen: Use git update-index --refresh, not
25863         "git status".  With some versions of git, "git status" would fail
25864         to update the index and result in an unwarranted "-dirty" suffix.
25865
25866 2010-04-11  Jim Meyering  <meyering@redhat.com>
25867
25868         openat: correct formatting (no semantic change)
25869         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
25870         Suggested by Bruno Haible.
25871
25872 2010-04-11  Bruno Haible  <bruno@clisp.org>
25873
25874         Stricter declaration checking in testdirs.
25875         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25876         If for_tests is true, augment AM_CPPFLAGS to define
25877         GNULIB_STRICT_CHECKING.
25878         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
25879         GNULIB_STRICT_CHECKING is defined, verify that the function is
25880         declared.
25881
25882 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
25883             Bruno Haible  <bruno@clisp.org>
25884
25885         libunistring: Improve configure output.
25886         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
25887         Don't say "consider installing GNU libunistring" when checking again
25888         with libiconv.
25889
25890 2010-04-11  Bruno Haible  <bruno@clisp.org>
25891
25892         libunistring: Correct value of $LTLIBUNISTRING.
25893         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
25894         correct the value of $LTLIBUNISTRING.
25895
25896 2010-04-11  Bruno Haible  <bruno@clisp.org>
25897
25898         havelib: Add static libraries to LIBS in the right order.
25899         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
25900         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
25901
25902 2010-04-11  Bruno Haible  <bruno@clisp.org>
25903
25904         libunistring: Detect libunistring also when it depends on libiconv.
25905         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
25906         the second AC_LIB_HAVE_LINKFLAGS invocation.
25907
25908 2010-04-11  James Youngman  <jay@gnu.org>
25909
25910         close-stream: declare local scalars to be "const"
25911         * lib/close-stream.c (close_stream): Make boolean variables const
25912         to document the fact that we set but do not change them.
25913
25914 2010-04-11  Bruno Haible  <bruno@clisp.org>
25915
25916         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
25917
25918 2010-04-11  Jim Meyering  <meyering@redhat.com>
25919
25920         maint.mk: don't include dist-check.mk
25921         * top/maint.mk: Remove bogus include directive.
25922
25923         maint.mk: improve empty-line-at-EOF check
25924         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
25925         solution, rather than tail+Perl-based one.  The latter would read
25926         a few kilobytes from the end of each file, and did not handle empty
25927         files properly.
25928
25929         maint.mk: print the elapsed time for each syntax-check rule
25930         * top/maint.mk (sc_m_rules_): Save start time in a file.
25931         (sc_z_rules_): New rules: remove temp file and print elapsed time.
25932         (local-check): Interpose the .z rules
25933
25934 2010-04-11  Jim Meyering  <meyering@redhat.com>
25935
25936         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
25937         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
25938         empty file with one that ends in an empty line.
25939
25940 2010-04-10  Bruno Haible  <bruno@clisp.org>
25941
25942         mkdir: Make it work on mingw64.
25943         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
25944         * lib/mkdir.c: Update comment.
25945         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
25946
25947 2010-04-10  Bruno Haible  <bruno@clisp.org>
25948
25949         Don't override improved macro from newer autoconf.
25950         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
25951         autoconf >= 2.62.
25952         Reported by Joel E. Denny <jdenny@clemson.edu>.
25953
25954 2010-04-10  Jim Meyering  <meyering@redhat.com>
25955
25956         maint.mk: new syntax-check rule: prohibit empty lines at end of file
25957         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
25958
25959         maint.mk: correct a diagnostic
25960         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
25961         in diagnostic; now use $prohibit.
25962
25963 2010-04-10  Bruno Haible  <address@hidden>
25964
25965         fchownat: Fix a C++ test error on Solaris 8.
25966         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
25967         the function does not exist.
25968
25969 2010-04-10  Bruno Haible  <bruno@clisp.org>
25970
25971         vasnprintf: Add more tests.
25972         * tests/test-vasnprintf-posix.c: Include <errno.h>.
25973         (test_function): Test converting an invalid wide string.
25974
25975         vasnprintf: Correct handling of unconvertible wide string arguments.
25976         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
25977         VASNPRINTF.
25978         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
25979         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
25980         smaller than the expected maximum need for the directive. Set errno to
25981         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
25982         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
25983         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
25984         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
25985         * modules/vasnprintf (Files): Add m4/printf.m4.
25986         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25987
25988 2010-04-10  Bruno Haible  <bruno@clisp.org>
25989
25990         vasnprintf: Fix crash in %ls directive.
25991         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
25992         string is passed as argument to %ls, with no precision and no width.
25993         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25994
25995 2010-04-10  Bruno Haible  <bruno@clisp.org>
25996
25997         vasnprintf: Fix multiple test failures on mingw.
25998         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
25999         _snprintf, or snwprintf, not _snwprintf.
26000
26001 2010-04-10  Bruno Haible  <bruno@clisp.org>
26002
26003         write: Fix a C++ test error on mingw.
26004         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
26005
26006 2010-04-10  Bruno Haible  <bruno@clisp.org>
26007
26008         vasnprintf test: Reduce code duplication.
26009         * tests/test-vasnprintf.c (test_function): New function, extracted from
26010         test_vasnprintf.
26011         (test_vasnprintf, test_asnprintf): Invoke it.
26012
26013 2010-04-10  Bruno Haible  <bruno@clisp.org>
26014
26015         strnlen: Fix warning in C++ mode on MacOS X.
26016         * lib/string.in.h (strnlen): Use the modern idiom.
26017         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
26018         defining strnlen as a macro already in <config.h>.
26019         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26020         REPLACE_STRNLEN.
26021         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
26022         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26023
26024 2010-04-08  James Youngman  <jay@gnu.org>
26025
26026         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
26027         the example.
26028
26029 2010-04-09  Jim Meyering  <meyering@redhat.com>
26030
26031         maint.mk: print better diagnostic when there is no $(_hv_file)
26032         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
26033         announce that when $(_hv_file) (aka help-version) does not exist.
26034
26035         init.sh: run tr in the "C" locale to avoid multibyte interpretation
26036         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
26037         not try to interpret its random input bytes.  Jarno Rajahalme reported
26038         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
26039         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
26040         (mktempd_): Likewise, just in case.
26041
26042         ftruncate: add two years to projected module removal date: 2012
26043         * m4/ftruncate.m4: Adjust comments.
26044
26045         ftruncate: mark module as obsolete; even MinGW provides it, now
26046         * modules/ftruncate (Status): Obsolete.
26047         (Notice): Say that.
26048         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
26049         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
26050
26051 2010-04-08  Bruno Haible  <bruno@clisp.org>
26052
26053         Fix side effects from tests-related modules.
26054         * modules/dprintf-posix (Comment): New section.
26055         * modules/fprintf-posix (Comment): Likewise.
26056         * modules/obstack-printf-posix (Comment): Likewise.
26057         * modules/printf-posix (Comment): Likewise.
26058         * modules/snprintf-posix (Comment): Likewise.
26059         * modules/sprintf-posix (Comment): Likewise.
26060         * modules/vasnprintf-posix (Comment): Likewise.
26061         * modules/vasprintf-posix (Comment): Likewise.
26062         * modules/vdprintf-posix (Comment): Likewise.
26063         * modules/vfprintf-posix (Comment): Likewise.
26064         * modules/vprintf-posix (Comment): Likewise.
26065         * modules/vsnprintf-posix (Comment): Likewise.
26066         * modules/vsprintf-posix (Comment): Likewise.
26067         * modules/xprintf-posix (Comment): Likewise.
26068         * modules/xvasprintf-posix (Comment): Likewise.
26069         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
26070         * modules/floorf-tests (Depends-on): Likewise.
26071         * modules/round-tests (Depends-on): Likewise.
26072         * modules/roundf-tests (Depends-on): Likewise.
26073         * modules/trunc-tests (Depends-on): Likewise.
26074         * modules/truncf-tests (Depends-on): Likewise.
26075         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
26076         'fprintf-posix' module is not present.
26077         * tests/test-floorf2.c (check): Likewise.
26078         * tests/test-trunc2.c (check): Likewise.
26079         * tests/test-truncf2.c (check): Likewise.
26080         * tests/test-round2.c (equal): Likewise.
26081         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26082
26083 2010-04-07  Karl Berry  <karl@gnu.org>
26084
26085         * config/srclist.txt,
26086         * config/srclistvars.sh,
26087         * config/srclist-update: doc fixes.
26088
26089 2010-04-07  Jim Meyering  <meyering@redhat.com>
26090
26091         maint.mk: add a PATH crosschecking syntax-check rule
26092         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
26093         Useful if you use a test like the one in help-version (coreutils,
26094         diffutils, grep, gzip) that ensures $(VERSION) matches what is
26095         printed by prog --version.
26096
26097 2010-04-06  Bruno Haible  <bruno@clisp.org>
26098
26099         Fix link error on mingw.
26100         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
26101         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
26102
26103 2010-04-06  Bruno Haible  <bruno@clisp.org>
26104
26105         Assume rmdir exists.
26106         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
26107
26108 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
26109
26110         doc: update users.txt
26111         * users.txt: Add gcal.
26112
26113 2010-04-06  Jim Meyering  <meyering@redhat.com>
26114
26115         init.sh: simply unset TMPDIR rather than risking env -i
26116         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
26117         although it probably works fine on all Unix-based systems, some
26118         systems (Cygwin?) cannot tolerate a totally cleared environment.
26119         Suggestion from Eric Blake.
26120
26121 2010-04-06  Jim Meyering  <meyering@redhat.com>
26122
26123         init.sh: portability fix: use env's POSIX-specified -i option not -u
26124         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
26125         than unportable env -u.  Solaris 5.11's env lacks support for -u.
26126
26127 2010-04-05  Bruno Haible  <bruno@clisp.org>
26128
26129         btowc: Work around Cygwin 1.7.2 bug.
26130         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
26131         does not map NUL to 0.
26132         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
26133
26134 2010-04-05  Bruno Haible  <bruno@clisp.org>
26135
26136         Make the multithread modules work on Cygwin 1.7.2.
26137         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
26138         imported symbols can be declared weak, so that it returns "no" on
26139         Cygwin 1.7.2.
26140
26141 2010-04-05  Bruno Haible  <bruno@clisp.org>
26142
26143         Use the module 'strncat'.
26144         * modules/unistr/u8-strncat (Depends-on): Add strncat.
26145
26146         Tests for module 'strncat'.
26147         * modules/strncat-tests: New file.
26148         * tests/test-strncat.c: New file.
26149
26150         New module 'strncat'.
26151         * lib/string.in.h (strncat): New declaration.
26152         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
26153         * m4/strncat.m4: New file, based on m4/memchr.m4.
26154         * modules/strncat: New file.
26155         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
26156         is declared.
26157         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
26158         REPLACE_STRNCAT.
26159         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
26160         REPLACE_STRNCAT.
26161         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
26162         module.
26163         * tests/test-string-c++.cc: Check signature of strncat.
26164
26165 2010-04-05  Jim Meyering  <meyering@redhat.com>
26166
26167         xstrtoumax-tests: convert to use init.sh
26168         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
26169         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26170         Use Exit, not exit.
26171         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26172
26173         xstrtoimax-tests: convert to use init.sh
26174         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
26175         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26176         Use Exit, not exit.
26177         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26178
26179 2010-04-05  Bruno Haible  <bruno@clisp.org>
26180
26181         sys_socket: Avoid #define replacements in C++ mode.
26182         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
26183         warning to the function if possible, rather than #defining the symbol
26184         to a dysfunctional alias.
26185
26186 2010-04-05  Bruno Haible  <bruno@clisp.org>
26187
26188         fseeko: Fix C++ test error on mingw.
26189         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
26190         gl_FUNC_FSEEKO.
26191         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
26192         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
26193         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
26194         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
26195
26196 2010-04-05  Bruno Haible  <bruno@clisp.org>
26197
26198         duplocale: Improve test output.
26199         * tests/test-duplocale.c (main): Print reason for skipped test.
26200
26201 2010-04-05  Bruno Haible  <bruno@clisp.org>
26202
26203         Assume rmdir exists.
26204         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
26205         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
26206
26207 2010-04-05  Bruno Haible  <bruno@clisp.org>
26208
26209         Fix link error on Solaris 8 with cc.
26210         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
26211
26212 2010-04-05  Bruno Haible  <bruno@clisp.org>
26213
26214         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
26215         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
26216
26217 2010-04-05  Bruno Haible  <bruno@clisp.org>
26218
26219         vasprintf: Update documentation.
26220         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
26221
26222 2010-04-05  Bruno Haible  <bruno@clisp.org>
26223
26224         ptsname: Improve test.
26225         * tests/test-ptsname.c (main): Also try the various master names of BSD
26226         systems.
26227
26228 2010-04-05  Bruno Haible  <bruno@clisp.org>
26229
26230         memchr: Avoid a possible C++ test error.
26231         * lib/string.in.h (memchr): Provide declaration if function is missing.
26232         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
26233         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
26234         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
26235         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
26236
26237 2010-04-05  Bruno Haible  <bruno@clisp.org>
26238
26239         strtok_r: Improve idiom.
26240         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
26241         AC_LIBOBJ is used.
26242
26243 2010-04-05  Bruno Haible  <bruno@clisp.org>
26244
26245         strdup: Improve idiom.
26246         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
26247         AC_LIBOBJ is used.
26248         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
26249         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
26250         when AC_LIBOBJ is used.
26251
26252 2010-04-05  Bruno Haible  <bruno@clisp.org>
26253
26254         mbsinit, mbrtowc, wcrtomb: Improve idioms.
26255         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
26256         don't set REPLACE_MBSINIT to 1.
26257         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
26258         don't set REPLACE_MBRTOWC to 1.
26259         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
26260         exist, don't set REPLACE_MBSRTOWCS to 1.
26261         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
26262         exist, don't set REPLACE_MBSNRTOWCS to 1.
26263         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
26264         don't set REPLACE_WCRTOMB to 1.
26265         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
26266         exist, don't set REPLACE_WCSRTOMBS to 1.
26267         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
26268         exist, don't set REPLACE_WCSNRTOMBS to 1.
26269
26270 2010-04-05  Bruno Haible  <bruno@clisp.org>
26271
26272         ldexpl: Improve idiom.
26273         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
26274         make sure to set HAVE_DECL_LDEXPL to 0.
26275
26276 2010-04-05  Jim Meyering  <meyering@redhat.com>
26277
26278         xstrtol-tests: convert to use init.sh
26279         * modules/xstrtol-tests (Files): Add tests/init.sh.
26280         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26281         Use Exit, not exit.
26282         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26283
26284         atexit-tests: convert to use init.sh
26285         * modules/atexit-tests (Files): Add tests/init.sh.
26286         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26287         Use Exit, not exit.
26288         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26289
26290         init.sh: fix typo
26291         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
26292
26293         init.sh: make it easier for a test script to write to the tty, ...
26294         when using automake's parallel-tests mode.
26295         * tests/init.sh (stderr_fileno_): Define overridable variable.
26296         (warn_): New function, to use it.
26297         (fail_, skip_, framework_failure_): Use warn_.
26298
26299 2010-04-04  Bruno Haible  <bruno@clisp.org>
26300
26301         btowc: Avoid warning.
26302         * lib/btowc.c: Include <stdlib.h>.
26303         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
26304
26305 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
26306             Bruno Haible  <bruno@clisp.org>
26307
26308         wchar: Port to NetBSD 1.5.
26309         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
26310         * lib/wctype.in.h (WEOF): Likewise.
26311
26312 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
26313             Bruno Haible  <bruno@clisp.org>
26314
26315         Port extended stdio to NetBSD 1.5.
26316         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
26317         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
26318         older.
26319
26320 2010-04-04  Bruno Haible  <bruno@clisp.org>
26321
26322         string: Remove unused substitution.
26323         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
26324         HAVE_DECL_STRERROR.
26325         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
26326
26327 2010-04-04  Bruno Haible  <bruno@clisp.org>
26328
26329         strtod: Avoid a possible C++ test error.
26330         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
26331         set REPLACE_STRTOD.
26332
26333 2010-04-04  Bruno Haible  <bruno@clisp.org>
26334
26335         strerror: Update documentation.
26336         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
26337
26338 2010-04-04  Bruno Haible  <bruno@clisp.org>
26339
26340         stdio: Fix some C++ test errors on Solaris 8 with GCC.
26341         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
26342         _GL_CXXALIAS_SYS_CAST.
26343
26344 2010-04-04  Bruno Haible  <bruno@clisp.org>
26345
26346         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
26347         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
26348         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
26349         REPLACE_FREXPL to 1.
26350         * doc/posix-functions/frexpl.texi: Update documentation.
26351
26352 2010-04-04  Bruno Haible  <bruno@clisp.org>
26353
26354         math: Fix some C++ test errors on Solaris 8 and Cygwin.
26355         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
26356
26357 2010-04-04  Bruno Haible  <bruno@clisp.org>
26358
26359         Implement nanosleep for native Windows.
26360         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
26361
26362 2010-04-04  Bruno Haible  <bruno@clisp.org>
26363
26364         math: Fix some C++ test errors on Solaris 8.
26365         * lib/math.in.h (truncf, trunc): Use simpler idiom.
26366
26367 2010-04-04  Bruno Haible  <bruno@clisp.org>
26368
26369         math: Fix some C++ test errors on Cygwin.
26370         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
26371         truncl): Provide declaration if the system does not have it.
26372         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
26373         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
26374         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
26375         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
26376         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
26377         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
26378         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
26379         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
26380         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
26381         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
26382         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
26383         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
26384         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
26385         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
26386         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
26387         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
26388         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
26389         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
26390         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
26391         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
26392         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
26393         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
26394
26395 2010-04-04  Bruno Haible  <bruno@clisp.org>
26396
26397         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
26398         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
26399         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
26400         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
26401         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
26402         * m4/isinf.m4 (gl_ISINF): Likewise.
26403         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26404
26405 2010-04-04  Bruno Haible  <bruno@clisp.org>
26406
26407         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
26408         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26409
26410 2010-04-04  Bruno Haible  <bruno@clisp.org>
26411
26412         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
26413         * modules/tmpfile (configure.ac): Update.
26414
26415         tmpfile: Fix C++ test error on mingw.
26416         * lib/stdio.in.h (tmpfile): New declaration.
26417         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
26418         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
26419         * modules/tmpfile (Depends-on): Add stdio.
26420         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
26421         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
26422         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
26423         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
26424         REPLACE_TMPFILE.
26425         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
26426
26427 2010-04-04  Bruno Haible  <bruno@clisp.org>
26428
26429         ioctl: Fix C++ test error on mingw.
26430         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
26431         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
26432         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
26433
26434 2010-04-03  Bruno Haible  <bruno@clisp.org>
26435
26436         wcwidth: Fix C++ test error on mingw.
26437         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
26438         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
26439         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
26440
26441 2010-04-03  Bruno Haible  <bruno@clisp.org>
26442
26443         nanosleep: Fix C++ test error on mingw.
26444         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
26445         * lib/time.in.h (nanosleep): Use modern idiom.
26446         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
26447         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
26448         REPLACE_NANOSLEEP to 1.
26449         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
26450         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
26451
26452 2010-04-03  Bruno Haible  <bruno@clisp.org>
26453
26454         strptime: Fix C++ test error on mingw.
26455         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
26456         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
26457         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
26458         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
26459         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
26460         not REPLACE_STRPTIME.
26461         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
26462         REPLACE_STRPTIME.
26463
26464 2010-04-03  Bruno Haible  <bruno@clisp.org>
26465
26466         timegm: Fix C++ test error on mingw.
26467         * lib/time.in.h (timegm): Use modern idiom.
26468         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
26469         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
26470         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
26471         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
26472
26473 2010-04-03  Bruno Haible  <bruno@clisp.org>
26474
26475         timegm: Assume declaration if function exists.
26476         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
26477         if it exists. Don't clobber ac_cv_func_timegm.
26478
26479 2010-04-03  Bruno Haible  <bruno@clisp.org>
26480
26481         time_r: Fix C++ test error on mingw.
26482         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
26483         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
26484         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
26485         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
26486         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
26487
26488 2010-04-03  Bruno Haible  <bruno@clisp.org>
26489
26490         time_r: Minor updates.
26491         * modules/time_r (Description): Mention the provided functions.
26492         * lib/time_r.c: Don't include <string.h>.
26493         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
26494         * doc/posix-functions/localtime_r.texi: Likewise.
26495
26496 2010-04-03  Bruno Haible  <bruno@clisp.org>
26497
26498         time: Fix regression introduced on 2010-03-08.
26499         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
26500         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
26501
26502 2010-04-03  Jim Meyering  <meyering@redhat.com>
26503
26504         maint.mk: don't silently disable project-specific syntax-check rules
26505         * top/maint.mk (_prohibit_regexp): Define, to help people realize
26506         that they need to convert their project-specific syntax-check rules
26507         to use the new _sc_search_regexp.
26508
26509 2010-04-03  Bruno Haible  <bruno@clisp.org>
26510
26511         fchdir: Fix regression introduced on 2010-03-08.
26512         * lib/unistd.in.h (fchdir): Fix declaration.
26513         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
26514         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
26515         REPLACE_FCHDIR.
26516         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
26517         REPLACE_FCHDIR.
26518
26519 2010-04-03  Bruno Haible  <bruno@clisp.org>
26520
26521         getpagesize: Fix C++ test error on mingw.
26522         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
26523         system does not declare the function.
26524         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
26525         declared.
26526         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26527         HAVE_DECL_GETPAGESIZE.
26528         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
26529
26530 2010-04-03  Bruno Haible  <bruno@clisp.org>
26531
26532         stdio: Make C++ tests work on mingw.
26533         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
26534         does not declare the function.
26535
26536 2010-04-03  Bruno Haible  <bruno@clisp.org>
26537
26538         ftello: Fix C++ test error on mingw.
26539         * lib/stdio.in.h (ftello): Use modern idiom.
26540         * lib/ftello.c (ftello): Renamed from rpl_ftello.
26541         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
26542         is missing and that it needs to be replaced.
26543         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
26544         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
26545         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
26546
26547 2010-04-03  Bruno Haible  <bruno@clisp.org>
26548
26549         fseeko: Fix C++ test error on mingw.
26550         * lib/stdio.in.h (fseeko): Use modern idiom.
26551         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
26552         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
26553         is missing and that it needs to be replaced.
26554         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
26555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
26556         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
26557
26558 2010-04-03  Bruno Haible  <bruno@clisp.org>
26559
26560         mkstemp: Fix C++ test error on mingw.
26561         * lib/stdlib.in.h (mkstemp): Use modern idiom.
26562         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
26563         function is missing and that it needs to be replaced.
26564         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
26565         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
26566
26567 2010-04-03  Bruno Haible  <bruno@clisp.org>
26568
26569         stpncpy: Fix C++ test error on mingw.
26570         * lib/string.in.h (stpncpy): Use modern idiom.
26571         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
26572         function is missing and that it needs to be replaced.
26573         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26574         REPLACE_STPNCPY.
26575         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
26576
26577 2010-04-03  Bruno Haible  <bruno@clisp.org>
26578
26579         sys_stat: Fix C++ test error on mingw.
26580         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
26581         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
26582
26583 2010-04-03  Bruno Haible  <bruno@clisp.org>
26584
26585         pty: Update doc.
26586         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
26587
26588 2010-04-03  Bruno Haible  <bruno@clisp.org>
26589
26590         unistd: Fix C++ test error on mingw.
26591         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
26592
26593 2010-04-03  Bruno Haible  <bruno@clisp.org>
26594
26595         Update doc regarding mingw.
26596         * doc/glibc-functions/openpty.texi: Update regarding mingw.
26597         * doc/glibc-functions/login_tty.texi: Likewise.
26598         * doc/glibc-functions/forkpty.texi: Likewise.
26599
26600 2010-04-03  Bruno Haible  <bruno@clisp.org>
26601
26602         stdlib: Avoid compilation failure of c-strtold on mingw.
26603         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
26604
26605 2010-04-03  Bruno Haible  <bruno@clisp.org>
26606
26607         locale: Make C++ tests work on Cygwin and mingw.
26608         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
26609         cannot provide the function.
26610         Reported by Simon Josefsson.
26611
26612 2010-04-03  Bruno Haible  <bruno@clisp.org>
26613
26614         localename: Port to MacOS X 10.6.
26615         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
26616         memory layout of the locales in MacOS X 10.6 as well.
26617         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
26618
26619 2010-04-02  Bruno Haible  <bruno@clisp.org>
26620
26621         gnulib-tool: Ensure that long-running tests are executed last.
26622         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
26623         running tests after the one for the other tests.
26624
26625 2010-04-02  Bruno Haible  <bruno@clisp.org>
26626
26627         gnulib-tool: Ensure the tests in the main directory are executed first.
26628         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
26629         start with the current directory.
26630
26631 2010-04-02  Bruno Haible  <bruno@clisp.org>
26632
26633         Tests for module 'havelib', moved here from GNU gettext.
26634         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
26635         modifications.
26636         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
26637         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
26638         with modifications.
26639         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
26640         modifications.
26641         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
26642         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
26643         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
26644         with modifications.
26645         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
26646         with modifications.
26647         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
26648         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
26649         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
26650         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
26651         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
26652         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
26653         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
26654         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
26655         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
26656         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
26657         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
26658         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
26659         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
26660         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
26661         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
26662         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
26663         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
26664         with modifications.
26665         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
26666         with modifications.
26667         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
26668         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
26669         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
26670         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
26671         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
26672         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
26673         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
26674         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
26675         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
26676         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
26677         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
26678         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
26679         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
26680         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
26681         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
26682         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
26683         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
26684         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
26685         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
26686         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
26687         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
26688         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
26689         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
26690         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
26691         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
26692         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
26693         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
26694         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
26695         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
26696         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
26697         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
26698         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
26699         * tests/havelib/rpathx/rpathx.c: New file, from
26700         gettext/autoconf-lib-link.
26701         * tests/havelib/rpathx/Makefile.am: New file, from
26702         gettext/autoconf-lib-link.
26703         * tests/havelib/rpathx/configure.ac: New file, from
26704         gettext/autoconf-lib-link with modifications.
26705         * tests/havelib/rpathy/rpathy.c: New file, from
26706         gettext/autoconf-lib-link.
26707         * tests/havelib/rpathy/Makefile.am: New file, from
26708         gettext/autoconf-lib-link.
26709         * tests/havelib/rpathy/configure.ac: New file, from
26710         gettext/autoconf-lib-link with modifications.
26711         * tests/havelib/rpathz/rpathz.c: New file, from
26712         gettext/autoconf-lib-link.
26713         * tests/havelib/rpathz/Makefile.am: New file, from
26714         gettext/autoconf-lib-link.
26715         * tests/havelib/rpathz/configure.ac: New file, from
26716         gettext/autoconf-lib-link with modifications.
26717         * tests/havelib/rpathlx/usex.c: New file, from
26718         gettext/autoconf-lib-link.
26719         * tests/havelib/rpathlx/Makefile.am: New file, from
26720         gettext/autoconf-lib-link.
26721         * tests/havelib/rpathlx/configure.ac: New file, from
26722         gettext/autoconf-lib-link with modifications.
26723         * tests/havelib/rpathly/usey.c: New file, from
26724         gettext/autoconf-lib-link.
26725         * tests/havelib/rpathly/Makefile.am: New file, from
26726         gettext/autoconf-lib-link.
26727         * tests/havelib/rpathly/configure.ac: New file, from
26728         gettext/autoconf-lib-link with modifications.
26729         * tests/havelib/rpathlz/usez.c: New file, from
26730         gettext/autoconf-lib-link.
26731         * tests/havelib/rpathlz/Makefile.am: New file, from
26732         gettext/autoconf-lib-link.
26733         * tests/havelib/rpathlz/configure.ac: New file, from
26734         gettext/autoconf-lib-link with modifications.
26735         * tests/havelib/rpathlyx/usey.c: New file, from
26736         gettext/autoconf-lib-link.
26737         * tests/havelib/rpathlyx/Makefile.am: New file, from
26738         gettext/autoconf-lib-link.
26739         * tests/havelib/rpathlyx/configure.ac: New file, from
26740         gettext/autoconf-lib-link with modifications.
26741         * tests/havelib/rpathlzyx/usez.c: New file, from
26742         gettext/autoconf-lib-link.
26743         * tests/havelib/rpathlzyx/Makefile.am: New file, from
26744         gettext/autoconf-lib-link.
26745         * tests/havelib/rpathlzyx/configure.ac: New file, from
26746         gettext/autoconf-lib-link with modifications.
26747         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
26748         with modifications.
26749
26750 2010-04-02  Bruno Haible  <bruno@clisp.org>
26751
26752         gnulib-tool: Create distributed built sources also for the tests.
26753         * gnulib-tool (func_create_testdir): Also generate distributed built
26754         sources in the tests directory.
26755
26756 2010-04-02  Bruno Haible  <bruno@clisp.org>
26757
26758         gnulib-tool: Obey user's environment variables.
26759         * gnulib-tool (func_create_testdir): When creating built sources,
26760         respect the environment variables for autoconf, automake, etc. given by
26761         the user.
26762
26763 2010-04-02  Bruno Haible  <bruno@clisp.org>
26764
26765         gnulib-tool: Provide the value of --m4-base to modules.
26766         * gnulib-tool (func_import, func_create_testdir): Emit a definition
26767         of gl_m4_base.
26768
26769 2010-04-02  Eric Blake  <eblake@redhat.com>
26770
26771         maint.mk: fix some fallout
26772         * NEWS: Document the incompatible change, and its effect on cfg.mk.
26773         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
26774
26775 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26776
26777         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
26778         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
26779         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
26780         (sc_cast_of_x_alloc_return_value): Likewise.
26781         (sc_cast_of_alloca_return_value): Likewise.
26782         (sc_space_tab): Likewise.
26783         (sc_prohibit_atoi_atof): Likewise.
26784         (sc_prohibit_magic_number_exit): Likewise.
26785         (sc_error_exit_success): Likewise.
26786         (sc_file_system): Likewise.
26787         (sc_prohibit_have_config_h): Likewise.
26788         (sc_require_config_h): Likewise.
26789         (sc_prohibit_HAVE_MBRTOWC): Likewise.
26790         (sc_obsolete_symbols): Likewise.
26791         (sc_changelog): Likewise.
26792         (sc_program_name): Likewise.
26793         (sc_the_the): Likewise.
26794         (sc_trailing_blank): Likewise.
26795         (sc_two_space_separator_in_usage): Likewise.
26796         (sc_useless_cpp_parens): Likewise.
26797         (sc_GPL_version): Likewise.
26798         (sc_GFDL_version): Likewise.
26799         (sc_texinfo_acronym): Likewise.
26800         (sc_prohibit_cvs_keyword): Likewise.
26801         (sc_prohibit_stat_st_blocks): Likewise.
26802         (sc_prohibit_S_IS_definition): Likewise.
26803         (sc_redundant_const): Likewise.
26804         (sc_makefile_TAB_only_indentation): Likewise.
26805         (sc_m4_quote_check): Likewise.
26806         (sc_makefile_path_separator_check): Likewise.
26807         (sc_copyright_check): Likewise.
26808         (sc_Wundef_boolean): Likewise.
26809         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26810
26811         maint.mk: match 0 or more whitespace-before-function-call '('
26812         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
26813         that have zero or two-and-more spaces between the function name
26814         and the open parenthesis.
26815         (sc_error_message_warn_fatal): Likewise.
26816         (sc_error_message_uppercase): Likewise.
26817         (sc_error_message_period): Likewise.
26818
26819 2010-03-31  Eric Blake  <eblake@redhat.com>
26820
26821         maint.mk: check for [ as well as test
26822         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
26823         Based on a libvirt report by Matthias Bolte.
26824
26825         gnumakefile: don't squelch _version output
26826         * top/GNUmakefile (_version): Create one-shot dependency rather
26827         than using $(shell) when version must be regenerated.
26828         (_autoreconf): Run verbosely, by default.
26829
26830         sys_time: avoid compiler warnings
26831         * lib/sys_time.in.h (includes): Ensure gcc pragma is
26832         unconditional, fixing regression from 2010-03-29.
26833         Reported by Simon Josefsson.
26834
26835 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26836
26837         maint.mk: s/_header_without_use/_sc_header_without_use/
26838         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
26839         (sc_prohibit_assert_without_use): Use the new name.
26840         (sc_prohibit_close_stream_without_use): Likewise.
26841         (sc_prohibit_getopt_without_use): Likewise.
26842         (sc_prohibit_quotearg_without_use): Likewise.
26843         (sc_prohibit_quote_without_use): Likewise.
26844         (sc_prohibit_long_options_without_use): Likewise.
26845         (sc_prohibit_inttostr_without_use): Likewise.
26846         (sc_prohibit_ignore_value_without_use): Likewise.
26847         (sc_prohibit_error_without_use): Likewise.
26848         (sc_prohibit_xalloc_without_use): Likewise.
26849         (sc_prohibit_hash_without_use): Likewise.
26850         (sc_prohibit_hash_pjw_without_use): Likewise.
26851         (sc_prohibit_safe_read_without_use): Likewise.
26852         (sc_prohibit_argmatch_without_use): Likewise.
26853         (sc_prohibit_canonicalize_without_use): Likewise.
26854         (sc_prohibit_root_dev_ino_without_use): Likewise.
26855         (sc_prohibit_openat_without_use): Likewise.
26856         (sc_prohibit_c_ctype_without_use): Likewise.
26857         (sc_prohibit_signal_without_use): Likewise.
26858         (sc_prohibit_intprops_without_use): Likewise.
26859
26860 2010-03-30  Eric Blake  <eblake@redhat.com>
26861
26862         maint: improve module indicators
26863         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
26864         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
26865         columns, and avoid extra macro expansion.
26866
26867         fdopendir: work around FreeBSD bug
26868         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26869         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
26870         * modules/dirent (Makefile.am): Substitute it.
26871         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
26872         declaration.
26873         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
26874         fix.
26875         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26876
26877 2010-03-29  Bruno Haible  <bruno@clisp.org>
26878
26879         Emit #pragma system_header after the inclusion guard, not before.
26880         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
26881         guard that spans the entire file, not before. This enables an
26882         optimization in GCC's preprocessor.
26883         * lib/ctype.in.h: Likewise.
26884         * lib/dirent.in.h: Likewise.
26885         * lib/errno.in.h: Likewise.
26886         * lib/float.in.h: Likewise.
26887         * lib/getopt.in.h: Likewise.
26888         * lib/iconv.in.h: Likewise.
26889         * lib/langinfo.in.h: Likewise.
26890         * lib/locale.in.h: Likewise.
26891         * lib/math.in.h: Likewise.
26892         * lib/netdb.in.h: Likewise.
26893         * lib/netinet_in.in.h: Likewise.
26894         * lib/pty.in.h: Likewise.
26895         * lib/sched.in.h: Likewise.
26896         * lib/se-selinux.in.h: Likewise.
26897         * lib/search.in.h: Likewise.
26898         * lib/spawn.in.h: Likewise.
26899         * lib/stdarg.in.h: Likewise.
26900         * lib/stdint.in.h: Likewise.
26901         * lib/string.in.h: Likewise.
26902         * lib/strings.in.h: Likewise.
26903         * lib/sys_file.in.h: Likewise.
26904         * lib/sys_ioctl.in.h: Likewise.
26905         * lib/sys_time.in.h: Likewise.
26906         * lib/sys_times.in.h: Likewise.
26907         * lib/sys_utsname.in.h: Likewise.
26908         * lib/sys_wait.in.h: Likewise.
26909         * lib/sysexits.in.h: Likewise.
26910         * lib/wctype.in.h: Likewise.
26911
26912 2010-03-28  James Youngman  <jay@gnu.org>
26913
26914         save-cwd: don't leak a file descriptor when the caller execs.
26915         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
26916         saved file descriptor.
26917         * modules/save-cwd (Depends-on): Depend on cloexec.
26918
26919 2010-03-29  Bruno Haible  <bruno@clisp.org>
26920
26921         Remove vestiges of fts-lgpl module.
26922         * lib/fts_.h: Assume GNULIB_FTS is 1.
26923         * lib/fts.c: Likewise.
26924         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26925
26926 2010-03-28  Bruno Haible  <bruno@clisp.org>
26927
26928         Fix definition of tests witness macro.
26929         * gnulib-tool (func_import): Fix definition of witness macro.
26930
26931 2010-03-28  Bruno Haible  <bruno@clisp.org>
26932
26933         Fix ioctl's protoype on glibc systems.
26934         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
26935         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
26936         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
26937         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
26938         signature. If not, arrange to replace the ioctl function.
26939         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26940         REPLACE_IOCTL.
26941         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
26942         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
26943         Reported by Ludovic Courtès <ludo@gnu.org>.
26944
26945 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
26946
26947         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
26948         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
26949         made it so grep -r --include=GLOB* ... did not work.
26950
26951 2010-03-26  Jim Meyering  <meyering@redhat.com>
26952             Eric Blake  <eblake@redhat.com>
26953
26954         maint.mk: prohibit use of test's -o and -a operators
26955         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
26956
26957 2010-03-28  Bruno Haible  <bruno@clisp.org>
26958
26959         Remove unused GNULIB_XYZ macro definitions.
26960         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
26961         invocation.
26962
26963 2010-03-28  Bruno Haible  <bruno@clisp.org>
26964
26965         Mark privileged tests modules.
26966         * modules/idpriv-drop-tests (Status): New section.
26967         * modules/idpriv-droptemp-tests (Status): New section.
26968
26969 2010-03-28  Bruno Haible  <bruno@clisp.org>
26970
26971         Split C++ tests into separate tests modules.
26972         * modules/dirent-c++-tests: New file, extracted from
26973         modules/dirent-tests.
26974         * modules/dirent-tests: Depend on it.
26975         * modules/fcntl-h-c++-tests: New file, extracted from
26976         modules/fcntl-h-tests.
26977         * modules/fcntl-h-tests: Depend on it.
26978         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
26979         * modules/glob-tests: Depend on it.
26980         * modules/iconv-h-c++-tests: New file, extracted from
26981         modules/iconv-h-tests.
26982         * modules/iconv-h-tests: Depend on it.
26983         * modules/langinfo-c++-tests: New file, extracted from
26984         modules/langinfo-tests.
26985         * modules/langinfo-tests: Depend on it.
26986         * modules/locale-c++-tests: New file, extracted from
26987         modules/locale-tests.
26988         * modules/locale-tests: Depend on it.
26989         * modules/math-c++-tests: New file, extracted from modules/math-tests.
26990         * modules/math-tests: Depend on it.
26991         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
26992         * modules/pty-tests: Depend on it.
26993         * modules/search-c++-tests: New file, extracted from
26994         modules/search-tests.
26995         * modules/search-tests: Depend on it.
26996         * modules/signal-c++-tests: New file, extracted from
26997         modules/signal-tests.
26998         * modules/signal-tests: Depend on it.
26999         * modules/spawn-c++-tests: New file, extracted from
27000         modules/spawn-tests.
27001         * modules/spawn-tests: Depend on it.
27002         * modules/stdio-c++-tests: New file, extracted from
27003         modules/stdio-tests.
27004         * modules/stdio-tests: Depend on it.
27005         * modules/stdlib-c++-tests: New file, extracted from
27006         modules/stdlib-tests.
27007         * modules/stdlib-tests: Depend on it.
27008         * modules/string-c++-tests: New file, extracted from
27009         modules/string-tests.
27010         * modules/string-tests: Depend on it.
27011         * modules/sys_ioctl-c++-tests: New file, extracted from
27012         modules/sys_ioctl-tests.
27013         * modules/sys_ioctl-tests: Depend on it.
27014         * modules/sys_select-c++-tests: New file, extracted from
27015         modules/sys_select-tests.
27016         * modules/sys_select-tests: Depend on it.
27017         * modules/sys_socket-c++-tests: New file, extracted from
27018         modules/sys_socket-tests.
27019         * modules/sys_socket-tests: Depend on it.
27020         * modules/sys_stat-c++-tests: New file, extracted from
27021         modules/sys_stat-tests.
27022         * modules/sys_stat-tests: Depend on it.
27023         * modules/sys_time-c++-tests: New file, extracted from
27024         modules/sys_time-tests.
27025         * modules/sys_time-tests: Depend on it.
27026         * modules/time-c++-tests: New file, extracted from modules/time-tests.
27027         * modules/time-tests: Depend on it.
27028         * modules/unistd-c++-tests: New file, extracted from
27029         modules/unistd-tests.
27030         * modules/unistd-tests: Depend on it.
27031         * modules/wchar-c++-tests: New file, extracted from
27032         modules/wchar-tests.
27033         * modules/wchar-tests: Depend on it.
27034         * modules/wctype-c++-tests: New file, extracted from
27035         modules/wctype-tests.
27036         * modules/wctype-tests: Depend on it.
27037         Reported by Simon Josefsson.
27038
27039 2010-03-28  Bruno Haible  <bruno@clisp.org>
27040
27041         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
27042         * gnulib-tool (func_exists_module): New function, extracted from
27043         func_verify_module.
27044         (func_verify_module): Use it.
27045         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
27046         'foo' only if 'foo' exists.
27047         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
27048         module.
27049
27050 2010-03-28  Bruno Haible  <bruno@clisp.org>
27051
27052         gnulib-tool: Add support for special categories of tests.
27053         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
27054         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
27055         (func_usage): Document them.
27056         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
27057         inc_unportable_tests, inc_all_tests): New variables.
27058         (func_acceptable): Consider these variables.
27059         (func_modules_transitive_closure): Make it work when the 'Status' field
27060         consists of multiple words.
27061         (func_import): Store and restore the values of inc_cxx_tests,
27062         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
27063         inc_all_tests in gnulib-comp.m4.
27064         (func_create_testdir): Set inc_all_tests to true.
27065         * doc/gnulib.texi (Extra tests modules): New section.
27066         Suggested by Jim Meyering.
27067
27068 2010-03-28  Bruno Haible  <bruno@clisp.org>
27069
27070         ansi-c++-opt: Allow turning off the C++ build by default.
27071         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
27072         gl_CXX_CHOICE_DEFAULT_NO is defined.
27073         Requested by Eric Blake.
27074
27075 2010-03-28  Bruno Haible  <bruno@clisp.org>
27076
27077         unistd: Avoid #define replacements in C++ mode.
27078         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
27079         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
27080         setsockopt, shutdown, select): In C++, attach a warning to the function
27081         if possible, rather than #defining the symbol to a dysfunctional alias.
27082         Reported by John W. Eaton <jwe@gnu.org>.
27083
27084 2010-03-28  Bruno Haible  <bruno@clisp.org>
27085
27086         Fix link errors on mingw.
27087         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
27088         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
27089         $(LIBSOCKET).
27090         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
27091         $(LIBSOCKET).
27092
27093 2010-03-28  Bruno Haible  <bruno@clisp.org>
27094             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27095
27096         lib-ignore: Determine different options for different compilers.
27097         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
27098         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
27099         Add comments.
27100         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
27101         * NEWS: Mention the change.
27102
27103 2010-03-27  Bruno Haible  <bruno@clisp.org>
27104
27105         Remove unused GNULIB_XYZ macro definitions.
27106         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
27107         * modules/fseek (configure.ac): Likewise.
27108         * modules/ioctl (configure.ac): Likewise.
27109         * modules/open (configure.ac): Likewise.
27110         * modules/stdlib-safer (configure.ac): Likewise.
27111
27112 2010-03-27  Bruno Haible  <bruno@clisp.org>
27113
27114         Add a remark about certain modules.
27115         * modules/malloc (Comment): New section.
27116         * modules/realloc (Comment): Likewise.
27117         * modules/sigpipe (Comment): Likewise.
27118
27119 2010-03-27  Bruno Haible  <bruno@clisp.org>
27120
27121         Resolve conflict between the two kinds of module indicators.
27122         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
27123         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
27124         * modules/canonicalize (configure.ac): Invoke
27125         gl_MODULE_INDICATOR_FOR_TESTS.
27126         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
27127         GNULIB_XYZ.
27128         * tests/test-dirent-c++.cc: Likewise.
27129         * tests/test-dirent-safer.c: Likewise.
27130         * tests/test-dup2.c: Likewise.
27131         * tests/test-fchdir.c: Likewise.
27132         * tests/test-fcntl-h-c++.cc: Likewise.
27133         * tests/test-getopt.c: Likewise.
27134         * tests/test-getopt.h: Likewise.
27135         * tests/test-langinfo-c++.cc: Likewise.
27136         * tests/test-locale-c++.cc: Likewise.
27137         * tests/test-math-c++.cc: Likewise.
27138         * tests/test-pty-c++.cc: Likewise.
27139         * tests/test-search-c++.cc: Likewise.
27140         * tests/test-signal-c++.cc: Likewise.
27141         * tests/test-spawn-c++.cc: Likewise.
27142         * tests/test-stdio-c++.cc: Likewise.
27143         * tests/test-stdlib-c++.cc: Likewise.
27144         * tests/test-string-c++.cc: Likewise.
27145         * tests/test-sys_ioctl-c++.cc: Likewise.
27146         * tests/test-sys_select-c++.cc: Likewise.
27147         * tests/test-sys_socket-c++.cc: Likewise.
27148         * tests/test-sys_stat-c++.cc: Likewise.
27149         * tests/test-sys_time-c++.cc: Likewise.
27150         * tests/test-time-c++.cc: Likewise.
27151         * tests/test-unistd-c++.cc: Likewise.
27152         * tests/test-wchar-c++.cc: Likewise.
27153         * tests/uninorm/test-u8-nfc.c: Likewise.
27154         * tests/uninorm/test-u8-nfd.c: Likewise.
27155         * tests/uninorm/test-u8-nfkc.c: Likewise.
27156         * tests/uninorm/test-u8-nfkd.c: Likewise.
27157         * tests/uninorm/test-u16-nfc.c: Likewise.
27158         * tests/uninorm/test-u16-nfd.c: Likewise.
27159         * tests/uninorm/test-u16-nfkc.c: Likewise.
27160         * tests/uninorm/test-u16-nfkd.c: Likewise.
27161         * tests/uninorm/test-u32-nfc.c: Likewise.
27162         * tests/uninorm/test-u32-nfc-big.c: Likewise.
27163         * tests/uninorm/test-u32-nfd.c: Likewise.
27164         * tests/uninorm/test-u32-nfd-big.c: Likewise.
27165         * tests/uninorm/test-u32-nfkc.c: Likewise.
27166         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
27167         * tests/uninorm/test-u32-nfkd.c: Likewise.
27168         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
27169         * tests/uninorm/test-u32-normalize-big.c: Likewise.
27170
27171 2010-03-27  Bruno Haible  <bruno@clisp.org>
27172
27173         Distinguish two kinds of module indicators.
27174         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
27175         gl_MODULE_INDICATOR.
27176         (gl_MODULE_INDICATOR): New macro.
27177         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
27178         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
27179         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
27180         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
27181         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
27182         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
27183         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
27184         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
27185         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
27186         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
27187         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
27188         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
27189         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
27190         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
27191         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
27192         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
27193         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
27194         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
27195         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
27196         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
27197         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
27198         * modules/cloexec (configure.ac): Likewise.
27199         * modules/getopt-gnu (configure.ac): Likewise.
27200         * modules/uninorm/u8-normalize (configure.ac): Likewise.
27201         * modules/uninorm/u16-normalize (configure.ac): Likewise.
27202         * modules/uninorm/u32-normalize (configure.ac): Likewise.
27203         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
27204
27205 2010-03-27  Bruno Haible  <bruno@clisp.org>
27206
27207         New module description field 'Comment'.
27208         * gnulib-tool: New option --extract-comment.
27209         (func_usage): Document it.
27210         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
27211         (func_get_comment): New function.
27212         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
27213
27214 2010-03-27  Bruno Haible  <bruno@clisp.org>
27215
27216         Addendum to 2010-02-07 commit.
27217         * gnulib-tool (func_usage): Document --extract-applicability option.
27218
27219 2010-03-27  Bruno Haible  <bruno@clisp.org>
27220
27221         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
27222         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
27223         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
27224         rather than link errors.
27225
27226 2010-03-27  Bruno Haible  <bruno@clisp.org>
27227
27228         Avoid side effects from tests-related modules on the compilation of lib.
27229         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
27230         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
27231         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
27232         parameter. Emit into AM_CPPFLAGS a definition of the designated C
27233         macro.
27234         (func_import): Define a witness macro. Assign it a value that depends
27235         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
27236         tests-related modules.
27237         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
27238         Reported by Jim Meyering.
27239
27240 2010-03-27  Bruno Haible  <bruno@clisp.org>
27241
27242         Factorize common .m4 code.
27243         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
27244         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
27245         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
27246         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
27247         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
27248         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
27249         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
27250         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
27251         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
27252         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
27253         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
27254         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
27255         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
27256         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
27257         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
27258         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
27259         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
27260         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
27261         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
27262         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
27263         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
27264         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
27265         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
27266         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
27267         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
27268         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
27269         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
27270         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
27271         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
27272         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
27273         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
27274         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
27275
27276 2010-03-27  Bruno Haible  <bruno@clisp.org>
27277
27278         Fix a compilation error on Cygwin with g++ >= 4.3.
27279         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
27280         if it is undefined or if we alias it to chmod.
27281         (lstat): Don't warn about the use of this function if it is undefined
27282         or if we alias it to stat.
27283         Reported by Simon Josefsson.
27284
27285 2010-03-27  Bruno Haible  <bruno@clisp.org>
27286
27287         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
27288         * modules/getlogin (configure.ac): Update.
27289
27290         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
27291         * modules/getlogin_r (configure.ac): Update.
27292
27293         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
27294         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
27295         * modules/inet_ntop (configure.ac): Update.
27296
27297         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
27298         * modules/inet_pton (configure.ac): Update.
27299
27300         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
27301         * modules/mbslen (configure.ac): Update.
27302
27303         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
27304         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
27305         * modules/forkpty (configure.ac): Update.
27306         * modules/openpty (configure.ac): Update.
27307
27308 2010-03-26  Simon Josefsson  <simon@josefsson.org>
27309
27310         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
27311         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
27312
27313 2010-03-25  Eric Blake  <eblake@redhat.com>
27314
27315         maint: use pragma consistently across replacement headers
27316         * lib/ctype.in.h (system_header): Hoist for consistent placement.
27317         * lib/dirent.in.h (system_header): Likewise.
27318         * lib/errno.in.h (system_header): Likewise.
27319         * lib/float.in.h (system_header): Likewise.
27320         * lib/getopt.in.h (system_header): Likewise.
27321         * lib/iconv.in.h (system_header): Likewise.
27322         * lib/inttypes.in.h (system_header): Likewise.
27323         * lib/langinfo.in.h (system_header): Likewise.
27324         * lib/locale.in.h (system_header): Likewise.
27325         * lib/math.in.h (system_header): Likewise.
27326         * lib/netdb.in.h (system_header): Likewise.
27327         * lib/netinet_in.in.h (system_header): Likewise.
27328         * lib/pty.in.h (system_header): Likewise.
27329         * lib/sched.in.h (system_header): Likewise.
27330         * lib/se-selinux.in.h (system_header): Likewise.
27331         * lib/search.in.h (system_header): Likewise.
27332         * lib/spawn.in.h (system_header): Likewise.
27333         * lib/stdarg.in.h (system_header): Likewise.
27334         * lib/stdint.in.h (system_header): Likewise.
27335         * lib/string.in.h (system_header): Likewise.
27336         * lib/strings.in.h (system_header): Likewise.
27337         * lib/sys_file.in.h (system_header): Likewise.
27338         * lib/sys_ioctl.in.h (system_header): Likewise.
27339         * lib/sys_socket.in.h (system_header): Likewise.
27340         * lib/sys_times.in.h (system_header): Likewise.
27341         * lib/sys_utsname.in.h (system_header): Likewise.
27342         * lib/sys_wait.in.h (system_header): Likewise.
27343         * lib/sysexits.in.h (system_header): Likewise.
27344         * lib/unistd.in.h (system_header): Likewise.
27345         * lib/wctype.in.h (system_header): Likewise.
27346
27347         arpa/inet: fix mingw compilation warning
27348         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
27349         Reported by Matthew Bolte.
27350
27351 2010-03-25  Bruno Haible  <bruno@clisp.org>
27352
27353         Avoid collision between gnulib wrapper and libintl wrapper.
27354         * lib/printf.c (printf): Don't define if a printf wrapper is already
27355         defined in intl/printf.c.
27356         Reported by Michel Boaventura <michel@michelboaventura.com>.
27357
27358 2010-03-25  Bruno Haible  <bruno@clisp.org>
27359
27360         Use ANSI C.
27361         * lib/readutmp.h (getutent): Provide ANSI C prototype.
27362
27363 2010-03-25  Bruno Haible  <bruno@clisp.org>
27364
27365         Minor formatting changes.
27366         * lib/acosl.c: Insert space before function argument list.
27367         * lib/argz.c: Likewise.
27368         * lib/asinl.c: Likewise.
27369         * lib/expl.c: Likewise.
27370         * lib/gen-uni-tables.c: Likewise.
27371         * lib/gettext.h: Likewise.
27372         * lib/glthread/lock.h: Likewise.
27373         * lib/tanl.c: Likewise.
27374         * lib/uniname/uniname.c: Likewise.
27375         * tests/test-idpriv-drop.c: Likewise.
27376         * tests/test-idpriv-droptemp.c: Likewise.
27377         * tests/test-lock.c: Likewise.
27378         * tests/test-tls.c: Likewise.
27379         * lib/argp-help.c: Insert space before function-like macro argument
27380         list.
27381         * lib/memcmp.c: Likewise.
27382         * tests/test-base64.c: Likewise.
27383         * lib/localename.c: Insert space before sizeof's argument list.
27384         * lib/safe-alloc.h: Likewise.
27385         * lib/file-set.h: Insert space before macro argument list.
27386         * tests/test-argp.c: Likewise.
27387         * lib/argp-namefrob.h: Insert space before function parameter list.
27388         * lib/getaddrinfo.c: Likewise.
27389         * lib/netdb.in.h: Likewise.
27390         * lib/parse-duration.h: Likewise.
27391         * lib/parse-duration.c: Likewise.
27392         * lib/poll.c: Likewise.
27393         * lib/select.c: Likewise.
27394         * lib/trim.h: Likewise.
27395         * tests/test-usleep.c: Likewise.
27396         * lib/ldexpl.c: Insert space before function parameter list and before
27397         function argument list.
27398         * lib/logl.c: Likewise.
27399         * lib/sqrtl.c: Likewise.
27400         * lib/trim.c: Likewise.
27401         * lib/cosl.c: Use GNU style indentation. Insert space before function
27402         argument list.
27403         * lib/sinl.c: Likewise.
27404         * lib/tsearch.c: Insert space after 'for'.
27405         Reported by Jim Meyering.
27406
27407 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
27408
27409         * maint.mk (sc_Wundef_boolean): Check for the presence of the
27410         config header before grepping, as it's not present before
27411         autoreconf/configure are run.  Reported by Simon Josefsson.
27412
27413 2010-03-23  Bruno Haible  <bruno@clisp.org>
27414
27415         pt_chown: Make it work with automake < 1.11.
27416         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
27417         Reported by Simon Josefsson.
27418
27419 2010-03-23  Bruno Haible  <bruno@clisp.org>
27420
27421         pt_chown: Don't depend on GPLed modules.
27422         * lib/pt_chown.c: Don't include idpriv.h.
27423         (main): Don't drop privileges.
27424         * modules/pt_chown (Depends-on): Remove idpriv-drop.
27425         Reported by Simon Josefsson.
27426
27427 2010-03-24  Simon Josefsson  <simon@josefsson.org>
27428
27429         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
27430         suggestions from karl@freefriends.org (Karl Berry).
27431
27432 2010-03-22  Eric Blake  <eblake@redhat.com>
27433
27434         gethostname: further tweaks
27435         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
27436         are overriding gethostname.
27437         Suggested by Bruno Haible.
27438
27439 2010-03-21  Bruno Haible  <bruno@clisp.org>
27440
27441         Fix comments.
27442         * lib/forkpty.c (rpl_forkpty): Fix comment.
27443         * lib/openpty.c (rpl_openpty): Likewise.
27444         Reported by Eric Blake.
27445
27446 2010-03-22  Eric Blake  <eblake@redhat.com>
27447
27448         gethostname: fix build on mingw
27449         * lib/unistd.in.h (includes): Work around fact that mingw
27450         <winsock2.h> re-includes <unistd.h>, by avoiding any
27451         redeclarations if we are being included by <winsock2.h>.
27452         Reported by Matthias Bolte.
27453
27454 2010-03-21  Bruno Haible  <bruno@clisp.org>
27455
27456         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27457         * lib/forkpty.c (forkpty): New replacement function, from glibc with
27458         modifications.
27459         * lib/pty.in.h (forkpty): Update declaration. Add comments.
27460         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
27461         provide the replacement.
27462         * modules/forkpty (Depends-on): Add openpty, login_tty.
27463         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
27464         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
27465         * doc/glibc-functions/forkpty.texi: More supported platforms.
27466         * config/srclist.txt: Add forkpty.c (commented).
27467
27468 2010-03-21  Bruno Haible  <bruno@clisp.org>
27469
27470         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
27471         (Makefile.am): Verify that PTY_LIB is defined.
27472
27473         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
27474
27475 2010-03-21  Bruno Haible  <bruno@clisp.org>
27476
27477         Tests for module 'login_tty'.
27478         * modules/login_tty-tests: New file.
27479         * tests/test-login_tty.c: New file.
27480
27481         New module 'login_tty'.
27482         * lib/login_tty.c: New file.
27483         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
27484         * modules/login_tty: New file.
27485         * doc/glibc-functions/login_tty.texi: Mention the new module.
27486
27487 2010-03-21  Bruno Haible  <bruno@clisp.org>
27488
27489         login_tty: Documentation.
27490         * doc/glibc-functions/login_tty.texi: New file.
27491         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
27492
27493 2010-03-21  Bruno Haible  <bruno@clisp.org>
27494
27495         pty: Consistent macro naming.
27496         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
27497         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
27498         * modules/pty (configure.ac): Update.
27499
27500 2010-03-21  Bruno Haible  <bruno@clisp.org>
27501
27502         Tests for openpty: Make stricter.
27503         * tests/test-openpty.c (main): Add test of canonical processing and
27504         erase.
27505         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
27506
27507         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27508         * lib/openpty.c (openpty): New replacement function.
27509         * lib/pty.in.h: Include <termios.h>.
27510         (openpty): Update declaration. Add comments.
27511         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
27512         is not declared, arrange to provide the replacement. Check for _getpty
27513         and posix_openpt.
27514         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
27515         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
27516         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
27517         * modules/pty-tests (test_pty_c___LDADD): New variable.
27518         * doc/glibc-functions/openpty.texi: More supported platforms.
27519
27520 2010-03-21  Bruno Haible  <bruno@clisp.org>
27521
27522         setenv: Tweaks.
27523         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
27524         the test program.
27525         * doc/posix-functions/setenv.texi: Update platforms list.
27526
27527 2010-03-21  Bruno Haible  <bruno@clisp.org>
27528
27529         New module 'unlockpt'.
27530         * lib/unlockpt.c: New file, from glibc with modifications.
27531         * m4/unlockpt.m4: New file.
27532         * modules/unlockpt: New file.
27533         * lib/stdlib.in.h (unlockpt): New declaration.
27534         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
27535         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
27536         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
27537         HAVE_UNLOCKPT.
27538         * doc/posix-functions/unlockpt.texi: Mention the new module.
27539         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
27540         * config/srclist.txt: Add unlockpt.c (commented).
27541
27542 2010-03-21  Jim Meyering  <meyering@redhat.com>
27543
27544         maint.mk: prohibit inclusion of "intprops.h" without use
27545         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
27546
27547 2010-03-21  Bruno Haible  <bruno@clisp.org>
27548
27549         New module 'grantpt'.
27550         * lib/grantpt.c: New file, from glibc with modifications.
27551         * m4/grantpt.m4: New file.
27552         * modules/grantpt: New file.
27553         * lib/stdlib.in.h (grantpt): New declaration.
27554         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
27555         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
27556         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
27557         HAVE_GRANTPT.
27558         * doc/posix-functions/grantpt.texi: Mention the new module.
27559         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
27560         * config/srclist.txt: Add grantpt.c (commented).
27561
27562 2010-03-21  Bruno Haible  <bruno@clisp.org>
27563
27564         New module 'pt_chown'.
27565         * lib/pt_chown.c: New file, from glibc with modifications.
27566         * lib/pty-private.h: New file, from glibc with modifications.
27567         * modules/pt_chown: New file.
27568         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
27569
27570 2010-03-21  Bruno Haible  <bruno@clisp.org>
27571
27572         Tests for module 'ptsname'.
27573         * modules/ptsname-tests: New file.
27574         * tests/test-ptsname.c: New file.
27575
27576         New module 'ptsname'.
27577         * lib/ptsname.c: New file, from glibc with modifications.
27578         * m4/ptsname.m4: New file.
27579         * modules/ptsname: New file.
27580         * lib/stdlib.in.h (ptsname): New declaration.
27581         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
27582         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
27583         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
27584         HAVE_PTSNAME.
27585         * doc/posix-functions/ptsname.texi: Mention the new module.
27586         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
27587         * config/srclist.txt: Add ptsname.c (commented).
27588
27589 2010-03-21  Bruno Haible  <bruno@clisp.org>
27590
27591         Tests for module 'ttyname_r'.
27592         * modules/ttyname_r-tests: New file.
27593         * tests/test-ttyname_r.c: New file.
27594
27595         New module 'ttyname_r'.
27596         * lib/ttyname_r.c: New file.
27597         * m4/ttyname_r.m4: New file.
27598         * modules/ttyname_r: New file.
27599         * lib/unistd.in.h (ttyname_r): New declaration.
27600         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
27601         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
27602         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
27603         HAVE_TTYNAME_R.
27604         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
27605         * doc/posix-functions/ttyname_r.texi: Mention the new module.
27606
27607 2010-03-20  Bruno Haible  <bruno@clisp.org>
27608
27609         signal: Undefine macro definitions in C++ mode.
27610         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
27611         sigfillset): Undefine macro definitions from the system header in C++
27612         mode.
27613         Reported by John W. Eaton <jwe@gnu.org>.
27614
27615 2010-03-20  Bruno Haible  <bruno@clisp.org>
27616
27617         Ensure no #include statements inside extern "C" { ... }.
27618         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
27619         contain #include statements.
27620         * lib/time.in.h: Likewise.
27621
27622 2010-03-20  Bruno Haible  <bruno@clisp.org>
27623
27624         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
27625         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
27626         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
27627         Reported by John W. Eaton <jwe@gnu.org>.
27628
27629 2010-03-20  Bruno Haible  <bruno@clisp.org>
27630
27631         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
27632         Reported by Jim Meyering.
27633
27634 2010-03-20  Bruno Haible  <bruno@clisp.org>
27635
27636         pipe: Set errno upon failure.
27637         * lib/pipe.h: Specify that when -1 is returned, errno is set.
27638         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
27639         errno value in error message.
27640
27641 2010-03-20  Bruno Haible  <bruno@clisp.org>
27642             Jim Meyering  <meyering@redhat.com>
27643
27644         lchown: Avoid "unused variable" warning.
27645         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
27646
27647 2010-03-20  Bruno Haible  <bruno@clisp.org>
27648
27649         Work around unlink() bug on MacOS X 10.5.6.
27650         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
27651         attempting to unlink a parent directory.
27652         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
27653         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
27654         activate for the replacement function.
27655         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
27656
27657 2010-03-20  Bruno Haible  <bruno@clisp.org>
27658
27659         Fix link errors on Solaris 8.
27660         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
27661         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
27662
27663 2010-03-19  Jim Meyering  <meyering@redhat.com>
27664
27665         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
27666         The _LIBC implementation of build_range_exp correctly honors the
27667         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
27668         However, the non-_LIBC implementation would ignore that syntax-bit
27669         flag and return REG_ERANGE unconditionally.
27670         This change makes it honor that flag.
27671         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
27672         Make two pointer parameters "const".
27673         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
27674         (parse_bracket_exp): Update caller.
27675
27676         regex.m4: correct the reversed range endpoint ([b-a]) test
27677         * m4/regex.m4: When requiring that [b-a] evoke failure,
27678         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
27679         test pass once again for x86-based systems.
27680
27681 2010-03-19  Bruno Haible  <bruno@clisp.org>
27682
27683         scandir: Fix link error on Solaris 8.
27684         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
27685         macros.
27686
27687 2010-03-19  Bruno Haible  <bruno@clisp.org>
27688
27689         getusershell: Fix documentation.
27690         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
27691         module.
27692         * doc/glibc-functions/setusershell.texi: Likewise.
27693
27694         getusershell: Provide declaration, missing on Solaris 9.
27695         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
27696         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
27697         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
27698         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
27699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27700         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
27701         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
27702         HAVE_GETUSERSHELL.
27703         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
27704
27705 2010-03-19  Bruno Haible  <bruno@clisp.org>
27706
27707         wctype: Provide iswblank function.
27708         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
27709         exists and is fine.
27710         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
27711         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
27712         * tests/test-wctype.c (main): Re-enable the iswblank tests.
27713         * doc/posix-functions/iswblank.texi: Update.
27714
27715 2010-03-19  Bruno Haible  <bruno@clisp.org>
27716
27717         Tests of module 'pty' in C++ mode.
27718         * modules/pty-tests: New file.
27719         * tests/test-pty-c++.cc: New file.
27720         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27721
27722 2010-03-19  Eric Blake  <eblake@redhat.com>
27723
27724         logb: fix documentation
27725         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
27726         1.5 declaration bug.
27727
27728         forkpty, openpty: prefer glibc's const-safe prototype
27729         * lib/forkpty.c (rpl_forkpty): New file.
27730         * lib/openpty.c (rpl_openpty): Likewise.
27731         * modules/forkpty (Files): Distribute it.
27732         * modules/openpty (Files): Likewise.
27733         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
27734         check...
27735         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
27736         replacement for for non-const BSD signature.
27737         * modules/pty (Makefile.am): Substitute witnesses.
27738         * lib/pty.in.h (forkpty, openpty): Declare replacements.
27739         * tests/test-forkpty.c: Update signature check.
27740         * tests/test-openpty.c: Likewise.
27741         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
27742         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27743
27744         forkpty, openpty: split functions into new modules
27745         * modules/pty (Makefile.am): Substitute new witnesses.
27746         (Libraries): Move library detection...
27747         * modules/forkpty: ...into new module.
27748         * modules/openpty: Another new module.
27749         * modules/pty-tests: Rename and split...
27750         * modules/forkpty-tests: ...to this...
27751         * modules/openpty-tests: ...and this.
27752         * tests/test-pty.c: Rename and split...
27753         * tests/test-forkpty.c: ...to this...
27754         * tests/test-openpty.c: ...and this.
27755         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
27756         (gl_PTY): Split library searching...
27757         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
27758         (gl_FORKPTY, gl_OPENPTY): New macros.
27759         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
27760         * NEWS: Mention the split.
27761         * MODULES.html.sh (Misc): Document the modules.
27762         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
27763         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27764
27765         pty: improve replacement header
27766         * lib/pty.in.h: New file.
27767         * modules/pty (Files): Ship it.
27768         (Makefile.am): Always build replacement.
27769         * m4/pty.m4: Rename...
27770         * m4/pty_h.m4: ...to this.
27771         (gl_PTY): Modernize setting of witness macros; update check of
27772         forkpty to take proper advantage of cache.
27773         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
27774
27775         getopt: avoid compiler warning
27776         * lib/getopt.c (attribute_hidden): Remove unused macro.
27777
27778 2010-03-18  Bruno Haible  <bruno@clisp.org>
27779
27780         Fix link errors on Solaris 8.
27781         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
27782         * modules/search-tests (test_search_c___LDADD): Likewise.
27783         * modules/signal-tests (test_signal_c___LDADD): Likewise.
27784         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
27785         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
27786         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
27787         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
27788         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
27789         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
27790
27791 2010-03-18  Bruno Haible  <bruno@clisp.org>
27792
27793         Fix bug introduced on 2010-03-14.
27794         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
27795         (gl_SPAWN_H): Require it.
27796         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
27797         Reported by Simon Josefsson.
27798
27799 2010-03-18  Bruno Haible  <bruno@clisp.org>
27800
27801         Fix typo introduced on 2009-12-31.
27802         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
27803         posix_spawn_file_actions_adddup2.
27804
27805 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
27806         and Eric Blake  <eblake@redhat.com>
27807
27808         test-vc-list-files-git: make more robust
27809         * tests/test-vc-list-files-git.sh: Unset problematic environment
27810         variables.  Chain commands together.
27811
27812 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
27813
27814         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
27815         `AC_CHECK_DECL' invocation.
27816
27817 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
27818
27819         * lib/inttostr.c (inttostr): Make sure the invocation of verify
27820         appears before executable statements. Suggested by Petr Sumbera
27821         <Petr.Sumbera@Sun.COM>.
27822
27823 2010-03-14  Bruno Haible  <bruno@clisp.org>
27824
27825         * tests/test-flock.c (test_exclusive): Comment out a test that causes
27826         portability problems. Instead use a simpler test.
27827         (main): Check that invalid arguments are rejected only on Linux.
27828
27829 2010-03-14  Bruno Haible  <bruno@clisp.org>
27830
27831         Fix bug introduced on 2009-12-31.
27832         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
27833         gl_PREREQ_SYS_H_WINSOCK2 always.
27834         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
27835         SYS_SOCKET_H variable.
27836         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
27837         Update comments.
27838         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
27839         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27840         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27841         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27842         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
27843
27844 2010-03-14  Bruno Haible  <bruno@clisp.org>
27845
27846         Fix values returned by sinl, cosl.
27847         * lib/trigl.h: Add specification comments.
27848         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
27849         that combines the values from the precomputed table with the values of
27850         the Chebyshev polynomials.
27851
27852 2010-03-14  Bruno Haible  <bruno@clisp.org>
27853
27854         Fix compilation error when modules 'posix_spawn[p]' are not used.
27855         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
27856         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
27857
27858 2010-03-14  Bruno Haible  <bruno@clisp.org>
27859
27860         Fix compilation error on mingw when module 'time_r' is not used.
27861         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
27862         is 1.
27863         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
27864         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27865         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
27866         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
27867
27868 2010-03-14  Bruno Haible  <bruno@clisp.org>
27869
27870         Fix compilation error with Sun C.
27871         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
27872         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
27873         instead of GCC specific ULONG_LONG_MAX.
27874         * lib/xstrtoll.c: Likewise.
27875         * lib/xstrtoull.c: Likewise.
27876
27877 2010-03-13  Bruno Haible  <bruno@clisp.org>
27878
27879         Allow the user to disable C++ code and tests.
27880         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
27881         (gl_PROG_ANSI_CXX): Require it.
27882
27883 2010-03-13  Bruno Haible  <bruno@clisp.org>
27884
27885         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
27886         cases.
27887
27888 2010-03-13  Bruno Haible  <bruno@clisp.org>
27889
27890         Test that gnulib does not break the standard C++ headers.
27891         * tests/test-locale-c++2.cc: New file.
27892         * modules/locale-tests (Files): Add it.
27893         (Makefile.am): Compile it for test-locale-c++.
27894         * tests/test-math-c++2.cc: New file.
27895         * modules/math-tests (Files): Add it.
27896         (Makefile.am): Compile it for test-math-c++.
27897         * tests/test-signal-c++2.cc: New file.
27898         * modules/signal-tests (Files): Add it.
27899         (Makefile.am): Compile it for test-signal-c++.
27900         * tests/test-stdio-c++2.cc: New file.
27901         * modules/stdio-tests (Files): Add it.
27902         (Makefile.am): Compile it for test-stdio-c++.
27903         * tests/test-stdlib-c++2.cc: New file.
27904         * modules/stdlib-tests (Files): Add it.
27905         (Makefile.am): Compile it for test-stdlib-c++.
27906         * tests/test-string-c++2.cc: New file.
27907         * modules/string-tests (Files): Add it.
27908         (Makefile.am): Compile it for test-string-c++.
27909         * tests/test-time-c++2.cc: New file.
27910         * modules/time-tests (Files): Add it.
27911         (Makefile.am): Compile it for test-time-c++.
27912         Reported by John W. Eaton <jwe@gnu.org>.
27913
27914 2010-03-13  Bruno Haible  <bruno@clisp.org>
27915
27916         * gnulib-tool (func_usage): Clarify which options are available for
27917         --create-testdir and --create-megatestdir.
27918
27919 2010-03-13  Bruno Haible  <bruno@clisp.org>
27920
27921         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
27922         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
27923         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
27924         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27925         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
27926         when appropriate.
27927         Reported by Jim Meyering.
27928
27929 2010-03-12  Simon Josefsson  <simon@josefsson.org>
27930
27931         * gnulib-tool (func_import): Explain origin of code.
27932
27933 2010-03-12  Bruno Haible  <bruno@clisp.org>
27934
27935         Fix problem with automake's definition of CXXLINK.
27936         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
27937         Reported by Simon Josefsson and Ludovic Courtès.
27938
27939 2010-03-12  Bruno Haible  <bruno@clisp.org>
27940
27941         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
27942         stable releases.
27943
27944 2010-03-11  Bruno Haible  <bruno@clisp.org>
27945
27946         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
27947         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
27948         whether the system provides one variant or multiple variants of the
27949         function.
27950         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
27951         C++ compilers.
27952         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
27953         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
27954         Reported by Jim Meyering.
27955
27956 2010-03-09  Simon Josefsson  <simon@josefsson.org>
27957
27958         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
27959
27960 2010-03-08  Bruno Haible  <bruno@clisp.org>
27961
27962         gnulib-tool: Add support for --libtool in --create-testdir.
27963         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
27964         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
27965
27966 2010-03-08  Eric Blake  <eblake@redhat.com>
27967
27968         gnulib-tool.texi: mention possibility of git submodule
27969         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
27970         submodules.
27971         * doc/.gitignore: Ignore another generated file.
27972
27973 2010-03-08  Karl Berry  <karl@gnu.org>
27974
27975         * doc/gnulib-tool.texi (VCS Issues): Mention third option
27976         of committing gnulib files while skipping others.
27977
27978 2010-03-07  Bruno Haible  <bruno@clisp.org>
27979
27980         Tests of module 'wctype' in C++ mode.
27981         * tests/test-wctype-c++.cc: New file.
27982         * modules/wctype-tests (Files): Add it and tests/signature.h.
27983         (Depends-on): Add ansi-c++-opt.
27984         (Makefile.am): Arrange to compile and run test-wctype-c++.
27985
27986         Tests of module 'wchar' in C++ mode.
27987         * tests/test-wchar-c++.cc: New file.
27988         * modules/wchar-tests (Files): Add it and tests/signature.h.
27989         (Depends-on): Add ansi-c++-opt.
27990         (Makefile.am): Arrange to compile and run test-wchar-c++.
27991         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
27992         gl_MODULE_INDICATOR.
27993
27994         Tests of module 'unistd' in C++ mode.
27995         * tests/test-unistd-c++.cc: New file.
27996         * modules/unistd-tests (Files): Add it and tests/signature.h.
27997         (Depends-on): Add ansi-c++-opt.
27998         (Makefile.am): Arrange to compile and run test-unistd-c++.
27999         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
28000         gl_MODULE_INDICATOR.
28001
28002         Tests of module 'time' in C++ mode.
28003         * tests/test-time-c++.cc: New file.
28004         * modules/time-tests (Files): Add it and tests/signature.h.
28005         (Depends-on): Add ansi-c++-opt.
28006         (Makefile.am): Arrange to compile and run test-time-c++.
28007         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28008
28009         Tests of module 'sys_time' in C++ mode.
28010         * tests/test-sys_time-c++.cc: New file.
28011         * modules/sys_time-tests (Files): Add it and tests/signature.h.
28012         (Depends-on): Add ansi-c++-opt.
28013         (Makefile.am): Arrange to compile and run test-sys_time-c++.
28014         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
28015         gl_MODULE_INDICATOR.
28016
28017         Tests of module 'sys_stat' in C++ mode.
28018         * tests/test-sys_stat-c++.cc: New file.
28019         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
28020         (Depends-on): Add ansi-c++-opt.
28021         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
28022         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
28023         gl_MODULE_INDICATOR.
28024
28025         Tests of module 'sys_socket' in C++ mode.
28026         * tests/test-sys_socket-c++.cc: New file.
28027         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
28028         (Depends-on): Add ansi-c++-opt.
28029         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
28030         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
28031         gl_MODULE_INDICATOR.
28032
28033         Tests of module 'sys_select' in C++ mode.
28034         * tests/test-sys_select-c++.cc: New file.
28035         * modules/sys_select-tests (Files): Add it and tests/signature.h.
28036         (Depends-on): Add ansi-c++-opt.
28037         (Makefile.am): Arrange to compile and run test-sys_select-c++.
28038         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
28039         gl_MODULE_INDICATOR.
28040
28041         Tests of module 'sys_ioctl' in C++ mode.
28042         * tests/test-sys_ioctl-c++.cc: New file.
28043         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
28044         (Depends-on): Add ansi-c++-opt.
28045         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
28046         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
28047         gl_MODULE_INDICATOR.
28048
28049         Tests of module 'string' in C++ mode.
28050         * tests/test-string-c++.cc: New file.
28051         * modules/string-tests (Files): Add it and tests/signature.h.
28052         (Depends-on): Add ansi-c++-opt.
28053         (Makefile.am): Arrange to compile and run test-string-c++.
28054         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
28055         gl_MODULE_INDICATOR.
28056
28057         Tests of module 'stdlib' in C++ mode.
28058         * tests/test-stdlib-c++.cc: New file.
28059         * modules/stdlib-tests (Files): Add it and tests/signature.h.
28060         (Depends-on): Add ansi-c++-opt.
28061         (Makefile.am): Arrange to compile and run test-stdlib-c++.
28062         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
28063         gl_MODULE_INDICATOR.
28064
28065         Tests of module 'stdio' in C++ mode.
28066         * tests/test-stdio-c++.cc: New file.
28067         * modules/stdio-tests (Files): Add it and tests/signature.h.
28068         (Depends-on): Add ansi-c++-opt.
28069         (Makefile.am): Arrange to compile and run test-stdio-c++.
28070         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
28071         gl_MODULE_INDICATOR.
28072
28073         Tests of module 'spawn' in C++ mode.
28074         * tests/test-spawn-c++.cc: New file.
28075         * modules/spawn-tests (Files): Add it and tests/signature.h.
28076         (Depends-on): Add ansi-c++-opt.
28077         (Makefile.am): Arrange to compile and run test-spawn-c++.
28078         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
28079         gl_MODULE_INDICATOR.
28080
28081         Tests of module 'signal' in C++ mode.
28082         * tests/test-signal-c++.cc: New file.
28083         * modules/signal-tests (Files): Add it and tests/signature.h.
28084         (Depends-on): Add ansi-c++-opt.
28085         (Makefile.am): Arrange to compile and run test-signal-c++.
28086         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
28087         gl_MODULE_INDICATOR.
28088
28089         Tests of module 'search' in C++ mode.
28090         * tests/test-search-c++.cc: New file.
28091         * modules/search-tests (Files): Add it and tests/signature.h.
28092         (Depends-on): Add ansi-c++-opt.
28093         (Makefile.am): Arrange to compile and run test-search-c++.
28094         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
28095         gl_MODULE_INDICATOR.
28096
28097         Tests of module 'math' in C++ mode.
28098         * tests/test-math-c++.cc: New file.
28099         * modules/math-tests (Files): Add it and tests/signature.h.
28100         (Depends-on): Add ansi-c++-opt.
28101         (Makefile.am): Arrange to compile and run test-math-c++.
28102         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28103
28104         Tests of module 'locale' in C++ mode.
28105         * tests/test-locale-c++.cc: New file.
28106         * modules/locale-tests (Files): Add it and tests/signature.h.
28107         (Depends-on): Add ansi-c++-opt.
28108         (Makefile.am): Arrange to compile and run test-locale-c++.
28109         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
28110         gl_MODULE_INDICATOR.
28111
28112         Tests of module 'langinfo' in C++ mode.
28113         * tests/test-langinfo-c++.cc: New file.
28114         * modules/langinfo-tests (Files): Add it and tests/signature.h.
28115         (Depends-on): Add ansi-c++-opt.
28116         (Makefile.am): Arrange to compile and run test-langinfo-c++.
28117         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
28118         gl_MODULE_INDICATOR.
28119
28120         Tests of module 'iconv-h' in C++ mode.
28121         * tests/test-iconv-h-c++.cc: New file.
28122         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
28123         (Depends-on): Add ansi-c++-opt.
28124         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
28125
28126         Tests of module 'glob' in C++ mode.
28127         * tests/test-glob-c++.cc: New file.
28128         * modules/glob-tests (Files): Add it.
28129         (Depends-on): Add ansi-c++-opt.
28130         (Makefile.am): Arrange to compile and run test-glob-c++.
28131
28132         Tests of module 'fcntl-h' in C++ mode.
28133         * tests/test-fcntl-h-c++.cc: New file.
28134         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
28135         (Depends-on): Add ansi-c++-opt.
28136         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
28137         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
28138         gl_MODULE_INDICATOR.
28139
28140         Tests of module 'dirent' in C++ mode.
28141         * tests/test-dirent-c++.cc: New file.
28142         * modules/dirent-tests (Files): Add it and tests/signature.h.
28143         (Depends-on): Add ansi-c++-opt.
28144         (Makefile.am): Arrange to compile and run test-dirent-c++.
28145         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
28146         gl_MODULE_INDICATOR.
28147
28148         New module 'ansi-c++-opt'.
28149         * modules/ansi-c++-opt: New file.
28150         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
28151
28152         Document C++ namespace mode.
28153         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
28154
28155         wctype: Avoid #define replacements in C++ mode.
28156         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
28157         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
28158         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
28159         In C++, define a namespaced alias symbol.
28160         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
28161         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
28162         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
28163         rule.
28164
28165         wchar: Avoid #define replacements in C++ mode.
28166         * lib/wchar.in.h: Include c++defs.h.
28167         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
28168         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
28169         symbol.
28170         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
28171         * modules/wchar (Depends-on): Add c++defs.
28172         (Makefile.am): Update wchar.h rule.
28173
28174         unistd: Avoid #define replacements in C++ mode.
28175         * lib/unistd.in.h: Include c++defs.h.
28176         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
28177         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
28178         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
28179         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
28180         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
28181         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
28182         symbol.
28183         (environ): Update.
28184         * modules/unistd (Depends-on): Add c++defs.
28185         (Makefile.am): Update unistd.h rule.
28186
28187         time: Avoid #define replacements in C++ mode.
28188         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
28189         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
28190         define a namespaced alias symbol.
28191         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
28192         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
28193         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
28194         * modules/time (Depends-on): Add c++defs, warn-on-use.
28195         (Makefile.am): Update time.h rule.
28196         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
28197         * modules/nanosleep (configure.ac): Likewise.
28198         * modules/strptime (configure.ac): Likewise.
28199         * modules/timegm (configure.ac): Likewise.
28200
28201         sys_time: Avoid #define replacements in C++ mode.
28202         * lib/sys_time.in.h: Include c++defs.h.
28203         (gettimeofday): In C++, define a namespaced alias symbol.
28204         * modules/sys_time (Depends-on): Add c++defs.
28205         (Makefile.am): Update sys/time.h rule.
28206
28207         sys_stat: Avoid #define replacements in C++ mode.
28208         * lib/sys_stat.in.h: Include c++defs.h.
28209         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
28210         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
28211         namespaced alias symbol.
28212         In C++, define a namespaced alias symbol.
28213         * modules/sys_stat (Depends-on): Add c++defs.
28214         (Makefile.am): Update sys/stat.h rule.
28215
28216         sys_socket: Avoid #define replacements in C++ mode.
28217         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
28218         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
28219         definitions also when the system has a <sys/socket.h>.
28220         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
28221         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
28222         In C++, define a namespaced alias symbol.
28223         * modules/sys_socket (Depends-on): Add c++defs.
28224         (Makefile.am): Update sys/socket.h rule.
28225
28226         sys_select: Avoid #define replacements in C++ mode.
28227         * lib/sys_select.in.h: Include c++defs.h. Enable the function
28228         definitions also when the system has a <sys/select.h>.
28229         (select): In C++, define a namespaced alias symbol.
28230         * modules/sys_select (Depends-on): Add c++defs.
28231         (Makefile.am): Update sys/select.h rule.
28232
28233         sys_ioctl: Avoid #define replacements in C++ mode.
28234         * lib/sys_ioctl.in.h: Include c++defs.h.
28235         (ioctl): In C++, define a namespaced alias symbol.
28236         * modules/sys_ioctl (Depends-on): Add c++defs.
28237         (Makefile.am): Update sys/ioctl.h rule.
28238
28239         string: Avoid #define replacements in C++ mode.
28240         * lib/string.in.h: Include c++defs.h.
28241         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
28242         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28243         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28244         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
28245         strsignal, strverscmp): In C++, define a namespaced alias symbol.
28246         * modules/string (Depends-on): Add c++defs.
28247         (Makefile.am): Update string.h rule.
28248
28249         stdlib: Avoid #define replacements in C++ mode.
28250         * lib/stdlib.in.h: Include c++defs.h.
28251         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
28252         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
28253         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
28254         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
28255         symbol.
28256         * modules/stdlib (Depends-on): Add c++defs.
28257         (Makefile.am): Update stdlib.h rule.
28258
28259         stdio: Avoid #define replacements in C++ mode.
28260         * lib/stdio.in.h: Include c++defs.h.
28261         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
28262         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
28263         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
28264         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
28265         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
28266         namespaced alias symbol.
28267         * modules/stdio (Depends-on): Add c++defs.
28268         (Makefile.am): Update stdio.h rule.
28269
28270         spawn: Avoid #define replacements in C++ mode.
28271         * lib/spawn.in.h: Include c++defs.h.
28272         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28273         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28274         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28275         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28276         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28277         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28278         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28279         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28280         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28281         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28282         In C++, define a namespaced alias symbol.
28283         * modules/spawn (Depends-on): Add c++defs.
28284         (Makefile.am): Update spawn.h rule.
28285
28286         signal: Avoid #define replacements in C++ mode.
28287         * lib/signal.in.h: Include c++defs.h.
28288         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28289         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
28290         namespaced alias symbol.
28291         * modules/signal (Depends-on): Add c++defs.
28292         (Makefile.am): Update signal.h rule.
28293
28294         search: Avoid #define replacements in C++ mode.
28295         * lib/search.in.h: Include c++defs.h.
28296         (_gl_search_compar_fn, _gl_search_action_fn): New types.
28297         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
28298         symbol.
28299         * modules/search (Depends-on): Add c++defs.
28300         (Makefile.am): Update search.h rule.
28301
28302         math: Avoid #define replacements in C++ mode.
28303         * lib/math.in.h: Include c++defs.h.
28304         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
28305         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
28306         trunc, truncl): In C++, define a namespaced alias symbol.
28307         * modules/math (Depends-on): Add c++defs.
28308         (Makefile.am): Update math.h rule.
28309
28310         locale: Avoid #define replacements in C++ mode.
28311         * lib/locale.in.h: Include c++defs.h.
28312         (duplocale): In C++, define a namespaced alias symbol.
28313         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
28314         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
28315         * modules/locale (Depends-on): Add c++defs.
28316         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
28317
28318         langinfo: Avoid #define replacements in C++ mode.
28319         * lib/langinfo.in.h: Include c++defs.h.
28320         (nl_langinfo): In C++, define a namespaced alias symbol.
28321         * modules/langinfo (Depends-on): Add c++defs.
28322         (Makefile.am): Update langinfo.h rule.
28323
28324         iconv-h: Avoid #define replacements in C++ mode.
28325         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
28326         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
28327         symbol.
28328         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
28329         whenever iconv is present.
28330         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
28331         (Makefile.am): Update iconv.h rule.
28332
28333         glob: Avoid #define replacements in C++ mode.
28334         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
28335         (_gl_glob_errfunc_fn): New type.
28336         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
28337         symbol.
28338         * modules/glob (Depends-on): Add c++defs, warn-on-use.
28339         (Makefile.am): Update glob.h rule.
28340
28341         fcntl-h: Avoid #define replacements in C++ mode.
28342         * lib/fcntl.in.h: Include c++defs.h.
28343         (fcntl, open, openat): In C++, define a namespaced alias symbol.
28344         * modules/fcntl-h (Depends-on): Add c++defs.
28345         (Makefile.am): Update fcntl.h rule.
28346
28347         dirent: Avoid #define replacements in C++ mode.
28348         * lib/dirent.in.h: Include c++defs.h.
28349         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
28350         namespaced alias symbol.
28351         (dirfd): Update declaration.
28352         * modules/dirent (Depends-on): Add c++defs.
28353         (Makefile.am): Update dirent.h rule.
28354
28355         ctype: Make it usable in C++ code.
28356         * lib/ctype.in.h: Include c++defs.h.
28357         (isblank): Declare as extern "C".
28358         * modules/ctype (Depends-on): Add c++defs.
28359         (Makefile.am): Update ctype.h rule.
28360
28361         New module 'c++defs'.
28362         * modules/c++defs: New file.
28363         * build-aux/c++defs.h: New file.
28364         Reported by John W. Eaton <jwe@gnu.org>.
28365
28366 2010-03-07  Bruno Haible  <bruno@clisp.org>
28367
28368         logb: Provide missing declaration for Cygwin.
28369         * lib/math.in.h (logb): New declaration.
28370         * m4/logb.m4: New file.
28371         * modules/logb (Files): Add m4/logb.m4.
28372         (Depends-on): Add math.
28373         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
28374         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
28375         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
28376         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
28377         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
28378
28379 2010-03-07  Bruno Haible  <bruno@clisp.org>
28380
28381         Fix test-cond link error.
28382         * tests/test-cond.c: Include <stdio.h>.
28383
28384 2010-03-07  Bruno Haible  <bruno@clisp.org>
28385
28386         Fix test-dirent-safer link error.
28387         * modules/dirent-safer-tests (Makefile.am): Define
28388         test_dirent_safer_LDADD.
28389
28390 2010-03-07  Bruno Haible  <bruno@clisp.org>
28391
28392         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
28393         among default module list.
28394
28395 2010-03-07  Bruno Haible  <bruno@clisp.org>
28396
28397         Fix link error on platforms with GNU libiconv.
28398         * modules/unistr/u8-strcoll-tests (Makefile): Define
28399         test_u8_strcoll_LDADD.
28400         * modules/unistr/u16-strcoll-tests (Makefile): Define
28401         test_u16_strcoll_LDADD.
28402         * modules/unistr/u32-strcoll-tests (Makefile): Define
28403         test_u32_strcoll_LDADD.
28404
28405 2010-03-07  Bruno Haible  <bruno@clisp.org>
28406
28407         Use POSIX declarations for socket functions.
28408         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
28409         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
28410         rpl_sendto): Change declaration to match POSIX.
28411         * lib/connect.c (rpl_connect): Likewise.
28412         * lib/accept.c (rpl_accept): Likewise.
28413         * lib/bind.c (rpl_bind): Likewise.
28414         * lib/getpeername.c (rpl_getpeername): Likewise.
28415         * lib/getsockname.c (rpl_getsockname): Likewise.
28416         * lib/recv.c (rpl_recv): Likewise.
28417         * lib/send.c (rpl_send): Likewise.
28418         * lib/recvfrom.c (rpl_recvfrom): Likewise.
28419         * lib/sendto.c (rpl_sendto): Likewise.
28420
28421 2010-03-06  Bruno Haible  <bruno@clisp.org>
28422
28423         Clarify access, euidaccess, faccessat.
28424         * doc/posix-functions/faccessat.texi: Mention security problem under
28425         "Other problems", not "Portability problems".
28426         * doc/posix-functions/access.texi: Likewise. Mention a related security
28427         problem.
28428         * doc/glibc-functions/euidaccess.texi: Mention security problems.
28429         * lib/euidaccess.c: Add comments about platforms.
28430         * lib/unistd.in.h (access, euidaccess): Add warnings.
28431
28432 2010-03-07  Bruno Haible  <bruno@clisp.org>
28433
28434         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
28435         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
28436         (POSIX_SPAWN_SETSCHEDULER): Likewise.
28437         (POSIX_SPAWN_USEVFORK): Define in a way that works when
28438         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28439         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
28440         declare when POSIX_SPAWN_SETSCHEDULER is zero.
28441         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
28442         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
28443         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
28444         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
28445         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
28446         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
28447         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
28448         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
28449         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
28450         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
28451         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
28452         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
28453         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
28454         Likewise.
28455         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
28456         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
28457         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
28458         Likewise.
28459         * tests/test-spawn.c (main): Make it work when
28460         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28461
28462 2010-03-07  Bruno Haible  <bruno@clisp.org>
28463
28464         Fix incorrect Makefile.am generation in German locale.
28465         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28466         Execute sed command with character range in C locale.
28467
28468 2010-03-06  Bruno Haible  <bruno@clisp.org>
28469
28470         Tests for module 'iconv-h'.
28471         * modules/iconv-h-tests: New file.
28472         * tests/test-iconv-h.c: New file.
28473
28474         New module 'iconv-h'.
28475         * modules/iconv-h: New file.
28476         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
28477         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
28478         (configure.ac): Remove gl_ICONV_H.
28479         (Makefile.am): Remove rule for iconv.h.
28480
28481 2010-03-06  Bruno Haible  <bruno@clisp.org>
28482
28483         More consistent naming of *.m4 files.
28484         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
28485         * modules/wctype (Files): Update.
28486
28487         More consistent naming of *.m4 files.
28488         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
28489         * modules/wchar (Files): Update.
28490
28491 2010-03-06  Jim Meyering  <meyering@redhat.com>
28492
28493         euidaccess: relax license to LGPLv2+
28494         * modules/euidaccess (License): Relax to LGPLv2+.
28495
28496 2010-03-06  Bruno Haible  <bruno@clisp.org>
28497
28498         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
28499         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
28500         (Makefile.am): Augment lib_SOURCES instead.
28501
28502 2010-03-04  Jim Meyering  <meyering@redhat.com>
28503
28504         utime: remove obsolete module
28505         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
28506         unnecessary for years, and has been marked as obsolete for 10 months.
28507         * modules/utime: Remove file.
28508         * lib/utime.c: Remove file.
28509         * m4/utime.m4: Remove file.
28510         * m4/utimes-null.m4: Remove file.
28511         * doc/posix-functions/utime.texi (utime): Remove reference to
28512         the module.  Move the sole "fixed by gnulib" item into the
28513         "problems not fixed by Gnulib" list.
28514         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
28515
28516 2010-03-05  Simon Josefsson  <simon@josefsson.org>
28517
28518         * modules/exit (License): Relax license to LGPLv2+.
28519         (Status): Mark as obsolete.
28520         * NEWS: Mention deprecated 'exit' module.
28521         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
28522         of now obsolete 'exit'.
28523
28524 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28525
28526         fts-lgpl: remove unused module
28527         * modules/fts-lgpl: Remove.
28528         * MODULES.html.sh (func_all_modules): Adjust.
28529         * check-module (find_included_lib_files): Adjust.
28530         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
28531
28532 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
28533
28534         copy-acl: enhance Solaris ACL error handling
28535         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
28536         * lib/set-mode-acl.c (qset_acl): Likewise.
28537
28538 2010-03-02  Bruno Haible  <bruno@clisp.org>
28539
28540         spawn: Don't override the system defined values on FreeBSD 8.
28541         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
28542         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
28543         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
28544         if HAVE_POSIX_SPAWN is 1.
28545         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
28546
28547 2010-03-01  Bruno Haible  <bruno@clisp.org>
28548
28549         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
28550         regarding Automake.
28551
28552 2010-02-25  Bruno Haible  <bruno@clisp.org>
28553
28554         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
28555         * gnulib-tool: Define 'echo' as a function only before the ksh alias
28556         setting, not afterwards.
28557         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
28558
28559 2010-02-24  Eric Blake  <eblake@redhat.com>
28560
28561         bootstrap, git-version-gen: use timestamp
28562         * build-aux/git-version-gen (scriptversion): Force UTC.
28563         * build-aux/bootstrap (scriptversion): New variable.
28564
28565         bootstrap: allow older git
28566         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
28567         older than 1.6.4.  Requested by the libvirt project.
28568
28569 2010-02-23  Eric Blake  <eblake@redhat.com>
28570
28571         warn-on-use: work with old autoconf
28572         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
28573         AS_VAR semantics of autoconf 2.60.
28574         Reported by Bruno Haible.
28575
28576         bootstrap: improve some comments
28577         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
28578         clarification comments.
28579
28580         gettimeofday: provide correct function
28581         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
28582         when replacement is declared, otherwise provide gettimeofday.
28583         Reported by Michael Goffioul.
28584
28585 2010-02-23  Jim Meyering  <meyering@redhat.com>
28586
28587         lib-ignore: relax license to "unlimited", not LGPLv2+
28588         * modules/lib-ignore (License): Relax to "unlimited".
28589
28590 2010-02-23  Jim Meyering  <meyering@redhat.com>
28591
28592         lib-ignore: relax license to LGPLv2+
28593         * modules/lib-ignore (License): Relax to LGPLv2+.
28594
28595 2010-02-22  Eric Blake  <eblake@redhat.com>
28596
28597         lseek: avoid bash 3.2 broken pipe bug
28598         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
28599         warning from bash 3.2.
28600         Reported by Ben Pfaff, with analysis from Bruno Haible.
28601
28602         bootstrap: support non-FSF copyright holder
28603         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
28604         bootstrap.conf override of COPYRIGHT_HOLDER.
28605         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
28606
28607         bootstrap: interoperate with gettext 0.14.1
28608         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
28609
28610         bootstrap: allow for alternate submodule location
28611         * build-aux/bootstrap (gnulib_path): New variable; use instead of
28612         hardcoding submodule location.
28613         (gnulib_mk): Allow direct use of Makefile.am.
28614
28615         bootstrap: use GNULIB_SRCDIR to reduce disk usage
28616         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
28617         rather than reconfiguring where the submodule points.
28618
28619         gettimeofday: restore support for platforms that lack function
28620         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
28621         replacement if function is missing.
28622         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
28623         * modules/sys_time (Makefile.am): Substitute it.
28624         * lib/sys_time.in.h (gettimeofday): Check it.
28625         Reported by Michael Goffioul.
28626
28627 2010-02-21  Bruno Haible  <bruno@clisp.org>
28628
28629         * lib/stdio.in.h (obstack_printf): Fix typo.
28630
28631 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
28632
28633         vc-list-files: use bzr ls's -R option
28634         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
28635         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
28636
28637 2010-02-21  Jim Meyering  <meyering@redhat.com>
28638
28639         init.sh: fix EXEEXT shims to work also for names like test-prog
28640         * tests/init.sh: Re-exec a better shell, when needed.
28641         If the current shell lacks support for posix $(...), an init.sh-using
28642         test will now try to find a shell that supports that.  If EXEEXT is
28643         nonempty, we also require support for hyphen-in-alias-name and shell
28644         substitutions like ${var#glob}.  Failure to find such a shell results
28645         in a skipped test.
28646
28647 2010-02-21  Bruno Haible  <bruno@clisp.org>
28648
28649         Really work around around "broken pipe" error message from bash 3.2.
28650         * gnulib-tool (func_reset_sigpipe): Remove function.
28651         (echo): In bash 3.2, define to a function that uses printf.
28652         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
28653
28654 2010-02-20  Bruno Haible  <bruno@clisp.org>
28655
28656         Restore support for automake 1.9.6 with autoconf 2.61.
28657         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
28658         Reported by James Youngman <jay@gnu.org>.
28659
28660 2010-02-20  Bruno Haible  <bruno@clisp.org>
28661
28662         Improve *printf warning condition.
28663         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
28664         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
28665         and the function is overridden due to SIGPIPE emulation.
28666
28667 2010-02-20  Bruno Haible  <bruno@clisp.org>
28668
28669         * lib/stdio.in.h: Tweak comments.
28670
28671 2010-02-19  Bruno Haible  <bruno@clisp.org>
28672
28673         Make it easier to find modules. New gnulib-tool option '--find'.
28674         * gnulib-tool: New option --find.
28675         (func_usage): Document it.
28676         (func_sanitize_modulelist): New function, extracted from
28677         func_all_modules.
28678         (func_all_modules): Invoke it.
28679         * doc/gnulib-tool.texi (Which modules?): New node.
28680
28681 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
28682
28683         * lib/sys_select.in.h: Provide select replacement even if
28684         sys/select.h exists on a system, for Interix.
28685
28686 2010-02-18  Jim Meyering  <meyering@redhat.com>
28687
28688         init.sh: don't use $(...) just yet
28689         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
28690         to accommodate e.g., Solaris' /bin/sh.
28691
28692 2010-02-17  Bruno Haible  <bruno@clisp.org>
28693
28694         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
28695         Reported by Ludovic Courtès <ludo@gnu.org>.
28696
28697 2010-02-16  Simon Josefsson  <simon@josefsson.org>
28698
28699         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
28700         linking with -lintl.
28701
28702 2010-02-17  Simon Josefsson  <simon@josefsson.org>
28703
28704         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
28705         if not provided by the system's netdb.h.  Reported by
28706         ludo@gnu.org (Ludovic Courtès).
28707
28708 2010-02-15  Jim Meyering  <meyering@redhat.com>
28709
28710         init.sh: improve portability and efficiency
28711         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
28712         "dummy" in a for loop.
28713         Use '!', not '^' to select the complement of a character set used
28714         in a "case" statement.
28715         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
28716         Suggestions from Eric Blake.
28717
28718         init.sh: automatically accommodate programs with the .exe suffix
28719         Automatically arrange for an invocation of "prog" to execute the
28720         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
28721         may use the simpler "prog", yet still work when built on a system
28722         that requires specifying the added suffix.
28723         Do this by constructing a function named "prog" that invokes
28724         "prog.exe" for each .exe file in selected directories.
28725         * tests/init.sh (find_exe_basenames_): New function.
28726         (create_exe_shim_functions_): New function.
28727         (path_prepend_): Use it.
28728
28729         maint.mk: mark syntax-check sc_*.m rules as .PHONY
28730         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
28731         "make -t syntax-check" doesn't create a ton of sc_*.m files.
28732
28733 2010-02-14  Jim Meyering  <meyering@redhat.com>
28734
28735         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
28736         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
28737         (sc_prohibit_hash_pjw_without_use): New rule.
28738
28739         maint.mk: allow the default upload destination dir to be overridden
28740         * top/maint.mk (upload_dest_dir_): Define with a default that
28741         preserves the status quo.
28742         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
28743         Reported by Peter Simons.
28744
28745         maint.mk: prohibit inclusion of "hash.h" without_use
28746         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
28747
28748 2010-02-10  Jim Meyering  <meyering@redhat.com>
28749
28750         maint.mk: prohibit inclusion of "ignore-value.h" without_use
28751         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
28752
28753 2010-02-09  Eric Blake  <ebb9@byu.net>
28754         and Bruno Haible  <bruno@clisp.org>
28755
28756         obstack-printf-posix: ensure declaration
28757         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
28758         extracted from gl_FUNC_OBSTACK_PRINTF.
28759         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
28760         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
28761         Likewise.
28762         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
28763         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
28764         0.
28765
28766 2010-02-08  Bruno Haible  <bruno@clisp.org>
28767
28768         gnulib-tool: Fix typo in 2010-02-07 commit.
28769         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
28770         Reported by Eric Blake.
28771
28772 2010-02-07  Bruno Haible  <bruno@clisp.org>
28773
28774         gnulib-tool: Fix up caching patches.
28775         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
28776         option --no-cache. Use associative arrays when supported by the shell.
28777         (sed_comments): New variable.
28778         (modcache): Renamed from do_cache.
28779         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
28780         abbreviate unnecessarily.
28781         (have_associative): New variable.
28782         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
28783         way also for ksh and zsh.
28784         (func_init_sed_convert_to_cache_statements): New function, extracted
28785         from func_cache_lookup_module. Add support for associative arrays.
28786         Don't set the c_MODULE_cached variable here. Ignore all lines before
28787         the first field header. Remove only the final newline, not all trailing
28788         newlines. Support empty fields correctly. Limit the use of 'eval' to
28789         assignments.
28790         (func_get_description, func_get_status, func_get_notice,
28791         func_get_applicability, func_get_filelist, func_get_dependencies,
28792         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
28793         func_get_automake_snippet, func_get_include_directive,
28794         func_get_link_directive, func_get_license, func_get_maintainer):
28795         Update documentation. List the unoptimized code first. Add support for
28796         associative arrays. Limit the use of 'eval' to assignments.
28797         (func_get_applicability): Undo stylistic pessimisations.
28798         (func_get_automake_snippet, func_get_include_directive): Reduce code
28799         duplication.
28800         (func_modules_transitive_closure, func_modules_add_dummy,
28801         func_modules_notice, func_modules_to_filelist, func_add_file,
28802         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
28803         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
28804         func_create_testdir, func_create_megatestdir): Update documentation.
28805
28806 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28807
28808         * gnulib-tool (func_cache_lookup_module): Store the module name
28809         belonging to the cache variable; error out if two different
28810         module names map to the same cache variable name.
28811
28812 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28813
28814         gnulib-tool: Make caching optional.
28815         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
28816         Update matching short versions of --no-changelog.
28817         (func_usage): Update.
28818         (sed_extract_cache_prog): Renamed from ...
28819         (sed_extract_prog): ... this; revert to old extraction script.
28820         (func_get_description, func_get_status)
28821         (func_get_notice, func_get_applicability, func_get_filelist)
28822         (func_get_dependencies, func_get_autoconf_early_snippet)
28823         (func_get_autoconf_snippet, func_get_automake_snippet)
28824         (func_get_include_directive, func_get_link_directive)
28825         (func_get_license, func_get_maintainer): If $do_cache is false,
28826         use old, non-caching extraction scripts.
28827         Suggestion by Bruno Haible.
28828
28829 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28830
28831         gnulib-tool: cache module metainformation.
28832         * gnulib-tool (sed_extract_prog): Match newline before each
28833         header, and rewrite header to a shell variable suffix.
28834         (func_cache_var, func_cache_lookup_module): New functions,
28835         to turn a module name into a cache variable prefix, and to
28836         look up and cache module metainformation.
28837         (func_get_description, func_get_status)
28838         (func_get_notice, func_get_applicability, func_get_filelist)
28839         (func_get_dependencies, func_get_autoconf_early_snippet)
28840         (func_get_autoconf_snippet, func_get_automake_snippet)
28841         (func_get_include_directive, func_get_link_directive)
28842         (func_get_license, func_get_maintainer): Use
28843         func_cache_lookup_module.
28844
28845 2010-02-07  Bruno Haible  <bruno@clisp.org>
28846
28847         fnctl: Fix missing dependency.
28848         * modules/fcntl (Depends-on): Add getdtablesize.
28849         Reported by John W. Eaton <jwe@gnu.org>.
28850
28851 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28852
28853         Argp: fix recognition of short alias options.
28854
28855         * lib/argp-parse.c (convert_options): Fix improper use of
28856         `|' between character values.
28857         * tests/test-argp.c (group1_option): New alias option
28858         --read (-r).
28859         (group1_parser): Special handling for 'r'.
28860         (test15): New test case.
28861         (test_fun): Add test15.
28862         * tests/test-argp-2.sh: Update expected --help and --usage
28863         outputs.
28864
28865 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28866
28867         * tests/test-argp.c: Fix indentation.
28868
28869 2010-02-04  Eric Blake  <ebb9@byu.net>
28870
28871         gettimeofday: expose type of second argument
28872         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
28873         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
28874         * tests/test-gettimeofday.c: Use it to silence warning.
28875         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
28876         the issue.
28877
28878 2010-02-03  Jim Meyering  <meyering@redhat.com>
28879
28880         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
28881         * lib/regcomp.c (TYPE_SIGNED): Define.
28882         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
28883
28884         regcomp.c: avoid a new -Wshadow warning
28885         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
28886
28887 2010-02-01  Jim Meyering  <meyering@redhat.com>
28888
28889         removing useless parentheses in cpp #define directives
28890         For motivation, see commit c0221df4, "define STREQ(a,b)
28891         consistently, removing useless parentheses"
28892         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
28893         * lib/mountlist.c (MNT_IGNORE): Likewise.
28894         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
28895
28896 2010-02-01  Eric Blake  <ebb9@byu.net>
28897
28898         sys_time: use link-warning
28899         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
28900         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
28901         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
28902         * modules/sys_time (Depends-on): Add warn-on-use.
28903         (Makefile.am): Always build replacement.
28904         (configure.ac): Update substitutions.
28905         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
28906         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
28907         bother with SYS_TIME_H.
28908         * modules/gettimeofday (configure.ac): Declare indicator.
28909         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
28910         in use.
28911
28912         closein-tests: silence compiler warning
28913         * tests/test-closein.c (main): Ignore fread result.
28914         * modules/closein-tests (Depends-on): Add ignore-value.
28915
28916         tests: silence warning about system return
28917         * tests/test-areadlink-with-size.c (main): Ignore system result.
28918         * tests/test-areadlink.c (main): Likewise.
28919         * tests/test-areadlinkat-with-size.c (main): Likewise.
28920         * tests/test-areadlinkat.c (main): Likewise.
28921         * tests/test-canonicalize-lgpl.c (main): Likewise.
28922         * tests/test-canonicalize.c (main): Likewise.
28923         * tests/test-chown.c (main): Likewise.
28924         * tests/test-fchownat.c (main): Likewise.
28925         * tests/test-fdutimensat.c (main): Likewise.
28926         * tests/test-fstatat.c (main): Likewise.
28927         * tests/test-futimens.c (main): Likewise.
28928         * tests/test-lchown.c (main): Likewise.
28929         * tests/test-link.c (main): Likewise.
28930         * tests/test-linkat.c (main): Likewise.
28931         * tests/test-lstat.c (main): Likewise.
28932         * tests/test-mkdir.c (main): Likewise.
28933         * tests/test-mkdirat.c (main): Likewise.
28934         * tests/test-mkfifo.c (main): Likewise.
28935         * tests/test-mkfifoat.c (main): Likewise.
28936         * tests/test-mknod.c (main): Likewise.
28937         * tests/test-readlink.c (main): Likewise.
28938         * tests/test-remove.c (main): Likewise.
28939         * tests/test-rename.c (main): Likewise.
28940         * tests/test-renameat.c (main): Likewise.
28941         * tests/test-rmdir.c (main): Likewise.
28942         * tests/test-symlink.c (main): Likewise.
28943         * tests/test-symlinkat.c (main): Likewise.
28944         * tests/test-unlink.c (main): Likewise.
28945         * tests/test-unlinkat.c (main): Likewise.
28946         * tests/test-utimens.c (main): Likewise.
28947         * tests/test-utimensat.c (main): Likewise.
28948         * modules/areadlink-tests (Depends-on): Add ignore-value.
28949         * modules/areadlink-with-size-tests (Depends-on): Likewise.
28950         * modules/areadlinkat-tests (Depends-on): Likewise.
28951         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
28952         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28953         * modules/canonicalize-tests (Depends-on): Likewise.
28954         * modules/chown-tests (Depends-on): Likewise.
28955         * modules/fdutimensat-tests (Depends-on): Likewise.
28956         * modules/futimens-tests (Depends-on): Likewise.
28957         * modules/lchown-tests (Depends-on): Likewise.
28958         * modules/link-tests (Depends-on): Likewise.
28959         * modules/linkat-tests (Depends-on): Likewise.
28960         * modules/lstat-tests (Depends-on): Likewise.
28961         * modules/mkdir-tests (Depends-on): Likewise.
28962         * modules/mkfifo-tests (Depends-on): Likewise.
28963         * modules/mkfifoat-tests (Depends-on): Likewise.
28964         * modules/mknod-tests (Depends-on): Likewise.
28965         * modules/openat-tests (Depends-on): Likewise.
28966         * modules/readlink-tests (Depends-on): Likewise.
28967         * modules/remove-tests (Depends-on): Likewise.
28968         * modules/rename-tests (Depends-on): Likewise.
28969         * modules/renameat-tests (Depends-on): Likewise.
28970         * modules/rmdir-tests (Depends-on): Likewise.
28971         * modules/symlink-tests (Depends-on): Likewise.
28972         * modules/symlinkat-tests (Depends-on): Likewise.
28973         * modules/unlink-tests (Depends-on): Likewise.
28974         * modules/utimens-tests (Depends-on): Likewise.
28975         * modules/utimensat-tests (Depends-on): Likewise.
28976
28977 2010-01-31  Bruno Haible  <bruno@clisp.org>
28978
28979         Perform the same test for many <math.h> functions.
28980         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
28981         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
28982         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
28983         of gl_MATHFUNC.
28984         * modules/acos (configure.ac): Likewise.
28985         * modules/asin (configure.ac): Likewise.
28986         * modules/atan (configure.ac): Likewise.
28987         * modules/atan2 (configure.ac): Likewise.
28988         * modules/cbrt (configure.ac): Likewise.
28989         * modules/copysign (configure.ac): Likewise.
28990         * modules/cos (configure.ac): Likewise.
28991         * modules/cosh (configure.ac): Likewise.
28992         * modules/erf (configure.ac): Likewise.
28993         * modules/erfc (configure.ac): Likewise.
28994         * modules/exp (configure.ac): Likewise.
28995         * modules/fmod (configure.ac): Likewise.
28996         * modules/hypot (configure.ac): Likewise.
28997         * modules/j0 (configure.ac): Likewise.
28998         * modules/j1 (configure.ac): Likewise.
28999         * modules/jn (configure.ac): Likewise.
29000         * modules/lgamma (configure.ac): Likewise.
29001         * modules/log (configure.ac): Likewise.
29002         * modules/log10 (configure.ac): Likewise.
29003         * modules/log1p (configure.ac): Likewise.
29004         * modules/pow (configure.ac): Likewise.
29005         * modules/remainder (configure.ac): Likewise.
29006         * modules/sin (configure.ac): Likewise.
29007         * modules/sinh (configure.ac): Likewise.
29008         * modules/tan (configure.ac): Likewise.
29009         * modules/tanh (configure.ac): Likewise.
29010         * modules/y0 (configure.ac): Likewise.
29011         * modules/y1 (configure.ac): Likewise.
29012         * modules/yn (configure.ac): Likewise.
29013         Suggested by Paolo Bonzini.
29014
29015 2010-01-31  Bruno Haible  <bruno@clisp.org>
29016
29017         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
29018
29019 2010-01-31  Bruno Haible  <bruno@clisp.org>
29020
29021         Work around getdelim() bug on FreeBSD 8.0.
29022         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
29023         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
29024         not work.
29025         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
29026         is 1.
29027         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
29028         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
29029         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
29030         a non-zero size.
29031         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
29032
29033 2010-01-31  Bruno Haible  <bruno@clisp.org>
29034
29035         Work around getline() bug on FreeBSD 8.0.
29036         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
29037         and a non-zero size.
29038         * tests/test-getline.c (main): Likewise.
29039         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
29040         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
29041
29042 2010-01-28  Eric Blake  <ebb9@byu.net>
29043
29044         regex: fix build failure
29045         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
29046         platforms.
29047
29048 2010-01-28  Jim Meyering  <meyering@redhat.com>
29049
29050         regex: do not ignore memory allocation failure
29051         * lib/regex_internal.c (create_cd_newstate): Detect
29052         re_node_set_init_copy failure.   Extracted from glibc commit
29053         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29054
29055         regex: sync more white-space changes from libc
29056         * lib/regex_internal.c: White-space only changes.
29057         * lib/regexec.c: Likewise.
29058
29059         regex: add many uses of __attribute_warn_unused_result__
29060         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
29061         * lib/regexec.c: Likewise.
29062         Extracted from a messy glibc commit.
29063
29064         regcomp.c: spelling and merge-artifact from glibc
29065         * lib/regcomp.c: Merge remainder of glibc's
29066         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29067
29068         regcomp.c: sync white-space changes from glibc
29069         * lib/regcomp.c: Merge to accommodate white space
29070         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29071
29072         regcomp.c: do not ignore internal return values
29073         * lib/regcomp.c: Do not ignore internal return values.
29074         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
29075         but without its white-space changes and spelling fixes.
29076
29077         regex_internal.h: define __attribute_warn_unused_result__
29078         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
29079
29080         maint: add a syntax-check rule to check for vulnerable Makefile.in
29081         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
29082
29083 2010-01-27  Jim Meyering  <meyering@redhat.com>
29084
29085         ncftpput-ftp: clean up spaces
29086         * build-aux/ncftpput-ftp: Make Copyright line consistent.
29087         Remove trailing blanks.
29088
29089 2010-01-27  Simon Josefsson  <simon@josefsson.org>
29090
29091         * build-aux/git-version-gen: Fix copyright statement.
29092         * build-aux/gnupload: Likewise.
29093         * tests/test-arcfour.c: Likewise.
29094         * tests/test-arctwo.c: Likewise.
29095         * tests/test-count-one-bits.c: Likewise.
29096         * tests/test-crc.c: Likewise.
29097         * tests/test-des.c: Likewise.
29098         * tests/test-gc-arcfour.c: Likewise.
29099         * tests/test-gc-arctwo.c: Likewise.
29100         * tests/test-gc-des.c: Likewise.
29101         * tests/test-gc-hmac-md5.c: Likewise.
29102         * tests/test-gc-hmac-sha1.c: Likewise.
29103         * tests/test-gc-md2.c: Likewise.
29104         * tests/test-gc-md4.c: Likewise.
29105         * tests/test-gc-md5.c: Likewise.
29106         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29107         * tests/test-gc-rijndael.c: Likewise.
29108         * tests/test-gc-sha1.c: Likewise.
29109         * tests/test-gc.c: Likewise.
29110         * tests/test-gethostname.c: Likewise.
29111         * tests/test-gettimeofday.c: Likewise.
29112         * tests/test-hash.c: Likewise.
29113         * tests/test-hmac-md5.c: Likewise.
29114         * tests/test-hmac-sha1.c: Likewise.
29115         * tests/test-md2.c: Likewise.
29116         * tests/test-md4.c: Likewise.
29117         * tests/test-md5.c: Likewise.
29118         * tests/test-memchr.c: Likewise.
29119         * tests/test-memchr2.c: Likewise.
29120         * tests/test-memcmp.c: Likewise.
29121         * tests/test-memmem.c: Likewise.
29122         * tests/test-memrchr.c: Likewise.
29123         * tests/test-rawmemchr.c: Likewise.
29124         * tests/test-read-file.c: Likewise.
29125         * tests/test-rijndael.c: Likewise.
29126         * tests/test-sockets.c: Likewise.
29127         * tests/test-strchrnul.c: Likewise.
29128         * tests/test-strstr.c: Likewise.
29129         * tests/test-strtod.c: Likewise.
29130         * build-aux/ncftpput-ftp: Likewise.
29131
29132 2010-01-26  Eric Blake  <ebb9@byu.net>
29133
29134         ignore-value: update recommended header name
29135         * modules/ignore-value (Include): Only use <> for headers that
29136         exist in glibc.
29137
29138 2010-01-26  Jim Meyering  <meyering@redhat.com>
29139
29140         test-userspec.c: avoid compiler warnings
29141         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
29142         and "initialization discards qualifiers..." warnings.
29143         Put the first "uid" in its own scope, and make char* members "const".
29144
29145 2010-01-25  Bruno Haible  <bruno@clisp.org>
29146
29147         gnulib-tool: Make warning diagnostics consistent.
29148         * gnulib-tool (func_warning): New function.
29149         Use it everywhere where gnulib-tool produces output to stderr and it is
29150         not a fatal error.
29151
29152 2010-01-25  Bruno Haible  <bruno@clisp.org>
29153
29154         Fix test dependencies.
29155         * modules/xstrtol-tests (Depends-on): Add inttypes.
29156         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
29157
29158 2010-01-25 Pádraig Brady <P@draigBrady.com>
29159
29160         syntax-check: detect incorrect boolean macro values in config.h
29161         * modules/maintainer-makefile (configure.ac): Parameterize the location
29162         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
29163         The logic is from Eric Blake and the location indicated by Jim Meyering.
29164         Note the more natural CONFIG_HEADER name is prohibited by automake
29165         for backwards compatibility reasons.
29166         * top/maint.mk (sc_Wundef_boolean): New rule.
29167
29168 2010-01-25  Jim Meyering  <meyering@redhat.com>
29169
29170         bootstrap: detect MacOS 10.6's shasum, too
29171         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
29172         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
29173
29174 2010-01-23  Jim Meyering  <meyering@redhat.com>
29175
29176         xstrtoll: new module
29177         * modules/xstrtoll: New file.
29178         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
29179         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
29180         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
29181         ./configure fails if you use this module and lack "long long".
29182         * modules/xstrtoll-tests: New module.
29183         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
29184         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
29185         new init.sh-based test framework.
29186
29187 2010-01-24  Bruno Haible  <bruno@clisp.org>
29188
29189         Tests for module 'yn'.
29190         * modules/yn-tests: New file.
29191         * tests/test-yn.c: New file.
29192
29193         Tests for module 'y1'.
29194         * modules/y1-tests: New file.
29195         * tests/test-y1.c: New file.
29196
29197         Tests for module 'y0'.
29198         * modules/y0-tests: New file.
29199         * tests/test-y0.c: New file.
29200
29201         Tests for module 'tanh'.
29202         * modules/tanh-tests: New file.
29203         * tests/test-tanh.c: New file.
29204
29205         Tests for module 'tan'.
29206         * modules/tan-tests: New file.
29207         * tests/test-tan.c: New file.
29208
29209         Tests for module 'sqrt'.
29210         * modules/sqrt-tests: New file.
29211         * tests/test-sqrt.c: New file.
29212
29213         Tests for module 'sinh'.
29214         * modules/sinh-tests: New file.
29215         * tests/test-sinh.c: New file.
29216
29217         Tests for module 'sin'.
29218         * modules/sin-tests: New file.
29219         * tests/test-sin.c: New file.
29220
29221         Tests for module 'rint'.
29222         * modules/rint-tests: New file.
29223         * tests/test-rint.c: New file.
29224
29225         Tests for module 'remainder'.
29226         * modules/remainder-tests: New file.
29227         * tests/test-remainder.c: New file.
29228
29229         Tests for module 'pow'.
29230         * modules/pow-tests: New file.
29231         * tests/test-pow.c: New file.
29232
29233         Tests for module 'nextafter'.
29234         * modules/nextafter-tests: New file.
29235         * tests/test-nextafter.c: New file.
29236
29237         Tests for module 'modf'.
29238         * modules/modf-tests: New file.
29239         * tests/test-modf.c: New file.
29240
29241         Tests for module 'logb'.
29242         * modules/logb-tests: New file.
29243         * tests/test-logb.c: New file.
29244
29245         Tests for module 'log1p'.
29246         * modules/log1p-tests: New file.
29247         * tests/test-log1p.c: New file.
29248
29249         Tests for module 'log10'.
29250         * modules/log10-tests: New file.
29251         * tests/test-log10.c: New file.
29252
29253         Tests for module 'log'.
29254         * modules/log-tests: New file.
29255         * tests/test-log.c: New file.
29256
29257         Tests for module 'lgamma'.
29258         * modules/lgamma-tests: New file.
29259         * tests/test-lgamma.c: New file.
29260
29261         Tests for module 'ldexp'.
29262         * modules/ldexp-tests: New file.
29263         * tests/test-ldexp.c: New file.
29264
29265         Tests for module 'jn'.
29266         * modules/jn-tests: New file.
29267         * tests/test-jn.c: New file.
29268
29269         Tests for module 'j1'.
29270         * modules/j1-tests: New file.
29271         * tests/test-j1.c: New file.
29272
29273         Tests for module 'j0'.
29274         * modules/j0-tests: New file.
29275         * tests/test-j0.c: New file.
29276
29277         Tests for module 'hypot'.
29278         * modules/hypot-tests: New file.
29279         * tests/test-hypot.c: New file.
29280
29281         Tests for module 'fmod'.
29282         * modules/fmod-tests: New file.
29283         * tests/test-fmod.c: New file.
29284
29285         Tests for module 'fabs'.
29286         * modules/fabs-tests: New file.
29287         * tests/test-fabs.c: New file.
29288
29289         Tests for module 'exp'.
29290         * modules/exp-tests: New file.
29291         * tests/test-exp.c: New file.
29292
29293         Tests for module 'erfc'.
29294         * modules/erfc-tests: New file.
29295         * tests/test-erfc.c: New file.
29296
29297         Tests for module 'erf'.
29298         * modules/erf-tests: New file.
29299         * tests/test-erf.c: New file.
29300
29301         Tests for module 'cosh'.
29302         * modules/cosh-tests: New file.
29303         * tests/test-cosh.c: New file.
29304
29305         Tests for module 'cos'.
29306         * modules/cos-tests: New file.
29307         * tests/test-cos.c: New file.
29308
29309         Tests for module 'copysign'.
29310         * modules/copysign-tests: New file.
29311         * tests/test-copysign.c: New file.
29312
29313         Tests for module 'cbrt'.
29314         * modules/cbrt-tests: New file.
29315         * tests/test-cbrt.c: New file.
29316
29317         Tests for module 'atan2'.
29318         * modules/atan2-tests: New file.
29319         * tests/test-atan2.c: New file.
29320
29321         Tests for module 'atan'.
29322         * modules/atan-tests: New file.
29323         * tests/test-atan.c: New file.
29324
29325         Tests for module 'asin'.
29326         * modules/asin-tests: New file.
29327         * tests/test-asin.c: New file.
29328
29329         Tests for module 'acos'.
29330         * modules/acos-tests: New file.
29331         * tests/test-acos.c: New file.
29332
29333 2010-01-24  Bruno Haible  <bruno@clisp.org>
29334
29335         Fix tests for common <math.h> functions.
29336         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
29337         code snippet that references the function pointer, rather than merely
29338         calling the function. Substitute the FUNC_LIBM variable.
29339         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
29340         * modules/acos (configure.ac): Likewise.
29341         * modules/asin (configure.ac): Likewise.
29342         * modules/atan (configure.ac): Likewise.
29343         * modules/atan2 (configure.ac): Likewise.
29344         * modules/cbrt (configure.ac): Likewise.
29345         * modules/copysign (configure.ac): Likewise.
29346         * modules/cos (configure.ac): Likewise.
29347         * modules/cosh (configure.ac): Likewise.
29348         * modules/erf (configure.ac): Likewise.
29349         * modules/erfc (configure.ac): Likewise.
29350         * modules/exp (configure.ac): Likewise.
29351         * modules/fabs (configure.ac): Likewise.
29352         * modules/fmod (configure.ac): Likewise.
29353         * modules/hypot (configure.ac): Likewise.
29354         * modules/j0 (configure.ac): Likewise.
29355         * modules/j1 (configure.ac): Likewise.
29356         * modules/jn (configure.ac): Likewise.
29357         * modules/ldexp (configure.ac): Likewise.
29358         * modules/lgamma (configure.ac): Likewise.
29359         * modules/log (configure.ac): Likewise.
29360         * modules/log10 (configure.ac): Likewise.
29361         * modules/log1p (configure.ac): Likewise.
29362         * modules/logb (configure.ac): Likewise.
29363         * modules/modf (configure.ac): Likewise.
29364         * modules/nextafter (configure.ac): Likewise.
29365         * modules/pow (configure.ac): Likewise.
29366         * modules/remainder (configure.ac): Likewise.
29367         * modules/rint (configure.ac): Likewise.
29368         * modules/sin (configure.ac): Likewise.
29369         * modules/sinh (configure.ac): Likewise.
29370         * modules/tan (configure.ac): Likewise.
29371         * modules/tanh (configure.ac): Likewise.
29372         * modules/y0 (configure.ac): Likewise.
29373         * modules/y1 (configure.ac): Likewise.
29374         * modules/yn (configure.ac): Likewise.
29375
29376 2010-01-24  Bruno Haible  <bruno@clisp.org>
29377
29378         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
29379         * tests/test-acosl.c (x): New variable.
29380         (main): Store argument in x and fetch it from x.
29381         * tests/test-asinl.c (x): New variable.
29382         (main): Store argument in x and fetch it from x.
29383         * tests/test-atanl.c (x): New variable.
29384         (main): Store argument in x and fetch it from x.
29385         * tests/test-cosl.c (x): New variable.
29386         (main): Store argument in x and fetch it from x.
29387         * tests/test-expl.c (x): New variable.
29388         (main): Store argument in x and fetch it from x.
29389         * tests/test-logl.c (x): New variable.
29390         (main): Store argument in x and fetch it from x.
29391         * tests/test-sinl.c (x): New variable.
29392         (main): Store argument in x and fetch it from x.
29393         * tests/test-sqrtl.c (x): New variable.
29394         (main): Store argument in x and fetch it from x.
29395         * tests/test-tanl.c (x): New variable.
29396         (main): Store argument in x and fetch it from x.
29397
29398 2010-01-24  Bruno Haible  <bruno@clisp.org>
29399
29400         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
29401         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
29402         assignments to the initial TESTS_ENVIRONMENT.
29403         * doc/gnulib.texi (Unit test modules): Document it.
29404         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
29405         TESTS_ENVIRONMENT.
29406         * modules/btowc-tests (Makefile.am): Likewise.
29407         * modules/c-stack-tests (Makefile.am): Likewise.
29408         * modules/c-strcase-tests (Makefile.am): Likewise.
29409         * modules/copy-file-tests (Makefile.am): Likewise.
29410         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
29411         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
29412         * modules/mbrtowc-tests (Makefile.am): Likewise.
29413         * modules/mbscasecmp-tests (Makefile.am): Likewise.
29414         * modules/mbscasestr-tests (Makefile.am): Likewise.
29415         * modules/mbschr-tests (Makefile.am): Likewise.
29416         * modules/mbscspn-tests (Makefile.am): Likewise.
29417         * modules/mbsinit-tests (Makefile.am): Likewise.
29418         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
29419         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
29420         * modules/mbspbrk-tests (Makefile.am): Likewise.
29421         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
29422         * modules/mbsrchr-tests (Makefile.am): Likewise.
29423         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
29424         * modules/mbsspn-tests (Makefile.am): Likewise.
29425         * modules/mbsstr-tests (Makefile.am): Likewise.
29426         * modules/nl_langinfo-tests (Makefile.am): Likewise.
29427         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
29428         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
29429         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
29430         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
29431         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
29432         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
29433         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
29434         * modules/wcrtomb-tests (Makefile.am): Likewise.
29435         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
29436         * modules/wcsrtombs-tests (Makefile.am): Likewise.
29437         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
29438         assignments from TESTS_ENVIRONMENT.
29439         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
29440         augmentation.
29441         * modules/argp-version-etc-tests (Makefile.am): Likewise.
29442         * modules/atexit-tests (Makefile.am): Likewise.
29443         * modules/binary-io-tests (Makefile.am): Likewise.
29444         * modules/closein-tests (Makefile.am): Likewise.
29445         * modules/dprintf-posix-tests (Makefile.am): Likewise.
29446         * modules/exclude-tests (Makefile.am): Likewise.
29447         * modules/fflush-tests (Makefile.am): Likewise.
29448         * modules/fpending-tests (Makefile.am): Likewise.
29449         * modules/fprintf-posix-tests (Makefile.am): Likewise.
29450         * modules/freadahead-tests (Makefile.am): Likewise.
29451         * modules/freadptr-tests (Makefile.am): Likewise.
29452         * modules/freadseek-tests (Makefile.am): Likewise.
29453         * modules/fseek-tests (Makefile.am): Likewise.
29454         * modules/fseeko-tests (Makefile.am): Likewise.
29455         * modules/ftell-tests (Makefile.am): Likewise.
29456         * modules/ftello-tests (Makefile.am): Likewise.
29457         * modules/idpriv-drop-tests (Makefile.am): Likewise.
29458         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
29459         * modules/lseek-tests (Makefile.am): Likewise.
29460         * modules/parse-duration-tests (Makefile.am): Likewise.
29461         * modules/perror-tests (Makefile.am): Likewise.
29462         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
29463         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
29464         * modules/pipe-tests (Makefile.am): Likewise.
29465         * modules/pread-tests (Makefile.am): Likewise.
29466         * modules/printf-posix-tests (Makefile.am): Likewise.
29467         * modules/select-tests (Makefile.am): Likewise.
29468         * modules/sigpipe-tests (Makefile.am): Likewise.
29469         * modules/tsearch-tests (Makefile.am): Likewise.
29470         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
29471         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
29472         * modules/uniname/uniname-tests (Makefile.am): Likewise.
29473         * modules/uniwidth/width-tests (Makefile.am): Likewise.
29474         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
29475         * modules/version-etc-tests (Makefile.am): Likewise.
29476         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
29477         * modules/vprintf-posix-tests (Makefile.am): Likewise.
29478         * modules/xalloc-die-tests (Makefile.am): Likewise.
29479         * modules/xprintf-posix-tests (Makefile.am): Likewise.
29480         * modules/xstrtoimax-tests (Makefile.am): Likewise.
29481         * modules/xstrtol-tests (Makefile.am): Likewise.
29482         * modules/xstrtoumax-tests (Makefile.am): Likewise.
29483         * modules/yesno-tests (Makefile.am): Likewise.
29484         Suggested by Jim Meyering.
29485
29486 2010-01-24  Bruno Haible  <bruno@clisp.org>
29487
29488         More documentation.
29489         * doc/gnulib.texi (Writing modules): New chapter.
29490         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
29491         the new chapter.
29492
29493 2010-01-24  Jim Meyering  <meyering@redhat.com>
29494
29495         maint.mk: do not prepend "./" after filtering
29496         * top/maint.mk (_prepend_srcdir_prefix): New variable
29497         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
29498         "./" when $(srcdir) is ".".
29499
29500         define STREQ(a,b) consistently, removing useless parentheses
29501         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
29502         since the only risk is that "a" or "b" contains an unparenthesized
29503         comma, but if either did that, STREQ would have 3 or more arguments.
29504         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
29505         * lib/fts.c (STREQ): Remove unnecessary parentheses.
29506         * lib/hash-triple.c (STREQ): Likewise.
29507         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
29508         * lib/getugroups.c (STREQ): Likewise.
29509
29510 2010-01-23  Jim Meyering  <meyering@redhat.com>
29511
29512         maint.mk: fix syntax-check in a non-srcdir build directory
29513         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
29514         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
29515
29516 2010-01-22  Jim Meyering  <meyering@redhat.com>
29517
29518         userspec: add unit tests
29519         * tests/test-userspec.c: New file.
29520         * modules/userspec-tests: Likewise.
29521
29522 2010-01-21  Jim Meyering  <meyering@redhat.com>
29523
29524         maint.mk: handle source file names containing "." robustly
29525         * top/maint.mk (_dot_escaped_srcdir): Define.
29526         (VC_LIST): Use it in LHS of sed substitution.
29527
29528 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
29529
29530         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
29531         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
29532         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
29533         from a non-srcdir build.
29534
29535 2010-01-20  Eric Blake  <ebb9@byu.net>
29536
29537         warn-on-use: use instead of link-warning
29538         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
29539         * modules/unistd (Depends-on, Makefile.am): Likewise.
29540         * modules/arpa_inet (Depends-on): Replace link-warning with
29541         warn-on-use.
29542         (Makefile.am): Update rules accordingly.
29543         * modules/ctype (Depends-on, Makefile.am): Likewise.
29544         * modules/dirent (Depends-on, Makefile.am): Likewise.
29545         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
29546         * modules/inttypes (Depends-on, Makefile.am): Likewise.
29547         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29548         * modules/locale (Depends-on, Makefile.am): Likewise.
29549         * modules/math (Depends-on, Makefile.am): Likewise.
29550         * modules/search (Depends-on, Makefile.am): Likewise.
29551         * modules/signal (Depends-on, Makefile.am): Likewise.
29552         * modules/spawn (Depends-on, Makefile.am): Likewise.
29553         * modules/stdlib (Depends-on, Makefile.am): Likewise.
29554         * modules/string (Depends-on, Makefile.am): Likewise.
29555         * modules/strings (Depends-on, Makefile.am): Likewise.
29556         * modules/sys_file (Depends-on, Makefile.am): Likewise.
29557         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
29558         * modules/sys_select (Depends-on, Makefile.am): Likewise.
29559         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
29560         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
29561         * modules/sys_times (Depends-on, Makefile.am): Likewise.
29562         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29563         * modules/wchar (Depends-on, Makefile.am): Likewise.
29564         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
29565         should be poisoned.
29566         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
29567         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
29568         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
29569         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29570         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29571         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29572         * m4/math_h.m4 (gl_MATH_H): Likewise.
29573         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29574         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
29575         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29576         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
29577         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
29578         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
29579         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
29580         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
29581         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
29582         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29583         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29584         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
29585         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29586         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
29587         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29588         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29589         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
29590         GL_LINK_WARNING.
29591         * lib/ctype.in.h: Likewise.
29592         * lib/dirent.in.h: Likewise.
29593         * lib/fcntl.in.h: Likewise.
29594         * lib/inttypes.in.h: Likewise.
29595         * lib/langinfo.in.h: Likewise.
29596         * lib/locale.in.h: Likewise.
29597         * lib/math.in.h: Likewise.
29598         * lib/search.in.h: Likewise.
29599         * lib/signal.in.h: Likewise.
29600         * lib/spawn.in.h: Likewise.
29601         * lib/stdio.in.h: Likewise.
29602         * lib/stdlib.in.h: Likewise.
29603         * lib/string.in.h: Likewise.
29604         * lib/strings.in.h: Likewise.
29605         * lib/sys_file.in.h: Likewise.
29606         * lib/sys_ioctl.in.h: Likewise.
29607         * lib/sys_select.in.h: Likewise.
29608         * lib/sys_socket.in.h: Likewise.
29609         * lib/sys_stat.in.h: Likewise.
29610         * lib/sys_times.in.h: Likewise.
29611         * lib/sys_utsname.in.h: Likewise.
29612         * lib/unistd.in.h: Likewise.
29613         * lib/wchar.in.h: Likewise.
29614
29615 2010-01-20  Bruno Haible  <bruno@clisp.org>
29616
29617         Avoid duplicate -lm.
29618         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
29619         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
29620         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
29621         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
29622         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
29623         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
29624         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
29625         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
29626         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
29627         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
29628         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
29629         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29630         Reported by Paolo Bonzini.
29631
29632 2010-01-19  Bruno Haible  <bruno@clisp.org>
29633
29634         langinfo, nl_langinfo: Relicense under LGPLv2+.
29635         * modules/langinfo (License): Change to LGPLv2+.
29636         * modules/nl_langinfo (License): Likewise.
29637         Patch by David Lutterkort <lutter@redhat.com>.
29638
29639 2010-01-19  Bruno Haible  <bruno@clisp.org>
29640
29641         Avoid compilation error with cc on OSF/1 5.1.
29642         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
29643         statement, not before.
29644         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29645
29646 2010-01-18  Bruno Haible  <bruno@clisp.org>
29647
29648         Avoid a link error due to the __printf__ symbol.
29649         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
29650         and 2.6.x.
29651         (__format__, __printf__): Remove definitions.
29652         * lib/argp-fmtstream.h: Likewise.
29653         * lib/argp.h: Likewise.
29654         * lib/error.h: Likewise.
29655         * lib/vasnprintf.h: Likewise.
29656         * lib/xprintf.h: Likewise.
29657         * lib/xvasprintf.h: Likewise.
29658         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29659
29660 2010-01-18  Bruno Haible  <bruno@clisp.org>
29661
29662         Tests for module 'tanl'.
29663         * modules/tanl-tests: New file.
29664         * tests/test-tanl.c: New file.
29665
29666         Tests for module 'sqrtl'.
29667         * modules/sqrtl-tests: New file.
29668         * tests/test-sqrtl.c: New file.
29669
29670         Tests for module 'sinl'.
29671         * modules/sinl-tests: New file.
29672         * tests/test-sinl.c: New file.
29673
29674         Tests for module 'logl'.
29675         * modules/logl-tests: New file.
29676         * tests/test-logl.c: New file.
29677
29678         Tests for module 'expl'.
29679         * modules/expl-tests: New file.
29680         * tests/test-expl.c: New file.
29681
29682         Tests for module 'cosl'.
29683         * modules/cosl-tests: New file.
29684         * tests/test-cosl.c: New file.
29685
29686         Tests for module 'atanl'.
29687         * modules/atanl-tests: New file.
29688         * tests/test-atanl.c: New file.
29689
29690         Tests for module 'asinl'.
29691         * modules/asinl-tests: New file.
29692         * tests/test-asinl.c: New file.
29693
29694         Tests for module 'acosl'.
29695         * modules/acosl-tests: New file.
29696         * tests/test-acosl.c: New file.
29697
29698         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29699         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
29700         tanl): Use the standard gnulib idiom.
29701         * lib/cosl.c: Don't include trigl.c and sincosl.c.
29702         * lib/sinl.c: Likewise.
29703         * lib/tanl.c: Don't include trigl.c.
29704         (kernel_tanl): Make static.
29705         * lib/sincosl.c: Include trigl.h first.
29706         * lib/trigl.c: Likewise.
29707         * m4/acosl.m4: New file.
29708         * m4/asinl.m4: New file.
29709         * m4/atanl.m4: New file.
29710         * m4/cosl.m4: New file.
29711         * m4/expl.m4: New file.
29712         * m4/logl.m4: New file.
29713         * m4/sinl.m4: New file.
29714         * m4/sqrtl.m4: New file.
29715         * m4/tanl.m4: New file.
29716         * m4/mathl.m4: Remove file.
29717         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
29718         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29719         Don't initialize GNULIB_MATHL.
29720         * modules/acosl: New file.
29721         * modules/asinl: New file.
29722         * modules/atanl: New file.
29723         * modules/cosl: New file.
29724         * modules/expl: New file.
29725         * modules/logl: New file.
29726         * modules/sinl: New file.
29727         * modules/sqrtl: New file.
29728         * modules/tanl: New file.
29729         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
29730         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
29731         substitute GNULIB_MATHL.
29732         * modules/mathl: Rewritten.
29733         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
29734         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
29735         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
29736         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
29737         * doc/posix-functions/expl.texi: Mention the 'expl' module.
29738         * doc/posix-functions/logl.texi: Mention the 'logl' module.
29739         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
29740         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
29741         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
29742
29743 2010-01-18  Bruno Haible  <bruno@clisp.org>
29744
29745         sqrt: Make gl_FUNC_SQRT requirable.
29746         * m4/sqrt.m4: New file.
29747         * modules/sqrt (Files): Add it.
29748         (configure.ac): Invoke gl_FUNC_SQRT.
29749
29750 2010-01-18  Bruno Haible  <bruno@clisp.org>
29751
29752         New modules for common <math.h> functions.
29753         * m4/mathfunc.m4: New file.
29754         * modules/acos: New file.
29755         * modules/asin: New file.
29756         * modules/atan: New file.
29757         * modules/atan2: New file.
29758         * modules/cbrt: New file.
29759         * modules/copysign: New file.
29760         * modules/cos: New file.
29761         * modules/cosh: New file.
29762         * modules/erf: New file.
29763         * modules/erfc: New file.
29764         * modules/exp: New file.
29765         * modules/fabs: New file.
29766         * modules/fmod: New file.
29767         * modules/hypot: New file.
29768         * modules/j0: New file.
29769         * modules/j1: New file.
29770         * modules/jn: New file.
29771         * modules/ldexp: New file.
29772         * modules/lgamma: New file.
29773         * modules/log: New file.
29774         * modules/log10: New file.
29775         * modules/log1p: New file.
29776         * modules/logb: New file.
29777         * modules/modf: New file.
29778         * modules/nextafter: New file.
29779         * modules/pow: New file.
29780         * modules/remainder: New file.
29781         * modules/rint: New file.
29782         * modules/sin: New file.
29783         * modules/sinh: New file.
29784         * modules/sqrt: New file.
29785         * modules/tan: New file.
29786         * modules/tanh: New file.
29787         * modules/y0: New file.
29788         * modules/y1: New file.
29789         * modules/yn: New file.
29790         * doc/posix-functions/acos.texi: Mention the 'acos' module.
29791         * doc/posix-functions/asin.texi: Mention the 'asin' module.
29792         * doc/posix-functions/atan.texi: Mention the 'atan' module.
29793         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
29794         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
29795         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
29796         * doc/posix-functions/cos.texi: Mention the 'cos' module.
29797         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
29798         * doc/posix-functions/erf.texi: Mention the 'erf' module.
29799         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
29800         * doc/posix-functions/exp.texi: Mention the 'exp' module.
29801         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
29802         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
29803         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
29804         * doc/posix-functions/j0.texi: Mention the 'j0' module.
29805         * doc/posix-functions/j1.texi: Mention the 'j1' module.
29806         * doc/posix-functions/jn.texi: Mention the 'jn' module.
29807         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
29808         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
29809         * doc/posix-functions/log.texi: Mention the 'log' module.
29810         * doc/posix-functions/log10.texi: Mention the 'log10' module.
29811         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
29812         * doc/posix-functions/logb.texi: Mention the 'logb' module.
29813         * doc/posix-functions/modf.texi: Mention the 'modf' module.
29814         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
29815         * doc/posix-functions/pow.texi: Mention the 'pow' module.
29816         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
29817         * doc/posix-functions/rint.texi: Mention the 'rint' module.
29818         * doc/posix-functions/sin.texi: Mention the 'sin' module.
29819         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
29820         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
29821         * doc/posix-functions/tan.texi: Mention the 'tan' module.
29822         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
29823         * doc/posix-functions/y0.texi: Mention the 'y0' module.
29824         * doc/posix-functions/y1.texi: Mention the 'y1' module.
29825         * doc/posix-functions/yn.texi: Mention the 'yn' module.
29826
29827 2010-01-18  Jim Meyering  <meyering@redhat.com>
29828
29829         ignore-value: relax license to LGPLv2+
29830         * modules/ignore-value (License): Relax to LGPLv2+.
29831
29832         getdate: don't leak when TZ contains two or more '"'s
29833         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
29834         double quote in TZ after the first one.
29835
29836         readtokens: do not leak internal token_lengths buffer
29837         * lib/readtokens.c (readtokens): Free the local, lengths,
29838         when the supplied "token_lengths" parameter is NULL.
29839
29840 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29841
29842         Fix a couple of missing LIBTHREAD link failures on AIX.
29843         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
29844         $(LIBTHREAD).
29845         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
29846
29847         Link test-poll against INET_PTON_LIB.
29848         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
29849         for inet_pton on Solaris 10.
29850
29851 2010-01-17  Bruno Haible  <bruno@clisp.org>
29852
29853         unistdio/*-sprintf: Fix typo in module description.
29854         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
29855         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
29856         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
29857         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
29858         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
29859         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
29860         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
29861         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29862
29863 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29864
29865         gnulib-tool: fix filelist for AIX, HP-UX ksh.
29866         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
29867         variables in shell case patterns, for AIX and HP-UX ksh.
29868
29869         Split large sed scripts, for HP-UX sed.
29870         * modules/stdio: Split sed scripts around 50 sed commands,
29871         to avoid HP-UX limit of 99 commands, in the near future.
29872         * modules/string: Likewise.
29873         * modules/unistd: Likewise.
29874
29875         gnulib-tool: avoid writing in the current directory.
29876         * gnulib-tool (func_emit_lib_Makefile_am)
29877         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
29878         not in the current directory, so concurrent gnulib-tool
29879         instances do not interfere.
29880
29881 2010-01-16  Jim Meyering  <meyering@redhat.com>
29882
29883         doc: update users.txt
29884         * users.txt: Add grep.
29885         (diffutils, gzip): Update URLs.
29886
29887 2010-01-12  Bruno Haible  <bruno@clisp.org>
29888
29889         posix_spawn: Avoid test failure on Cygwin.
29890         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
29891         characters.
29892         Reported by Simon Josefsson.
29893
29894 2010-01-12  Bruno Haible  <bruno@clisp.org>
29895
29896         * tests/test-cond.c (main): When skipping the test, show the reason.
29897
29898 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29899
29900         * lib/striconv.c (str_cd_iconv): Avoid if before free.
29901
29902 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29903
29904         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
29905         VC_LIST_ALWAYS_EXCLUDE_REGEX.
29906
29907 2010-01-12  Eric Blake  <ebb9@byu.net>
29908
29909         build: guarantee AS_VAR_IF
29910         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
29911         (gl_AS_VAR_IF): Move...
29912         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
29913         Reported by Simon Josefsson.
29914
29915 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29916
29917         * lib/stdio.in.h: Fix typo.
29918
29919 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29920
29921         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
29922         libgpg-error.
29923
29924 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29925
29926         * tests/test-xalloc-die.sh: Use $EXEEXT.
29927
29928 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29929             Bruno Haible  <bruno@clisp.org>
29930
29931         getlogin, getlogin_r: Avoid test failure.
29932         * tests/test-getlogin.c: Include <stdio.h>.
29933         (main): Skip the test when the function fails because stdin is not a
29934         tty.
29935         * tests/test-getlogin_r.c: Include <stdio.h>.
29936         (main): Skip the test when the function fails because stdin is not a
29937         tty.
29938
29939 2010-01-11  Eric Blake  <ebb9@byu.net>
29940
29941         tests: avoid more large file warnings
29942         * tests/test-fflush.c: Avoid warning about ftell use.
29943         * tests/test-fseek.c: Avoid warning about fseek use.
29944
29945 2010-01-10  Bruno Haible  <bruno@clisp.org>
29946
29947         nproc: Work better on Linux when /proc and /sys are not mounted.
29948         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
29949         as lower bound when, on glibc/Linux systems,
29950         sysconf (_SC_NPROCESSORS_CONF) returns 1.
29951         Suggested by Pádraig Brady <P@draigbrady.com>.
29952         Reported by Dmitry V. Levin <ldv@altlinux.org>.
29953
29954         nproc: Refactor.
29955         * lib/nproc.c (num_processors_via_affinity_mask): New function,
29956         extracted from num_processors.
29957         (num_processors): Call it.
29958
29959 2010-01-11  Jim Meyering  <meyering@redhat.com>
29960
29961         utimecmp: avoid new warning from upcoming gcc-4.5.0
29962         * lib/utimecmp.c (BILLION): Define using #define rather than an
29963         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
29964
29965 2010-01-11  Eric Blake  <ebb9@byu.net>
29966
29967         math: add portability warnings for classification macros
29968         * modules/math (Depends-on): Add warn-on-use.
29969         (Makefile.am): Provide new substitutions.
29970         * m4/math_h.m4 (gl_MATH_H): Require inline.
29971         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
29972         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
29973         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
29974         implement warnings.
29975
29976         unistd: warn on use of environ without module
29977         * modules/unistd (Depends-on): Add warn-on-use.
29978         (Makefile.am): Provide new substitutions.
29979         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
29980         * lib/unistd.in.h (environ): Wrap with a warning helper function.
29981
29982         stdio: warn on suspicious uses
29983         * modules/stdio (Depends-on): Add warn-on-use.
29984         (Makefile.am): Provide new substitutions.
29985         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
29986         fseeko.
29987         * lib/stdio.in.h (gets): Always warn on use.
29988         (fseek, ftell): Adjust when warnings are issued, and honor
29989         _GL_NO_LARGE_FILES as a way to silence the warning.
29990         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
29991         any warning about large file offsets.
29992         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
29993         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
29994         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
29995         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
29996         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
29997         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
29998         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
29999         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
30000
30001         warn-on-use: new module
30002         * modules/warn-on-use: New file.
30003         * build-aux/warn-on-use.h: Likewise.
30004         * m4/warn-on-use.m4: Likewise.
30005         * MODULES.html.sh (Support for building): Mention it.
30006
30007 2010-01-10  Bruno Haible  <bruno@clisp.org>
30008
30009         Tests for module 'unistr/u32-strdup'.
30010         * modules/unistr/u32-strdup-tests: New file.
30011         * tests/unistr/test-u32-strdup.c: New file.
30012
30013         Tests for module 'unistr/u16-strdup'.
30014         * modules/unistr/u16-strdup-tests: New file.
30015         * tests/unistr/test-u16-strdup.c: New file.
30016
30017         Tests for module 'unistr/u8-strdup'.
30018         * modules/unistr/u8-strdup-tests: New file.
30019         * tests/unistr/test-u8-strdup.c: New file.
30020         * tests/unistr/test-strdup.h: New file.
30021
30022         Tests for module 'unistr/u32-strncmp'.
30023         * modules/unistr/u32-strncmp-tests: New file.
30024         * tests/unistr/test-u32-strncmp.c: New file.
30025
30026         Tests for module 'unistr/u16-strncmp'.
30027         * modules/unistr/u16-strncmp-tests: New file.
30028         * tests/unistr/test-u16-strncmp.c: New file.
30029
30030         Tests for module 'unistr/u8-strncmp'.
30031         * modules/unistr/u8-strncmp-tests: New file.
30032         * tests/unistr/test-u8-strncmp.c: New file.
30033         * tests/unistr/test-strncmp.h: New file.
30034
30035         Tests for module 'unistr/u32-strcoll'.
30036         * modules/unistr/u32-strcoll-tests: New file.
30037         * tests/unistr/test-u32-strcoll.c: New file.
30038
30039         Tests for module 'unistr/u16-strcoll'.
30040         * modules/unistr/u16-strcoll-tests: New file.
30041         * tests/unistr/test-u16-strcoll.c: New file.
30042
30043         Tests for module 'unistr/u8-strcoll'.
30044         * modules/unistr/u8-strcoll-tests: New file.
30045         * tests/unistr/test-u8-strcoll.c: New file.
30046
30047         Tests for module 'unistr/u32-strcmp'.
30048         * modules/unistr/u32-strcmp-tests: New file.
30049         * tests/unistr/test-u32-strcmp.c: New file.
30050         * tests/unistr/test-u32-strcmp.h: New file.
30051
30052         Tests for module 'unistr/u16-strcmp'.
30053         * modules/unistr/u16-strcmp-tests: New file.
30054         * tests/unistr/test-u16-strcmp.c: New file.
30055         * tests/unistr/test-u16-strcmp.h: New file.
30056
30057         Tests for module 'unistr/u8-strcmp'.
30058         * modules/unistr/u8-strcmp-tests: New file.
30059         * tests/unistr/test-u8-strcmp.c: New file.
30060         * tests/unistr/test-u8-strcmp.h: New file.
30061         * tests/unistr/test-strcmp.h: New file.
30062
30063         Tests for module 'unistr/u32-strncat'.
30064         * modules/unistr/u32-strncat-tests: New file.
30065         * tests/unistr/test-u32-strncat.c: New file.
30066
30067         Tests for module 'unistr/u16-strncat'.
30068         * modules/unistr/u16-strncat-tests: New file.
30069         * tests/unistr/test-u16-strncat.c: New file.
30070
30071         Tests for module 'unistr/u8-strncat'.
30072         * modules/unistr/u8-strncat-tests: New file.
30073         * tests/unistr/test-u8-strncat.c: New file.
30074         * tests/unistr/test-strncat.h: New file.
30075
30076         Tests for module 'unistr/u32-strcat'.
30077         * modules/unistr/u32-strcat-tests: New file.
30078         * tests/unistr/test-u32-strcat.c: New file.
30079
30080         Tests for module 'unistr/u16-strcat'.
30081         * modules/unistr/u16-strcat-tests: New file.
30082         * tests/unistr/test-u16-strcat.c: New file.
30083
30084         Tests for module 'unistr/u8-strcat'.
30085         * modules/unistr/u8-strcat-tests: New file.
30086         * tests/unistr/test-u8-strcat.c: New file.
30087         * tests/unistr/test-strcat.h: New file.
30088
30089         Tests for module 'unistr/u32-stpncpy'.
30090         * modules/unistr/u32-stpncpy-tests: New file.
30091         * tests/unistr/test-u32-stpncpy.c: New file.
30092
30093         Tests for module 'unistr/u16-stpncpy'.
30094         * modules/unistr/u16-stpncpy-tests: New file.
30095         * tests/unistr/test-u16-stpncpy.c: New file.
30096
30097         Tests for module 'unistr/u8-stpncpy'.
30098         * modules/unistr/u8-stpncpy-tests: New file.
30099         * tests/unistr/test-u8-stpncpy.c: New file.
30100         * tests/unistr/test-stpncpy.h: New file.
30101
30102         Tests for module 'unistr/u32-strncpy'.
30103         * modules/unistr/u32-strncpy-tests: New file.
30104         * tests/unistr/test-u32-strncpy.c: New file.
30105
30106         Tests for module 'unistr/u16-strncpy'.
30107         * modules/unistr/u16-strncpy-tests: New file.
30108         * tests/unistr/test-u16-strncpy.c: New file.
30109
30110         Tests for module 'unistr/u8-strncpy'.
30111         * modules/unistr/u8-strncpy-tests: New file.
30112         * tests/unistr/test-u8-strncpy.c: New file.
30113         * tests/unistr/test-strncpy.h: New file.
30114
30115         Tests for module 'unistr/u32-stpcpy'.
30116         * modules/unistr/u32-stpcpy-tests: New file.
30117         * tests/unistr/test-u32-stpcpy.c: New file.
30118
30119         Tests for module 'unistr/u16-stpcpy'.
30120         * modules/unistr/u16-stpcpy-tests: New file.
30121         * tests/unistr/test-u16-stpcpy.c: New file.
30122
30123         Tests for module 'unistr/u8-stpcpy'.
30124         * modules/unistr/u8-stpcpy-tests: New file.
30125         * tests/unistr/test-u8-stpcpy.c: New file.
30126         * tests/unistr/test-stpcpy.h: New file.
30127
30128         Tests for module 'unistr/u32-strcpy'.
30129         * modules/unistr/u32-strcpy-tests: New file.
30130         * tests/unistr/test-u32-strcpy.c: New file.
30131
30132         Tests for module 'unistr/u16-strcpy'.
30133         * modules/unistr/u16-strcpy-tests: New file.
30134         * tests/unistr/test-u16-strcpy.c: New file.
30135
30136         Tests for module 'unistr/u8-strcpy'.
30137         * modules/unistr/u8-strcpy-tests: New file.
30138         * tests/unistr/test-u8-strcpy.c: New file.
30139         * tests/unistr/test-strcpy.h: New file.
30140
30141         Tests for module 'unistr/u32-strnlen'.
30142         * modules/unistr/u32-strnlen-tests: New file.
30143         * tests/unistr/test-u32-strnlen.c: New file.
30144
30145         Tests for module 'unistr/u16-strnlen'.
30146         * modules/unistr/u16-strnlen-tests: New file.
30147         * tests/unistr/test-u16-strnlen.c: New file.
30148
30149         Tests for module 'unistr/u8-strnlen'.
30150         * modules/unistr/u8-strnlen-tests: New file.
30151         * tests/unistr/test-u8-strnlen.c: New file.
30152         * tests/unistr/test-strnlen.h: New file.
30153
30154         Tests for module 'unistr/u32-strlen'.
30155         * modules/unistr/u32-strlen-tests: New file.
30156         * tests/unistr/test-u32-strlen.c: New file.
30157
30158         Tests for module 'unistr/u16-strlen'.
30159         * modules/unistr/u16-strlen-tests: New file.
30160         * tests/unistr/test-u16-strlen.c: New file.
30161
30162         Tests for module 'unistr/u8-strlen'.
30163         * modules/unistr/u8-strlen-tests: New file.
30164         * tests/unistr/test-u8-strlen.c: New file.
30165
30166         Tests for module 'unistr/u32-prev'.
30167         * modules/unistr/u32-prev-tests: New file.
30168         * tests/unistr/test-u32-prev.c: New file.
30169
30170         Tests for module 'unistr/u16-prev'.
30171         * modules/unistr/u16-prev-tests: New file.
30172         * tests/unistr/test-u16-prev.c: New file.
30173
30174         Tests for module 'unistr/u8-prev'.
30175         * modules/unistr/u8-prev-tests: New file.
30176         * tests/unistr/test-u8-prev.c: New file.
30177
30178         Tests for module 'unistr/u32-next'.
30179         * modules/unistr/u32-next-tests: New file.
30180         * tests/unistr/test-u32-next.c: New file.
30181
30182         Tests for module 'unistr/u16-next'.
30183         * modules/unistr/u16-next-tests: New file.
30184         * tests/unistr/test-u16-next.c: New file.
30185
30186         Tests for module 'unistr/u8-next'.
30187         * modules/unistr/u8-next-tests: New file.
30188         * tests/unistr/test-u8-next.c: New file.
30189
30190         Tests for module 'unistr/u32-strmbtouc'.
30191         * modules/unistr/u32-strmbtouc-tests: New file.
30192         * tests/unistr/test-u32-strmbtouc.c: New file.
30193
30194         Tests for module 'unistr/u16-strmbtouc'.
30195         * modules/unistr/u16-strmbtouc-tests: New file.
30196         * tests/unistr/test-u16-strmbtouc.c: New file.
30197
30198         Tests for module 'unistr/u8-strmbtouc'.
30199         * modules/unistr/u8-strmbtouc-tests: New file.
30200         * tests/unistr/test-u8-strmbtouc.c: New file.
30201
30202         Tests for module 'unistr/u32-strmblen'.
30203         * modules/unistr/u32-strmblen-tests: New file.
30204         * tests/unistr/test-u32-strmblen.c: New file.
30205
30206         Tests for module 'unistr/u16-strmblen'.
30207         * modules/unistr/u16-strmblen-tests: New file.
30208         * tests/unistr/test-u16-strmblen.c: New file.
30209
30210         Tests for module 'unistr/u8-strmblen'.
30211         * modules/unistr/u8-strmblen-tests: New file.
30212         * tests/unistr/test-u8-strmblen.c: New file.
30213
30214         Tests for module 'unistr/u32-cpy-alloc'.
30215         * modules/unistr/u32-cpy-alloc-tests: New file.
30216         * tests/unistr/test-u32-cpy-alloc.c: New file.
30217
30218         Tests for module 'unistr/u16-cpy-alloc'.
30219         * modules/unistr/u16-cpy-alloc-tests: New file.
30220         * tests/unistr/test-u16-cpy-alloc.c: New file.
30221
30222         Tests for module 'unistr/u8-cpy-alloc'.
30223         * modules/unistr/u8-cpy-alloc-tests: New file.
30224         * tests/unistr/test-u8-cpy-alloc.c: New file.
30225         * tests/unistr/test-cpy-alloc.h: New file.
30226
30227         Tests for module 'unistr/u32-mbsnlen'.
30228         * modules/unistr/u32-mbsnlen-tests: New file.
30229         * tests/unistr/test-u32-mbsnlen.c: New file.
30230
30231         Tests for module 'unistr/u16-mbsnlen'.
30232         * modules/unistr/u16-mbsnlen-tests: New file.
30233         * tests/unistr/test-u16-mbsnlen.c: New file.
30234
30235         Tests for module 'unistr/u8-mbsnlen'.
30236         * modules/unistr/u8-mbsnlen-tests: New file.
30237         * tests/unistr/test-u8-mbsnlen.c: New file.
30238
30239         Tests for module 'unistr/u32-chr'.
30240         * modules/unistr/u32-chr-tests: New file.
30241         * tests/unistr/test-u32-chr.c: New file.
30242
30243         Tests for module 'unistr/u16-chr'.
30244         * modules/unistr/u16-chr-tests: New file.
30245         * tests/unistr/test-u16-chr.c: New file.
30246
30247         Tests for module 'unistr/u8-chr'.
30248         * modules/unistr/u8-chr-tests: New file.
30249         * tests/unistr/test-u8-chr.c: New file.
30250         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
30251
30252         Tests for module 'unistr/u32-cmp2'.
30253         * modules/unistr/u32-cmp2-tests: New file.
30254         * tests/unistr/test-u32-cmp2.c: New file.
30255
30256         Tests for module 'unistr/u16-cmp2'.
30257         * modules/unistr/u16-cmp2-tests: New file.
30258         * tests/unistr/test-u16-cmp2.c: New file.
30259
30260         Tests for module 'unistr/u8-cmp2'.
30261         * modules/unistr/u8-cmp2-tests: New file.
30262         * tests/unistr/test-u8-cmp2.c: New file.
30263         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
30264
30265         Tests for module 'unistr/u32-cmp'.
30266         * modules/unistr/u32-cmp-tests: New file.
30267         * tests/unistr/test-u32-cmp.c: New file.
30268
30269         Tests for module 'unistr/u16-cmp'.
30270         * modules/unistr/u16-cmp-tests: New file.
30271         * tests/unistr/test-u16-cmp.c: New file.
30272
30273         Tests for module 'unistr/u8-cmp'.
30274         * modules/unistr/u8-cmp-tests: New file.
30275         * tests/unistr/test-u8-cmp.c: New file.
30276         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
30277
30278         Tests for module 'unistr/u32-set'.
30279         * modules/unistr/u32-set-tests: New file.
30280         * tests/unistr/test-u32-set.c: New file.
30281
30282         Tests for module 'unistr/u16-set'.
30283         * modules/unistr/u16-set-tests: New file.
30284         * tests/unistr/test-u16-set.c: New file.
30285
30286         Tests for module 'unistr/u8-set'.
30287         * modules/unistr/u8-set-tests: New file.
30288         * tests/unistr/test-u8-set.c: New file.
30289         * tests/unistr/test-set.h: New file.
30290
30291         Tests for module 'unistr/u32-move'.
30292         * modules/unistr/u32-move-tests: New file.
30293         * tests/unistr/test-u32-move.c: New file.
30294
30295         Tests for module 'unistr/u16-move'.
30296         * modules/unistr/u16-move-tests: New file.
30297         * tests/unistr/test-u16-move.c: New file.
30298
30299         Tests for module 'unistr/u8-move'.
30300         * modules/unistr/u8-move-tests: New file.
30301         * tests/unistr/test-u8-move.c: New file.
30302         * tests/unistr/test-move.h: New file.
30303
30304         Tests for module 'unistr/u32-cpy'.
30305         * modules/unistr/u32-cpy-tests: New file.
30306         * tests/unistr/test-u32-cpy.c: New file.
30307
30308         Tests for module 'unistr/u16-cpy'.
30309         * modules/unistr/u16-cpy-tests: New file.
30310         * tests/unistr/test-u16-cpy.c: New file.
30311
30312         Tests for module 'unistr/u8-cpy'.
30313         * modules/unistr/u8-cpy-tests: New file.
30314         * tests/unistr/test-u8-cpy.c: New file.
30315         * tests/unistr/test-cpy.h: New file.
30316
30317 2010-01-09  Bruno Haible  <bruno@clisp.org>
30318
30319         Tests for module 'unistr/u32-uctomb'.
30320         * modules/unistr/u32-uctomb-tests: New file.
30321         * tests/unistr/test-u32-uctomb.c: New file.
30322
30323         Tests for module 'unistr/u16-uctomb'.
30324         * modules/unistr/u16-uctomb-tests: New file.
30325         * tests/unistr/test-u16-uctomb.c: New file.
30326
30327         Tests for module 'unistr/u8-uctomb'.
30328         * modules/unistr/u8-uctomb-tests: New file.
30329         * tests/unistr/test-u8-uctomb.c: New file.
30330
30331         Tests for module 'unistr/u32-mbtoucr'.
30332         * modules/unistr/u32-mbtoucr-tests: New file.
30333         * tests/unistr/test-u32-mbtoucr.c: New file.
30334
30335         Tests for module 'unistr/u16-mbtoucr'.
30336         * modules/unistr/u16-mbtoucr-tests: New file.
30337         * tests/unistr/test-u16-mbtoucr.c: New file.
30338
30339         Tests for module 'unistr/u8-mbtoucr'.
30340         * modules/unistr/u8-mbtoucr-tests: New file.
30341         * tests/unistr/test-u8-mbtoucr.c: New file.
30342
30343         Tests for module 'unistr/u32-mbtouc'.
30344         * modules/unistr/u32-mbtouc-tests: New file.
30345         * tests/unistr/test-u32-mbtouc.c: New file.
30346
30347         Tests for module 'unistr/u16-mbtouc'.
30348         * modules/unistr/u16-mbtouc-tests: New file.
30349         * tests/unistr/test-u16-mbtouc.c: New file.
30350
30351         Tests for module 'unistr/u8-mbtouc'.
30352         * modules/unistr/u8-mbtouc-tests: New file.
30353         * tests/unistr/test-u8-mbtouc.c: New file.
30354
30355         Tests for module 'unistr/u32-mbtouc-unsafe'.
30356         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
30357         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
30358         * tests/unistr/test-u32-mbtouc.h: New file.
30359
30360         Tests for module 'unistr/u16-mbtouc-unsafe'.
30361         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
30362         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
30363         * tests/unistr/test-u16-mbtouc.h: New file.
30364
30365         Tests for module 'unistr/u8-mbtouc-unsafe'.
30366         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
30367         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
30368         * tests/unistr/test-u8-mbtouc.h: New file.
30369
30370         Tests for module 'unistr/u32-mblen'.
30371         * modules/unistr/u32-mblen-tests: New file.
30372         * tests/unistr/test-u32-mblen.c: New file.
30373
30374         Tests for module 'unistr/u16-mblen'.
30375         * modules/unistr/u16-mblen-tests: New file.
30376         * tests/unistr/test-u16-mblen.c: New file.
30377
30378         Tests for module 'unistr/u8-mblen'.
30379         * modules/unistr/u8-mblen-tests: New file.
30380         * tests/unistr/test-u8-mblen.c: New file.
30381
30382         Tests for module 'unistr/u32-to-u16'.
30383         * modules/unistr/u32-to-u16-tests: New file.
30384         * tests/unistr/test-u32-to-u16.c: New file.
30385
30386         Tests for module 'unistr/u32-to-u8'.
30387         * modules/unistr/u32-to-u8-tests: New file.
30388         * tests/unistr/test-u32-to-u8.c: New file.
30389
30390         Tests for module 'unistr/u16-to-u32'.
30391         * modules/unistr/u16-to-u32-tests: New file.
30392         * tests/unistr/test-u16-to-u32.c: New file.
30393
30394         Tests for module 'unistr/u16-to-u8'.
30395         * modules/unistr/u16-to-u8-tests: New file.
30396         * tests/unistr/test-u16-to-u8.c: New file.
30397
30398         Tests for module 'unistr/u8-to-u32'.
30399         * modules/unistr/u8-to-u32-tests: New file.
30400         * tests/unistr/test-u8-to-u32.c: New file.
30401
30402         Tests for module 'unistr/u8-to-u16'.
30403         * modules/unistr/u8-to-u16-tests: New file.
30404         * tests/unistr/test-u8-to-u16.c: New file.
30405
30406         Tests for module 'unistr/u32-check'.
30407         * modules/unistr/u32-check-tests: New file.
30408         * tests/unistr/test-u32-check.c: New file.
30409
30410         Tests for module 'unistr/u16-check'.
30411         * modules/unistr/u16-check-tests: New file.
30412         * tests/unistr/test-u16-check.c: New file.
30413
30414         Tests for module 'unistr/u8-check'.
30415         * modules/unistr/u8-check-tests: New file.
30416         * tests/unistr/test-u8-check.c: New file.
30417
30418         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
30419         (category_equals): New function.
30420         (main): Add more tests.
30421         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
30422
30423         * tests/unictype/test-bidi_byname.c (main): Add more tests.
30424
30425 2010-01-10  Bruno Haible  <bruno@clisp.org>
30426
30427         unistr/u*-strcoll: Try harder to distinguish different strings.
30428         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
30429         compare s1 and s2 to see if they are different.
30430
30431 2010-01-10  Bruno Haible  <bruno@clisp.org>
30432
30433         unistr/u*-stpncpy: Fix the return value.
30434         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
30435         description of the return value consistent with stpncpy in glibc.
30436         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
30437         written non-NUL unit.
30438
30439 2010-01-10  Bruno Haible  <bruno@clisp.org>
30440
30441         unistr/u*-next: Add missing dependencies.
30442         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
30443         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
30444         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
30445
30446 2010-01-10  Bruno Haible  <bruno@clisp.org>
30447
30448         unistr/u8-mbsnlen: Fix return value for incomplete character.
30449         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
30450         u8_mblen.
30451         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
30452         Remove unistr/u8-mblen.
30453         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
30454         u16_mblen.
30455         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
30456         Remove unistr/u16-mblen.
30457
30458 2010-01-10  Bruno Haible  <bruno@clisp.org>
30459
30460         wchar: Fix compilation error when <wchar.h> is used from coreutils.
30461         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
30462         Reported by Brian Gough <bjg@gnu.org> and
30463         Chris Clayton <chris2553@googlemail.com> via
30464         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
30465
30466 2010-01-09  Bruno Haible  <bruno@clisp.org>
30467
30468         unistr/u16-to-u32: Reject invalid input.
30469         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
30470         u16_mbtouc.
30471         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
30472         Remove unistr/u16-mbtouc.
30473
30474         unistr/u16-to-u8: Reject invalid input.
30475         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
30476         u16_mbtouc.
30477         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
30478         Remove unistr/u16-mbtouc.
30479
30480         unistr/u8-to-u32: Reject invalid input.
30481         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
30482         u8_mbtouc.
30483         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
30484         Remove unistr/u8-mbtouc.
30485
30486         unistr/u8-to-u16: Reject invalid input.
30487         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
30488         u8_mbtouc.
30489         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
30490         Remove unistr/u8-mbtouc.
30491
30492 2010-01-09  Bruno Haible  <bruno@clisp.org>
30493
30494         Tests for module 'getlogin'.
30495         * modules/getlogin-tests: New file.
30496         * tests/test-getlogin.c: New file.
30497
30498         New module 'getlogin'.
30499         * lib/unistd.in.h (getlogin): New declaration.
30500         * lib/getlogin.c: New file.
30501         * m4/getlogin.m4: New file.
30502         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
30503         HAVE_GETLOGIN.
30504         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
30505         HAVE_GETLOGIN.
30506         * modules/getlogin: New file.
30507         * doc/posix-functions/getlogin.texi: Mention the new module.
30508         Reported by John W. Eaton <jwe@gnu.org>.
30509
30510 2010-01-09  Bruno Haible  <bruno@clisp.org>
30511
30512         getlogin_r: Support for native Windows.
30513         * lib/getlogin_r.c: Include <windows.h>
30514         (getlogin_r): Implement for native Windows.
30515         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
30516         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
30517         via John W. Eaton <jwe@gnu.org>.
30518
30519 2010-01-09  Bruno Haible  <bruno@clisp.org>
30520
30521         getlogin_r: Small fixes.
30522         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
30523         succeeds.
30524         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
30525         before testing whether getlogin_r is declared. No need to set
30526         HAVE_DECL_GETLOGIN_R to 1.
30527         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
30528
30529 2010-01-09  Bruno Haible  <bruno@clisp.org>
30530
30531         * lib/unistd.in.h (getlogin_r): Add comment.
30532
30533 2010-01-09  Bruno Haible  <bruno@clisp.org>
30534
30535         Tests for module 'getlogin_r'.
30536         * modules/getlogin_r-tests: New file.
30537         * tests/test-getlogin_r.c: New file.
30538
30539 2010-01-09  Jim Meyering  <meyering@redhat.com>
30540
30541         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
30542         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
30543         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
30544
30545 2010-01-08  Simon Josefsson  <simon@josefsson.org>
30546
30547         * lib/dup2.c (rpl_dup2): Improve comment.
30548
30549 2010-01-08  Eric Blake  <ebb9@byu.net>
30550
30551         maint.mk: allow packages to add makefile @@ exceptions
30552         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
30553         (sc_makefile_check): Rename...
30554         (sc_makefile_at_at_check): ...to this, and use hook.
30555
30556         dup2: work around mingw bug
30557         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
30558         Reported by Simon Josefsson.
30559
30560 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
30561
30562         glob: Fix C++ compilation.
30563         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
30564         C++.
30565
30566 2010-01-07  Bruno Haible  <bruno@clisp.org>
30567
30568         Fix indentation of wctype.in.h, broken since 2007-01-06.
30569         * lib/wctype.in.h: Fix indentation of preprocessor directives.
30570
30571 2010-01-07  Bruno Haible  <bruno@clisp.org>
30572
30573         mbslen: Avoid collision with system function.
30574         * lib/string.in.h [MirBSD]: Include <wchar.h>.
30575         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
30576         * m4/mbslen.m4: New file.
30577         * modules/mbslen (Files): Add it.
30578         (configure.ac): Invoke gl_MBSLEN.
30579         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
30580         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
30581         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
30582         via Ian Beckwith <ianb@erislabs.net>.
30583
30584 2010-01-07  Bruno Haible  <bruno@clisp.org>
30585
30586         dirent: Document the last fix.
30587         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
30588
30589 2010-01-07  Bruno Haible  <bruno@clisp.org>
30590
30591         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
30592         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
30593         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
30594         va_list are defined.
30595         * doc/posix-headers/stdio.texi: Document the bug of missing types.
30596         Reported by Eric Blake.
30597
30598 2010-01-07  Bruno Haible  <bruno@clisp.org>
30599
30600         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
30601         * modules/xlist (Depends-on): Add 'list',
30602         * modules/xoset (Depends-on): Add 'oset'.
30603         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30604
30605 2010-01-07  Bruno Haible  <bruno@clisp.org>
30606
30607         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
30608         * doc/posix-functions/strncasecmp.texi: Likewise.
30609
30610 2010-01-07  Bruno Haible  <bruno@clisp.org>
30611
30612         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
30613
30614 2010-01-07  John W. Eaton  <jwe@octave.org>
30615
30616         wctype: allow C++ use
30617         * lib/wctype.in.h: Add extern "C" block for C++.
30618
30619 2010-01-06  Eric Blake  <ebb9@byu.net>
30620
30621         maint.mk: detect incorrect GFDL usage
30622         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
30623
30624 2010-01-06  Jim Meyering  <meyering@redhat.com>
30625         and Eric Blake  <ebb9@byu.net>
30626
30627         maint.mk: ignore multi-line copyright in NEWS
30628         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
30629
30630 2010-01-06  Eric Blake  <ebb9@byu.net>
30631
30632         select: add missing dependency
30633         * modules/select-tests (Depends-on): Move sockets dependency...
30634         * modules/select (Depends-on): ...here.
30635         Reported by Ian Beckwith.
30636
30637         doc: regenerate INSTALL
30638         * doc/INSTALL: Reflect recent autoconf update.
30639         * doc/INSTALL.ISO: Likewise.
30640         * doc/INSTALL.UTF-8: Likewise.
30641
30642         pread: fix compilation on glibc
30643         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
30644         Reported by Ralf Wildenhues.
30645
30646         dirent: fix test failure
30647         * lib/dirent.in.h (includes): Guarantee ino_t.
30648         Reported by Ralf Wildenhues.
30649
30650 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
30651
30652         linkat, renameat: avoid bad free
30653         * lib/at-func2.c (at_func2): Fix typo.
30654         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
30655
30656 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30657
30658         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
30659         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
30660         to avoid failure of symlink test later.
30661
30662 2010-01-06  Eric Blake  <ebb9@byu.net>
30663
30664         stdio, unistd: guarantee ssize_t
30665         * lib/unistd.in.h (includes): Ensure that types required by POSIX
30666         2008 are exposed when needed.
30667         * lib/stdio.in.h (includes): Likewise.
30668         Reported by Ralf Wildenhues.
30669
30670 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
30671
30672         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
30673         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
30674         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
30675
30676 2010-01-06  Jim Meyering  <meyering@redhat.com>
30677
30678         readtokens: this module *does* require xalloc.h
30679         It uses only functions that were omitted by the old syntax-check rule.
30680         * lib/readtokens.c: Include "xalloc.h" once again.
30681         * modules/readtokens (Depends-on): Add xalloc.
30682         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
30683
30684 2010-01-05  Eric Blake  <ebb9@byu.net>
30685
30686         maint: support 'make announcement' from a VPATH build
30687         * top/maint.mk (announcement): Look for correct NEWS file.
30688
30689 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
30690
30691         utimens (fdutimens): ignore a negative FD, per contract
30692         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
30693         when we have a valid file descriptor.  Otherwise, using a brand
30694         new glibc (with just-patched futimens that now fails with EBADF)
30695         would cause this function to fail with ENOSYS.
30696         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
30697         See also http://bugzilla.redhat.com/552320.
30698
30699 2010-01-05  Eric Blake  <ebb9@byu.net>
30700
30701         strcase: document what it provides
30702         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
30703         gnulib module.
30704         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
30705         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
30706
30707 2010-01-05  Jim Meyering  <meyering@redhat.com>
30708
30709         maint: remove useless inclusions of "xalloc.h"
30710         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
30711         * lib/readtokens.c: Likewise.
30712         * lib/same.c: Likewise.
30713         * modules/getloadavg (Depends-on): Remove xalloc.
30714         * modules/readtokens: Likewise.
30715         * modules/same: Likewise.
30716
30717         maint.mk: include 4 more function names in alloca.h-checking regexp
30718         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
30719         regexp.  Before, we would give a false-positive (saying alloca.h
30720         is included unnecessarily) when the only uses involved omitted symbols.
30721
30722         xalloc.h: use consistent formatting
30723         * lib/xalloc.h: Move declarations to start in the first column.
30724
30725 2010-01-05  Eric Blake  <ebb9@byu.net>
30726
30727         mkdir: avoid xalloc
30728         * lib/mkdir.c (includes): Drop unused header.
30729         Reported by John W. Eaton.
30730
30731 2010-01-04  Jim Meyering  <meyering@redhat.com>
30732
30733         nl_langinfo: avoid configure-time syntax error
30734         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
30735         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
30736         the empty string.  Don't let that provoke a shell syntax error.
30737
30738         regcomp, regexec, fnmatch: avoid array bounds read error
30739         * lib/regcomp.c (build_equiv_class): From glibc:
30740         Use only the low 24 bits of a findidx return value as an index
30741         into the weights array.  Patch by Ulrich Drepper:
30742         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
30743         * lib/regexec.c (check_node_accept_bytes): Likewise.
30744         * lib/fnmatch_loop.c (FCT): Likewise.
30745
30746         regcomp: skip collseq lookup when there are no rules
30747         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
30748         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
30749
30750         regcomp: recognize ill-formed { } expressions
30751         * lib/regcomp.c (parse_dup_op): From glibc:
30752         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
30753
30754         regcomp: fix typo in comment
30755         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
30756         s/satisfy/satisfies/.
30757
30758         regcomp: sync from glibc: remove dead store
30759         * lib/regcomp.c (duplicate_node_closure): Remove useless
30760         search_duplicated_node call and dead store.
30761
30762         regcomp: sync from glibc; always use nl_langinfo
30763         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
30764         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
30765         * modules/regex (Depends-on): Add nl_langinfo.
30766
30767 2010-01-04  Eric Blake  <ebb9@byu.net>
30768
30769         fdopendir: fix configure test
30770         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
30771
30772 2010-01-01  Bruno Haible  <bruno@clisp.org>
30773
30774         wchar: Remove unused configure check.
30775         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
30776
30777 2010-01-01  Eric Blake  <ebb9@byu.net>
30778
30779         headers: make check of system header explicit
30780         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
30781         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
30782         ourselves.
30783         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30784         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30785         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
30786         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
30787         internals.
30788         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
30789         missing.
30790         Suggested by Bruno Haible.
30791
30792 2010-01-01  Jim Meyering  <meyering@redhat.com>
30793
30794         ChangeLog: tweak to eliminate unnecessary copyright line
30795         * ChangeLog: Remove a copyright line that was mistakenly updated
30796         by today's update-copyright run.  Reported by Eric Blake.
30797
30798         test-update-copyright: don't let envvar setting cause test failure
30799         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30800
30801 2010-01-01  Bruno Haible  <bruno@clisp.org>
30802
30803         localename: Avoid gcc warning.
30804         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
30805         function if it is not used.
30806
30807 2010-01-01  Jim Meyering  <meyering@redhat.com>
30808
30809         update nearly all FSF copyright year lists to include 2010
30810         Use the same procedure as for 2009, outlined in
30811         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
30812
30813         version-etc: set COPYRIGHT_YEAR to 2010
30814         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
30815
30816 2009-12-31  Eric Blake  <ebb9@byu.net>
30817
30818         doc: correct availability of cygwin 1.5.x getopt
30819         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
30820         variables.
30821         * doc/posix-functions/opterr.texi (opterr): Likewise.
30822         * doc/posix-functions/optind.texi (optind): Likewise.
30823         * doc/posix-functions/optopt.texi (optopt): Likewise.
30824         * doc/posix-functions/tzname.texi (tzname): Likewise.
30825
30826         openat: update maintainer
30827         * modules/openat (Maintainer): Add myself.
30828
30829         utimens: avoid shadowing warning
30830         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
30831         buffers into one, to avoid shadowing, as well as avoiding a
30832         redundant stat.
30833         Reported by Jim Meyering.
30834
30835         test-dup2: avoid compiler warning
30836         * tests/test-dup2.c (is_inheritable): Only define if used.
30837
30838 2010-01-01  Bruno Haible  <bruno@clisp.org>
30839
30840         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
30841         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
30842         defined, use wctomb instead of wcrtomb.
30843
30844 2010-01-01  Bruno Haible  <bruno@clisp.org>
30845
30846         iconv: Reject native Solaris iconv.
30847         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
30848         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
30849
30850 2009-12-31  Bruno Haible  <bruno@clisp.org>
30851
30852         * tests/test-signal.c (main): Remove test of 'SIG'.
30853
30854 2009-12-31  Bruno Haible  <bruno@clisp.org>
30855
30856         spawn: Fix incomplete fix.
30857         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30858         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30859         warnings for GNULIB_POSIXCHECK again.
30860         Reported by Eric Blake.
30861
30862 2009-12-31  Bruno Haible  <bruno@clisp.org>
30863
30864         Avoid namespace pollution on glibc systems.
30865         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
30866         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
30867         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
30868         glibc systems.
30869
30870 2009-12-31  Bruno Haible  <bruno@clisp.org>
30871
30872         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
30873         (gl_REPLACE_WCHAR_H): Turn into a no-op.
30874         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
30875         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
30876         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
30877         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
30878         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
30879
30880 2009-12-31  Bruno Haible  <bruno@clisp.org>
30881
30882         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
30883         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
30884         afterwards.
30885
30886 2009-12-31  Bruno Haible  <bruno@clisp.org>
30887
30888         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
30889         SYS_UTSNAME_H.
30890
30891 2009-12-31  Bruno Haible  <bruno@clisp.org>
30892
30893         spawn: Fix misapplied patch.
30894         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30895         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30896         warnings for GNULIB_POSIXCHECK.
30897
30898 2009-12-31  Bruno Haible  <bruno@clisp.org>
30899
30900         times: Update after sys_times changed.
30901         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
30902         * modules/times (Files): Add it.
30903         (configure.ac): Invoke gl_FUNC_TIMES.
30904
30905 2009-12-31  Bruno Haible  <bruno@clisp.org>
30906
30907         Use AC_C_INLINE where necessary.
30908         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
30909         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30910         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
30911         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30912         * m4/mbfile.m4 (gl_MBFILE): Likewise.
30913         * m4/mbiter.m4 (gl_MBITER): Likewise.
30914         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30915         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
30916         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
30917         * modules/u64 (configure.ac): Likewise.
30918
30919 2009-12-31  Bruno Haible  <bruno@clisp.org>
30920
30921         Use AC_C_INLINE instead of module 'inline' where possible.
30922         * modules/inline (Description): Clarify purpose.
30923         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
30924         * modules/count-one-bits (Depends-on): Remove inline.
30925         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
30926         * modules/openat (Depends-on): Remove inline.
30927         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
30928         instead of depending on module 'inline'.
30929         * modules/filevercmp (Depends-on, configure.ac): Likewise.
30930         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
30931         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
30932         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
30933         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
30934         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
30935         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
30936         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
30937         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
30938         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
30939         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
30940         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
30941         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
30942         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
30943         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
30944         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
30945         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
30946         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
30947         Likewise.
30948         * modules/unictype/property-ascii-hex-digit (Depends-on,
30949         configure.ac): Likewise.
30950         * modules/unictype/property-bidi-arabic-digit (Depends-on,
30951         configure.ac): Likewise.
30952         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
30953         configure.ac): Likewise.
30954         * modules/unictype/property-bidi-block-separator (Depends-on,
30955         configure.ac): Likewise.
30956         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
30957         configure.ac): Likewise.
30958         * modules/unictype/property-bidi-common-separator (Depends-on,
30959         configure.ac): Likewise.
30960         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
30961         Likewise.
30962         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
30963         configure.ac): Likewise.
30964         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
30965         configure.ac): Likewise.
30966         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
30967         configure.ac): Likewise.
30968         * modules/unictype/property-bidi-european-digit (Depends-on,
30969         configure.ac): Likewise.
30970         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
30971         configure.ac): Likewise.
30972         * modules/unictype/property-bidi-left-to-right (Depends-on,
30973         configure.ac): Likewise.
30974         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
30975         configure.ac): Likewise.
30976         * modules/unictype/property-bidi-other-neutral (Depends-on,
30977         configure.ac): Likewise.
30978         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
30979         Likewise.
30980         * modules/unictype/property-bidi-segment-separator (Depends-on,
30981         configure.ac): Likewise.
30982         * modules/unictype/property-bidi-whitespace (Depends-on,
30983         configure.ac): Likewise.
30984         * modules/unictype/property-combining (Depends-on, configure.ac):
30985         Likewise.
30986         * modules/unictype/property-composite (Depends-on, configure.ac):
30987         Likewise.
30988         * modules/unictype/property-currency-symbol (Depends-on,
30989         configure.ac): Likewise.
30990         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
30991         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
30992         Likewise.
30993         * modules/unictype/property-default-ignorable-code-point (Depends-on,
30994         configure.ac): Likewise.
30995         * modules/unictype/property-deprecated (Depends-on, configure.ac):
30996         Likewise.
30997         * modules/unictype/property-diacritic (Depends-on, configure.ac):
30998         Likewise.
30999         * modules/unictype/property-extender (Depends-on, configure.ac):
31000         Likewise.
31001         * modules/unictype/property-format-control (Depends-on, configure.ac):
31002         Likewise.
31003         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
31004         Likewise.
31005         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
31006         Likewise.
31007         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
31008         Likewise.
31009         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
31010         Likewise.
31011         * modules/unictype/property-hyphen (Depends-on, configure.ac):
31012         Likewise.
31013         * modules/unictype/property-id-continue (Depends-on, configure.ac):
31014         Likewise.
31015         * modules/unictype/property-id-start (Depends-on, configure.ac):
31016         Likewise.
31017         * modules/unictype/property-ideographic (Depends-on, configure.ac):
31018         Likewise.
31019         * modules/unictype/property-ids-binary-operator (Depends-on,
31020         configure.ac): Likewise.
31021         * modules/unictype/property-ids-trinary-operator (Depends-on,
31022         configure.ac): Likewise.
31023         * modules/unictype/property-ignorable-control (Depends-on,
31024         configure.ac): Likewise.
31025         * modules/unictype/property-iso-control (Depends-on, configure.ac):
31026         Likewise.
31027         * modules/unictype/property-join-control (Depends-on, configure.ac):
31028         Likewise.
31029         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
31030         Likewise.
31031         * modules/unictype/property-line-separator (Depends-on, configure.ac):
31032         Likewise.
31033         * modules/unictype/property-logical-order-exception (Depends-on,
31034         configure.ac): Likewise.
31035         * modules/unictype/property-lowercase (Depends-on, configure.ac):
31036         Likewise.
31037         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
31038         * modules/unictype/property-non-break (Depends-on, configure.ac):
31039         Likewise.
31040         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
31041         Likewise.
31042         * modules/unictype/property-numeric (Depends-on, configure.ac):
31043         Likewise.
31044         * modules/unictype/property-other-alphabetic (Depends-on,
31045         configure.ac): Likewise.
31046         * modules/unictype/property-other-default-ignorable-code-point
31047         (Depends-on, configure.ac): Likewise.
31048         * modules/unictype/property-other-grapheme-extend (Depends-on,
31049         configure.ac): Likewise.
31050         * modules/unictype/property-other-id-continue (Depends-on,
31051         configure.ac): Likewise.
31052         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
31053         Likewise.
31054         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
31055         Likewise.
31056         * modules/unictype/property-other-math (Depends-on, configure.ac):
31057         Likewise.
31058         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
31059         Likewise.
31060         * modules/unictype/property-paired-punctuation (Depends-on,
31061         configure.ac): Likewise.
31062         * modules/unictype/property-paragraph-separator (Depends-on,
31063         configure.ac): Likewise.
31064         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
31065         Likewise.
31066         * modules/unictype/property-pattern-white-space (Depends-on,
31067         configure.ac): Likewise.
31068         * modules/unictype/property-private-use (Depends-on, configure.ac):
31069         Likewise.
31070         * modules/unictype/property-punctuation (Depends-on, configure.ac):
31071         Likewise.
31072         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
31073         Likewise.
31074         * modules/unictype/property-radical (Depends-on, configure.ac):
31075         Likewise.
31076         * modules/unictype/property-sentence-terminal (Depends-on,
31077         configure.ac): Likewise.
31078         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
31079         Likewise.
31080         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
31081         * modules/unictype/property-terminal-punctuation (Depends-on,
31082         configure.ac): Likewise.
31083         * modules/unictype/property-titlecase (Depends-on, configure.ac):
31084         Likewise.
31085         * modules/unictype/property-unassigned-code-value (Depends-on,
31086         configure.ac): Likewise.
31087         * modules/unictype/property-unified-ideograph (Depends-on,
31088         configure.ac): Likewise.
31089         * modules/unictype/property-uppercase (Depends-on, configure.ac):
31090         Likewise.
31091         * modules/unictype/property-variation-selector (Depends-on,
31092         configure.ac): Likewise.
31093         * modules/unictype/property-white-space (Depends-on, configure.ac):
31094         Likewise.
31095         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
31096         Likewise.
31097         * modules/unictype/property-xid-start (Depends-on, configure.ac):
31098         Likewise.
31099         * modules/unictype/property-zero-width (Depends-on, configure.ac):
31100         Likewise.
31101         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
31102         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
31103         Likewise.
31104
31105 2009-12-31  Bruno Haible  <bruno@clisp.org>
31106
31107         Remove unnecessary AC_C_INLINE invocation.
31108         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
31109         since 2009-08-21.
31110
31111 2009-12-31  Jim Meyering  <meyering@redhat.com>
31112
31113         maint.mk: don't require explicit gpg_key_ID in cfg.mk
31114         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
31115         With this change, we can all remove the gpg_key_ID = ... definition
31116         from our respective cfg.mk files.
31117
31118         maint.mk: create announcement template in ~/, not in /tmp
31119         * top/maint.mk (emit_upload_commands): Adjust.
31120         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
31121         Remove temporary file, .ci-msg.
31122
31123 2009-12-31  Eric Blake  <ebb9@byu.net>
31124
31125         link-warning: always build headers with link warnings
31126         * modules/arpa_inet (Makefile.am): Always build replacement
31127         header.
31128         * modules/ctype (Makefile.am): Likewise.
31129         * modules/dirent (Makefile.am): Likewise.
31130         * modules/inttypes (Makefile.am): Likewise.
31131         * modules/langinfo (Makefile.am): Likewise.
31132         * modules/locale (Makefile.am): Likewise.
31133         * modules/spawn (Makefile.am): Likewise.
31134         * modules/sys_file (Makefile.am): Likewise.
31135         * modules/sys_ioctl (Makefile.am): Likewise.
31136         * modules/sys_select (Makefile.am): Likewise.
31137         * modules/sys_socket (Makefile.am): Likewise.
31138         * modules/sys_times (Makefile.am): Likewise.
31139         * modules/sys_utsname (Makefile.am): Likewise.
31140         * modules/sys_wait (Makefile.am): Likewise.
31141         * modules/wchar (Makefile.am): Likewise.
31142         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
31143         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
31144         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
31145         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
31146         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
31147         Likewise.
31148         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31149         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31150         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
31151         Likewise.
31152         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
31153         Likewise.
31154         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
31155         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
31156         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
31157         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31158         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31159         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
31160         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
31161         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
31162         (gl_WCHAR_H_DEFAULTS): Likewise.
31163
31164 2009-12-31  Eric Blake  <ebb9@byu.net>
31165
31166         signal, spawn: use link warnings
31167         * lib/signal.in.h (sigset_t): Make unconditional.
31168         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
31169         (sigpending, sigprocmask, sigaction): Add link warnings.
31170         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
31171         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
31172         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
31173         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
31174         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
31175         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
31176         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
31177         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
31178         (posix_spawn_file_actions_destroy)
31179         (posix_spawn_file_actions_addopen)
31180         (posix_spawn_file_actions_addclose)
31181         (posix_spawn_file_actions_adddup2): Likewise.
31182         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
31183         * tests/test-signal.c (main): Enhance test.
31184
31185         spawn: improve wrapper support
31186         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
31187         (gl_SPAWN_H_DEFAULTS): New defaults.
31188         * modules/spawn (Makefile.am): Substitute them.
31189         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
31190         Only declare if missing or broken.
31191
31192         sys_times, sys_utsname: use include_next
31193         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
31194         header.
31195         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
31196         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
31197         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
31198         * modules/sys_times (Depends-on): Add include_next.
31199         (Makefile.am): Substitute additional values.
31200         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
31201         * lib/sys_times.in.h (includes): Include native header, if
31202         available.
31203         * lib/sys_utsname.in.h (includes): Likewise.
31204         * tests/test-sys_times.c (main): Enhance test.
31205
31206         fdutimensat: revert prior patch
31207         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
31208         utimens.h.
31209         Reported by Bruno Haible.
31210
31211 2009-12-30  Eric Blake  <ebb9@byu.net>
31212
31213         sys_wait: drop link-warning dependency
31214         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
31215         link-warning efforts.
31216         * lib/sys_wait.in.h: Likewise.
31217
31218         fdutimensat: remove bogus dependency
31219         * modules/fdutimensat (Depends-on): Drop inline.
31220
31221         unistd: fix typo
31222         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
31223
31224 2009-12-30  Bruno Haible  <bruno@clisp.org>
31225
31226         Fix compilation error with Solaris cc.
31227         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
31228         * lib/unicase/u16-is-invariant.c: Likewise.
31229         * lib/unicase/u32-is-invariant.c: Likewise.
31230         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
31231
31232 2009-12-30  Bruno Haible  <bruno@clisp.org>
31233
31234         Fix test crash.
31235         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
31236         locales.
31237         Reported by Simon Josefsson <simon@josefsson.org>.
31238
31239 2009-12-30  Bruno Haible  <bruno@clisp.org>
31240
31241         Fix compilation error on most platforms.
31242         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
31243         Reported by Simon Josefsson <simon@josefsson.org>
31244         and Nelson H. F. Beebe <beebe@math.utah.edu>.
31245
31246 2009-12-30  Eric Blake  <ebb9@byu.net>
31247
31248         futimens, utimensat: work around ntfs-3g bug
31249         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
31250         a ctime bug is present, and expand workaround to cover ntfs-3g.
31251         * lib/utimens.c (fdutimens, lutimens): Likewise.
31252         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
31253         (validate_timespec): Adjust return value.
31254         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
31255         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31256         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
31257
31258 2009-12-29  Eric Blake  <ebb9@byu.net>
31259
31260         link-warning: make usage consistent
31261         * modules/ctype (Depends-on): Add link-warning.
31262         (Makefile.am): Update rules accordingly.
31263         * modules/langinfo (Depends-on, Makefile.am): Likewise.
31264         * modules/locale (Depends-on, Makefile.am): Likewise.
31265         * modules/sys_file (Makefile.am): Likewise.
31266         * modules/getopt-posix (Makefile.am): Delete unused link warning
31267         efforts.
31268         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
31269         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
31270         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
31271         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
31272
31273         stdio: remove unused variables
31274         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
31275         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
31276         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31277
31278         tests: test more substitute headers
31279         * modules/ctype-tests: New file.
31280         * modules/dirent-tests: Likewise.
31281         * modules/spawn-tests: Likewise.
31282         * modules/sys_file-tests: Likewise.
31283         * modules/sys_ioctl-tests: Likewise.
31284         * modules/sys_wait-tests: Likewise.
31285         * tests/test-ctype.c: Likewise.
31286         * tests/test-dirent.c: Likewise.
31287         * tests/test-spawn.c: Likewise.
31288         * tests/test-sys_file.c: Likewise.
31289         * tests/test-sys_ioctl.c: Likewise.
31290         * tests/test-sys_wait.c: Likewise.
31291         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
31292         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
31293         whether or not flock is in use.
31294
31295         tests: remove License section from module
31296         * modules/arpa_inet-tests: Remove unneeded section.
31297         * modules/byteswap-tests: Likewise.
31298         * modules/ceilf-tests: Likewise.
31299         * modules/ceill-tests: Likewise.
31300         * modules/crypto/des-tests: Likewise.
31301         * modules/crypto/gc-arcfour-tests: Likewise.
31302         * modules/crypto/gc-arctwo-tests: Likewise.
31303         * modules/crypto/gc-des-tests: Likewise.
31304         * modules/crypto/gc-hmac-md5-tests: Likewise.
31305         * modules/crypto/gc-hmac-sha1-tests: Likewise.
31306         * modules/crypto/gc-md2-tests: Likewise.
31307         * modules/crypto/gc-md4-tests: Likewise.
31308         * modules/crypto/gc-md5-tests: Likewise.
31309         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
31310         * modules/crypto/gc-rijndael-tests: Likewise.
31311         * modules/crypto/gc-sha1-tests: Likewise.
31312         * modules/crypto/gc-tests: Likewise.
31313         * modules/crypto/md2-tests: Likewise.
31314         * modules/crypto/md4-tests: Likewise.
31315         * modules/fcntl-h-tests: Likewise.
31316         * modules/floorf-tests: Likewise.
31317         * modules/floorl-tests: Likewise.
31318         * modules/frexp-nolibm-tests: Likewise.
31319         * modules/frexp-tests: Likewise.
31320         * modules/frexpl-nolibm-tests: Likewise.
31321         * modules/frexpl-tests: Likewise.
31322         * modules/getaddrinfo-tests: Likewise.
31323         * modules/inttypes-tests: Likewise.
31324         * modules/isfinite-tests: Likewise.
31325         * modules/isinf-tests: Likewise.
31326         * modules/ldexpl-tests: Likewise.
31327         * modules/locale-tests: Likewise.
31328         * modules/math-tests: Likewise.
31329         * modules/netdb-tests: Likewise.
31330         * modules/netinet_in-tests: Likewise.
31331         * modules/printf-frexp-tests: Likewise.
31332         * modules/printf-frexpl-tests: Likewise.
31333         * modules/priv-set-tests: Likewise.
31334         * modules/random_r-tests: Likewise.
31335         * modules/round-tests: Likewise.
31336         * modules/roundf-tests: Likewise.
31337         * modules/roundl-tests: Likewise.
31338         * modules/search-tests: Likewise.
31339         * modules/select-tests: Likewise.
31340         * modules/signal-tests: Likewise.
31341         * modules/stdbool-tests: Likewise.
31342         * modules/stddef-tests: Likewise.
31343         * modules/stdint-tests: Likewise.
31344         * modules/stdio-tests: Likewise.
31345         * modules/stdlib-tests: Likewise.
31346         * modules/string-tests: Likewise.
31347         * modules/strings-tests: Likewise.
31348         * modules/sys_select-tests: Likewise.
31349         * modules/sys_socket-tests: Likewise.
31350         * modules/sys_stat-tests: Likewise.
31351         * modules/sys_time-tests: Likewise.
31352         * modules/sys_utsname-tests: Likewise.
31353         * modules/sysexits-tests: Likewise.
31354         * modules/time-tests: Likewise.
31355         * modules/trunc-tests: Likewise.
31356         * modules/truncf-tests: Likewise.
31357         * modules/truncl-tests: Likewise.
31358         * modules/tsearch-tests: Likewise.
31359         * modules/unistd-tests: Likewise.
31360         * modules/wchar-tests: Likewise.
31361         * modules/wctype-tests: Likewise.
31362
31363         tests: fix license on several tests
31364         * tests/test-des.c: Update to GPLv3+.
31365         * tests/test-flock.c: Likewise.
31366         * tests/test-fsync.c: Likewise.
31367         * tests/test-futimens.h: Likewise.
31368         * tests/test-gc-arcfour.c: Likewise.
31369         * tests/test-gc-arctwo.c: Likewise.
31370         * tests/test-gc-des.c: Likewise.
31371         * tests/test-gc-hmac-md5.c: Likewise.
31372         * tests/test-gc-hmac-sha1.c: Likewise.
31373         * tests/test-gc-md2.c: Likewise.
31374         * tests/test-gc-md4.c: Likewise.
31375         * tests/test-gc-md5.c: Likewise.
31376         * tests/test-gc-pbkdf2-sha1.c: Likewise.
31377         * tests/test-gc-rijndael.c: Likewise.
31378         * tests/test-gc-sha1.c: Likewise.
31379         * tests/test-gc.c: Likewise.
31380         * tests/test-getcwd.c: Likewise.
31381         * tests/test-link.c: Likewise.
31382         * tests/test-link.h: Likewise.
31383         * tests/test-lutimens.h: Likewise.
31384         * tests/test-md2.c: Likewise.
31385         * tests/test-md4.c: Likewise.
31386         * tests/test-mkdir.h: Likewise.
31387         * tests/test-rename.c: Likewise.
31388         * tests/test-rename.h: Likewise.
31389         * tests/test-safe-alloc.c: Likewise.
31390         * tests/test-utimens-common.h: Likewise.
31391         * tests/test-utimens.h: Likewise.
31392
31393         maint: sync license texts
31394         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
31395         * doc/gpl-3.0.texi: Revert copyright year update.
31396         * doc/lgpl-3.0.texi: Likewise.
31397
31398 2009-12-29  Jim Meyering  <meyering@redhat.com>
31399
31400         update nearly all FSF copyright year lists to include 2009
31401         The files named by the following are exempted:
31402             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
31403               test -f "$dst" && { echo "$dst"; continue; }
31404               test -d "$dst" || continue
31405               echo "$dst"/$(basename "$src")
31406             done > exempt
31407             git ls-files tests/unictype >> exempt
31408         In the remaining files, convert to all-interval notation if
31409         - there is already at least one year interval like 2000-2003
31410         - the file is maintained by me
31411         - the file is in lib/uni*/, where that style already prevails
31412         Otherwise, use update-copyright's default.
31413
31414 2009-12-29  Simon Josefsson  <simon@josefsson.org>
31415         and Eric Blake  <ebb9@byu.net>
31416
31417         tests: don't require debug system() to pass
31418         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
31419         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31420         * tests/test-unlink.h (test_unlink_func): Likewise.
31421         * tests/test-fstatat.c (main): ...into callers.
31422         * tests/test-lstat.c (main): Likewise.
31423         * tests/test-rmdir.c (main): Likewise.
31424         * tests/test-unlink.c (main): Likewise.
31425         * tests/test-unlinkat.c (main): Likewise.
31426         * tests/test-areadlink-with-size.c (main): Don't require a
31427         debug-only system call to pass, aiding cross-testing to mingw.
31428         * tests/test-areadlink.c (main): Likewise.
31429         * tests/test-areadlinkat-with-size.c (main): Likewise.
31430         * tests/test-areadlinkat.c (main): Likewise.
31431         * tests/test-canonicalize-lgpl.c (main): Likewise.
31432         * tests/test-canonicalize.c (main): Likewise.
31433         * tests/test-chown.c (main): Likewise.
31434         * tests/test-fchownat.c (main): Likewise.
31435         * tests/test-lchown.c (main): Likewise.
31436         * tests/test-fdutimensat.c (main): Likewise.
31437         * tests/test-futimens.c (main): Likewise.
31438         * tests/test-link.c (main): Likewise.
31439         * tests/test-linkat.c (main): Likewise.
31440         * tests/test-mkdir.c (main): Likewise.
31441         * tests/test-mkdirat.c (main): Likewise.
31442         * tests/test-mkfifo.c (main): Likewise.
31443         * tests/test-mkfifoat.c (main): Likewise.
31444         * tests/test-mknod.c (main): Likewise.
31445         * tests/test-readlink.c (main): Likewise.
31446         * tests/test-remove.c (main): Likewise.
31447         * tests/test-rename.c (main): Likewise.
31448         * tests/test-renameat.c (main): Likewise.
31449         * tests/test-symlink.c (main): Likewise.
31450         * tests/test-symlinkat.c (main): Likewise.
31451         * tests/test-utimens.c (main): Likewise.
31452         * tests/test-utimensat.c (main): Likewise.
31453
31454 2009-12-29  Simon Josefsson  <simon@josefsson.org>
31455
31456         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
31457         on $(UNUSED_PARAMETER_H) to avoid build failure.
31458
31459 2009-12-28  Jim Meyering  <meyering@redhat.com>
31460
31461         update-copyright: you may specify a max. line length other than 72
31462         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
31463
31464         maint: use consistent FSF copyright line syntax
31465         * lib/posixtm.c: Add missing comma in FSF copyright line.
31466         * lib/posixtm.h: Likewise.
31467         * lib/getugroups.c: Add missing ", Inc.".
31468
31469         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
31470         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
31471         FSF copyright line.  Remove trailing blanks.
31472
31473 2009-12-28  Eric Blake  <ebb9@byu.net>
31474
31475         test-dup2: reduce dependencies
31476         * modules/cloexec (Configure.ac): Set witness.
31477         * modules/dup2-tests (Depends-on): Drop cloexec.
31478         * tests/test-dup2.c (main): Skip portion of test if cloexec module
31479         not present.
31480         Suggested by Bruno Haible.
31481
31482 2009-12-26  Bruno Haible  <bruno@clisp.org>
31483
31484         Remove an unneeded dependency.
31485         * modules/fseterr (Depends-on): Remove dup2.
31486
31487 2009-12-26  Eric Blake  <ebb9@byu.net>
31488
31489         tests: use macros.h in more places
31490         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
31491         (ASSERT_STREAM): Provide default of stderr.
31492         * tests/test-dirent-safer.c: Include macros.h, using alternate
31493         stream for assertions.
31494         * tests/test-dup-safer.c: Likewise.
31495         * tests/test-freopen-safer.c: Likewise.
31496         * tests/test-getopt.c: Likewise.
31497         * tests/test-openat-safer.c: Likewise.
31498         * tests/test-pipe.c: Likewise.
31499         * tests/test-popen-safer.c: Likewise.
31500         * modules/dirent-safer-tests (Files): Include macros.h.
31501         * modules/unistd-safer-tests (Files): Likewise.
31502         * modules/freopen-safer-tests (Files): Likewise.
31503         * modules/getopt-posix-tests (Files): Likewise.
31504         * modules/openat-safer-tests (Files): Likewise.
31505         * modules/pipe-tests (Files): Likewise.
31506
31507 2009-12-26  Bruno Haible  <bruno@clisp.org>
31508
31509         javacomp: Portability fix.
31510         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
31511         that it also works on Solaris.
31512
31513 2009-12-26  Bruno Haible  <bruno@clisp.org>
31514
31515         localename: Fix storage allocation of gl_locale_name_thread's result.
31516         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
31517         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
31518         all platforms that have 'uselocale'.
31519         (gl_locale_name_thread_unsafe): New function, extracted from
31520         gl_locale_name_thread.
31521         (gl_locale_name_thread): Call struniq on all platforms that have
31522         'uselocale'.
31523         * tests/test-localename.c (test_locale_name_thread): Check that the
31524         resulting strings are permanently allocated.
31525         * modules/localename-tests (Depends-on): Add strdup.
31526
31527 2009-12-26  Bruno Haible  <bruno@clisp.org>
31528
31529         * tests/test-localename.c (categories): Fill in the strings.
31530
31531 2009-12-26  Jim Meyering  <meyering@redhat.com>
31532
31533         isdir: complete the removal of m4/isdir.m4
31534         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
31535
31536         isdir: clean up, since at least grep still uses it
31537         * lib/isdir.c: Include "isdir.h".
31538         (S_ISDIR): Remove now-unneeded definition.
31539         * modules/isdir (Files): Add lib/isdir.h.
31540         * lib/isdir.h: New file, with declaration.
31541         * m4/isdir.m4: Remove file -- unneeded.
31542
31543 2009-12-25  Bruno Haible  <bruno@clisp.org>
31544
31545         selinux-h: Make generated .h files standalone.
31546         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
31547         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
31548         * lib/se-selinux.in.h: Likewise.
31549         * modules/selinux-h (Depends-on): Add unused-parameter.
31550         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
31551         selinux/selinux.h and selinux/context.h.
31552         Suggested by Eric Blake.
31553
31554 2009-12-25  Bruno Haible  <bruno@clisp.org>
31555
31556         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
31557         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
31558         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
31559         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
31560         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
31561
31562 2009-12-24  Bruno Haible  <bruno@clisp.org>
31563
31564         openat: Fix warning.
31565         * lib/openat-proc.c: Include <unistd.h>.
31566
31567 2009-12-24  Bruno Haible  <bruno@clisp.org>
31568
31569         New module 'unused-parameter'.
31570         * build-aux/unused-parameter.h: New file, extracted from earlier
31571         gnulib-common.m4.
31572         * modules/unused-parameter: New file.
31573         * lib/unistr.h: Include unused-parameter.h.
31574         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
31575         _GL_UNUSED.
31576         * modules/unistr/base (Depends-on): Add unused-parameter.
31577
31578 2009-12-24  Bruno Haible  <bruno@clisp.org>
31579
31580         Add missing dependencies to 'extensions' module.
31581         * m4/extensions.m4: Add comment.
31582         * modules/accept4 (Depends-on): Add extensions.
31583         * modules/dup3 (Depends-on): Likewise.
31584         * modules/fcntl (Depends-on): Likewise.
31585         * modules/futimens (Depends-on): Likewise.
31586         * modules/mknod (Depends-on): Likewise.
31587         * modules/pipe2 (Depends-on): Likewise.
31588         * modules/stat-time (Depends-on): Likewise.
31589         * modules/strcasestr-simple (Depends-on): Likewise.
31590         * modules/strsignal (Depends-on): Likewise.
31591         * modules/utimensat (Depends-on): Likewise.
31592         * modules/localcharset (Depends-on): Likewise. Needed because of
31593         gl_FCNTL_O_FLAGS.
31594         * modules/wcrtomb (Depends-on): Likewise. Needed because of
31595         AC_TYPE_MBSTATE_T.
31596         * modules/wcsnrtombs (Depends-on): Likewise.
31597         * modules/wcsrtombs (Depends-on): Likewise.
31598
31599 2009-12-24  Bruno Haible  <bruno@clisp.org>
31600
31601         binary-io: Avoid gcc warning due to SET_BINARY.
31602         * lib/binary-io.h (SET_BINARY): Cast the result to void.
31603         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
31604
31605 2009-12-24  Bruno Haible  <bruno@clisp.org>
31606
31607         Avoid future namespace pollution on glibc systems.
31608         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
31609         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
31610         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
31611         glibc systems.
31612
31613 2009-12-24  Bruno Haible  <bruno@clisp.org>
31614
31615         Refactor common macros used in tests.
31616         * tests/macros.h: New file.
31617         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
31618         and/or <stdlib.h>, if appropriate.
31619         (ASSERT, SIZEOF): Remove macros.
31620         * tests/test-areadlink-with-size.c: Likewise.
31621         * tests/test-areadlinkat.c: Likewise.
31622         * tests/test-areadlinkat-with-size.c: Likewise.
31623         * tests/test-argmatch.c: Likewise.
31624         * tests/test-argv-iter.c: Likewise.
31625         * tests/test-array-mergesort.c: Likewise.
31626         * tests/test-array_list.c: Likewise.
31627         * tests/test-array_oset.c: Likewise.
31628         * tests/test-avltree_list.c: Likewise.
31629         * tests/test-avltree_oset.c: Likewise.
31630         * tests/test-avltreehash_list.c: Likewise.
31631         * tests/test-base64.c: Likewise.
31632         * tests/test-binary-io.c: Likewise.
31633         * tests/test-bitrotate.c: Likewise.
31634         * tests/test-btowc.c: Likewise.
31635         * tests/test-byteswap.c: Likewise.
31636         * tests/test-c-ctype.c: Likewise.
31637         * tests/test-c-stack.c: Likewise.
31638         * tests/test-c-strcasecmp.c: Likewise.
31639         * tests/test-c-strcasestr.c: Likewise.
31640         * tests/test-c-strncasecmp.c: Likewise.
31641         * tests/test-c-strstr.c: Likewise.
31642         * tests/test-canonicalize-lgpl.c: Likewise.
31643         * tests/test-canonicalize.c: Likewise.
31644         * tests/test-carray_list.c: Likewise.
31645         * tests/test-ceilf1.c: Likewise.
31646         * tests/test-ceilf2.c: Likewise.
31647         * tests/test-ceill.c: Likewise.
31648         * tests/test-chown.c: Likewise.
31649         * tests/test-cloexec.c: Likewise.
31650         * tests/test-copy-acl.c: Likewise.
31651         * tests/test-copy-file.c: Likewise.
31652         * tests/test-count-one-bits.c: Likewise.
31653         * tests/test-dprintf-posix.c: Likewise.
31654         * tests/test-dup2.c: Likewise.
31655         * tests/test-dup3.c: Likewise.
31656         * tests/test-duplocale.c: Likewise.
31657         * tests/test-fbufmode.c: Likewise.
31658         * tests/test-fchdir.c: Likewise.
31659         * tests/test-fchownat.c: Likewise.
31660         * tests/test-fcntl-safer.c: Likewise.
31661         * tests/test-fcntl.c: Likewise.
31662         * tests/test-fdopendir.c: Likewise.
31663         * tests/test-fdutimensat.c: Likewise.
31664         * tests/test-fflush2.c: Likewise.
31665         * tests/test-file-has-acl.c: Likewise.
31666         * tests/test-filevercmp.c: Likewise.
31667         * tests/test-flock.c: Likewise.
31668         * tests/test-floorf1.c: Likewise.
31669         * tests/test-floorf2.c: Likewise.
31670         * tests/test-floorl.c: Likewise.
31671         * tests/test-fnmatch.c: Likewise.
31672         * tests/test-fopen.h: Likewise.
31673         * tests/test-fpending.c: Likewise.
31674         * tests/test-fprintf-posix.c: Likewise.
31675         * tests/test-fpurge.c: Likewise.
31676         * tests/test-freadable.c: Likewise.
31677         * tests/test-freadahead.c: Likewise.
31678         * tests/test-freading.c: Likewise.
31679         * tests/test-freadptr.c: Likewise.
31680         * tests/test-freadptr2.c: Likewise.
31681         * tests/test-freadseek.c: Likewise.
31682         * tests/test-freopen.c: Likewise.
31683         * tests/test-frexp.c: Likewise.
31684         * tests/test-frexpl.c: Likewise.
31685         * tests/test-fseek.c: Likewise.
31686         * tests/test-fseeko.c: Likewise.
31687         * tests/test-fstatat.c: Likewise.
31688         * tests/test-fstrcmp.c: Likewise.
31689         * tests/test-fsync.c: Likewise.
31690         * tests/test-ftell.c: Likewise.
31691         * tests/test-ftello.c: Likewise.
31692         * tests/test-func.c: Likewise.
31693         * tests/test-futimens.c: Likewise.
31694         * tests/test-fwritable.c: Likewise.
31695         * tests/test-fwriting.c: Likewise.
31696         * tests/test-getcwd.c: Likewise.
31697         * tests/test-getdate.c: Likewise.
31698         * tests/test-getdelim.c: Likewise.
31699         * tests/test-getdtablesize.c: Likewise.
31700         * tests/test-getgroups.c: Likewise.
31701         * tests/test-getline.c: Likewise.
31702         * tests/test-getndelim2.c: Likewise.
31703         * tests/test-glob.c: Likewise.
31704         * tests/test-hash.c: Likewise.
31705         * tests/test-i-ring.c: Likewise.
31706         * tests/test-iconv-utf.c: Likewise.
31707         * tests/test-iconv.c: Likewise.
31708         * tests/test-idpriv-drop.c: Likewise.
31709         * tests/test-idpriv-droptemp.c: Likewise.
31710         * tests/test-inet_ntop.c: Likewise.
31711         * tests/test-inet_pton.c: Likewise.
31712         * tests/test-isblank.c: Likewise.
31713         * tests/test-isfinite.c: Likewise.
31714         * tests/test-isinf.c: Likewise.
31715         * tests/test-isnan.c: Likewise.
31716         * tests/test-isnand.h: Likewise.
31717         * tests/test-isnanf.h: Likewise.
31718         * tests/test-isnanl.h: Likewise.
31719         * tests/test-lchown.c: Likewise.
31720         * tests/test-ldexpl.c: Likewise.
31721         * tests/test-link.c: Likewise.
31722         * tests/test-linkat.c: Likewise.
31723         * tests/test-linked_list.c: Likewise.
31724         * tests/test-linkedhash_list.c: Likewise.
31725         * tests/test-localename.c: Likewise.
31726         * tests/test-lseek.c: Likewise.
31727         * tests/test-lstat.c: Likewise.
31728         * tests/test-mbmemcasecmp.c: Likewise.
31729         * tests/test-mbmemcasecoll.c: Likewise.
31730         * tests/test-mbrtowc.c: Likewise.
31731         * tests/test-mbscasecmp.c: Likewise.
31732         * tests/test-mbscasestr1.c: Likewise.
31733         * tests/test-mbscasestr2.c: Likewise.
31734         * tests/test-mbscasestr3.c: Likewise.
31735         * tests/test-mbscasestr4.c: Likewise.
31736         * tests/test-mbschr.c: Likewise.
31737         * tests/test-mbscspn.c: Likewise.
31738         * tests/test-mbsinit.c: Likewise.
31739         * tests/test-mbsncasecmp.c: Likewise.
31740         * tests/test-mbsnrtowcs.c: Likewise.
31741         * tests/test-mbspbrk.c: Likewise.
31742         * tests/test-mbspcasecmp.c: Likewise.
31743         * tests/test-mbsrchr.c: Likewise.
31744         * tests/test-mbsrtowcs.c: Likewise.
31745         * tests/test-mbsspn.c: Likewise.
31746         * tests/test-mbsstr1.c: Likewise.
31747         * tests/test-mbsstr2.c: Likewise.
31748         * tests/test-mbsstr3.c: Likewise.
31749         * tests/test-memchr.c: Likewise.
31750         * tests/test-memchr2.c: Likewise.
31751         * tests/test-memcmp.c: Likewise.
31752         * tests/test-memmem.c: Likewise.
31753         * tests/test-memrchr.c: Likewise.
31754         * tests/test-mkdir.c: Likewise.
31755         * tests/test-mkdirat.c: Likewise.
31756         * tests/test-mkfifo.c: Likewise.
31757         * tests/test-mkfifoat.c: Likewise.
31758         * tests/test-mknod.c: Likewise.
31759         * tests/test-nanosleep.c: Likewise.
31760         * tests/test-nl_langinfo.c: Likewise.
31761         * tests/test-obstack-printf.c: Likewise.
31762         * tests/test-open.c: Likewise.
31763         * tests/test-openat.c: Likewise.
31764         * tests/test-pipe-filter-gi1.c: Likewise.
31765         * tests/test-pipe-filter-gi2-main.c: Likewise.
31766         * tests/test-pipe-filter-ii1.c: Likewise.
31767         * tests/test-pipe-filter-ii2-main.c: Likewise.
31768         * tests/test-pipe2.c: Likewise.
31769         * tests/test-popen.h: Likewise.
31770         * tests/test-posixtm.c: Likewise.
31771         * tests/test-pread.c: Likewise.
31772         * tests/test-printf-frexp.c: Likewise.
31773         * tests/test-printf-frexpl.c: Likewise.
31774         * tests/test-printf-posix.c: Likewise.
31775         * tests/test-priv-set.c: Likewise.
31776         * tests/test-quotearg.c: Likewise.
31777         * tests/test-random_r.c: Likewise.
31778         * tests/test-rawmemchr.c: Likewise.
31779         * tests/test-rbtree_list.c: Likewise.
31780         * tests/test-rbtree_oset.c: Likewise.
31781         * tests/test-rbtreehash_list.c: Likewise.
31782         * tests/test-readlink.c: Likewise.
31783         * tests/test-remove.c: Likewise.
31784         * tests/test-rename.c: Likewise.
31785         * tests/test-renameat.c: Likewise.
31786         * tests/test-rmdir.c: Likewise.
31787         * tests/test-round1.c: Likewise.
31788         * tests/test-roundf1.c: Likewise.
31789         * tests/test-roundl.c: Likewise.
31790         * tests/test-safe-alloc.c: Likewise.
31791         * tests/test-sameacls.c: Likewise.
31792         * tests/test-set-mode-acl.c: Likewise.
31793         * tests/test-setenv.c: Likewise.
31794         * tests/test-sigaction.c: Likewise.
31795         * tests/test-signbit.c: Likewise.
31796         * tests/test-sleep.c: Likewise.
31797         * tests/test-snprintf-posix.c: Likewise.
31798         * tests/test-snprintf.c: Likewise.
31799         * tests/test-sprintf-posix.c: Likewise.
31800         * tests/test-stat-time.c: Likewise.
31801         * tests/test-stat.c: Likewise.
31802         * tests/test-strcasestr.c: Likewise.
31803         * tests/test-strchrnul.c: Likewise.
31804         * tests/test-strerror.c: Likewise.
31805         * tests/test-striconv.c: Likewise.
31806         * tests/test-striconveh.c: Likewise.
31807         * tests/test-striconveha.c: Likewise.
31808         * tests/test-strsignal.c: Likewise.
31809         * tests/test-strstr.c: Likewise.
31810         * tests/test-strtod.c: Likewise.
31811         * tests/test-strverscmp.c: Likewise.
31812         * tests/test-symlink.c: Likewise.
31813         * tests/test-symlinkat.c: Likewise.
31814         * tests/test-trunc1.c: Likewise.
31815         * tests/test-trunc2.c: Likewise.
31816         * tests/test-truncf1.c: Likewise.
31817         * tests/test-truncf2.c: Likewise.
31818         * tests/test-truncl.c: Likewise.
31819         * tests/test-uname.c: Likewise.
31820         * tests/test-unlink.c: Likewise.
31821         * tests/test-unlinkat.c: Likewise.
31822         * tests/test-unsetenv.c: Likewise.
31823         * tests/test-usleep.c: Likewise.
31824         * tests/test-utimens.c: Likewise.
31825         * tests/test-utimensat.c: Likewise.
31826         * tests/test-vasnprintf-posix.c: Likewise.
31827         * tests/test-vasnprintf-posix2.c: Likewise.
31828         * tests/test-vasnprintf.c: Likewise.
31829         * tests/test-vasprintf-posix.c: Likewise.
31830         * tests/test-vasprintf.c: Likewise.
31831         * tests/test-vdprintf-posix.c: Likewise.
31832         * tests/test-vfprintf-posix.c: Likewise.
31833         * tests/test-vprintf-posix.c: Likewise.
31834         * tests/test-vsnprintf-posix.c: Likewise.
31835         * tests/test-vsnprintf.c: Likewise.
31836         * tests/test-vsprintf-posix.c: Likewise.
31837         * tests/test-wcrtomb.c: Likewise.
31838         * tests/test-wcsnrtombs.c: Likewise.
31839         * tests/test-wcsrtombs.c: Likewise.
31840         * tests/test-wctype.c: Likewise.
31841         * tests/test-wcwidth.c: Likewise.
31842         * tests/test-xfprintf-posix.c: Likewise.
31843         * tests/test-xmemdup0.c: Likewise.
31844         * tests/test-xprintf-posix.c: Likewise.
31845         * tests/test-xvasprintf.c: Likewise.
31846         * tests/unicase/test-locale-language.c: Likewise.
31847         * tests/unicase/test-mapping-part1.h: Likewise.
31848         * tests/unicase/test-predicate-part1.h: Likewise.
31849         * tests/unicase/test-u8-casecmp.c: Likewise.
31850         * tests/unicase/test-u8-casecoll.c: Likewise.
31851         * tests/unicase/test-u8-casefold.c: Likewise.
31852         * tests/unicase/test-u8-is-cased.c: Likewise.
31853         * tests/unicase/test-u8-is-casefolded.c: Likewise.
31854         * tests/unicase/test-u8-is-lowercase.c: Likewise.
31855         * tests/unicase/test-u8-is-titlecase.c: Likewise.
31856         * tests/unicase/test-u8-is-uppercase.c: Likewise.
31857         * tests/unicase/test-u8-tolower.c: Likewise.
31858         * tests/unicase/test-u8-totitle.c: Likewise.
31859         * tests/unicase/test-u8-toupper.c: Likewise.
31860         * tests/unicase/test-u16-casecmp.c: Likewise.
31861         * tests/unicase/test-u16-casecoll.c: Likewise.
31862         * tests/unicase/test-u16-casefold.c: Likewise.
31863         * tests/unicase/test-u16-is-cased.c: Likewise.
31864         * tests/unicase/test-u16-is-casefolded.c: Likewise.
31865         * tests/unicase/test-u16-is-lowercase.c: Likewise.
31866         * tests/unicase/test-u16-is-titlecase.c: Likewise.
31867         * tests/unicase/test-u16-is-uppercase.c: Likewise.
31868         * tests/unicase/test-u16-tolower.c: Likewise.
31869         * tests/unicase/test-u16-totitle.c: Likewise.
31870         * tests/unicase/test-u16-toupper.c: Likewise.
31871         * tests/unicase/test-u32-casecmp.c: Likewise.
31872         * tests/unicase/test-u32-casecoll.c: Likewise.
31873         * tests/unicase/test-u32-casefold.c: Likewise.
31874         * tests/unicase/test-u32-is-cased.c: Likewise.
31875         * tests/unicase/test-u32-is-casefolded.c: Likewise.
31876         * tests/unicase/test-u32-is-lowercase.c: Likewise.
31877         * tests/unicase/test-u32-is-titlecase.c: Likewise.
31878         * tests/unicase/test-u32-is-uppercase.c: Likewise.
31879         * tests/unicase/test-u32-tolower.c: Likewise.
31880         * tests/unicase/test-u32-totitle.c: Likewise.
31881         * tests/unicase/test-u32-toupper.c: Likewise.
31882         * tests/unicase/test-ulc-casecmp.c: Likewise.
31883         * tests/unicase/test-ulc-casecoll.c: Likewise.
31884         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31885         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31886         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31887         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31888         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31889         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31890         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31891         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31892         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31893         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31894         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31895         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31896         * tests/unictype/test-bidi_byname.c: Likewise.
31897         * tests/unictype/test-bidi_name.c: Likewise.
31898         * tests/unictype/test-bidi_of.c: Likewise.
31899         * tests/unictype/test-bidi_test.c: Likewise.
31900         * tests/unictype/test-block_list.c: Likewise.
31901         * tests/unictype/test-block_of.c: Likewise.
31902         * tests/unictype/test-block_test.c: Likewise.
31903         * tests/unictype/test-categ_and.c: Likewise.
31904         * tests/unictype/test-categ_and_not.c: Likewise.
31905         * tests/unictype/test-categ_byname.c: Likewise.
31906         * tests/unictype/test-categ_name.c: Likewise.
31907         * tests/unictype/test-categ_none.c: Likewise.
31908         * tests/unictype/test-categ_of.c: Likewise.
31909         * tests/unictype/test-categ_or.c: Likewise.
31910         * tests/unictype/test-categ_test_withtable.c: Likewise.
31911         * tests/unictype/test-combining.c: Likewise.
31912         * tests/unictype/test-decdigit.c: Likewise.
31913         * tests/unictype/test-digit.c: Likewise.
31914         * tests/unictype/test-mirror.c: Likewise.
31915         * tests/unictype/test-numeric.c: Likewise.
31916         * tests/unictype/test-pr_byname.c: Likewise.
31917         * tests/unictype/test-pr_test.c: Likewise.
31918         * tests/unictype/test-predicate-part1.h: Likewise.
31919         * tests/unictype/test-scripts.c: Likewise.
31920         * tests/unictype/test-sy_c_ident.c: Likewise.
31921         * tests/unictype/test-sy_java_ident.c: Likewise.
31922         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
31923         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
31924         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
31925         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
31926         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
31927         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
31928         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
31929         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
31930         * tests/uninorm/test-canonical-decomposition.c: Likewise.
31931         * tests/uninorm/test-compat-decomposition.c: Likewise.
31932         * tests/uninorm/test-composition.c: Likewise.
31933         * tests/uninorm/test-decomposing-form.c: Likewise.
31934         * tests/uninorm/test-decomposition.c: Likewise.
31935         * tests/uninorm/test-u8-nfc.c: Likewise.
31936         * tests/uninorm/test-u8-nfd.c: Likewise.
31937         * tests/uninorm/test-u8-nfkc.c: Likewise.
31938         * tests/uninorm/test-u8-nfkd.c: Likewise.
31939         * tests/uninorm/test-u8-normcmp.c: Likewise.
31940         * tests/uninorm/test-u8-normcoll.c: Likewise.
31941         * tests/uninorm/test-u16-nfc.c: Likewise.
31942         * tests/uninorm/test-u16-nfd.c: Likewise.
31943         * tests/uninorm/test-u16-nfkc.c: Likewise.
31944         * tests/uninorm/test-u16-nfkd.c: Likewise.
31945         * tests/uninorm/test-u16-normcmp.c: Likewise.
31946         * tests/uninorm/test-u16-normcoll.c: Likewise.
31947         * tests/uninorm/test-u32-nfc.c: Likewise.
31948         * tests/uninorm/test-u32-nfd.c: Likewise.
31949         * tests/uninorm/test-u32-nfkc.c: Likewise.
31950         * tests/uninorm/test-u32-nfkd.c: Likewise.
31951         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31952         * tests/uninorm/test-u32-normcmp.c: Likewise.
31953         * tests/uninorm/test-u32-normcoll.c: Likewise.
31954         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
31955         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31956         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31957         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31958         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31959         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31960         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31961         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31962         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31963         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31964         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31965         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31966         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31967         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31968         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31969         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31970         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31971         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31972         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31973         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31974         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31975         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31976         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31977         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31978         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31979         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31980         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31981         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31982         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31983         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
31984         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
31985         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
31986         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
31987         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31988         * tests/uniwidth/test-u8-width.c: Likewise.
31989         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31990         * tests/uniwidth/test-u16-width.c: Likewise.
31991         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31992         * tests/uniwidth/test-u32-width.c: Likewise.
31993         * tests/uniwidth/test-uc_width.c: Likewise.
31994         * tests/uniwidth/test-uc_width2.c: Likewise.
31995         * modules/acl-tests (Files): Add tests/macros.h.
31996         * modules/areadlink-tests (Files): Likewise.
31997         * modules/areadlink-with-size-tests (Files): Likewise.
31998         * modules/areadlinkat-tests (Files): Likewise.
31999         * modules/areadlinkat-with-size-tests (Files): Likewise.
32000         * modules/argmatch-tests (Files): Likewise.
32001         * modules/argv-iter-tests (Files): Likewise.
32002         * modules/array-list-tests (Files): Likewise.
32003         * modules/array-mergesort-tests (Files): Likewise.
32004         * modules/array-oset-tests (Files): Likewise.
32005         * modules/avltree-list-tests (Files): Likewise.
32006         * modules/avltree-oset-tests (Files): Likewise.
32007         * modules/avltreehash-list-tests (Files): Likewise.
32008         * modules/base64-tests (Files): Likewise.
32009         * modules/binary-io-tests (Files): Likewise.
32010         * modules/bitrotate-tests (Files): Likewise.
32011         * modules/btowc-tests (Files): Likewise.
32012         * modules/byteswap-tests (Files): Likewise.
32013         * modules/c-ctype-tests (Files): Likewise.
32014         * modules/c-stack-tests (Files): Likewise.
32015         * modules/c-strcase-tests (Files): Likewise.
32016         * modules/c-strcasestr-tests (Files): Likewise.
32017         * modules/c-strstr-tests (Files): Likewise.
32018         * modules/canonicalize-lgpl-tests (Files): Likewise.
32019         * modules/canonicalize-tests (Files): Likewise.
32020         * modules/carray-list-tests (Files): Likewise.
32021         * modules/ceilf-tests (Files): Likewise.
32022         * modules/ceill-tests (Files): Likewise.
32023         * modules/chown-tests (Files): Likewise.
32024         * modules/cloexec-tests (Files): Likewise.
32025         * modules/copy-file-tests (Files): Likewise.
32026         * modules/count-one-bits-tests (Files): Likewise.
32027         * modules/dprintf-posix-tests (Files): Likewise.
32028         * modules/dup2-tests (Files): Likewise.
32029         * modules/dup3-tests (Files): Likewise.
32030         * modules/duplocale-tests (Files): Likewise.
32031         * modules/fbufmode-tests (Files): Likewise.
32032         * modules/fchdir-tests (Files): Likewise.
32033         * modules/fcntl-safer-tests (Files): Likewise.
32034         * modules/fcntl-tests (Files): Likewise.
32035         * modules/fdopendir-tests (Files): Likewise.
32036         * modules/fdutimensat-tests (Files): Likewise.
32037         * modules/fflush-tests (Files): Likewise.
32038         * modules/filevercmp-tests (Files): Likewise.
32039         * modules/flock-tests (Files): Likewise.
32040         * modules/floorf-tests (Files): Likewise.
32041         * modules/floorl-tests (Files): Likewise.
32042         * modules/fnmatch-tests (Files): Likewise.
32043         * modules/fopen-safer-tests (Files): Likewise.
32044         * modules/fopen-tests (Files): Likewise.
32045         * modules/fpending-tests (Files): Likewise.
32046         * modules/fprintf-posix-tests (Files): Likewise.
32047         * modules/fpurge-tests (Files): Likewise.
32048         * modules/freadable-tests (Files): Likewise.
32049         * modules/freadahead-tests (Files): Likewise.
32050         * modules/freading-tests (Files): Likewise.
32051         * modules/freadptr-tests (Files): Likewise.
32052         * modules/freadseek-tests (Files): Likewise.
32053         * modules/freopen-tests (Files): Likewise.
32054         * modules/frexp-nolibm-tests (Files): Likewise.
32055         * modules/frexp-tests (Files): Likewise.
32056         * modules/frexpl-nolibm-tests (Files): Likewise.
32057         * modules/frexpl-tests (Files): Likewise.
32058         * modules/fseek-tests (Files): Likewise.
32059         * modules/fseeko-tests (Files): Likewise.
32060         * modules/fstrcmp-tests (Files): Likewise.
32061         * modules/fsync-tests (Files): Likewise.
32062         * modules/ftell-tests (Files): Likewise.
32063         * modules/ftello-tests (Files): Likewise.
32064         * modules/func-tests (Files): Likewise.
32065         * modules/futimens-tests (Files): Likewise.
32066         * modules/fwritable-tests (Files): Likewise.
32067         * modules/fwriting-tests (Files): Likewise.
32068         * modules/getcwd-tests (Files): Likewise.
32069         * modules/getdate-tests (Files): Likewise.
32070         * modules/getdelim-tests (Files): Likewise.
32071         * modules/getdtablesize-tests (Files): Likewise.
32072         * modules/getgroups-tests (Files): Likewise.
32073         * modules/getline-tests (Files): Likewise.
32074         * modules/getndelim2-tests (Files): Likewise.
32075         * modules/glob-tests (Files): Likewise.
32076         * modules/hash-tests (Files): Likewise.
32077         * modules/i-ring-tests (Files): Likewise.
32078         * modules/iconv-tests (Files): Likewise.
32079         * modules/iconv_open-utf-tests (Files): Likewise.
32080         * modules/idpriv-drop-tests (Files): Likewise.
32081         * modules/idpriv-droptemp-tests (Files): Likewise.
32082         * modules/inet_ntop-tests (Files): Likewise.
32083         * modules/inet_pton-tests (Files): Likewise.
32084         * modules/isblank-tests (Files): Likewise.
32085         * modules/isfinite-tests (Files): Likewise.
32086         * modules/isinf-tests (Files): Likewise.
32087         * modules/isnan-tests (Files): Likewise.
32088         * modules/isnand-nolibm-tests (Files): Likewise.
32089         * modules/isnand-tests (Files): Likewise.
32090         * modules/isnanf-nolibm-tests (Files): Likewise.
32091         * modules/isnanf-tests (Files): Likewise.
32092         * modules/isnanl-nolibm-tests (Files): Likewise.
32093         * modules/isnanl-tests (Files): Likewise.
32094         * modules/lchown-tests (Files): Likewise.
32095         * modules/ldexpl-tests (Files): Likewise.
32096         * modules/link-tests (Files): Likewise.
32097         * modules/linkat-tests (Files): Likewise.
32098         * modules/linked-list-tests (Files): Likewise.
32099         * modules/linkedhash-list-tests (Files): Likewise.
32100         * modules/localename-tests (Files): Likewise.
32101         * modules/lseek-tests (Files): Likewise.
32102         * modules/lstat-tests (Files): Likewise.
32103         * modules/mbmemcasecmp-tests (Files): Likewise.
32104         * modules/mbmemcasecoll-tests (Files): Likewise.
32105         * modules/mbrtowc-tests (Files): Likewise.
32106         * modules/mbscasecmp-tests (Files): Likewise.
32107         * modules/mbscasestr-tests (Files): Likewise.
32108         * modules/mbschr-tests (Files): Likewise.
32109         * modules/mbscspn-tests (Files): Likewise.
32110         * modules/mbsinit-tests (Files): Likewise.
32111         * modules/mbsncasecmp-tests (Files): Likewise.
32112         * modules/mbsnrtowcs-tests (Files): Likewise.
32113         * modules/mbspbrk-tests (Files): Likewise.
32114         * modules/mbspcasecmp-tests (Files): Likewise.
32115         * modules/mbsrchr-tests (Files): Likewise.
32116         * modules/mbsrtowcs-tests (Files): Likewise.
32117         * modules/mbsspn-tests (Files): Likewise.
32118         * modules/mbsstr-tests (Files): Likewise.
32119         * modules/memchr-tests (Files): Likewise.
32120         * modules/memchr2-tests (Files): Likewise.
32121         * modules/memcmp-tests (Files): Likewise.
32122         * modules/memmem-tests (Files): Likewise.
32123         * modules/memrchr-tests (Files): Likewise.
32124         * modules/mkdir-tests (Files): Likewise.
32125         * modules/mkfifo-tests (Files): Likewise.
32126         * modules/mkfifoat-tests (Files): Likewise.
32127         * modules/mknod-tests (Files): Likewise.
32128         * modules/nanosleep-tests (Files): Likewise.
32129         * modules/nl_langinfo-tests (Files): Likewise.
32130         * modules/obstack-printf-tests (Files): Likewise.
32131         * modules/open-tests (Files): Likewise.
32132         * modules/openat-tests (Files): Likewise.
32133         * modules/pipe-filter-gi-tests (Files): Likewise.
32134         * modules/pipe-filter-ii-tests (Files): Likewise.
32135         * modules/pipe2-tests (Files): Likewise.
32136         * modules/popen-safer-tests (Files): Likewise.
32137         * modules/popen-tests (Files): Likewise.
32138         * modules/posixtm-tests (Files): Likewise.
32139         * modules/pread-tests (Files): Likewise.
32140         * modules/printf-frexp-tests (Files): Likewise.
32141         * modules/printf-frexpl-tests (Files): Likewise.
32142         * modules/printf-posix-tests (Files): Likewise.
32143         * modules/priv-set-tests (Files): Likewise.
32144         * modules/quotearg-tests (Files): Likewise.
32145         * modules/random_r-tests (Files): Likewise.
32146         * modules/rawmemchr-tests (Files): Likewise.
32147         * modules/rbtree-list-tests (Files): Likewise.
32148         * modules/rbtree-oset-tests (Files): Likewise.
32149         * modules/rbtreehash-list-tests (Files): Likewise.
32150         * modules/readlink-tests (Files): Likewise.
32151         * modules/remove-tests (Files): Likewise.
32152         * modules/rename-tests (Files): Likewise.
32153         * modules/renameat-tests (Files): Likewise.
32154         * modules/rmdir-tests (Files): Likewise.
32155         * modules/round-tests (Files): Likewise.
32156         * modules/roundf-tests (Files): Likewise.
32157         * modules/roundl-tests (Files): Likewise.
32158         * modules/safe-alloc-tests (Files): Likewise.
32159         * modules/setenv-tests (Files): Likewise.
32160         * modules/sigaction-tests (Files): Likewise.
32161         * modules/signbit-tests (Files): Likewise.
32162         * modules/sleep-tests (Files): Likewise.
32163         * modules/snprintf-posix-tests (Files): Likewise.
32164         * modules/snprintf-tests (Files): Likewise.
32165         * modules/sprintf-posix-tests (Files): Likewise.
32166         * modules/stat-tests (Files): Likewise.
32167         * modules/stat-time-tests (Files): Likewise.
32168         * modules/strcasestr-tests (Files): Likewise.
32169         * modules/strchrnul-tests (Files): Likewise.
32170         * modules/strerror-tests (Files): Likewise.
32171         * modules/striconv-tests (Files): Likewise.
32172         * modules/striconveh-tests (Files): Likewise.
32173         * modules/striconveha-tests (Files): Likewise.
32174         * modules/strsignal-tests (Files): Likewise.
32175         * modules/strstr-tests (Files): Likewise.
32176         * modules/strtod-tests (Files): Likewise.
32177         * modules/strverscmp-tests (Files): Likewise.
32178         * modules/symlink-tests (Files): Likewise.
32179         * modules/symlinkat-tests (Files): Likewise.
32180         * modules/trunc-tests (Files): Likewise.
32181         * modules/truncf-tests (Files): Likewise.
32182         * modules/truncl-tests (Files): Likewise.
32183         * modules/uname-tests (Files): Likewise.
32184         * modules/unicase/cased-tests (Files): Likewise.
32185         * modules/unicase/ignorable-tests (Files): Likewise.
32186         * modules/unicase/locale-language-tests (Files): Likewise.
32187         * modules/unicase/tolower-tests (Files): Likewise.
32188         * modules/unicase/totitle-tests (Files): Likewise.
32189         * modules/unicase/toupper-tests (Files): Likewise.
32190         * modules/unicase/u8-casecmp-tests (Files): Likewise.
32191         * modules/unicase/u8-casecoll-tests (Files): Likewise.
32192         * modules/unicase/u8-casefold-tests (Files): Likewise.
32193         * modules/unicase/u8-is-cased-tests (Files): Likewise.
32194         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
32195         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
32196         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
32197         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
32198         * modules/unicase/u8-tolower-tests (Files): Likewise.
32199         * modules/unicase/u8-totitle-tests (Files): Likewise.
32200         * modules/unicase/u8-toupper-tests (Files): Likewise.
32201         * modules/unicase/u16-casecmp-tests (Files): Likewise.
32202         * modules/unicase/u16-casecoll-tests (Files): Likewise.
32203         * modules/unicase/u16-casefold-tests (Files): Likewise.
32204         * modules/unicase/u16-is-cased-tests (Files): Likewise.
32205         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
32206         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
32207         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
32208         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
32209         * modules/unicase/u16-tolower-tests (Files): Likewise.
32210         * modules/unicase/u16-totitle-tests (Files): Likewise.
32211         * modules/unicase/u16-toupper-tests (Files): Likewise.
32212         * modules/unicase/u32-casecmp-tests (Files): Likewise.
32213         * modules/unicase/u32-casecoll-tests (Files): Likewise.
32214         * modules/unicase/u32-casefold-tests (Files): Likewise.
32215         * modules/unicase/u32-is-cased-tests (Files): Likewise.
32216         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
32217         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
32218         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
32219         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
32220         * modules/unicase/u32-tolower-tests (Files): Likewise.
32221         * modules/unicase/u32-totitle-tests (Files): Likewise.
32222         * modules/unicase/u32-toupper-tests (Files): Likewise.
32223         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
32224         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
32225         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
32226         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
32227         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
32228         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
32229         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
32230         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
32231         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
32232         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
32233         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
32234         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
32235         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
32236         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
32237         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
32238         * modules/unictype/bidicategory-name-tests (Files): Likewise.
32239         * modules/unictype/bidicategory-of-tests (Files): Likewise.
32240         * modules/unictype/bidicategory-test-tests (Files): Likewise.
32241         * modules/unictype/block-list-tests (Files): Likewise.
32242         * modules/unictype/block-of-tests (Files): Likewise.
32243         * modules/unictype/block-test-tests (Files): Likewise.
32244         * modules/unictype/category-C-tests (Files): Likewise.
32245         * modules/unictype/category-Cc-tests (Files): Likewise.
32246         * modules/unictype/category-Cf-tests (Files): Likewise.
32247         * modules/unictype/category-Cn-tests (Files): Likewise.
32248         * modules/unictype/category-Co-tests (Files): Likewise.
32249         * modules/unictype/category-Cs-tests (Files): Likewise.
32250         * modules/unictype/category-L-tests (Files): Likewise.
32251         * modules/unictype/category-Ll-tests (Files): Likewise.
32252         * modules/unictype/category-Lm-tests (Files): Likewise.
32253         * modules/unictype/category-Lo-tests (Files): Likewise.
32254         * modules/unictype/category-Lt-tests (Files): Likewise.
32255         * modules/unictype/category-Lu-tests (Files): Likewise.
32256         * modules/unictype/category-M-tests (Files): Likewise.
32257         * modules/unictype/category-Mc-tests (Files): Likewise.
32258         * modules/unictype/category-Me-tests (Files): Likewise.
32259         * modules/unictype/category-Mn-tests (Files): Likewise.
32260         * modules/unictype/category-N-tests (Files): Likewise.
32261         * modules/unictype/category-Nd-tests (Files): Likewise.
32262         * modules/unictype/category-Nl-tests (Files): Likewise.
32263         * modules/unictype/category-No-tests (Files): Likewise.
32264         * modules/unictype/category-P-tests (Files): Likewise.
32265         * modules/unictype/category-Pc-tests (Files): Likewise.
32266         * modules/unictype/category-Pd-tests (Files): Likewise.
32267         * modules/unictype/category-Pe-tests (Files): Likewise.
32268         * modules/unictype/category-Pf-tests (Files): Likewise.
32269         * modules/unictype/category-Pi-tests (Files): Likewise.
32270         * modules/unictype/category-Po-tests (Files): Likewise.
32271         * modules/unictype/category-Ps-tests (Files): Likewise.
32272         * modules/unictype/category-S-tests (Files): Likewise.
32273         * modules/unictype/category-Sc-tests (Files): Likewise.
32274         * modules/unictype/category-Sk-tests (Files): Likewise.
32275         * modules/unictype/category-Sm-tests (Files): Likewise.
32276         * modules/unictype/category-So-tests (Files): Likewise.
32277         * modules/unictype/category-Z-tests (Files): Likewise.
32278         * modules/unictype/category-Zl-tests (Files): Likewise.
32279         * modules/unictype/category-Zp-tests (Files): Likewise.
32280         * modules/unictype/category-Zs-tests (Files): Likewise.
32281         * modules/unictype/category-and-not-tests (Files): Likewise.
32282         * modules/unictype/category-and-tests (Files): Likewise.
32283         * modules/unictype/category-byname-tests (Files): Likewise.
32284         * modules/unictype/category-name-tests (Files): Likewise.
32285         * modules/unictype/category-none-tests (Files): Likewise.
32286         * modules/unictype/category-of-tests (Files): Likewise.
32287         * modules/unictype/category-or-tests (Files): Likewise.
32288         * modules/unictype/category-test-withtable-tests (Files): Likewise.
32289         * modules/unictype/combining-class-tests (Files): Likewise.
32290         * modules/unictype/ctype-alnum-tests (Files): Likewise.
32291         * modules/unictype/ctype-alpha-tests (Files): Likewise.
32292         * modules/unictype/ctype-blank-tests (Files): Likewise.
32293         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
32294         * modules/unictype/ctype-digit-tests (Files): Likewise.
32295         * modules/unictype/ctype-graph-tests (Files): Likewise.
32296         * modules/unictype/ctype-lower-tests (Files): Likewise.
32297         * modules/unictype/ctype-print-tests (Files): Likewise.
32298         * modules/unictype/ctype-punct-tests (Files): Likewise.
32299         * modules/unictype/ctype-space-tests (Files): Likewise.
32300         * modules/unictype/ctype-upper-tests (Files): Likewise.
32301         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
32302         * modules/unictype/decimal-digit-tests (Files): Likewise.
32303         * modules/unictype/digit-tests (Files): Likewise.
32304         * modules/unictype/mirror-tests (Files): Likewise.
32305         * modules/unictype/numeric-tests (Files): Likewise.
32306         * modules/unictype/property-alphabetic-tests (Files): Likewise.
32307         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
32308         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
32309         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
32310         Likewise.
32311         * modules/unictype/property-bidi-block-separator-tests (Files):
32312         Likewise.
32313         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
32314         Likewise.
32315         * modules/unictype/property-bidi-common-separator-tests (Files):
32316         Likewise.
32317         * modules/unictype/property-bidi-control-tests (Files): Likewise.
32318         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
32319         Likewise.
32320         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
32321         Likewise.
32322         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
32323         Likewise.
32324         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
32325         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
32326         Likewise.
32327         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
32328         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
32329         Likewise.
32330         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
32331         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
32332         * modules/unictype/property-bidi-segment-separator-tests (Files):
32333         Likewise.
32334         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
32335         * modules/unictype/property-byname-tests (Files): Likewise.
32336         * modules/unictype/property-combining-tests (Files): Likewise.
32337         * modules/unictype/property-composite-tests (Files): Likewise.
32338         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
32339         * modules/unictype/property-dash-tests (Files): Likewise.
32340         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
32341         * modules/unictype/property-default-ignorable-code-point-tests (Files):
32342         Likewise.
32343         * modules/unictype/property-deprecated-tests (Files): Likewise.
32344         * modules/unictype/property-diacritic-tests (Files): Likewise.
32345         * modules/unictype/property-extender-tests (Files): Likewise.
32346         * modules/unictype/property-format-control-tests (Files): Likewise.
32347         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
32348         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
32349         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
32350         * modules/unictype/property-hex-digit-tests (Files): Likewise.
32351         * modules/unictype/property-hyphen-tests (Files): Likewise.
32352         * modules/unictype/property-id-continue-tests (Files): Likewise.
32353         * modules/unictype/property-id-start-tests (Files): Likewise.
32354         * modules/unictype/property-ideographic-tests (Files): Likewise.
32355         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
32356         * modules/unictype/property-ids-trinary-operator-tests (Files):
32357         Likewise.
32358         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
32359         * modules/unictype/property-iso-control-tests (Files): Likewise.
32360         * modules/unictype/property-join-control-tests (Files): Likewise.
32361         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
32362         * modules/unictype/property-line-separator-tests (Files): Likewise.
32363         * modules/unictype/property-logical-order-exception-tests (Files):
32364         Likewise.
32365         * modules/unictype/property-lowercase-tests (Files): Likewise.
32366         * modules/unictype/property-math-tests (Files): Likewise.
32367         * modules/unictype/property-non-break-tests (Files): Likewise.
32368         * modules/unictype/property-not-a-character-tests (Files): Likewise.
32369         * modules/unictype/property-numeric-tests (Files): Likewise.
32370         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
32371         * modules/unictype/property-other-default-ignorable-code-point-tests
32372         (Files): Likewise.
32373         * modules/unictype/property-other-grapheme-extend-tests (Files):
32374         Likewise.
32375         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
32376         * modules/unictype/property-other-id-start-tests (Files): Likewise.
32377         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
32378         * modules/unictype/property-other-math-tests (Files): Likewise.
32379         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
32380         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
32381         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
32382         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
32383         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
32384         * modules/unictype/property-private-use-tests (Files): Likewise.
32385         * modules/unictype/property-punctuation-tests (Files): Likewise.
32386         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
32387         * modules/unictype/property-radical-tests (Files): Likewise.
32388         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
32389         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
32390         * modules/unictype/property-space-tests (Files): Likewise.
32391         * modules/unictype/property-terminal-punctuation-tests (Files):
32392         Likewise.
32393         * modules/unictype/property-test-tests (Files): Likewise.
32394         * modules/unictype/property-titlecase-tests (Files): Likewise.
32395         * modules/unictype/property-unassigned-code-value-tests (Files):
32396         Likewise.
32397         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
32398         * modules/unictype/property-uppercase-tests (Files): Likewise.
32399         * modules/unictype/property-variation-selector-tests (Files): Likewise.
32400         * modules/unictype/property-white-space-tests (Files): Likewise.
32401         * modules/unictype/property-xid-continue-tests (Files): Likewise.
32402         * modules/unictype/property-xid-start-tests (Files): Likewise.
32403         * modules/unictype/property-zero-width-tests (Files): Likewise.
32404         * modules/unictype/scripts-tests (Files): Likewise.
32405         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
32406         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
32407         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
32408         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
32409         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
32410         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
32411         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
32412         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
32413         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
32414         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
32415         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
32416         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
32417         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
32418         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
32419         * modules/uninorm/composition-tests (Files): Likewise.
32420         * modules/uninorm/decomposing-form-tests (Files): Likewise.
32421         * modules/uninorm/decomposition-tests (Files): Likewise.
32422         * modules/uninorm/filter-tests (Files): Likewise.
32423         * modules/uninorm/nfc-tests (Files): Likewise.
32424         * modules/uninorm/nfd-tests (Files): Likewise.
32425         * modules/uninorm/nfkc-tests (Files): Likewise.
32426         * modules/uninorm/nfkd-tests (Files): Likewise.
32427         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
32428         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
32429         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
32430         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
32431         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
32432         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
32433         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
32434         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32435         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
32436         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
32437         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
32438         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
32439         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32440         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
32441         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
32442         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
32443         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
32444         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32445         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
32446         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
32447         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
32448         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
32449         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32450         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
32451         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
32452         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
32453         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
32454         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
32455         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
32456         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
32457         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
32458         * modules/uniwidth/u8-width-tests (Files): Likewise.
32459         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
32460         * modules/uniwidth/u16-width-tests (Files): Likewise.
32461         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
32462         * modules/uniwidth/u32-width-tests (Files): Likewise.
32463         * modules/uniwidth/width-tests (Files): Likewise.
32464         * modules/unlink-tests (Files): Likewise.
32465         * modules/unsetenv-tests (Files): Likewise.
32466         * modules/usleep-tests (Files): Likewise.
32467         * modules/utimens-tests (Files): Likewise.
32468         * modules/utimensat-tests (Files): Likewise.
32469         * modules/vasnprintf-posix-tests (Files): Likewise.
32470         * modules/vasnprintf-tests (Files): Likewise.
32471         * modules/vasprintf-posix-tests (Files): Likewise.
32472         * modules/vasprintf-tests (Files): Likewise.
32473         * modules/vdprintf-posix-tests (Files): Likewise.
32474         * modules/vfprintf-posix-tests (Files): Likewise.
32475         * modules/vprintf-posix-tests (Files): Likewise.
32476         * modules/vsnprintf-posix-tests (Files): Likewise.
32477         * modules/vsnprintf-tests (Files): Likewise.
32478         * modules/vsprintf-posix-tests (Files): Likewise.
32479         * modules/wcrtomb-tests (Files): Likewise.
32480         * modules/wcsnrtombs-tests (Files): Likewise.
32481         * modules/wcsrtombs-tests (Files): Likewise.
32482         * modules/wctype-tests (Files): Likewise.
32483         * modules/wcwidth-tests (Files): Likewise.
32484         * modules/xmemdup0-tests (Files): Likewise.
32485         * modules/xprintf-posix-tests (Files): Likewise.
32486         * modules/xvasprintf-tests (Files): Likewise.
32487
32488 2009-12-24  Eric Blake  <ebb9@byu.net>
32489
32490         test-nanosleep: fix typo
32491         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
32492         patch.
32493         Reported by Bruno Haible.
32494
32495 2009-12-24  Bruno Haible  <bruno@clisp.org>
32496
32497         Reduce namespace pollution on glibc systems.
32498         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
32499         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
32500         systems.
32501         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
32502         <getopt.h> on glibc systems.
32503         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
32504         systems.
32505         * lib/fcntl.c: Include <unistd.h> here instead.
32506
32507 2009-12-24  Bruno Haible  <bruno@clisp.org>
32508
32509         * lib/stdlib.in.h (includes): Fix typo in today's commit.
32510
32511 2009-12-24  Eric Blake  <ebb9@byu.net>
32512
32513         tests: add signature checks
32514         * tests/signature.h (SIGNATURE_CHECK): New file.
32515         * modules/atexit-tests (Files): Use it.
32516         * modules/btowc-tests (Files): Likewise.
32517         * modules/canonicalize-lgpl-tests (Files): Likewise.
32518         * modules/ceilf-tests (Files): Likewise.
32519         * modules/ceill-tests (Files): Likewise.
32520         * modules/chown-tests (Files): Likewise.
32521         * modules/dprintf-posix-tests (Files): Likewise.
32522         * modules/dup2-tests (Files): Likewise.
32523         * modules/dup3-tests (Files): Likewise.
32524         * modules/duplocale-tests (Files): Likewise.
32525         * modules/fchdir-tests (Files): Likewise.
32526         * modules/fcntl-tests (Files): Likewise.
32527         * modules/fdopendir-tests (Files): Likewise.
32528         * modules/fflush-tests (Files): Likewise.
32529         * modules/flock-tests (Files): Likewise.
32530         * modules/floorf-tests (Files): Likewise.
32531         * modules/floorl-tests (Files): Likewise.
32532         * modules/fnmatch-tests (Files): Likewise.
32533         * modules/fopen-tests (Files): Likewise.
32534         * modules/fprintf-posix-tests (Files): Likewise.
32535         * modules/freopen-tests (Files): Likewise.
32536         * modules/frexp-nolibm-tests (Files): Likewise.
32537         * modules/frexp-tests (Files): Likewise.
32538         * modules/frexpl-nolibm-tests (Files): Likewise.
32539         * modules/frexpl-tests (Files): Likewise.
32540         * modules/fseek-tests (Files): Likewise.
32541         * modules/fseeko-tests (Files): Likewise.
32542         * modules/fsync-tests (Files): Likewise.
32543         * modules/ftell-tests (Files): Likewise.
32544         * modules/ftello-tests (Files): Likewise.
32545         * modules/futimens-tests (Files): Likewise.
32546         * modules/getaddrinfo-tests (Files): Likewise.
32547         * modules/getcwd-tests (Files): Likewise.
32548         * modules/getdelim-tests (Files): Likewise.
32549         * modules/getdtablesize-tests (Files): Likewise.
32550         * modules/getgroups-tests (Files): Likewise.
32551         * modules/gethostname-tests (Files): Likewise.
32552         * modules/getline-tests (Files): Likewise.
32553         * modules/getopt-posix-tests (Files): Likewise.
32554         * modules/gettimeofday-tests (Files): Likewise.
32555         * modules/glob-tests (Files): Likewise.
32556         * modules/iconv-tests (Files): Likewise.
32557         * modules/inet_ntop-tests (Files): Likewise.
32558         * modules/inet_pton-tests (Files): Likewise.
32559         * modules/isblank-tests (Files): Likewise.
32560         * modules/lchown-tests (Files): Likewise.
32561         * modules/ldexpl-tests (Files): Likewise.
32562         * modules/link-tests (Files): Likewise.
32563         * modules/linkat-tests (Files): Likewise.
32564         * modules/lseek-tests (Files): Likewise.
32565         * modules/lstat-tests (Files): Likewise.
32566         * modules/mbrtowc-tests (Files): Likewise.
32567         * modules/mbsinit-tests (Files): Likewise.
32568         * modules/mbsnrtowcs-tests (Files): Likewise.
32569         * modules/mbsrtowcs-tests (Files): Likewise.
32570         * modules/memchr-tests (Files): Likewise.
32571         * modules/memcmp-tests (Files): Likewise.
32572         * modules/memmem-tests (Files): Likewise.
32573         * modules/memrchr-tests (Files): Likewise.
32574         * modules/mkdir-tests (Files): Likewise.
32575         * modules/mkfifo-tests (Files): Likewise.
32576         * modules/mkfifoat-tests (Files): Likewise.
32577         * modules/mknod-tests (Files): Likewise.
32578         * modules/nanosleep-tests (Files): Likewise.
32579         * modules/nl_langinfo-tests (Files): Likewise.
32580         * modules/obstack-printf-tests (Files): Likewise.
32581         * modules/open-tests (Files): Likewise.
32582         * modules/openat-tests (Files): Likewise.
32583         * modules/perror-tests (Files): Likewise.
32584         * modules/pipe2-tests (Files): Likewise.
32585         * modules/poll-tests (Files): Likewise.
32586         * modules/popen-tests (Files): Likewise.
32587         * modules/posix_spawn-tests (Files): Likewise.
32588         * modules/posix_spawnp-tests (Files): Likewise.
32589         * modules/pread-tests (Files): Likewise.
32590         * modules/printf-posix-tests (Files): Likewise.
32591         * modules/pty-tests (Files): Likewise.
32592         * modules/random_r-tests (Files): Likewise.
32593         * modules/rawmemchr-tests (Files): Likewise.
32594         * modules/readlink-tests (Files): Likewise.
32595         * modules/remove-tests (Files): Likewise.
32596         * modules/rename-tests (Files): Likewise.
32597         * modules/renameat-tests (Files): Likewise.
32598         * modules/rmdir-tests (Files): Likewise.
32599         * modules/round-tests (Files): Likewise.
32600         * modules/roundf-tests (Files): Likewise.
32601         * modules/roundl-tests (Files): Likewise.
32602         * modules/select-tests (Files): Likewise.
32603         * modules/setenv-tests (Files): Likewise.
32604         * modules/sigaction-tests (Files): Likewise.
32605         * modules/sleep-tests (Files): Likewise.
32606         * modules/snprintf-posix-tests (Files): Likewise.
32607         * modules/snprintf-tests (Files): Likewise.
32608         * modules/sprintf-posix-tests (Files): Likewise.
32609         * modules/stat-tests (Files): Likewise.
32610         * modules/strcasestr-tests (Files): Likewise.
32611         * modules/strchrnul-tests (Files): Likewise.
32612         * modules/strerror-tests (Files): Likewise.
32613         * modules/strsignal-tests (Files): Likewise.
32614         * modules/strstr-tests (Files): Likewise.
32615         * modules/strtod-tests (Files): Likewise.
32616         * modules/strverscmp-tests (Files): Likewise.
32617         * modules/symlink-tests (Files): Likewise.
32618         * modules/symlinkat-tests (Files): Likewise.
32619         * modules/times-tests (Files): Likewise.
32620         * modules/trunc-tests (Files): Likewise.
32621         * modules/truncf-tests (Files): Likewise.
32622         * modules/truncl-tests (Files): Likewise.
32623         * modules/tsearch-tests (Files): Likewise.
32624         * modules/uname-tests (Files): Likewise.
32625         * modules/unlink-tests (Files): Likewise.
32626         * modules/unsetenv-tests (Files): Likewise.
32627         * modules/usleep-tests (Files): Likewise.
32628         * modules/utimensat-tests (Files): Likewise.
32629         * modules/vasprintf-tests (Files): Likewise.
32630         * modules/vdprintf-posix-tests (Files): Likewise.
32631         * modules/vfprintf-posix-tests (Files): Likewise.
32632         * modules/vprintf-posix-tests (Files): Likewise.
32633         * modules/vsnprintf-posix-tests (Files): Likewise.
32634         * modules/vsnprintf-tests (Files): Likewise.
32635         * modules/vsprintf-posix-tests (Files): Likewise.
32636         * modules/wcrtomb-tests (Files): Likewise.
32637         * modules/wcsnrtombs-tests (Files): Likewise.
32638         * modules/wcsrtombs-tests (Files): Likewise.
32639         * modules/wcwidth-tests (Files): Likewise.
32640         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
32641         * tests/test-isinf.c (isinf): Likewise.
32642         * tests/test-isnan.c (isnan): Likewise.
32643         * tests/test-signbit.c (signbit): Likewise.
32644         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
32645         declaration, either as macro or with correct signature.
32646         (select): Ensure function under test is declared with correct
32647         signature in correct header.
32648         * tests/test-atexit.c (atexit): Likewise.
32649         * tests/test-btowc.c (btowc): Likewise.
32650         * tests/test-canonicalize-lgpl.c (realpath)
32651         (canonicalize_file_name): Likewise.
32652         * tests/test-ceilf1.c (ceilf): Likewise.
32653         * tests/test-ceill.c (ceill): Likewise.
32654         * tests/test-chown.c (chown): Likewise.
32655         * tests/test-dprintf-posix.c (dprintf): Likewise.
32656         * tests/test-dup2.c (dup2): Likewise.
32657         * tests/test-dup3.c (dup3): Likewise.
32658         * tests/test-duplocale.c (duplocale): Likewise.
32659         * tests/test-fchdir.c (fchdir): Likewise.
32660         * tests/test-fchownat.c (fchownat): Likewise.
32661         * tests/test-fcntl.c (fcntl): Likewise.
32662         * tests/test-fdopendir.c (fdopendir): Likewise.
32663         * tests/test-fflush.c (fflush): Likewise.
32664         * tests/test-flock.c (flock): Likewise.
32665         * tests/test-floorf1.c (floorf): Likewise.
32666         * tests/test-floorl.c (floorl): Likewise.
32667         * tests/test-fnmatch.c (fnmatch): Likewise.
32668         * tests/test-fopen.c (fopen): Likewise.
32669         * tests/test-fprintf-posix.c (fprintf): Likewise.
32670         * tests/test-freopen.c (freopen): Likewise.
32671         * tests/test-frexp.c (frexp): Likewise.
32672         * tests/test-frexpl.c (frexpl): Likewise.
32673         * tests/test-fseek.c (fseek): Likewise.
32674         * tests/test-fseeko.c (fseeko): Likewise.
32675         * tests/test-fstatat.c (fstatat): Likewise.
32676         * tests/test-fsync.c (fsync): Likewise.
32677         * tests/test-ftell.c (ftell): Likewise.
32678         * tests/test-ftello.c (ftello): Likewise.
32679         * tests/test-futimens.c (futimens): Likewise.
32680         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
32681         (gai_strerror): Likewise.
32682         * tests/test-getcwd.c (getcwd): Likewise.
32683         * tests/test-getdelim.c (getdelim): Likewise.
32684         * tests/test-getdtablesize.c (getdtablesize): Likewise.
32685         * tests/test-getgroups.c (getgroups): Likewise.
32686         * tests/test-gethostname.c (gethostname): Likewise.
32687         * tests/test-getline.c (getline): Likewise.
32688         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
32689         Likewise.
32690         * tests/test-gettimeofday.c (gettimeofday): Likewise.
32691         * tests/test-glob.c (glob, globfree): Likewise.
32692         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
32693         * tests/test-inet_ntop.c (inet_ntop): Likewise.
32694         * tests/test-inet_pton.c (inet_pton): Likewise.
32695         * tests/test-isblank.c (isblank): Likewise.
32696         * tests/test-lchown.c (lchown): Likewise.
32697         * tests/test-ldexpl.c (ldexpl): Likewise.
32698         * tests/test-link.c (link): Likewise.
32699         * tests/test-linkat.c (linkat): Likewise.
32700         * tests/test-lseek.c (lseek): Likewise.
32701         * tests/test-lstat.c (lstat): Likewise.
32702         * tests/test-mbrtowc.c (mbrtowc): Likewise.
32703         * tests/test-mbsinit.c (mbsinit): Likewise.
32704         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
32705         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
32706         * tests/test-memchr.c (memchr): Likewise.
32707         * tests/test-memcmp.c (memcmp): Likewise.
32708         * tests/test-memmem.c (memmem): Likewise.
32709         * tests/test-memrchr.c (memrchr): Likewise.
32710         * tests/test-mkdir.c (mkdir): Likewise.
32711         * tests/test-mkdirat.c (mkdirat): Likewise.
32712         * tests/test-mkfifo.c (mkfifo): Likewise.
32713         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
32714         * tests/test-mknod.c (mknod): Likewise.
32715         * tests/test-nanosleep.c (nanosleep): Likewise.
32716         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
32717         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
32718         Likewise.
32719         * tests/test-open.c (open): Likewise.
32720         * tests/test-openat.c (openat): Likewise.
32721         * tests/test-perror.c (perror): Likewise.
32722         * tests/test-pipe2.c (pipe2): Likewise.
32723         * tests/test-poll.c (poll): Likewise.
32724         * tests/test-popen.c (popen, pclose): Likewise.
32725         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
32726         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
32727         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
32728         (posix_spawn_file_actions_destroy)
32729         (posix_spawn_file_actions_addclose)
32730         (posix_spawn_file_actions_addopen)
32731         (posix_spawn_file_actions_adddup2): Likewise.
32732         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
32733         * tests/test-pread.c (pread): Likewise.
32734         * tests/test-printf-posix.c (printf): Likewise.
32735         * tests/test-pty.c (openpty, forkpty): Likewise.
32736         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
32737         (random_r): Likewise.
32738         * tests/test-rawmemchr.c (rawmemchr): Likewise.
32739         * tests/test-readlink.c (readlink): Likewise.
32740         * tests/test-remove.c (remove): Likewise.
32741         * tests/test-rename.c (rename): Likewise.
32742         * tests/test-renameat.c (renameat): Likewise.
32743         * tests/test-rmdir.c (rmdir): Likewise.
32744         * tests/test-round1.c (round): Likewise.
32745         * tests/test-roundf1.c (roundf): Likewise.
32746         * tests/test-roundl.c (roundl): Likewise.
32747         * tests/test-setenv.c (setenv): Likewise.
32748         * tests/test-sigaction.c (sigaction): Likewise.
32749         * tests/test-sleep.c (sleep): Likewise.
32750         * tests/test-snprintf.c (snprintf): Likewise.
32751         * tests/test-sprintf-posix.c (sprintf): Likewise.
32752         * tests/test-stat.c (stat): Likewise.
32753         * tests/test-stpncpy.c (stpncpy): Likewise.
32754         * tests/test-strcasestr.c (strcasestr): Likewise.
32755         * tests/test-strchrnul.c (strchrnul): Likewise.
32756         * tests/test-strerror.c (strerror): Likewise.
32757         * tests/test-strsignal.c (strsignal): Likewise.
32758         * tests/test-strstr.c (strstr): Likewise.
32759         * tests/test-strtod.c (strtod): Likewise.
32760         * tests/test-strverscmp.c (strverscmp): Likewise.
32761         * tests/test-symlink.c (symlink): Likewise.
32762         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
32763         * tests/test-times.c (times): Likewise.
32764         * tests/test-trunc1.c (trunc): Likewise.
32765         * tests/test-truncf1.c (truncf): Likewise.
32766         * tests/test-truncl.c (truncl): Likewise.
32767         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
32768         Likewise.
32769         * tests/test-uname.c (uname): Likewise.
32770         * tests/test-unlink.c (unlink): Likewise.
32771         * tests/test-unlinkat.c (unlinkat): Likewise.
32772         * tests/test-unsetenv.c (unsetenv): Likewise.
32773         * tests/test-usleep.c (usleep): Likewise.
32774         * tests/test-utimensat.c (utimensat): Likewise.
32775         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
32776         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
32777         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
32778         * tests/test-vprintf-posix.c (vprintf): Likewise.
32779         * tests/test-vsnprintf.c (vsnprintf): Likewise.
32780         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
32781         * tests/test-wcrtomb.c (wcrtomb): Likewise.
32782         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
32783         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
32784         * tests/test-wcwidth.c (wcwidth): Likewise.
32785
32786         build: pull in conditional headers during GNULIB_POSIXCHECK
32787         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
32788         definitions from any conditionally-included headers.
32789         * lib/stdlib.in.h (includes): Likewise.
32790         * lib/unistd.in.h (includes): Likewise.
32791
32792 2009-12-24  Bruno Haible  <bruno@clisp.org>
32793
32794         * tests/test-argv-iter.c: Include header file being tested immediately
32795         after config.h.
32796         * tests/test-base64.c: Likewise.
32797         * tests/test-flock.c: Likewise.
32798         * tests/test-fsync.c: Likewise.
32799         * tests/test-getdate.c: Likewise.
32800         * tests/test-getndelim2.c: Likewise.
32801         * tests/test-isfinite.c: Likewise.
32802         * tests/test-isinf.c: Likewise.
32803         * tests/test-strerror.c: Likewise.
32804         * tests/test-strsignal.c: Likewise.
32805
32806 2009-12-23  Eric Blake  <ebb9@byu.net>
32807
32808         unistd: work around cygwin bug
32809         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
32810         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
32811         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32812
32813 2009-12-23  Bruno Haible  <bruno@clisp.org>
32814
32815         localename: More tests.
32816         * tests/test-localename.c (SIZEOF): New macro.
32817         (categories): New variable.
32818         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
32819         test_locale_name_default): Add test w.r.t. thread locale.
32820         (test_locale_name_thread): New function.
32821         (main): Invoke it.
32822
32823         localename: Make aware of thread locale.
32824         * lib/localename.h (gl_locale_name_thread): New declaration.
32825         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
32826         behaviour with respect to thread locale.
32827         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
32828         <langinfo.h>, glthread/lock.h.
32829         (SIZE_BITS): New macro.
32830         (string_hash): New function.
32831         (struct hash_node): New type.
32832         (HASH_TABLE_SIZE): New macro.
32833         (struniq_hash_table, struniq_lock): New variables.
32834         (struniq): New function.
32835         (gl_locale_name_thread): New function.
32836         (gl_locale_name): Invoke it.
32837         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
32838         * modules/localename (Depends-on): Add lock.
32839         Reported by Mike Gran <spk121@yahoo.com>.
32840
32841 2009-12-23  Eric Blake  <ebb9@byu.net>
32842
32843         va-args: new module
32844         * modules/va-args: New file.
32845         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
32846         * MODULES.html.sh (Core language properties): Mention it.
32847
32848         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
32849         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
32850         named alias for __attribute__((__unused__)).
32851         * lib/chown.c: Update client.
32852         * lib/fchmodat.c: Likewise.
32853         * lib/fts.c: Likewise.
32854         * lib/getdate.y: Likewise.
32855         * lib/getgroups.c: Likewise.
32856         * lib/getopt.c: Likewise.
32857         * lib/getugroups.c: Likewise.
32858         * lib/mkdir.c: Likewise.
32859         * lib/mkfifo.c: Likewise.
32860         * lib/mkfifoat.c: Likewise.
32861         * lib/mknod.c: Likewise.
32862         * lib/mknodat.c: Likewise.
32863         * lib/readlink.c: Likewise.
32864         * lib/se-context.in.h: Likewise.
32865         * lib/se-selinux.in.h: Likewise.
32866         * lib/sockets.c: Likewise.
32867         * lib/symlink.c: Likewise.
32868         * lib/symlinkat.c: Likewise.
32869         * lib/unicodeio.c: Likewise.
32870         * lib/unistr.h: Likewise.
32871         * tests/test-areadlink.c: Likewise.
32872         * tests/test-areadlinkat.c: Likewise.
32873         * tests/test-filenamecat.c: Likewise.
32874         * tests/test-fseeko.c: Likewise.
32875         * tests/test-ftello.c: Likewise.
32876         * tests/test-getdate.c: Likewise.
32877         * tests/test-getgroups.c: Likewise.
32878         * tests/test-gethostname.c: Likewise.
32879         * tests/test-quotearg.c: Likewise.
32880         * tests/test-version-etc.c: Likewise.
32881         * tests/test-xalloc-die.c: Likewise.
32882         * tests/test-xfprintf-posix.c: Likewise.
32883         * tests/test-xprintf-posix.c: Likewise.
32884         * tests/test-xvasprintf.c: Likewise.
32885
32886         tests: avoid compiler warnings
32887         * tests/test-fcntl.c (main): Delete unused parameters.
32888         * tests/test-freopen-safer.c (main): Likewise.
32889         * tests/test-xalloc-die.c (main): Mark unused parameters.
32890         * tests/test-fseeko.c (main): Likewise.
32891         * tests/test-ftello.c (main): Likewise.
32892         * tests/test-nanosleep.c (main): Avoid declaration warning.
32893         * tests/test-sleep.c (main): Likewise.
32894         * tests/test-unsetenv.c (main): Silence warning about string
32895         literal.
32896         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
32897
32898 2009-12-23  Bruno Haible  <bruno@clisp.org>
32899
32900         * tests/test-localename.c (test_locale_name): New function, extracted
32901         from main. Also test mixed situations.
32902         (test_locale_name_posix, test_locale_name_environ,
32903         test_locale_name_default): New functions.
32904         (main): Invoke them all.
32905         * modules/localename-tests (configure.ac): Test for newlocale.
32906
32907 2009-12-23  Bruno Haible  <bruno@clisp.org>
32908
32909         unistd: Ensure getcwd gets declared before being overridden.
32910         * lib/unistd.in.h: Conditionally include <io.h>.
32911
32912 2009-12-22  Bruno Haible  <bruno@clisp.org>
32913
32914         wchar: Diagnose broken combination of glibc and gcc versions and flags.
32915         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
32916         (gl_WCHAR_H): Invoke it.
32917         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
32918         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
32919         Reported by Karl Berry <karl@freefriends.org>.
32920
32921 2009-12-22  Eric Blake  <ebb9@byu.net>
32922
32923         math, unistd: avoid redundant includes
32924         * lib/math.in.h (isnan): No need to re-include <math.h>.
32925         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
32926
32927         getsubopt: work around cygwin bug
32928         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
32929         avoid conflicting with system getsubopt.
32930         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
32931         bug.
32932
32933         getopt: synchronize from glibc
32934         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
32935         parameter order.  Adjust all callers.
32936         (_getopt_internal_r, main): Adjust quoting in error messages.
32937         Drop considerations for outdated POSIX 1003.2 error message.
32938         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
32939         callers.
32940         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
32941
32942         test-getopt: test stderr behavior
32943         * modules/getopt-posix-tests (Depends-on): Add dup2.
32944         * tests/test-getopt.c (ASSERT): Avoid stderr.
32945         (main): Move stderr to a temporary file.
32946         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
32947         Instead, add parameter to inform caller if output occurred.
32948         (test_getopt): Adjust all existing tests to expect silence, and
32949         add new tests of leading ":".
32950         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32951         glibc shortcomings with leading "-:" or "+:" in optstring.
32952         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32953         Likewise.
32954         * doc/posix-functions/getopt.texi (getopt): Likewise.
32955
32956         test-getopt: enhance test
32957         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
32958         supports optind=0.
32959         * tests/test-getopt.c (OPTIND_MIN): Move...
32960         * tests/test-getopt.h (OPTIND_MIN): ...here.
32961         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
32962         Require that optind=0 works, since modern BSD supports it in
32963         addition to optreset, and since coreutils expects it.
32964         (test_getopt_long_only): New test.
32965         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32966         glibc shortcomings with 'W;', and enforcement of optind=0.
32967         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32968         Likewise.
32969
32970 2009-12-21  Bruno Haible  <bruno@clisp.org>
32971
32972         localename: Improvements for MacOS X and Cygwin.
32973         * lib/localename.h (gl_locale_name_environ): New declaration.
32974         * lib/localename.c (gl_locale_name_environ): New function, extracted from
32975         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
32976         (gl_locale_name_posix): Invoke it.
32977         (gl_locale_name_default): Add comments. Use Windows native API also on
32978         Cygwin.
32979
32980 2009-12-21  Bruno Haible  <bruno@clisp.org>
32981
32982         Update list of Win32 locale ids.
32983         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
32984         (LANG_SAMI): Renamed from LANG_SAAMI.
32985         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
32986         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
32987         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
32988         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
32989         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
32990         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
32991         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
32992         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
32993         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
32994         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
32995         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
32996         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
32997         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
32998         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
32999         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
33000         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
33001         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
33002         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
33003         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
33004         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
33005         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
33006         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
33007         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
33008         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
33009         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
33010         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
33011         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
33012         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
33013         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
33014         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
33015         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
33016         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
33017         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
33018         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
33019         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
33020         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
33021         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
33022         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
33023         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
33024         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
33025         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
33026         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
33027         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
33028         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
33029         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
33030         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
33031         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
33032         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
33033         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
33034         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
33035         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
33036         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
33037         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
33038         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
33039         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
33040         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
33041         Add more languages and countries for Sami, Sorbian. Add more countries
33042         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
33043         for Pashto. Change country for Syriac, Tswana.
33044
33045 2009-12-21  Eric Blake  <ebb9@byu.net>
33046
33047         test-utimens: avoid spurious failure
33048         * tests/test-chown.h (nap): Factor...
33049         * tests/nap.h: ...into new file.
33050         * tests/test-lchown.h (nap): Avoid duplication.
33051         * tests/test-utimens-common.h (nap): Use shared implementation,
33052         necessary on file systems with 1-second resolution.
33053         * modules/chown-tests (Files): Include new file.
33054         * modules/fdutimensat-tests (Files): Likewise.
33055         * modules/futimens-tests (Files): Likewise.
33056         * modules/lchown-tests (Files): Likewise.
33057         * modules/openat-tests (Files): Likewise.
33058         * modules/utimens-tests (Files): Likewise.
33059         * modules/utimensat-tests (Files): Likewise.
33060
33061 2009-12-19  Eric Blake  <ebb9@byu.net>
33062
33063         futimens, utimensat: work around Linux bug
33064         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
33065         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33066         * lib/utimensat.c (rpl_utimensat): Work around it.
33067         * lib/futimens.c (rpl_futimens): Adjust comment.
33068
33069         utimens: work around Linux ctime bug
33070         * lib/utimens.c (detect_ctime_bug): New helper function.
33071         (update_timespec): Differentiate between workaround needed for
33072         this bug vs. what is needed for systems that lack utimensat.
33073         (fdutimens, lutimens): Work around bug.
33074
33075         utimens: check for ctime update
33076         * tests/test-utimens-common.h (check_ctime): Define.
33077         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
33078         * tests/test-futimens.h (test_futimens): Likewise.
33079         * tests/test-lutimens.h (test_lutimens): Likewise.
33080         * doc/posix-functions/futimens.texi (futimens): Document the bug.
33081         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33082
33083 2009-12-19  Bruno Haible  <bruno@clisp.org>
33084
33085         dprintf-posix: Check against memory leak fixed on 2009-12-15.
33086         * tests/test-dprintf-posix2.sh: New file.
33087         * tests/test-dprintf-posix2.c: New file.
33088         * modules/dprintf-posix-tests (Files): Add them.
33089         (configure.ac): Check for getrlimit and setrlimit.
33090         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
33091
33092 2009-12-19  Bruno Haible  <bruno@clisp.org>
33093
33094         fprintf-posix: Check against memory leak fixed on 2009-12-15.
33095         * tests/test-fprintf-posix3.sh: New file.
33096         * tests/test-fprintf-posix3.c: New file.
33097         * modules/fprintf-posix-tests (Files): Add them.
33098         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
33099
33100 2009-12-19  Eric Blake  <ebb9@byu.net>
33101
33102         dirfd: fix prototype
33103         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
33104         * lib/dirfd.c (dirfd): Likewise.
33105
33106         canonicalize: reduce memory usage
33107         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
33108         allocation to size.
33109         Reported by Solar Designer <solar@openwall.com>.
33110
33111 2009-12-19  Bruno Haible  <bruno@clisp.org>
33112
33113         New module attribute 'Applicability'.
33114         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
33115         * gnulib-tool: New option --extract-applicability.
33116         (func_usage): Document it.
33117         (sed_extract_prog): Recognize it.
33118         (func_get_applicability): New function.
33119         (func_import): Generalize handling of 'link-warning' module.
33120         * modules/link-warning (Applicability): New section.
33121         * modules/arg-nonnull (Applicability): New section.
33122         Repoted by Simon Josefsson <simon@josefsson.org>.
33123
33124 2009-12-19  Bruno Haible  <bruno@clisp.org>
33125
33126         fflush: tweak
33127         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
33128         * lib/fseeko.c (rpl_fseeko): Likewise.
33129
33130 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
33131
33132         * lib/gl_list.h: Fix typo in comment.
33133
33134 2009-12-16  Eric Blake  <ebb9@byu.net>
33135
33136         fcntl: use to simplify other modules
33137         * modules/cloexec (Depends-on): Add fcntl.
33138         * modules/fchdir (Depends-on): Likewise.
33139         * modules/fd-safer-flag (Depends-on): Likewise.
33140         * modules/unistd-safer (Depends-on): Likewise.
33141         * modules/dup3 (configure.ac): Set module indicator.
33142         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
33143         missing.
33144         * lib/fchdir.c (_gl_register_dup): Fix comment.
33145         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
33146         * lib/dup-safer.c (dup_safer): Likewise.
33147         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
33148         * lib/dup3.c (dup3): Likewise.
33149         * tests/test-fchdir.c (main): Enhance test.
33150         Fixes a dup_cloexec bug reported by Ondřej Vašík.
33151
33152         fcntl: port portions of fcntl to mingw
33153         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
33154         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
33155         replacement for mingw.
33156         * modules/fcntl (Description): Update.
33157         (Depends-on): Add dup2.
33158         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
33159         * modules/fcntl-h (Makefile.am): Substitute it.
33160         * lib/fcntl.in.h (fcntl): Update declaration.
33161         (F_DUPFD, F_GETFD): New macros, when needed.
33162         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33163         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
33164         * tests/test-fcntl.c (check_flags, main): Enhance test for items
33165         we now guarantee.
33166
33167         fcntl: work around cygwin bug in F_DUPFD
33168         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
33169         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
33170         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
33171         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
33172         * doc/posix-functions/fcntl.texi (fcntl): Document it.
33173
33174         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
33175         * modules/fcntl (Files): List new files.
33176         (configure.ac): Run a test.
33177         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
33178         * lib/fcntl.c (rpl_fcntl): Likewise.
33179         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
33180         (gl_FCNTL_H): Always replace fcntl.h.
33181         * modules/fcntl-h (Makefile.am): Substitute witnesses.
33182         * lib/fcntl.in.h (fcntl): Declare replacement.
33183         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
33184         needed, plus a witness.
33185         * doc/posix-functions/fcntl.texi (fcntl): Document this.
33186         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
33187         * tests/test-fcntl.c: New file.
33188         * modules/fcntl-tests: Likewise.
33189
33190         binary-io: avoid potential compilation warning
33191         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
33192         directives.
33193
33194         fflush: avoid compilation error on NetBSD
33195         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
33196         between off_t and fpos_t, since the latter is sometimes a struct.
33197         * lib/fseeko.c (rpl_fseeko): Likewise.
33198         Reported by Alexander Nasonov <alnsn@yandex.ru>.
33199
33200 2009-12-15  Eric Blake  <ebb9@byu.net>
33201
33202         fcntl-h, stdio, sys_ioctl: fix declarations
33203         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
33204         function must not take arguments.
33205         * lib/sys_ioctl.in.h (ioctl): Likewise.
33206         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
33207         (open): Add a link warning.
33208
33209 2009-12-15  Jim Meyering  <meyering@redhat.com>
33210
33211         areadlink, areadlink-with-size: relax license to LGPLv2+
33212         * modules/areadlink (License): Relax to LGPLv2+.
33213         * modules/areadlink-with-size (License): Likewise.
33214
33215 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
33216             Bruno Haible  <bruno@clisp.org>
33217
33218         *printf: Fix memory leak.
33219         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
33220         * lib/vfprintf.c (vfprintf): Likewise.
33221         * lib/dprintf.c (dprintf): Likewise.
33222         * lib/vdprintf.c (vdprintf): Likewise.
33223
33224 2009-12-14  Eric Blake  <ebb9@byu.net>
33225
33226         accept4: adjust module dependencies
33227         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
33228
33229         utimens: one more try at avoiding compiler warning
33230         * lib/utimens.c (lutimens): Lower scope of result.
33231
33232 2009-12-13  Bruno Haible  <bruno@clisp.org>
33233
33234         Move the malloc checking from module 'list' to new module 'xlist'.
33235         * modules/xlist: New file.
33236         * lib/gl_xlist.h: New file.
33237         * lib/gl_xlist.c: New file.
33238         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
33239         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
33240         gl_list_add_last, gl_list_add_before, gl_list_add_after,
33241         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
33242         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
33243         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
33244         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
33245         gl_sortedlist_nx_add): New declarations.
33246         (struct gl_list_implementation): Rename and change methods accordingly.
33247         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
33248         (gl_list_nx_create): Renamed from gl_list_create.
33249         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
33250         (gl_list_nx_set_at): Renamed from gl_list_set_at.
33251         (gl_list_nx_add_first): Renamed from gl_list_add_first.
33252         (gl_list_nx_add_last): Renamed from gl_list_add_last.
33253         (gl_list_nx_add_before): Renamed from gl_list_add_before.
33254         (gl_list_nx_add_after): Renamed from gl_list_add_after.
33255         (gl_list_nx_add_at): Renamed from gl_list_add_at.
33256         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
33257         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
33258         gl_list_create_empty.
33259         (gl_list_nx_create): Renamed from gl_list_create.
33260         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
33261         (gl_list_nx_set_at): Renamed from gl_list_set_at.
33262         (gl_list_nx_add_first): Renamed from gl_list_add_first.
33263         (gl_list_nx_add_last): Renamed from gl_list_add_last.
33264         (gl_list_nx_add_before): Renamed from gl_list_add_before.
33265         (gl_list_nx_add_after): Renamed from gl_list_add_after.
33266         (gl_list_nx_add_at): Renamed from gl_list_add_at.
33267         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
33268         * lib/gl_array_list.c: Don't include xalloc.h.
33269         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
33270         NULL upon out-of-memory.
33271         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
33272         out-of-memory.
33273         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
33274         Change return type to 'int'.
33275         (gl_array_nx_set_at): Renamed from gl_array_set_at.
33276         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
33277         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
33278         upon out-of-memory.
33279         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
33280         upon out-of-memory.
33281         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
33282         upon out-of-memory.
33283         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
33284         upon out-of-memory.
33285         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
33286         out-of-memory.
33287         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
33288         Update.
33289         (gl_array_list_implementation): Update.
33290         * lib/gl_carray_list.c: Don't include xalloc.h.
33291         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
33292         Return NULL upon out-of-memory.
33293         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
33294         out-of-memory.
33295         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
33296         Change return type to 'int'.
33297         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
33298         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
33299         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
33300         upon out-of-memory.
33301         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
33302         upon out-of-memory.
33303         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
33304         out-of-memory.
33305         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
33306         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
33307         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
33308         Update.
33309         (gl_carray_list_implementation): Update.
33310         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
33311         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
33312         gl_linked_create_empty. Return NULL upon out-of-memory.
33313         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
33314         out-of-memory.
33315         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
33316         Change return type to 'int'. Return -1 upon out-of-memory.
33317         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
33318         out-of-memory.
33319         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
33320         upon out-of-memory.
33321         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
33322         upon out-of-memory.
33323         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
33324         NULL upon out-of-memory.
33325         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
33326         upon out-of-memory.
33327         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
33328         out-of-memory.
33329         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
33330         Update.
33331         * lib/gl_linked_list.c: Don't include xalloc.h.
33332         (gl_linked_list_implementation): Update.
33333         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
33334         (add_to_bucket): Change return type to 'int'.
33335         (gl_linkedhash_list_implementation): Update.
33336         * lib/gl_anytree_list1.h (free_subtree): New function.
33337         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
33338         gl_tree_create_empty. Return NULL upon out-of-memory.
33339         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
33340         Change return type to 'int'. Return -1 upon out-of-memory.
33341         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
33342         out-of-memory.
33343         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
33344         (gl_tree_remove_node): New function, moved here from
33345         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
33346         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
33347         Update.
33348         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
33349         malloc, not xmalloc. Return NULL upon out-of-memory.
33350         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
33351         out-of-memory.
33352         (gl_tree_remove_node_from_tree): New function, extracted from
33353         gl_tree_remove_node.
33354         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
33355         upon out-of-memory.
33356         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
33357         out-of-memory.
33358         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
33359         upon out-of-memory.
33360         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
33361         upon out-of-memory.
33362         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
33363         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
33364         not xmalloc. Return NULL upon out-of-memory.
33365         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
33366         out-of-memory.
33367         (gl_tree_remove_node_from_tree): New function, extracted from
33368         gl_tree_remove_node.
33369         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
33370         upon out-of-memory.
33371         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
33372         out-of-memory.
33373         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
33374         upon out-of-memory.
33375         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
33376         upon out-of-memory.
33377         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
33378         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
33379         gl_anytree_list1.h before gl_anyavltree_list2.h.
33380         (gl_avltree_list_implementation): Update.
33381         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
33382         gl_anytree_list1.h before gl_anyavltree_list2.h.
33383         (gl_rbtree_list_implementation): Update.
33384         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
33385         Change return type to 'int'. Return -1 upon out-of-memory. Use
33386         __builtin_expect.
33387         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
33388         (gl_avltreehash_list_implementation): Update.
33389         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
33390         (gl_rbtreehash_list_implementation): Update.
33391         * modules/array-list (Depends-on): Remove xalloc.
33392         * modules/carray-list (Depends-on): Likewise.
33393         * modules/linked-list (Depends-on): Likewise.
33394         * modules/linkedhash-list (Depends-on): Likewise.
33395         * modules/avltree-list (Depends-on): Likewise.
33396         * modules/rbtree-list (Depends-on): Likewise.
33397         * modules/avltreehash-list (Depends-on): Likewise.
33398         * modules/rbtreehash-list (Depends-on): Likewise.
33399
33400         * modules/xsublist: New file.
33401         * lib/gl_xsublist.h: New file.
33402         * lib/gl_xsublist.c: New file.
33403         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
33404         (gl_sublist_nx_create): New declaration.
33405         * lib/gl_sublist.c: Don't include xalloc.h.
33406         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
33407         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
33408         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
33409         Change return type to 'int'. Return -1 upon out-of-memory.
33410         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
33411         upon out-of-memory.
33412         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
33413         NULL upon out-of-memory.
33414         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
33415         upon out-of-memory.
33416         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
33417         NULL upon out-of-memory.
33418         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
33419         NULL upon out-of-memory.
33420         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
33421         upon out-of-memory.
33422         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
33423         (gl_sublist_list_implementation): Update.
33424         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
33425         upon out-of-memory.
33426         * modules/sublist (Depends-on): Remove xalloc.
33427
33428         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
33429         * tests/test-carray_list.c: Likewise.
33430         * tests/test-linked_list.c: Likewise.
33431         * tests/test-linkedhash_list.c: Likewise.
33432         * tests/test-avltree_list.c: Likewise.
33433         * tests/test-rbtree_list.c: Likewise.
33434         * tests/test-avltreehash_list.c: Likewise.
33435         * tests/test-rbtreehash_list.c: Likewise.
33436         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
33437         * modules/carray-list-tests (Makefile.am): Likewise.
33438         * modules/linked-list-tests (Makefile.am): Likewise.
33439         * modules/linkedhash-list-tests (Makefile.am): Likewise.
33440         * modules/avltree-list-tests (Makefile.am): Likewise.
33441         * modules/rbtree-list-tests (Makefile.am): Likewise.
33442         * modules/avltreehash-list-tests (Makefile.am): Likewise.
33443         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
33444
33445         * NEWS: Mention the changes.
33446
33447         * lib/clean-temp.c: Include gl_xlist.h.
33448         * modules/clean-temp (Depends-on): Add xlist.
33449
33450         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
33451         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
33452
33453         * tests/test-array_oset.c: Include gl_xlist.h.
33454         * modules/array-oset-tests (Depends-on): Add xlist.
33455
33456         Reported by José E. Marchesi <jemarch@gnu.org>.
33457
33458 2009-12-13  Bruno Haible  <bruno@clisp.org>
33459
33460         Move the malloc checking from module 'oset' to new module 'xoset'.
33461         * modules/xoset: New file.
33462         * lib/gl_xoset.h: New file.
33463         * lib/gl_xoset.c: New file.
33464         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
33465         declarations.
33466         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
33467         (struct gl_oset_implementation): Rename and change methods accordingly.
33468         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
33469         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33470         'int'. Mark as __warn_unused_result__.
33471         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
33472         gl_oset_create_empty.
33473         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33474         'int'.
33475         * lib/gl_array_oset.c: Don't include xalloc.h.
33476         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
33477         malloc, not xmalloc.
33478         (grow): Change return type to 'int'. Don't call xalloc_die.
33479         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
33480         to 'int'.
33481         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
33482         'int'.
33483         (gl_array_oset_implementation): Update.
33484         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
33485         gl_tree_create_empty.
33486         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
33487         'int'.
33488         * lib/gl_avltree_oset.c: Don't include xalloc.h.
33489         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
33490         xmalloc.
33491         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
33492         not xmalloc.
33493         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
33494         xmalloc.
33495         (gl_avltree_oset_implementation): Update.
33496         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
33497         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
33498         xmalloc.
33499         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
33500         not xmalloc.
33501         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
33502         xmalloc.
33503         (gl_rbtree_oset_implementation): Update.
33504         * modules/array-oset (Depends-on): Remove xalloc.
33505         * modules/avltree-oset (Depends-on): Likewise.
33506         * modules/rbtree-oset (Depends-on): Likewise.
33507         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
33508         * tests/test-avltree_oset.c: Likewise.
33509         * tests/test-rbtree_oset.c: Likewise.
33510         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
33511         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
33512         * modules/rbtree-oset-tests (Makefile.am): Likewise.
33513         * NEWS: Mention the change.
33514
33515 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
33516
33517         maint.mk: allow a project to override release-prep commands
33518         * top/maint.mk (alpha, beta, stable): Move release-preparatory
33519         commands into a new rule.
33520         (release-prep): New rule.
33521         (release-prep-hook): New overridable variable.
33522
33523 2009-12-13  Bruno Haible  <bruno@clisp.org>
33524
33525         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
33526
33527 2009-12-13  Jim Meyering  <meyering@redhat.com>
33528
33529         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
33530         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
33531
33532 2009-12-12  Bruno Haible  <bruno@clisp.org>
33533
33534         duplocale: Tweak.
33535         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
33536
33537 2009-12-12  Karl Berry  <karl@gnu.org>
33538
33539         * config/srclist.txt (strtoll.c): tab changes, no more sync.
33540
33541 2009-12-12  Bruno Haible  <bruno@clisp.org>
33542
33543         * m4/po.m4: Undo incorrect untabification.
33544
33545 2009-12-12  Bruno Haible  <bruno@clisp.org>
33546
33547         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
33548         * modules/c-strtod (Depends-on): Add locale.
33549         * modules/c-strtold (Depends-on): Likewise.
33550
33551 2009-12-12  Bruno Haible  <bruno@clisp.org>
33552
33553         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
33554
33555 2009-12-11  Eric Blake  <ebb9@byu.net>
33556
33557         setenv: relax requirement in light of POSIX ruling
33558         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
33559         not NULL.
33560         * tests/test-setenv.c (main): Relax test.
33561         * tests/test-unsetenv.c (main): Likewise.
33562         * doc/posix-functions/setenv.texi (setenv): Document this.
33563         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33564
33565 2009-12-11  Bruno Haible  <bruno@clisp.org>
33566
33567         New module 'fd-safer-flag'.
33568         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
33569         * lib/dup-safer.c (dup_safer_flag): Remove function.
33570         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
33571         * lib/fd-safer.c (fd_safer_flag): Remove function.
33572         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
33573         * modules/cloexec (configure.ac): Drop indicator macro.
33574         * modules/fd-safer-flag: New file.
33575         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
33576         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
33577         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
33578
33579 2009-12-11  Bruno Haible  <bruno@clisp.org>
33580
33581         Tests for module 'nl_langinfo'.
33582         * modules/nl_langinfo-tests: New file.
33583         * tests/test-nl_langinfo.sh: New file.
33584         * tests/test-nl_langinfo.c: New file.
33585
33586         New module 'nl_langinfo'.
33587         * lib/nl_langinfo.c: New file.
33588         * m4/nl_langinfo.m4: New file.
33589         * modules/nl_langinfo: New file.
33590         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
33591
33592 2009-12-11  Bruno Haible  <bruno@clisp.org>
33593
33594         Tests for module 'langinfo'.
33595         * modules/langinfo-tests: New file.
33596         * tests/test-langinfo.c: New file.
33597
33598         New module 'langinfo'.
33599         * lib/langinfo.in.h: New file.
33600         * m4/langinfo_h.m4: New file.
33601         * modules/langinfo: New file.
33602         * doc/posix-headers/langinfo.texi: Mention the new module.
33603
33604 2009-12-11  Bruno Haible  <bruno@clisp.org>
33605
33606         * lib/config.charset: Untabify.
33607
33608 2009-12-11  Bruno Haible  <bruno@clisp.org>
33609
33610         * modules/unistd-safer (configure.ac): Drop indicator macro.
33611
33612 2009-12-11  Bruno Haible  <bruno@clisp.org>
33613
33614         Move pipe2-safer code to its own file.
33615         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
33616         * lib/pipe-safer.c (pipe2_safer): Remove function.
33617         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
33618         (Makefile.am): Add it to lib_SOURCES.
33619
33620 2009-12-10  Bruno Haible  <bruno@clisp.org>
33621
33622         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
33623
33624 2009-12-10  Bruno Haible  <bruno@clisp.org>
33625
33626         Declare which arguments expect non-NULL values, for GCC and clang.
33627         * build-aux/arg-nonnull.h: New file.
33628         * modules/arg-nonnull: New file.
33629         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
33630         (inet_ntop, inet_pton): Use it.
33631         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
33632         (closedir, dirfd, opendir, scandir, alphasort): Use it.
33633         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
33634         (open, openat): Use it.
33635         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
33636         (fnmatch): Use it.
33637         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
33638         (getopt, getopt_long, getopt_long_only): Use it.
33639         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
33640         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
33641         Use it.
33642         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
33643         (iconv_open): Use it.
33644         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
33645         (strtoimax, strtoumax): Use it.
33646         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
33647         (duplocale): Use it.
33648         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
33649         (frexp, frexpl): Use it.
33650         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
33651         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
33652         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
33653         (tsearch, tfind, tdelete, twalk): Use it.
33654         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
33655         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33656         sigpending): Use it.
33657         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
33658         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33659         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33660         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33661         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33662         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33663         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33664         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33665         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33666         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33667         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33668         Use it.
33669         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
33670         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
33671         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
33672         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
33673         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
33674         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
33675         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
33676         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
33677         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
33678         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
33679         strtoull, unsetenv): Use it.
33680         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
33681         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33682         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33683         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
33684         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
33685         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
33686         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
33687         (strcasecmp, strncasecmp): Use it.
33688         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
33689         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
33690         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
33691         rpl_setsockopt): Use it.
33692         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
33693         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
33694         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
33695         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
33696         (gettimeofday): Use it.
33697         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
33698         (times): Use it.
33699         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
33700         (uname): Use it.
33701         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
33702         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
33703         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
33704         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
33705         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
33706         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
33707         unlinkat, write): Use it.
33708         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
33709         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
33710         * lib/argv-iter.h: Include arg-nonnull.h.
33711         (_ATTRIBUTE_NONNULL_): Remove macro.
33712         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
33713         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
33714         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
33715         optimization.
33716         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
33717         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
33718         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
33719         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
33720         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
33721         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
33722         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
33723         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
33724         * modules/arpa_inet (Depends-on): Add arg-nonnull.
33725         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
33726         * modules/dirent (Depends-on): Add arg-nonnull.
33727         (Makefile.am): Insert arg-nonnull.h into dirent.h.
33728         * modules/fcntl-h (Depends-on): Add arg-nonnull.
33729         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
33730         * modules/fnmatch (Depends-on): Add arg-nonnull.
33731         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
33732         * modules/getopt-posix (Depends-on): Add arg-nonnull.
33733         (Makefile.am): Insert arg-nonnull.h into getopt.h.
33734         * modules/glob (Depends-on): Add arg-nonnull.
33735         (Makefile.am): Insert arg-nonnull.h into glob.h.
33736         * modules/iconv_open (Depends-on): Add arg-nonnull.
33737         (Makefile.am): Insert arg-nonnull.h into iconv.h.
33738         * modules/inttypes (Depends-on): Add arg-nonnull.
33739         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
33740         * modules/locale (Depends-on): Add arg-nonnull.
33741         (Makefile.am): Insert arg-nonnull.h into locale.h.
33742         * modules/math (Depends-on): Add arg-nonnull.
33743         (Makefile.am): Insert arg-nonnull.h into math.h.
33744         * modules/netdb (Depends-on): Add arg-nonnull.
33745         (Makefile.am): Insert arg-nonnull.h into netdb.h.
33746         * modules/search (Depends-on): Add arg-nonnull.
33747         (Makefile.am): Insert arg-nonnull.h into search.h.
33748         * modules/signal (Depends-on): Add arg-nonnull.
33749         (Makefile.am): Insert arg-nonnull.h into signal.h.
33750         * modules/spawn (Depends-on): Add arg-nonnull.
33751         (Makefile.am): Insert arg-nonnull.h into spawn.h.
33752         * modules/stdio (Depends-on): Add arg-nonnull.
33753         (Makefile.am): Insert arg-nonnull.h into stdio.h.
33754         * modules/stdlib (Depends-on): Add arg-nonnull.
33755         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
33756         * modules/string (Depends-on): Add arg-nonnull.
33757         (Makefile.am): Insert arg-nonnull.h into string.h.
33758         * modules/strings (Depends-on): Add arg-nonnull.
33759         (Makefile.am): Insert arg-nonnull.h into strings.h.
33760         * modules/sys_socket (Depends-on): Add arg-nonnull.
33761         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
33762         * modules/sys_stat (Depends-on): Add arg-nonnull.
33763         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
33764         * modules/sys_time (Depends-on): Add arg-nonnull.
33765         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
33766         * modules/sys_times (Depends-on): Add arg-nonnull.
33767         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
33768         * modules/sys_utsname (Depends-on): Add arg-nonnull.
33769         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
33770         * modules/time (Depends-on): Add arg-nonnull.
33771         (Makefile.am): Insert arg-nonnull.h into time.h.
33772         * modules/unistd (Depends-on): Add arg-nonnull.
33773         (Makefile.am): Insert arg-nonnull.h into unistd.h.
33774         * modules/wchar (Depends-on): Add arg-nonnull.
33775         (Makefile.am): Insert arg-nonnull.h into wchar.h.
33776         * modules/argv-iter (Depends-on): Add arg-nonnull.
33777         * tests/test-canonicalize.c (null_ptr): New function.
33778         (main): Use it.
33779         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
33780         (main): Use it.
33781         * tests/test-memmem.c (null_ptr): New function.
33782         (main): Use it.
33783         Reported by Jim Meyering.
33784
33785 2009-12-10  Bruno Haible  <bruno@clisp.org>
33786
33787         Use spaces for indentation, not tabs.
33788         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
33789         * m4/*.m4: Untabify.
33790         * build-aux/*.h: Untabify.
33791         * tests/**/*.[hc]: Untabify.
33792         * README: New section "Indent with spaces, not TABs", based on
33793         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
33794         * NEWS: Mention the change.
33795
33796 2009-12-10  Bruno Haible  <bruno@clisp.org>
33797
33798         pty test: Fix link error.
33799         * modules/pty-tests (Makefile.am): Add the default LDADD value to
33800         test_pty_LDADD.
33801
33802 2009-12-07  Simon Josefsson  <simon@josefsson.org>
33803
33804         * modules/pty: New file.
33805         * modules/pty-tests: New file.
33806         * m4/pty.m4: New file.
33807         * tests/test-pty.c: New file.
33808         * doc/glibc-headers/pty.texi: Modified.
33809         * doc/glibc-functions/forkpty.texi: Modified.
33810         * doc/glibc-functions/openpty.texi: Modified.
33811
33812 2009-12-10  Bruno Haible  <bruno@clisp.org>
33813
33814         Avoid syntax error in C++ mode.
33815         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
33816
33817 2009-12-10  Bruno Haible  <bruno@clisp.org>
33818
33819         Use sed with option -e.
33820         * gnulib-tool (func_version, func_emit_copyright_notice,
33821         func_emit_initmacro_end, func_import, func_create_testdir): Pass
33822         option -e to sed.
33823         * modules/link-warning (Makefile.am): Likewise.
33824
33825 2009-12-10  Jim Meyering  <meyering@redhat.com>
33826
33827         mgetgroups: do not write bytes beyond end of malloc'd buffer
33828         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
33829         username, we call getgroups with a one-element-shorter buffer,
33830         but still told it the length was original, max_n_groups.
33831
33832 2009-12-09  Eric Blake  <ebb9@byu.net>
33833
33834         cloexec: relax license
33835         * modules/cloexec (Maintainer): Add myself.
33836         (License): Use LGPL, not GPL.
33837
33838         link-warning: optimize generation
33839         * modules/link-warning (Makefile.am): Reduce process usage.
33840
33841 2009-12-09  Bruno Haible  <bruno@clisp.org>
33842
33843         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
33844         workaround was added on 2009-11-17.
33845
33846 2009-12-09  Jim Meyering  <meyering@redhat.com>
33847             Bruno Haible  <bruno@clisp.org>
33848
33849         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
33850         * modules/link-warning (Makefile.am): Make the comment-removing sed
33851         command more robust in the face of bootstrap-prepended comment lines.
33852
33853 2009-12-09  Bruno Haible  <bruno@clisp.org>
33854
33855         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
33856         most one group.
33857
33858 2009-12-09  Simon Josefsson <simon@josefsson.org>
33859             Bruno Haible  <bruno@clisp.org>
33860
33861         * build-aux/link-warning.h: Add copyright notice.
33862         * modules/link-warning (Makefile.am): Generate link-warning.h from
33863         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
33864         * NEWS: Mention change in link-warning module.
33865         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
33866         * modules/dirent (Makefile.am): Add dependency to dirent.h.
33867         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
33868         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
33869         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
33870         * modules/math (Makefile.am): Add dependency to math.h.
33871         * modules/search (Makefile.am): Add dependency to search.h.
33872         * modules/signal (Makefile.am): Add dependency to signal.h.
33873         * modules/spawn (Makefile.am): Add dependency to spawn.h.
33874         * modules/stdio (Makefile.am): Add dependency to stdio.h.
33875         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
33876         * modules/string (Makefile.am): Add dependency to string.h.
33877         * modules/strings (Makefile.am): Add dependency to strings.h.
33878         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
33879         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
33880         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
33881         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
33882         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
33883         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
33884         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
33885         * modules/unistd (Makefile.am): Add dependency to unistd.h.
33886         * modules/wchar (Makefile.am): Add dependency to wchar.h.
33887
33888 2009-12-09  Bruno Haible  <bruno@clisp.org>
33889
33890         fchdir: Optimize away rpl_fstat when possible.
33891         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
33892         REPLACE_OPEN_DIRECTORY.
33893         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
33894
33895 2009-12-09  Bruno Haible  <bruno@clisp.org>
33896
33897         * lib/fchdir.c: Update comment.
33898
33899 2009-12-09  Bruno Haible  <bruno@clisp.org>
33900
33901         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
33902
33903 2009-12-08  Eric Blake  <ebb9@byu.net>
33904
33905         fchdir: avoid memory leak on re-registration.
33906         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
33907
33908 2009-12-08  Jim Meyering  <meyering@redhat.com>
33909
33910         init.sh: avoid Solaris 10 /bin/sh portability problem
33911         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
33912         sourced script:
33913           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
33914           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
33915           bar
33916         tests/init.sh relied on that, accepting a --set-path=DIR argument,
33917         and two tests used that idiom.
33918         * tests/init.sh: Update suggested usage comments.
33919         (path_prepend_): New function, to be used in place
33920         of the --src-path=DIR option.
33921         (setup_): Move PATH-prepending code into path_prepend_.
33922         * tests/test-pread.sh: Adapt to new usage.
33923         * tests/test-xalloc-die.sh: Likewise.
33924
33925 2009-12-08  Simon Josefsson  <simon@josefsson.org>
33926
33927         * doc/gnulib.texi (Glibc pty.h): Add.
33928         * doc/glibc-functions/forkpty.texi: Add.
33929         * doc/glibc-functions/openpty.texi: Add.
33930         Suggested by Bruno Haible.
33931
33932 2009-12-08  Eric Blake  <ebb9@byu.net>
33933
33934         fchdir: fix logic bugs
33935         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
33936         * tests/test-fchdir.c (main): Enhance test.
33937         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
33938         is in use.
33939
33940         dup2: fix logic bugs
33941         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
33942         REPLACE_DUP2 to decide when rpl_dup2 is needed.
33943         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
33944         exists.
33945         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
33946
33947 2009-12-07  Eric Blake  <ebb9@byu.net>
33948
33949         unlink: fix m4 detection
33950         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
33951
33952         unistd-safer: add unit test
33953         * modules/unistd-safer-tests: New file.
33954         * tests/test-dup-safer.c: Likewise.
33955         * tests/test-cloexec.c (setmode): Avoid compiler warning.
33956         * tests/test-dup2.c (setmode): Likewise.
33957         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
33958
33959         cloexec: preserve text vs. binary across dup_cloexec
33960         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
33961         mode.
33962         * modules/dup2-tests (Depends-on): Add binary-io.
33963         * modules/cloexec-tests (Depends-on): Likewise.
33964         * tests/test-dup2.c (setmode, is_mode): New helpers.
33965         (main): Add tests that translation mode is preserved.
33966         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
33967         Reported by Bruno Haible.
33968
33969         mgetgroups: reduce duplicate listings
33970         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
33971         resulting array.
33972         * tests/test-chown.h (test_chown): Simplify client.
33973         * tests/test-lchown.h (test_lchown): Likewise.
33974
33975 2009-12-06  Bruno Haible  <bruno@clisp.org>
33976
33977         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
33978         value.
33979
33980 2009-12-06  Bruno Haible  <bruno@clisp.org>
33981
33982         * lib/progname.c: Include stdio.h, stdlib.h.
33983         (set_program_name): Reject a NULL argument.
33984
33985 2009-12-05  Eric Blake  <ebb9@byu.net>
33986
33987         pipe2-safer: new module
33988         * modules/pipe2-safer: New file.
33989         * lib/unistd-safer.h (pipe2_safer): New prototype.
33990         * lib/unistd--.h (pipe2): New wrapper.
33991         * lib/pipe-safer.c (pipe2_safer): New function.
33992         * modules/pipe (Depends-on): Add pipe2-safer.
33993         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
33994
33995         stdlib-safer: preserve cloexec flag for mkostemp[s]
33996         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
33997         fd_safer_flag.
33998
33999         unistd-safer: allow preservation of cloexec status via flag
34000         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
34001         prototypes.
34002         * lib/dup-safer.c (dup_safer_flag): New function.
34003         * lib/fd-safer.c (fd_safer_flag): Likewise.
34004         * modules/cloexec (configure.ac): Set witness.
34005
34006         test-dup2: enhance test
34007         * modules/dup2-tests (Depends-on): Add cloexec.
34008         * tests/test-dup2.c (main): Enhance test.
34009
34010         cloexec: add dup_cloexec
34011         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
34012         header and comments.
34013         * lib/cloexec.c (set_cloexec_flag): Add comments.
34014         (dup_cloexec): New function, with mingw implementation borrowed
34015         from...
34016         * lib/w32spawn.h (dup_noinherit): ...here.
34017         * modules/execute (Depends-on): Add cloexec.
34018         * modules/pipe (Depends-on): Likewise.
34019         * modules/cloexec (Depends-on): Add dup2.
34020         * modules/cloexec-tests (Files): New file.
34021         * tests/test-cloexec.c: Likewise.
34022
34023         test-xalloc-die: fix test for mingw
34024         * modules/xalloc-die-tests (Files): Add tests/init.sh.
34025         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
34026         directory and .exe suffix off argv[0] output.
34027
34028         test-fseeko: fix test for mingw
34029         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
34030         than undefining fseek, so test will pass on mingw.
34031
34032 2009-12-05  Bruno Haible  <bruno@clisp.org>
34033
34034         * lib/progname.h (set_program_name): Clarify specification.
34035         * lib/progname.c (set_program_name): Likewise.
34036         Reported by Jim Meyering.
34037
34038 2009-12-05  Jim Meyering  <meyering@redhat.com>
34039
34040         maint.mk: backslash-escape parens in default regexp
34041         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
34042         backslash-escape the literal parentheses.
34043
34044         maint.mk: news-date-check: use grep -E
34045         * top/maint.mk (today): Define a Make variable, not a...
34046         (news-date-check): ...shell variable.
34047         (news-date-regexp): Use the Make variable.
34048         Use grep's -E option.  Change the failing diagnostic to mention
34049         the variable, $(news-date-regexp).
34050
34051 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
34052
34053         maintainer-makefile: allow customization of NEWS entry format
34054         * top/maint.mk (news-date-regexp): New overridable variable.
34055         (news-date-check): Use it.
34056
34057 2009-12-04  Eric Blake  <ebb9@byu.net>
34058
34059         mgetgroups: add xgetgroups, and avoid ENOSYS failures
34060         * lib/mgetgroups.h (xgetgroups): New prototype.
34061         * lib/mgetgroups.c (xgetgroups): New wrapper.
34062         (mgetgroups): Handle ENOSYS.
34063         * modules/mgetgroups (Depends-on): Add realloc.
34064         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
34065
34066         mgetgroups: avoid argument promotion issues with -1
34067         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
34068         for invalid gid_t.
34069         * tests/test-chown.h (getegid, test_chown): Likewise.
34070         * tests/test-lchown.h (getegid, test_lchown): Likewise.
34071
34072 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
34073
34074         exclude: Fix header file problems.
34075         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
34076
34077 2009-12-01  Jim Meyering  <meyering@redhat.com>
34078
34079         fts: fts_open: do not let an empty string cause immediate failure
34080         This is required in support of GNU rm, for which the command
34081         "rm A '' B" must process and remove both A and B, in spite of
34082         the empty string argument.
34083         * lib/fts.c (fts_open): Do not let the presence of an empty string
34084         cause fts_open to fail immediately.  Most fts-using tools must be
34085         able to process all arguments, in order, and can be expected to
34086         diagnose such arguments themselves.
34087
34088 2009-11-30  Eric Blake  <ebb9@byu.net>
34089
34090         utimens: fix compilation error
34091         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
34092         Declare variable at right scope.
34093
34094 2009-11-29  Jim Meyering  <meyering@redhat.com>
34095
34096         bootstrap: handle perl-5.11's changed --version output
34097         * build-aux/bootstrap (get_version): Handle perl separately,
34098         since perl-5.11's --version output is different.
34099
34100 2009-11-28  Jim Meyering  <meyering@redhat.com>
34101
34102         userspec: depend on the inttostr module, too
34103         * modules/userspec (Depends-on): Add inttostr.
34104
34105         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
34106         * lib/userspec.c (parse_with_separator): Do not accept a user ID
34107         number of MAXUID when it evaluates to (uid_t) -1.
34108         Likewise for group ID.  Reported by Matt McCutchen in
34109         <http://savannah.gnu.org/bugs/?28113>
34110
34111         userspec: reformat to use spaces, not TABs
34112         * lib/userspec.c: Expand TABs to spaces.
34113         Add Emacs' "indent-tabs-mode: nil" hint.
34114
34115 2009-11-27  Eric Blake  <ebb9@byu.net>
34116
34117         getopt-gnu: flush out another BSD bug
34118         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
34119         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
34120         flush out BSD bug.
34121         * tests/test-getopt.h (test_getopt): End lists with NULL.
34122         * tests/test-getopt_long.h (test_getopt_long): Likewise.
34123         (test_getopt_long_posix): Enhance test.
34124         * modules/getopt-posix-tests (Depends-on): Add stdbool.
34125         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
34126         getopt-gnu.
34127         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34128         Likewise.
34129
34130 2009-11-27  Simon Josefsson  <simon@josefsson.org>
34131
34132         * modules/idpriv-droptemp-tests (Notice): Fix text.
34133
34134 2009-11-27  Jim Meyering  <meyering@redhat.com>
34135
34136         test-xalloc-die: avoid spurious failure due to libtool argv difference
34137         In a libtool-enabled project, this test would fail due to a difference
34138         in the emitted program name, e.g.,
34139         -test-xalloc-die: memory exhausted
34140         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
34141         Use program to avoid that.
34142         * modules/xalloc-die-tests (Depends-on): Add progname.
34143         * tests/test-xalloc-die.c: Include progname.h".
34144         (program_name): Remove decl.
34145         (main): Call set_program_name.
34146         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
34147
34148 2009-11-26  Richard Jones  <rjones@redhat.com>
34149
34150         w32sock: leave win32 error in place.
34151         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
34152
34153 2009-11-26  Eric Blake  <ebb9@byu.net>
34154
34155         init.sh: suggest to use skip_ and fail_ functions in comments
34156         * tests/init.sh: Add a sentence.
34157
34158 2009-11-25  Bruno Haible  <bruno@clisp.org>
34159
34160         init.sh: add documentation in comments
34161         * tests/init.sh: Add some developer and user documentation.
34162
34163 2009-11-26  Jim Meyering  <meyering@redhat.com>
34164
34165         init.sh: accommodate even those who specify bogus srcdir manually
34166         * tests/init.sh: Normally, srcdir is guaranteed by automake and
34167         configure-time tests to be sanitized, so that there is no need to
34168         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
34169         (with no double quotes) suffices.  However, since tests may be
34170         invoked manually, and since you may explicitly set srcdir to the
34171         name of a directory containing spaces, do quote its uses here.
34172         * tests/test-pread.sh: Likewise.
34173         Suggested by Bruno Haible.
34174
34175         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
34176         * tests/test-pread.sh: Write no data into the pipe, because
34177         test-pread actually reads none.  This avoids a diagnostic,
34178         "bash: echo: write error: Broken pipe", that arises in the unusual
34179         event something is ignoring SIGPIPE, and might be interpreted
34180         as some sort of failure.  Reported by Bruno Haible.
34181
34182 2009-11-25  Jim Meyering  <meyering@redhat.com>
34183
34184         test-pread: cover failure with ESPIPE and EINVAL
34185         * tests/test-pread.c (main): Test for failure, too.
34186         * tests/test-pread.sh: Invoke with stdin on a pipe.
34187         Suggested by Eric Blake.
34188
34189         pread: improvement and fix
34190         * modules/pread (Depends-on): Depend on lseek, for portability to
34191         e.g., mingw.  Suggested by Eric Blake.
34192         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
34193
34194         unistd.in.h: correct declaration of pread
34195         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
34196         Reported by Richard W.M. Jones.
34197
34198         test-pread.sh: distribute the test script
34199         * modules/pread-tests (Files): Include test-pread.sh.
34200
34201         test-pread.sh: clean up
34202         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
34203         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
34204         That is unnecessary, since it's always ".".
34205         Suggestion from Eric Blake.
34206
34207         test-pread.sh: make executable
34208         * tests/test-pread.sh: Set executable bit.
34209         Reported by Eric Blake.
34210
34211         correct typo in test-pread.sh
34212         * tests/test-pread.sh: Add #! line.
34213
34214         test pread
34215         * tests/test-pread.c: New file.
34216         * tests/test-pread.sh: Likewise.
34217         * modules/pread-tests: Likewise.
34218
34219         pread: new module
34220         * modules/pread: New file.
34221         * lib/unistd.in.h (pread): Define/declare.
34222         * lib/pread.c (pread): New file.
34223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
34224         * modules/unistd (Makefile.am): Substitute witnesses.
34225         * doc/posix-functions/pread.texi (pread): Update.
34226         * MODULES.html.sh: Add pread.
34227
34228 2009-11-25  Jim Meyering  <meyering@redhat.com>
34229
34230         tests/init.sh: new file to be used via most *.sh tests
34231         * tests/init.sh: New file.
34232
34233 2009-11-25  Eric Blake  <ebb9@byu.net>
34234
34235         utimens: work around older Linux failure with symlinks
34236         * lib/utimens.c (lutimensat_works_really): New variable.
34237         (fdutimens, lutimens): Use it to manage kernels that support
34238         nanosecond times on files, but not on symlinks.
34239         Reported by Ondřej Vašík.
34240
34241         utimes: fix configure grammar
34242         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
34243
34244 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
34245
34246         regex: Fix fastmap for multibyte character ranges.
34247         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
34248         characters when a multibyte character range is included.
34249
34250 2009-11-22  Andy Wingo  <wingo@pobox.com>
34251
34252         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
34253         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
34254
34255 2009-11-24  Bruno Haible  <bruno@clisp.org>
34256
34257         doc: Most *_l functions exist in MacOS X 10.5.
34258         * doc/posix-functions/duplocale.texi: Update platforms list.
34259         * doc/posix-functions/freelocale.texi: Likewise.
34260         * doc/posix-functions/newlocale.texi: Likewise.
34261         * doc/posix-functions/uselocale.texi: Likewise.
34262         * doc/posix-functions/isalnum_l.texi: Likewise.
34263         * doc/posix-functions/isalpha_l.texi: Likewise.
34264         * doc/posix-functions/isblank_l.texi: Likewise.
34265         * doc/posix-functions/iscntrl_l.texi: Likewise.
34266         * doc/posix-functions/isdigit_l.texi: Likewise.
34267         * doc/posix-functions/isgraph_l.texi: Likewise.
34268         * doc/posix-functions/islower_l.texi: Likewise.
34269         * doc/posix-functions/isprint_l.texi: Likewise.
34270         * doc/posix-functions/ispunct_l.texi: Likewise.
34271         * doc/posix-functions/isspace_l.texi: Likewise.
34272         * doc/posix-functions/isupper_l.texi: Likewise.
34273         * doc/posix-functions/iswalnum_l.texi: Likewise.
34274         * doc/posix-functions/iswalpha_l.texi: Likewise.
34275         * doc/posix-functions/iswblank_l.texi: Likewise.
34276         * doc/posix-functions/iswcntrl_l.texi: Likewise.
34277         * doc/posix-functions/iswctype_l.texi: Likewise.
34278         * doc/posix-functions/iswdigit_l.texi: Likewise.
34279         * doc/posix-functions/iswgraph_l.texi: Likewise.
34280         * doc/posix-functions/iswlower_l.texi: Likewise.
34281         * doc/posix-functions/iswprint_l.texi: Likewise.
34282         * doc/posix-functions/iswpunct_l.texi: Likewise.
34283         * doc/posix-functions/iswspace_l.texi: Likewise.
34284         * doc/posix-functions/iswupper_l.texi: Likewise.
34285         * doc/posix-functions/iswxdigit_l.texi: Likewise.
34286         * doc/posix-functions/isxdigit_l.texi: Likewise.
34287         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
34288         * doc/posix-functions/strcasecmp_l.texi: Likewise.
34289         * doc/posix-functions/strcoll_l.texi: Likewise.
34290         * doc/posix-functions/strfmon_l.texi: Likewise.
34291         * doc/posix-functions/strftime_l.texi: Likewise.
34292         * doc/posix-functions/strncasecmp_l.texi: Likewise.
34293         * doc/posix-functions/strxfrm_l.texi: Likewise.
34294         * doc/posix-functions/tolower_l.texi: Likewise.
34295         * doc/posix-functions/toupper_l.texi: Likewise.
34296         * doc/posix-functions/towctrans_l.texi: Likewise.
34297         * doc/posix-functions/towlower_l.texi: Likewise.
34298         * doc/posix-functions/towupper_l.texi: Likewise.
34299         * doc/posix-functions/wcscoll_l.texi: Likewise.
34300         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
34301         * doc/posix-functions/wctrans_l.texi: Likewise.
34302         * doc/posix-functions/wctype_l.texi: Likewise.
34303         * doc/glibc-functions/strptime_l.texi: Likewise.
34304         * doc/glibc-functions/strtod_l.texi: Likewise.
34305         * doc/glibc-functions/strtof_l.texi: Likewise.
34306         * doc/glibc-functions/strtol_l.texi: Likewise.
34307         * doc/glibc-functions/strtold_l.texi: Likewise.
34308         * doc/glibc-functions/strtoll_l.texi: Likewise.
34309         * doc/glibc-functions/strtoul_l.texi: Likewise.
34310         * doc/glibc-functions/strtoull_l.texi: Likewise.
34311         * doc/glibc-functions/wcsftime_l.texi: Likewise.
34312         * doc/glibc-functions/wcstod_l.texi: Likewise.
34313         * doc/glibc-functions/wcstof_l.texi: Likewise.
34314         * doc/glibc-functions/wcstol_l.texi: Likewise.
34315         * doc/glibc-functions/wcstold_l.texi: Likewise.
34316         * doc/glibc-functions/wcstoll_l.texi: Likewise.
34317         * doc/glibc-functions/wcstoul_l.texi: Likewise.
34318         * doc/glibc-functions/wcstoull_l.texi: Likewise.
34319
34320 2009-11-24  Bruno Haible  <bruno@clisp.org>
34321
34322         duplocale: Fix logic bug.
34323         * lib/duplocale.c: Don't include <langinfo.h>.
34324         (_NL_LOCALE_NAME): Remove macro.
34325         (rpl_duplocale): Use setlocale instead of nl_langinfo.
34326         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
34327
34328 2009-11-23  Jim Meyering  <meyering@redhat.com>
34329
34330         test-update-copyright: don't hard-code /usr/bin/perl
34331         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
34332         perl to print the current year.  Gilles Espinasse reported that
34333         the replaced use of perl was hard-coded as /usr/bin/perl.
34334
34335 2009-11-23  Bruno Haible  <bruno@clisp.org>
34336
34337         duplocale: Add support for glibc 2.3.x.
34338         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
34339
34340 2009-11-22  Bruno Haible  <bruno@clisp.org>
34341
34342         vasnprintf: Tiny optimization.
34343         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
34344         MacOS X.
34345
34346 2009-11-22  Bruno Haible  <bruno@clisp.org>
34347
34348         Tests for module 'duplocale'.
34349         * modules/duplocale-tests: New file.
34350         * tests/test-duplocale.c: New file.
34351
34352         New module 'duplocale'.
34353         * m4/duplocale.m4: New file.
34354         * lib/locale.in.h (duplocale): New declaration.
34355         * lib/duplocale.c: New file.
34356         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
34357         gl_LOCALE_H_DEFAULTS): New macros.
34358         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
34359         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
34360         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
34361         REPLACE_DUPLOCALE.
34362         * modules/duplocale: New file.
34363         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
34364
34365 2009-11-22  Bruno Haible  <bruno@clisp.org>
34366
34367         * modules/locale-tests (configure.ac): Test for newlocale function.
34368         * tests/test-locale.c: When the system has extended locale functions,
34369         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
34370
34371         locale: Make locale_t available when possible.
34372         * lib/locale.in.h: Include <xlocale.h> when it exists.
34373         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
34374         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
34375         * modules/locale (Depends-on): Add extensions.
34376         (Makefile.am): Also substitute HAVE_XLOCALE_H.
34377         * doc/posix-headers/locale.texi: Document the problem with locale_t.
34378
34379 2009-11-22  Bruno Haible  <bruno@clisp.org>
34380
34381         Add comments.
34382         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
34383         invocation.
34384         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
34385         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34386         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34387
34388 2009-11-22  Bruno Haible  <bruno@clisp.org>
34389
34390         error: account for the possibility of freopen (stdout).
34391         * lib/error.c: Include <unistd.h>.
34392         (flush_stdout): New function, extracted from error and error_at_line.
34393         Determine stdout's fd dynamically.
34394         (error, error_at_line): Invoke flush_stdout.
34395         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
34396         * modules/error (Depends-on): Add unistd.
34397
34398 2009-11-22  Bruno Haible  <bruno@clisp.org>
34399
34400         diffseq: Add comment.
34401         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
34402
34403 2009-11-22  Jim Meyering  <meyering@redhat.com>
34404
34405         c-stack: avoid defining an unused static function
34406         * lib/c-stack.c (find_stack_direction): Do not define this function
34407         when it will not be used.
34408
34409         diffseq: avoid spurious gcc warnings
34410         * lib/diffseq.h (IF_LINT2): Define.
34411         (compareseq): Use it to initialize two members of "part".
34412         This avoids two used-uninitialized warnings.
34413
34414 2009-11-21  Jim Meyering  <meyering@redhat.com>
34415
34416         c-stack: avoid "ignoring return value of `write'" warning
34417         * lib/c-stack.c: Include "ignore-value.h".
34418         (die): Explicitly ignore each write return value.
34419         * modules/c-stack (Depends-on): Add ignore-value.
34420
34421 2009-11-21  Bruno Haible  <bruno@clisp.org>
34422
34423         diffseq: reduce scope of variable 'best'.
34424         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
34425         variable, earlier used for two different purposes.
34426
34427 2009-11-21  Jim Meyering  <meyering@redhat.com>
34428
34429         diffseq: remove useless assignment to "best"
34430         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
34431         assignment.  At that point "best" is already guaranteed to be zero.
34432
34433 2009-11-20  Eric Blake  <ebb9@byu.net>
34434
34435         build: mention ftp redirector in release announcements
34436         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
34437         values that used to come from cfg.mk; mention FTP redirect URL.
34438         * build-aux/announce-gen: Mention the mirror list.
34439         Suggested by Karl Berry.
34440
34441         nanosleep: improve port to mingw
34442         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
34443         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
34444         LIB_NANOSLEEP, but only when needed.
34445         * modules/select (Link): Document LIBSOCKET.
34446         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
34447         enough.
34448
34449         nanosleep: work around cygwin bug
34450         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
34451         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
34452         bug.
34453         (getnow): Delete, not needed.
34454         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
34455         LIB_CLOCK_GETTIME.
34456         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
34457         clock-time, gettime.
34458         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
34459         bug.
34460         * modules/nanosleep-tests: New test.
34461         * tests/test-nanosleep.c: New file.
34462
34463         sleep: work around cygwin bug
34464         * lib/sleep.c (rpl_sleep): Work around the bug.
34465         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
34466         (gl_PREREQ_SLEEP): Delete unused macro.
34467         * modules/sleep (Depends-on): Add verify.
34468         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34469         * modules/unistd (Makefile.am): Substitute witness.
34470         * lib/unistd.in.h (sleep): Update prototype.
34471         * doc/posix-functions/sleep.texi (sleep): Document the bug.
34472         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
34473         * modules/sleep-tests (Depends-on): Check for alarm.
34474
34475 2009-11-20  Jim Meyering  <meyering@redhat.com>
34476
34477         maint.mk: improve sc_prohibit_magic_number_exit
34478         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
34479         so it does not match uses like System.exit(1).
34480         Add comments showing how to correct all offenders.
34481
34482 2009-11-19  Eric Blake  <ebb9@byu.net>
34483
34484         xalloc-die-tests: add missing library
34485         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
34486
34487         test-xvasprintf: silence compiler warnings
34488         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
34489         empty string from gcc.
34490
34491 2009-11-19  Jim Meyering  <meyering@redhat.com>
34492
34493         xfreopen: new module, from coreutils
34494         * modules/xfreopen: New module.
34495         * lib/xfreopen.c: New file.
34496         * lib/xfreopen.h: New file.
34497         * MODULES.html.sh (File stream based Input/Output"): Add it.
34498
34499 2009-11-19  Eric Blake  <ebb9@byu.net>
34500
34501         manywarnings: depend on warnings
34502         * modules/manywarnings (Depends-on): Add warnings.
34503
34504         build: avoid compiler warnings
34505         * lib/select.c (rpl_select): Delete unused variable.
34506         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
34507
34508 2009-11-18  Eric Blake  <ebb9@byu.net>
34509
34510         tests: avoid false negative with --with-packager
34511         * tests/test-version-etc.sh: Discard packager information.
34512         * tests/test-argp-version-etc-1.sh: Likewise.
34513         Reported by Mike Frysinger.
34514
34515         utimens: fix regression on Solaris
34516         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
34517         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
34518         can only change fd timestamps via futimesat.  Instead, use an
34519         additional witness macro to avoid BSD bug.
34520         Reported by Jim Meyering.
34521
34522 2009-11-17  Eric Blake  <ebb9@byu.net>
34523
34524         usleep: use it to simplify tests
34525         * modules/stat-time-tests (Depends-on): Add usleep.
34526         (configure.ac): Drop usleep check.
34527         * modules/chown-tests (Depends-on, configure.ac): Likewise.
34528         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
34529         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
34530         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
34531         * modules/openat-tests (Depends-on, configure.ac): Likewise.
34532         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
34533         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
34534         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
34535         Likewise.
34536         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
34537         * tests/test-lchown.h (nap): Likewise.
34538         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
34539         * tests/test-stat-time.c (nap): Likewise.
34540         * tests/test-utimens-common.h (nap): Update comments.
34541
34542         usleep: new module
34543         * modules/usleep: New file.
34544         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
34545         * lib/usleep.c (usleep): Likewise.
34546         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34547         * modules/unistd (Makefile.am): Substitute witnesses.
34548         * lib/unistd.in.h (usleep): Add declaration.
34549         * doc/pastposix-functions/usleep.texi (usleep): Document this.
34550         * MODULES.html.sh (Date and time): Likewise.
34551         * modules/usleep-tests (Depends-on): New test.
34552         * tests/test-usleep.c: New file.
34553
34554         chown: work around OpenBSD bug
34555         * lib/chown.c (rpl_chown): Work around the bug.
34556         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
34557         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
34558         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
34559         * modules/chown (Depends-on): Add stdbool.
34560         * modules/lchown (Depends-on): Likewise.
34561         * doc/posix-functions/chown.texi (chown): Document the bug.
34562         * doc/posix-functions/lchown.texi (lchown): Likewise.
34563         * tests/test-lchown.h (test_chown): Relax test.
34564
34565         mkstemp: avoid conflict with C++ keyword template
34566         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
34567         * lib/mkostemp.c (mkostemp): Likewise.
34568         * lib/mkostemps.c (mkostemps): Likewise.
34569         * lib/mkstemp.c (mkstemp): Likewise.
34570         * lib/mkstemps.c (mkstemps): Likewise.
34571
34572         xalloc-die-tests: optimize
34573         * tests/test-xalloc-die.sh: Reduce number of processes.
34574
34575 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34576
34577         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
34578         patch from ludo@gnu.org (Ludovic Courtès).
34579
34580 2009-11-17  Jim Meyering  <meyering@redhat.com>
34581
34582         version-etc: use proper license string
34583         * modules/version-etc (License): Use LGPL, not LGPLv3+.
34584         * modules/version-etc-fsf: Likewise.
34585
34586 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34587
34588         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
34589         printed to stdout.  Deal with EOL differences.
34590
34591 2009-11-17  Eric Blake  <ebb9@byu.net>
34592
34593         unsetenv: work around Solaris bug
34594         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
34595         * lib/unsetenv.c (rpl_unsetenv): Work around it.
34596         Reported by Jim Meyering.
34597
34598         vasnprintf: avoid compiler warnings
34599         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
34600         variables.
34601         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
34602
34603 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34604
34605         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
34606         settings since xalloc-die is no longer the self test,
34607         xalloc-die.sh is.
34608
34609 2009-11-17  Jim Meyering  <meyering@redhat.com>
34610
34611         test-xalloc-die.sh: make the code agree with the commit log
34612         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
34613         at the end, just in case you happen to have a test-xalloc-die
34614         program in some other PATH directory.
34615
34616         test-xalloc-die.sh: fix a portability bug
34617         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
34618         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
34619         Otherwise, argv[0] (as often seen in diagnostics) would be too
34620         system-dependent, sometimes with, and sometimes without the leading "./".
34621
34622         version-etc-fsf: relax license to LGPLv3+
34623         * modules/version-etc-fsf (License): Relax license.
34624
34625 2009-11-16  Eric Blake  <ebb9@byu.net>
34626
34627         xalloc-die-tests: avoid printing null pointer
34628         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
34629         shell script.
34630         * tests/test-xalloc-die.c (program_name): Declare.
34631         * tests/test-xalloc-die.sh (tmpfiles): New file.
34632
34633         setenv, unsetenv: work around various bugs
34634         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
34635         (setenv) [HAVE_SETENV]: Work around bugs.
34636         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
34637         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
34638         for bugs.
34639         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
34640         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
34641         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
34642         * modules/stdlib (Makefile.am): Update substitutions.
34643         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
34644         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
34645         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
34646         * modules/setenv-tests: New test.
34647         * modules/unsetenv-tests: Likewise.
34648         * tests/test-setenv.c: New file.
34649         * tests/test-unsetenv.c: Likewise.
34650
34651 2009-11-16  Jim Meyering  <meyering@redhat.com>
34652
34653         version-etc: relax license to LGPLv3+
34654         * modules/version-etc (License): Relax license.
34655
34656         better AC_REQUIRE expanded-before-required-warning avoidance
34657         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
34658         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
34659         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
34660         which is no longer needed.
34661
34662 2009-11-16  Eric Blake  <ebb9@byu.net>
34663
34664         test-freading: clean up temporary file
34665         * tests/test-freading.c (main): Remove file on success, and use
34666         ASSERT more liberally.
34667         Reported by Jim Meyering.
34668
34669 2009-11-16  Jim Meyering  <meyering@redhat.com>
34670
34671         avoid new AC_REQUIRE expanded-before-required warnings
34672         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
34673         merely using it.
34674         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
34675         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
34676
34677 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34678
34679         * tests/test-xalloc-die.c: New file.
34680         * modules/xalloc-die-tests: New file.
34681         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
34682         XFAIL_TESTS so it can be appended by modules.
34683
34684 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34685
34686         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
34687         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
34688
34689 2009-11-14  Eric Blake  <ebb9@byu.net>
34690
34691         fnmatch: avoid compiler warning
34692         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
34693         to silence compiler warning about mismatch signedness in ?:.
34694         Reported by Robert Millan.
34695
34696         intprops: add double-inclusion guard
34697         * lib/intprops.h: Allow idempotent includes.
34698         Suggested by Bruce Korb.
34699
34700         openat: detect Solaris fchownat bug
34701         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
34702         penalizing glibc chownat when only lchownat is broken.
34703         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
34704         trailing slash bugs.
34705         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
34706         * modules/openat-tests (Files): Include more files.
34707         (Depends-on): Add mgetgroups, sleep, stat-time.
34708         (configure.ac): Add additional checks.
34709         (Makefile.am): Build new test.
34710         * tests/test-fchownat.c: New file.
34711
34712         lchown: detect Solaris and FreeBSD bug
34713         * lib/lchown.c (rpl_lchown): Work around bug.
34714         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
34715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34716         * modules/unistd (Makefile.am): Populate it.
34717         * lib/unistd.in.h (lchown): Update declaration.
34718         * doc/posix-functions/lchown.texi (lchown): Document the bug.
34719         * modules/lchown-tests: New file.
34720         * tests/test-lchown.h (test_lchown): Likewise.
34721         * tests/test-lchown.c (main): Likewise.
34722
34723         chown: detect Solaris and FreeBSD bug
34724         * lib/chown.c (rpl_chown): Work around bug.
34725         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
34726         (gl_PREREQ_CHOWN): Delete.
34727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34728         * modules/unistd (Makefile.am): Populate it.
34729         * lib/unistd.in.h (chown): Update declaration.
34730         * lib/lchown.c (chown): Update client.
34731         * modules/lchown (Depends-on): Add lstat.
34732         * doc/posix-functions/chown.texi (chown): Document the bug.
34733         * doc/posix-functions/getgroups.texi (getgroups): Document
34734         getgroups pitfall.
34735         * modules/chown-tests: New file.
34736         * tests/test-chown.h (test_chown): Likewise.
34737         * tests/test-chown.c (main): Likewise.
34738
34739 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
34740
34741         gnulib-tool: correctly detect absence of m4 directories
34742         * gnulib-tool: Avoid extra newline on data passed to wc -l.
34743
34744 2009-11-14  Jim Meyering  <meyering@redhat.com>
34745
34746         maint.mk: Prohibit inclusion of "xalloc.h" without use.
34747         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34748
34749 2009-11-14  John W. Eaton  <jwe@gnu.org>
34750
34751         strftime.h: wrap funtion declaration in extern "C" block
34752         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
34753
34754 2009-11-13  Eric Blake  <ebb9@byu.net>
34755
34756         getgroups: avoid compiler warning
34757         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
34758
34759         getgroups: work around FreeBSD bug
34760         * lib/getgroups.c (rpl_getgroups): Work around the bug.
34761         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
34762         * doc/posix-functions/getgroups.texi (getgroups): Document it.
34763         * tests/test-getgroups.c (main): Fix buffer overrun.
34764
34765         getgroups: avoid compilation failure
34766         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
34767         * modules/getgroups (Depends-on): Add stdint.
34768
34769 2009-11-13  Jim Meyering  <meyering@redhat.com>
34770
34771         test-getgroups: avoid compilation failure
34772         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
34773
34774 2009-11-13  Eric Blake  <ebb9@byu.net>
34775
34776         mgetgroups: new module, taken from coreutils
34777         * modules/mgetgroups: New file.
34778         * lib/mgetgroups.h: Likewise.
34779         * lib/mgetgroups.c (mgetgroups): Likewise.
34780         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
34781         * MODULES.html.sh (Users and groups): Mention it.
34782
34783         getgroups: don't expose GETGROUPS_T to user
34784         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
34785         an element at a time if GETGROUPS_T is wrong size.
34786         * lib/getugroups.h (getugroups): Change signature.
34787         * lib/unistd.in.h (getgroups): Likewise.
34788         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
34789         signature needs fixing.
34790         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
34791         AC_TYPE_GETGROUPS.
34792         * modules/group-member (Depends-on): Add getgroups.
34793         * lib/group-member.c (group_info, get_group_info): Use gid_t.
34794         (group_member): Rely on getgroups replacement.
34795         * lib/getugroups.c (getugroups): Use gid_t.
34796         * tests/test-getgroups.c (main): Likewise.
34797         * NEWS: Mention the signature change.
34798         * doc/posix-functions/getgroups.texi (getgroups): Mention the
34799         problem with signature.
34800         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
34801         GETGROUPS_T is still useful for setgroups.
34802
34803         getgroups, getugroups: provide stubs for mingw
34804         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
34805         * lib/getugroups.c (getugroups): Likewise.
34806         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
34807         function.  Modernize replacement scheme.
34808         (gl_PREREQ_GETGROUPS): Delete.
34809         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
34810         * modules/getgroups (configure.ac): Declare witness.
34811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34812         * modules/unistd (Depends-on): Substitute witness.
34813         * lib/unistd.in.h (getgroups): Declare replacement.
34814
34815         getgroups: avoid calling exit
34816         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
34817         drop xalloc.
34818         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
34819         dependencies.
34820         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
34821         exiting, in the rare case of malloc failure.
34822
34823         getgroups: fix logic error
34824         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
34825         has more than 20 groups.
34826         * modules/getgroups-tests: New test.
34827         * tests/test-getgroups.c: New file.
34828
34829 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34830
34831         * tests/test-base64.c: Improve.
34832
34833 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34834
34835         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
34836         Blake <ebb9@byu.net>.
34837
34838 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34839
34840         * tests/test-xvasprintf.c: Add %s%s related checks.
34841
34842 2009-11-12  Eric Blake  <ebb9@byu.net>
34843
34844         version-etc: match standards.texi style
34845         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
34846         and use <> only for URLs.
34847
34848 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
34849
34850         fts: do not fail on a submount during traversal
34851         * lib/fts.c (fts_build): Read the stat info again after opening
34852         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
34853         Original report at http://bugzilla.redhat.com/501848.
34854
34855 2009-11-12  Jim Meyering  <meyering@redhat.com>
34856
34857         bootstrap: sync from coreutils
34858         * build-aux/bootstrap (bootstrap_epilogue): New function.
34859         Use git_modules_config in one more place.  This make bootstrap's
34860         --gnulib-srcdir option more useful for testing.
34861
34862         bootstrap: generalize autoheader check
34863         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
34864         AC_CONFIG_HEADERS.
34865
34866 2009-11-11  Eric Blake  <ebb9@byu.net>
34867
34868         mkfifoat: use new modules for Solaris and BSD bugs
34869         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
34870         * lib/mkfifoat.c (mknodat): Split...
34871         * lib/mknodat.c (mknodat): ...into new file.
34872         * modules/mkfifoat (Files): Ship new file.
34873         (Depends-on): Add mkfifo, mknod.
34874         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
34875         (Depends-on): Add symlink.
34876         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
34877         redundant with test_mkfifo.h.
34878         (do_mkfifoat, do_mknodat): New helpers.
34879
34880         mknod: new module
34881         * modules/mknod: New file.
34882         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
34883         * lib/mknod.c (mknod): Likewise.
34884         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34885         defaults.
34886         * modules/sys_stat (Makefile.am): Substitute them.
34887         * lib/sys_stat.in.h (mknod): Declare replacement.
34888         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34889         Document it.
34890         * doc/posix-functions/mknod.texi (mknod): Likewise.
34891         * modules/mknod-tests: New test.
34892         * tests/test-mknod.c: Likewise.
34893
34894         mkfifo: new module
34895         * modules/mkfifo: New file.
34896         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
34897         * lib/mkfifo.c (mkfifo): Likewise.
34898         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34899         defaults.
34900         * modules/sys_stat (Makefile.am): Substitute them.
34901         * lib/sys_stat.in.h (mkfifo): Declare replacement.
34902         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34903         Document it.
34904         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
34905         * modules/mkfifo-tests: New test.
34906         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
34907         from test-mkfifoat.c.
34908         * tests/test-mkfifo.c: New file.
34909
34910         readlink: detect FreeBSD bug
34911         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
34912         slash on symlink.
34913         * doc/posix-functions/readlink.texi (readlink): Document the bug.
34914         * tests/test-readlink.h (test_readlink): Enhance test.
34915
34916         symlink: detect FreeBSD bug
34917         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
34918         slash on symlink.
34919         * doc/posix-functions/symlink.texi (symlink): Document the bug.
34920         * tests/test-symlink.h (test_symlink): Enhance test.
34921
34922 2009-11-10  Eric Blake  <ebb9@byu.net>
34923
34924         link: detect FreeBSD bug
34925         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
34926         symlink.
34927         * doc/posix-functions/link.texi (link): Document the bug.
34928         * tests/test-link.h (test_link): Enhance test.
34929         * tests/test-linkat.c (main): Update caller.
34930
34931         unlink, remove: detect FreeBSD bug
34932         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
34933         slash on symlink.
34934         * doc/posix-functions/unlink.texi (unlink): Document the bug.
34935         * doc/posix-functions/remove.texi (remove): Likewise.
34936         * tests/test-unlink.h (test_unlink): Enhance test.
34937         * tests/test-remove.c (main): Likewise.
34938
34939 2009-11-09  Eric Blake  <ebb9@byu.net>
34940
34941         rename: detect FreeBSD bug
34942         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
34943         slash on symlink.
34944         * modules/renameat-tests (Depends-on): Add filenamecat.
34945         * tests/test-rename.h (test_rename): Allow one more errno.
34946         * tests/test-renameat.c (main): Likewise.
34947         * doc/posix-functions/rename.texi (rename): Document the bug.
34948
34949         open: detect FreeBSD bug
34950         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
34951         symlink.
34952         * doc/posix-functions/open.texi (open): Document the bug.
34953         * doc/posix-functions/utimes.texi (utimes): Likewise.
34954         * tests/test-open.h (test_open): Add parameters, and test symlink
34955         handling.
34956         * tests/test-open.c (main): Adjust caller.
34957         * tests/test-fcntl-safer.c (main): Likewise.
34958         * modules/open-tests (Depends-on): Add stdbool, symlink.
34959         * modules/fcntl-safer-tests (Depends-on): Likewise.
34960         * tests/test-openat.c (main): Add test-open tests.
34961
34962         stat: detect FreeBSD bug
34963         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
34964         symlink.
34965         * doc/posix-functions/stat.texi (stat): Document the bug.
34966         * tests/test-stat.h (test_stat_func): Add argument.
34967         * tests/test-stat.c (main): Adjust caller.
34968         * tests/test-fstatat.c (main): Likewise.
34969         * modules/stat-tests (Depends-on): Add stdbool, symlink.
34970         Reported by Jim Meyering.
34971
34972 2009-11-09  James Youngman  <jay@gnu.org>
34973
34974         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
34975         * lib/strftime.c: Correct placement of #include "ignore-value.h".
34976
34977 2009-11-08  Jim Meyering  <meyering@redhat.com>
34978
34979         utimens: remove invalid futimesat call
34980         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
34981         It used the file descriptor of the target file as the DIR_FD
34982         parameter and NULL as the file name.  That caused failure with
34983         errno == EFAULT on FreeBSD-8.0-rc2
34984
34985 2009-11-07  Eric Blake  <ebb9@byu.net>
34986
34987         fflush, freadseek: use fseeko, not fseek
34988         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
34989         (clear_ungetc_buffer): Avoid potential problems on large files.
34990         * lib/freadseek.c (freadseek): Likewise.
34991         * modules/freadseek (Depends-on): Add fseeko.
34992         * modules/fseek (configure.ac): Set a witness.
34993         * tests/test-fflush.c (main): Use fseeko.
34994         * tests/test-fpurge.c (fseek): Disable link warning.
34995         * tests/test-freadable.c (fseek): Likewise.
34996         * tests/test-freading.c (fseek): Likewise.
34997         * tests/test-fseeko.c (fseek): Likewise.
34998         * tests/test-ftell.c (fseek): Likewise.
34999         * tests/test-ftello.c (fseek): Likewise.
35000         * tests/test-fwritable.c (fseek): Likewise.
35001         * tests/test-fwriting.c (fseek): Likewise.
35002
35003 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35004
35005         * modules/memchr (Depends-on): Drop getpagesize dependency.
35006
35007 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35008
35009         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
35010         Reported by Ludovic Courtès.
35011         * build-aux/pmccabe2html: Improve example usage.
35012         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
35013
35014 2009-11-06  Jim Meyering  <meyering@redhat.com>
35015
35016         do-release-commit-and-tag: New module.
35017         Automate the release-commit and tag process.
35018         * build-aux/do-release-commit-and-tag: New script, from coreutils.
35019         * modules/do-release-commit-and-tag: New file.
35020         * MODULES.html.sh (Support for maintaining and releasing): Add it.
35021
35022 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35023
35024         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
35025         because test-select.c uses inet_pton.
35026
35027 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35028
35029         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
35030         GETADDRINFO_LIB.  Bump serial number.
35031         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
35032         Suggested by Eric Blake <ebb9@byu.net>.
35033
35034 2009-11-05  Eric Blake  <ebb9@byu.net>
35035
35036         strtod: detect darwin bug
35037         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
35038         Reported by Leo Davis.
35039
35040         freopen-safer: new module
35041         * modules/freopen-safer: New module.
35042         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
35043         * lib/freopen-safer.c (freopen_safer): New file.
35044         * lib/stdio-safer.h (freopen_safer): New declaration.
35045         * lib/stdio--.h (freopen): New override.
35046         * MODULES.html.sh (File stream based Input/Output): Mention it.
35047         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
35048         freopen-safer module.
35049         * doc/posix-functions/stderr.texi (stderr): Likewise.
35050         * doc/posix-functions/stdin.texi (stdin): Likewise.
35051         * doc/posix-functions/stdout.texi (stdout): Likewise.
35052         * modules/freopen-safer-tests: New test.
35053         * tests/test-reopen-safer.c: New file.
35054
35055 2009-11-05  Jim Meyering  <meyering@redhat.com>
35056
35057         maint.mk: Prohibit inclusion of "close-stream.h" without use.
35058         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
35059
35060 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35061
35062         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
35063
35064 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35065
35066         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
35067
35068 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35069
35070         Fix link error.
35071         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
35072         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35073
35074 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35075
35076         * tests/test-func.c: Also test value of __func__.
35077
35078 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35079
35080         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
35081         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
35082
35083 2009-11-05  Bruno Haible  <bruno@clisp.org>
35084
35085         Fix link error.
35086         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
35087         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35088         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
35089
35090 2009-11-05  Bruno Haible  <bruno@clisp.org>
35091
35092         Tests for module 'inet_pton'.
35093         * modules/inet_pton-tests: New file.
35094         * tests/test-inet_pton.c: New file.
35095
35096 2009-11-05  Bruno Haible  <bruno@clisp.org>
35097
35098         Tests for module 'inet_ntop'.
35099         * modules/inet_ntop-tests: New file.
35100         * tests/test-inet_ntop.c: New file.
35101
35102 2009-11-04  Eric Blake  <ebb9@byu.net>
35103
35104         stdlib-safer: wrap all mkstemp variants
35105         * modules/mkostemp (configure.ac): Set witness.
35106         * modules/mkostemps (configure.ac): Likewise.
35107         * modules/mkstemps (configure.ac): Likewise.
35108         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
35109         (mkstemps_safer): Wrap more functions.
35110         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
35111         wrapping.
35112         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
35113         (mkstemps_safer): Implement the wrappers.
35114
35115         mkstemps, mkostemps: new modules
35116         * modules/mkostemps: New module.
35117         * modules/mkstemps: Likewise.
35118         * lib/mkostemps.c (mkostemps): New file.
35119         * lib/mkstemps.c (mkstemps): Likewise.
35120         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
35121         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
35122         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
35123         * modules/stdlib (Makefile.am): Substitute them.
35124         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
35125         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
35126         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
35127         * doc/gnulib.texi (Glibc stdlib.h): Include them.
35128         * MODULES.html.sh (File system functions): Mention them.
35129
35130         tempname: resync from glibc
35131         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
35132         same values for __GT_FILE as glibc.  Abort even when assertions
35133         are disabled.
35134         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
35135         match its value otherwise.  Allow idempotent inclusion.
35136         * lib/mkdtemp.c (mkdtemp): Adjust caller.
35137         * lib/mkostemp.c (mkostemp): Likewise.
35138         * lib/mkstemp.c (mkstemp): Likewise.
35139         * lib/tmpfile.c (tmpfile): Likewise.
35140         * NEWS: Document this.
35141
35142         utimens: fix use of futimens on older Linux
35143         * lib/utimens.c (fdutimens): Use updated, rather than original,
35144         timespec to avoid bug in older Linux kernel.
35145         Reported by Simon Josefsson.
35146
35147 2009-11-04  Bruno Haible  <bruno@clisp.org>
35148
35149         Make num_processors more flexible and consistent.
35150         * lib/nproc.h (enum nproc_query): New type.
35151         (num_processors): Add a 'query' argument.
35152         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
35153         (num_processors): Add a 'query' argument. Test the value of the
35154         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
35155         mingw, count the number of CPUs available for the current process.
35156         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
35157         Check for sched_getaffinity and sched_getaffinity_np.
35158         * modules/nproc (Depends-on): Add c-ctype, extensions.
35159         * NEWS: Mention the change.
35160
35161 2009-11-03  Bruno Haible  <bruno@clisp.org>
35162
35163         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
35164
35165 2009-11-03  Jim Meyering  <meyering@redhat.com>
35166
35167         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
35168         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
35169         if it is defined.
35170
35171 2009-11-02  Eric Blake  <ebb9@byu.net>
35172
35173         mktime, timegm: share common declaration
35174         * lib/mktime-internal.h: New file.
35175         * lib/mktime.c: Use it rather than open-coding a declaration.
35176         * lib/timegm.c: Likewise.
35177         * modules/mktime (Files): Ship it.
35178         * modules/timegm (Files): Likewise.
35179         Suggested by Bruno Haible.
35180
35181         test-update-copyright: update test to match script changes
35182         * tests/test-update-copyright.sh: Avoid hard-coding perl
35183         location.  Don't update *.bak created by earlier runs.
35184
35185 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
35186             Simon Josefsson  <simon@josefsson.org>
35187             Bruno Haible  <bruno@clisp.org>
35188
35189         Fix link error on Solaris 8.
35190         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
35191         also in libnsl. Define also INET_PTON_LIB.
35192         * modules/inet_pton (Link): New section.
35193
35194 2009-11-02  Simon Josefsson  <simon@josefsson.org>
35195             Bruno Haible  <bruno@clisp.org>
35196
35197         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
35198         * modules/inet_ntop (Link): New section.
35199         Reported by Boyan Kasarov <bkasarov@gmail.com>.
35200
35201 2009-11-02  Eric Blake  <ebb9@byu.net>
35202
35203         maint: avoid compiler warnings in m4 macros
35204         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
35205         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
35206
35207 2009-11-02  Simon Josefsson  <simon@josefsson.org>
35208
35209         * m4/pmccabe2html.m4: Remove file.
35210         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
35211         function.  Change maintainer.
35212         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
35213         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
35214         Courtès).
35215
35216 2009-10-31  Eric Blake  <ebb9@byu.net>
35217
35218         fseeko: fix m4 regression
35219         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
35220         regression from 2009-10-27.
35221         Reported by Ralf Wildenhues.
35222
35223 2009-10-31  Jim Meyering  <meyering@redhat.com>
35224
35225         inttostr: aesthetics and improved (compile-time) safety
35226         Define inttype_is_signed rather than inttype_is_unsigned,
35227         since the sole use is via "#if inttype_is_signed".
35228         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
35229         inttype_is_unsigned.
35230         * lib/offtostr.c (inttype_is_signed): Likewise.
35231         * lib/uinttostr.c (inttype_is_signed): Likewise.
35232         * lib/umaxtostr.c (inttype_is_signed): Likewise.
35233         * lib/inttostr.c (inttostr): Use verify to cross-check the
35234         inttype_is_signed value and the signedness of the actual type.
35235         * modules/inttostr (Depends-on): Add verify.
35236
35237 2009-10-30  Eric Blake  <ebb9@byu.net>
35238
35239         build: avoid compiler warnings
35240         * lib/fchmodat.c (lchmod): Mark unused variables.
35241         * lib/getopt.c (_getopt_initialize): Likewise.
35242         * lib/mktime.c (__mktime_internal): Provide prototype.
35243         * lib/inttostr.c (inttostr): Avoid compiler warning even with
35244         older gcc that do not understand #pragma GCC diagnostic.
35245         * lib/uinttostr.c (inttype_is_unsigned): Define.
35246         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
35247
35248 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
35249
35250         stat: fix compilation on AIX
35251         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
35252         only see struct stat64.
35253
35254 2009-10-30  Eric Blake  <ebb9@byu.net>
35255
35256         exclude: make more robust
35257         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
35258         rather than masking a coding bug.
35259         Suggested by Bruno Haible.
35260
35261 2009-10-30  Jim Meyering  <meyering@redhat.com>
35262
35263         perl scripts: remove #!/usr/bin/perl in favor of more portable...
35264         Rather than putting #!/usr/bin/perl on the first line,
35265         start with a variant of what's recommended by "man perlrun" that
35266         invokes the first "perl" program from your shell's search path.
35267         * build-aux/gitlog-to-changelog: Replace #!... as above.
35268         Add a "Local Variables" perl mode setting.
35269         Prompted by a patch from Ludovic Courtès.
35270         Improved by Eric Blake.
35271         * build-aux/useless-if-before-free: Likewise.
35272         * build-aux/announce-gen: Likewise.
35273         * build-aux/update-copyright: Likewise.
35274
35275 2009-10-29  Eric Blake  <ebb9@byu.net>
35276
35277         filenamecat-lgpl: adjust clients
35278         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
35279         filenamecat.
35280         * modules/renameat (Depends-on): Likewise.
35281
35282         filenamecat: split into filenamecat-lgpl
35283         * modules/filenamecat-lgpl: New module.
35284         * modules/filenamecat (Files): Move library-safe files into
35285         filenamecat-lgpl.
35286         (Depends-on): Add filenamecat-lgpl.
35287         (configure.ac): Declare witness.
35288         * lib/filenamecat.h (file_name_concat): Only declare when using
35289         GPL module.
35290         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
35291         Move...
35292         * lib/filenamecat-lgpl.c: ...into new file.
35293         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
35294         (gl_FILE_NAME_CONCAT): Use it.
35295         * MODULES.html.sh (File system functions): Mention new module.
35296
35297         argp: avoid memory leak
35298         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
35299         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
35300         base_name, since the latter malloc()s and can call exit().
35301         Leak introduced 2006-07-03.
35302
35303         dirname-lgpl: adjust clients that don't need full dirname
35304         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
35305         * modules/filenamecat (Depends-on): Likewise.
35306         * modules/linkat (Depends-on): Likewise.
35307         * modules/mkancesdirs (Depends-on): Likewise.
35308         * modules/mkdir (Depends-on): Likewise.
35309         * modules/openat (Depends-on): Likewise.
35310         * modules/savewd (Depends-on): Likewise.
35311         * modules/rename (Depends-on): Likewise.
35312         (License): Relax license.
35313         * modules/mkdir-tests (Depends-on): Drop progname.
35314         (Makefile.am): Delete unneeded LDADD.
35315         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
35316
35317         dirname: split into dirname-lgpl
35318         * modules/dirname-lgpl: New module.
35319         * modules/dirname (Files): Move library-safe files into
35320         dirname-lgpl.
35321         (Depends-on): Add dirname-lgpl.
35322         (configure.ac): Declare witness.
35323         * modules/double-slash-root (License): Relax license.
35324         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
35325         module.
35326         * lib/dirname.c (dir_len, mdir_name): Move...
35327         * lib/dirname-lgpl.c: ...into new file.
35328         * lib/basename.c (last_component, base_len): Move...
35329         * lib/basename-lgpl.c: ...into new file.
35330         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
35331         (gl_DIRNAME): Use it.
35332         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
35333         Mention new module.
35334         * modules/dirname-tests (Depends-on): Add progname.
35335         * tests/test-dirname.c (program_name): Delete.
35336
35337         mkdir: make safe for libraries
35338         * modules/mkdir (Depends-on): Drop xalloc.
35339         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
35340         exit.
35341
35342         tests: avoid some compiler warnings
35343         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
35344         literals.
35345         * tests/test-memchr.c (main): Avoid type mismatch.
35346         * tests/test-arpa_inet.c (main): Avoid unused parameters.
35347         * tests/test-base64.c (main): Likewise.
35348         * tests/test-getdelim.c (main): Likewise.
35349         * tests/test-gethostname.c (main): Likewise.
35350         * tests/test-getline.c (main): Likewise.
35351         * tests/test-netinet_in.c (main): Likewise.
35352         * tests/test-select.c (open_server_socket, main): Likewise.
35353         * tests/test-select-stdin.c (main): Likewise.
35354         * tests/test-sockets.c (main): Likewise.
35355         * tests/test-strsignal.c (main): Likewise.
35356         * tests/test-sys_select.c (main): Likewise.
35357         * tests/test-sys_socket.c (main): Likewise.
35358         * tests/test-u64.c (main): Likewise.
35359         * tests/test-xfprintf-posix.c (main): Likewise.
35360         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
35361
35362         sockets: avoid compiler warning
35363         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
35364
35365         maint: detect usage(1) and other suspicious exits
35366         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
35367
35368 2009-10-29  Jim Meyering  <meyering@redhat.com>
35369
35370         timespec: long-to-int truncation could make timespec_cmp malfunction
35371         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
35372         a multiple of 2^32 nanoseconds as no difference.
35373
35374 2009-10-28  Jim Meyering  <meyering@redhat.com>
35375
35376         fprintftime: wrap macro code argument in "do {...} while(0)"
35377         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
35378         cpy macro must be a statement that can be followed by a semicolon.
35379         Now that the else clause contains a comment and is hence longer
35380         than one line, I require curly braces.  That in turn requires
35381         that we wrap this code block in the standard do...while(0).
35382
35383         fprintftime: remove stray semicolon from previous change
35384         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
35385
35386         fprintftime: avoid a warning about ignored fwrite return value
35387         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
35388         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
35389         that is unsafe.
35390         * modules/fprintftime (Depends-on): Add ignore-value.
35391
35392         exclude: avoid an unwarranted warning
35393         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
35394
35395 2009-10-27  Eric Blake  <ebb9@byu.net>
35396
35397         fseek: avoid compilation failure when fflush is replaced
35398         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
35399         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
35400         module is in use.
35401         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
35402         module is not in use; since REPLACE_FSEEK worked otherwise.
35403         (GNULIB_FTELLO): Likewise for ftell.
35404         Reported by Ian Beckwith and others.
35405
35406 2009-10-27  Bruno Haible  <bruno@clisp.org>
35407
35408         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
35409         Reported by Jim Meyering.
35410
35411 2009-10-27  Jim Meyering  <jim@meyering.net>
35412             Bruno Haible  <bruno@clisp.org>
35413
35414         Avoid warning despite dropping the return value of fwrite.
35415         * lib/unicodeio.c: Include ignore-value.h.
35416         (fwrite_success_callback): Explicitly ignore fwrite's return value.
35417         * modules/unicodeio (Depends-on): Add ignore-value.
35418
35419 2009-10-26  Eric Blake  <ebb9@byu.net>
35420
35421         areadlinkat: fix fallback path
35422         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
35423         pointer and zero.
35424
35425 2009-10-22  Pádraig Brady  <P@draigBrady.com>
35426
35427         Use a better IO block size for modern systems
35428         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
35429         * lib/md2.c: Likewise.
35430         * lib/md4.c: Likewise.
35431         * lib/md5.c: Likewise.
35432         * lib/sha1.c: Likewise.
35433         * lib/sha256.c: Likewise.
35434         * lib/sha512.c: Likewise.
35435
35436 2009-10-22  Eric Blake  <ebb9@byu.net>
35437
35438         tests: avoid several compiler warnings
35439         * tests/test-getcwd.c (main): Avoid buffer underflow.
35440         * tests/test-getdate.c (main): String literals are not safe with
35441         putenv, so use setenv.  Declare unused argument.
35442         * modules/getdate-tests (Depends-on): Add setenv.
35443         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
35444         problems with string literals in char *.
35445         * tests/test-hash.c (main): Avoid shadowing declaration.
35446         (insert_new): Treat string literals as char const *.
35447         * tests/test-getopt.h (test_getopt): Likewise.
35448         (getopt_loop): Alter types to minimize casting elsewhere.
35449         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
35450         (test_getopt_long_posix): Likewise.
35451         (do_getopt_long): Add wrapper to minimize casting.
35452         * tests/test-atexit.c (clear_temp_file): Use void.
35453         * tests/test-areadlink-with-size.c (main): Declare unused
35454         arguments.
35455         * tests/test-areadlink.c (main): Likewise.
35456         * tests/test-areadlinkat-with-size.c (main): Likewise.
35457         * tests/test-areadlinkat.c (main): Likewise.
35458         * tests/test-canonicalize-lgpl.c (main): Likewise.
35459         * tests/test-canonicalize.c (main): Likewise.
35460         * tests/test-dirent-safer.c (main): Likewise.
35461         * tests/test-dirname.c (main): Likewise.
35462         * tests/test-dup2.c (main): Likewise.
35463         * tests/test-fchdir.c (main): Likewise.
35464         * tests/test-fcntl-h.c (main): Likewise.
35465         * tests/test-fcntl-safer.c (main): Likewise.
35466         * tests/test-fdopendir.c (main): Likewise.
35467         * tests/test-fdutimensat.c (main): Likewise.
35468         * tests/test-fflush.c (main): Likewise.
35469         * tests/test-filenamecat.c (main): Likewise.
35470         * tests/test-filevercmp.c (main): Likewise.
35471         * tests/test-fopen-safer.c (main): Likewise.
35472         * tests/test-fopen.c (main): Likewise.
35473         * tests/test-fpending.c (main): Likewise.
35474         * tests/test-fpurge.c (main): Likewise.
35475         * tests/test-freading.c (main): Likewise.
35476         * tests/test-fstatat.c (main): Likewise.
35477         * tests/test-fsync.c (main): Likewise.
35478         * tests/test-futimens.c (main): Likewise.
35479         * tests/test-getndelim2.c (main): Likewise.
35480         * tests/test-gettimeofday.c (main): Likewise.
35481         * tests/test-getopt.c (main): Likewise.
35482         * tests/test-i-ring.c (main): Likewise.
35483         * tests/test-inttypes.c (main): Likewise.
35484         * tests/test-link.c (main): Likewise.
35485         * tests/test-lstat.c (main): Likewise.
35486         * tests/test-math.c (main): Likewise.
35487         * tests/test-md5.c (main): Likewise.
35488         * tests/test-memchr2.c (main): Likewise.
35489         * tests/test-memrchr.c (main): Likewise.
35490         * tests/test-mkdir.c (main): Likewise.
35491         * tests/test-mkdirat.c (main): Likewise.
35492         * tests/test-mkfifoat.c (main): Likewise.
35493         * tests/test-open.c (main): Likewise.
35494         * tests/test-openat-safer.c (main): Likewise.
35495         * tests/test-openat.c (main): Likewise.
35496         * tests/test-quotearg.c (main): Likewise.
35497         * tests/test-rawmemchr.c (main): Likewise.
35498         * tests/test-readlink.c (main): Likewise.
35499         * tests/test-remove.c (main): Likewise.
35500         * tests/test-rename.c (main): Likewise.
35501         * tests/test-renameat.c (main): Likewise.
35502         * tests/test-rmdir.c (main): Likewise.
35503         * tests/test-sha1.c (main): Likewise.
35504         * tests/test-signal.c (main): Likewise.
35505         * tests/test-sigaction.c (main): Likewise.
35506         * tests/test-stat.c (main): Likewise.
35507         * tests/test-stat-time.c (main): Likewise.
35508         * tests/test-stddef.c (main): Likewise.
35509         * tests/test-stdint.c (main): Likewise.
35510         * tests/test-stdio.c (main): Likewise.
35511         * tests/test-stdlib.c (main): Likewise.
35512         * tests/test-strchrnul.c (main): Likewise.
35513         * tests/test-strerror.c (main): Likewise.
35514         * tests/test-string.c (main): Likewise.
35515         * tests/test-strtod.c (main): Likewise.
35516         * tests/test-strverscmp.c (main): Likewise.
35517         * tests/test-symlink.c (main): Likewise.
35518         * tests/test-symlinkat.c (main): Likewise.
35519         * tests/test-sys_stat.c (main): Likewise.
35520         * tests/test-sys_time.c (main): Likewise.
35521         * tests/test-time.c (main): Likewise.
35522         * tests/test-unistd.c (main): Likewise.
35523         * tests/test-unlink.c (main): Likewise.
35524         * tests/test-unlinkat.c (main): Likewise.
35525         * tests/test-utimens.c (main): Likewise.
35526         * tests/test-utimensat.c (main): Likewise.
35527         * tests/test-version-etc.c (main): Likewise.
35528         * tests/test-wchar.c (main): Likewise.
35529         * tests/test-wctype.c (main): Likewise.
35530         * tests/test-xprintf-posix.c (main): Likewise.
35531         * tests/test-posixtm.c (main): Likewise.
35532         (STREQ): Delete unused macro.
35533         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
35534         shadowed variables.
35535         * tests/test-memchr.c (main): Likewise.
35536
35537 2009-10-21  Eric Blake  <ebb9@byu.net>
35538
35539         areadlinkat: avoid failure on older glibc
35540         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
35541         rather than mis-comparing 0 against FUNC_RESULT of char*.
35542
35543 2009-10-21  Bruno Haible  <bruno@clisp.org>
35544
35545         * modules/stpncpy (License): Relicense under LGPLv2+.
35546         Reported by David Lutterkort <lutter@redhat.com>.
35547
35548 2009-10-20  Eric Blake  <ebb9@byu.net>
35549
35550         utimensat: work around Solaris 9 bug
35551         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
35552         has trailing slash bugs.
35553         * tests/test-lutimens.h (test_lutimens): Enhance test.
35554         * tests/test-utimens.h (test_utimens): Likewise.
35555         * doc/posix-functions/utime.texi (utime): Enhance documentation.
35556         * doc/posix-functions/utimes.texi (utimes): Likewise.
35557         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35558         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
35559         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
35560         * doc/posix-functions/futimens.texi (futimens): Likewise.
35561
35562         fdutimensat: new module
35563         * modules/fdutimensat: New file.
35564         * lib/fdutimensat.c (fdutimensat): Likewise.
35565         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
35566         * MODULES.html.sh (File system functions): Mention module.
35567         * modules/fdutimensat-tests: New test.
35568         * tests/test-fdutimensat.c: Likewise.
35569
35570         doc: regenerate INSTALL
35571         * doc/INSTALL: Reflect recent autoconf update.
35572         * doc/INSTALL.ISO: Likewise.
35573         * doc/INSTALL.UTF-8: Likewise.
35574
35575 2009-10-20  Pádraig Brady  <P@draigBrady.com>
35576
35577         acl: warn if ACL support is not detected
35578         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
35579
35580 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
35581
35582         * lib/nproc.h: Add extern "C" block for C++.
35583
35584 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
35585             Bruno Haible  <bruno@clisp.org>
35586
35587         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
35588         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
35589         * doc/posix-functions/isalpha.texi: Likewise.
35590         * doc/posix-functions/isblank.texi: Likewise.
35591         * doc/posix-functions/iscntrl.texi: Likewise.
35592         * doc/posix-functions/isdigit.texi: Likewise.
35593         * doc/posix-functions/isgraph.texi: Likewise.
35594         * doc/posix-functions/islower.texi: Likewise.
35595         * doc/posix-functions/isprint.texi: Likewise.
35596         * doc/posix-functions/ispunct.texi: Likewise.
35597         * doc/posix-functions/isspace.texi: Likewise.
35598         * doc/posix-functions/isupper.texi: Likewise.
35599         * doc/posix-functions/isxdigit.texi: Likewise.
35600
35601 2009-10-18  Bruno Haible  <bruno@clisp.org>
35602
35603         Tests for module 'isblank'.
35604         * modules/isblank-tests: New file.
35605         * tests/test-isblank.c: New file.
35606
35607         New module 'isblank'.
35608         * lib/isblank.c: New file.
35609         * m4/isblank.m4: New file.
35610         * modules/isblank: New file.
35611         * doc/posix-functions/isblank.texi: Mention the new module.
35612
35613 2009-10-18  Bruno Haible  <bruno@clisp.org>
35614
35615         New module 'ctype'.
35616         * lib/ctype.in.h: New file.
35617         * m4/ctype.m4: New file.
35618         * modules/ctype: New file.
35619         * doc/posix-headers/ctype.texi: Mention the new module.
35620
35621 2009-10-18  Jim Meyering  <meyering@redhat.com>
35622
35623         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
35624         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
35625         right after its initialization, rather than farther down.
35626         Keeping these in close proximity makes it easier to ensure
35627         that each such variable is initialized.  E.g.,
35628
35629             LIB_CLOCK_GETTIME=
35630             AC_SUBST([LIB_CLOCK_GETTIME])
35631
35632         This change also increments these serial numbers.
35633         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
35634         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35635         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35636
35637 2009-10-18  Bruno Haible  <bruno@clisp.org>
35638
35639         Don't let environment variables perturb build.
35640         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
35641         (gl_PREREQ_GETHRXTIME): ... not here.
35642
35643 2009-10-18  Bruno Haible  <bruno@clisp.org>
35644
35645         Avoid symlink attack in localcharset module.
35646         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
35647         (O_NOFOLLOW): Define fallback.
35648         (get_charset_aliases): Don't open the file if it is a symbolic link.
35649         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
35650         gl_FCNTL_H.
35651         (gl_FCNTL_H): Require it.
35652         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
35653         * modules/localcharset (Files): Add m4/fcntl_h.m4.
35654         Reported by Fergal Glynn <fglynn@veracode.com>.
35655
35656 2009-10-18  Bruno Haible  <bruno@clisp.org>
35657
35658         Implement nproc for mingw.
35659         * lib/nproc.c: Include <windows.h>
35660         (num_processors): On native Windows platforms, try GetSystemInfo.
35661
35662 2009-10-18  Bruno Haible  <bruno@clisp.org>
35663
35664         Implement nproc for IRIX.
35665         * lib/nproc.c: Include <sys/sysmp.h>.
35666         (num_processors): On IRIX systems, try sysmp.
35667         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
35668
35669 2009-10-18  Bruno Haible  <bruno@clisp.org>
35670
35671         Implement nproc for HP-UX.
35672         * lib/nproc.c: Include <sys/pstat.h>
35673         (num_processors): On HP-UX systems, try pstat_getdynamic.
35674         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
35675         pstat_getdynamic.
35676
35677 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
35678             Bruno Haible  <bruno@clisp.org>
35679
35680         Implement nproc for NetBSD, OpenBSD.
35681         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
35682         (ARRAY_SIZE): New macro.
35683         (num_processors): On BSD systems, try sysctl of HW_NCPU.
35684         * m4/nproc.m4: New file.
35685         * modules/nproc (Files): Add m4/nproc.m4.
35686         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
35687         (Makefile.am): Instead, augment lib_SOURCES.
35688
35689 2009-10-18  Bruno Haible  <bruno@clisp.org>
35690
35691         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
35692         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
35693         sys/param.h.
35694
35695 2009-10-16  Eric Blake  <ebb9@byu.net>
35696
35697         utimensat: new module
35698         * modules/utimensat: New file.
35699         * lib/utimensat.c (utimensat): Likewise.
35700         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35701         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
35702         so we can work around Linux bugs.
35703         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35704         * modules/sys_stat (Makefile.am): Substitute them.
35705         * lib/sys_stat.in.h (utimensat): Declare it.
35706         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35707         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35708         * modules/utimensat-tests: New test.
35709         * tests/test-utimensat.c: Likewise.
35710
35711         utimens: let lutimens work on non-symlinks
35712         * lib/utimens.c (lutimens): Fall back to utimens rather than
35713         failing with ENOSYS, when file is not a symlink.
35714         (utimens): Reduce redirection.
35715         * tests/test-lutimens.h (test_lutimens): Update test to cover
35716         non-symlinks.
35717         * tests/test-utimens.h (test_utimens): Update test to cover
35718         symlinks.
35719         * tests/test-utimens.c (main): Update caller.
35720
35721         utimens: cache whether utimensat syscall works
35722         * lib/utimens.c (utimensat_works_really): New cache variable.
35723         (fdutimens, lutimens): Use it to avoid failing syscall.
35724
35725         test-stat-time, test-utimens: improve portability
35726         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
35727         ext4 on alpha, and for cygwin.
35728         * tests/test-utimens-common.h: New file.
35729         (nap): Factor delays into single function.
35730         * tests/test-lutimens.h (test_lutimens): Use new header.
35731         * tests/test-futimens.h (test_futimens): Likewise.
35732         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
35733         timestamps to occur from same machine, as was done previously for
35734         test_utimens.
35735         * modules/utimens-tests (Files): Ship new file.
35736         * modules/futimens-tests (Files): Likewise.
35737         Reported in part by Jim Meyering.
35738
35739         sys_stat: sort replacement declarations
35740         * lib/sys_stat.in.h: Sort declarations.
35741         * lib/futimens.c (futimens): Fix typo.
35742
35743 2009-10-15  Jim Meyering  <meyering@redhat.com>
35744
35745         don't let environment settings perturb build
35746         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
35747         could cause a configure-time and/or build-time malfunction.
35748         Typically, a configure-time function-in-library test is performed
35749         via code like this:
35750
35751           LIB_VAR=
35752           AC_SUBST([LIB_VAR])
35753           prefix_saved_LIBS=$LIBS
35754             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
35755                        [test "$ac_cv_search_FUNC" = "none required" ||
35756                         LIB_VAR=$ac_cv_search_FUNC])
35757           LIBS=$prefix_saved_LIBS
35758
35759         However, in each of the files affected by this change, the LIB_VAR=
35760         initialization was omitted.  Thus, when set in the environment, its
35761         value would propagate into generated Makefiles when FUNC is not found
35762         in LIB_NAME.
35763         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
35764         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35765         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35766
35767 2009-10-14  Eric Blake  <ebb9@byu.net>
35768
35769         fchdir: avoid infinite recursion in mingw
35770         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
35771         recursing.
35772
35773         test-stat-time: port to mingw
35774         * tests/test-stat-time.c (force_unlink): Return a value.
35775         (test_ctime) [W32]: Fix compilation error.
35776         (nap): Don't call usleep with too large an argument.  Use
35777         force_unlink.
35778         * doc/pastposix-functions/usleep.texi (usleep): Document the
35779         portability issue.
35780
35781 2009-10-13  Jim Meyering  <meyering@redhat.com>
35782
35783         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
35784         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
35785         * modules/pipe-filter-ii: Likewise.
35786         * modules/sys_socket-tests: Likewise.
35787         * modules/tsearch-tests: Likewise.
35788         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
35789         (check): Depend on it.
35790
35791 2009-10-12  Eric Blake  <ebb9@byu.net>
35792
35793         utimens-tests: port to NFS file systems
35794         * tests/test-utimens.h (test_utimens): Refactor utimecmp
35795         comparisons to avoid spurious failures from timestamp drift
35796         between NFS machines.
35797
35798 2009-10-12  Eric Blake  <ebb9@byu.net>
35799
35800         stat-time-tests: minor cleanups
35801         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
35802         * tests/test-stat-time.c (nap): Separate assignment from call.
35803         Suggested by Paolo Bonzini and Bruno Haible.
35804
35805         sys_stat: guarantee struct timespec
35806         * lib/sys_stat.in.h (includes): Always include <time.h>
35807         * modules/sys_stat (Depends-on): Add time.
35808         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
35809         mode_t permission values.
35810         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
35811         get at subsecond timestamps.
35812
35813 2009-10-10  Eric Blake  <ebb9@byu.net>
35814
35815         futimens: new module
35816         * modules/futimens: New file.
35817         * lib/futimens.c (futimens): Likewise.
35818         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
35819         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
35820         we can work around Linux bugs.
35821         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35822         * modules/sys_stat (Makefile.am): Substitute them.
35823         * lib/sys_stat.in.h (futimens): Declare it.
35824         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35825         * doc/posix-functions/futimens.texi (futimens): Likewise.
35826         * modules/futimens-tests: New test.
35827         * tests/test-futimens.c: Likewise.
35828
35829         utimens: introduce fdutimens
35830         * lib/utimens.h (fdutimens): New prototype.
35831         * lib/utimens.c (gl_futimens): Move guts...
35832         (fdutimens): ...to new interface.
35833         * tests/test-utimens.c (do_fdutimens): Use it.
35834
35835         utimens: add UTIME_NOW and UTIME_OMIT support
35836         * lib/utimens.c (validate_timespec, update_timespec): New helper
35837         functions.
35838         (gl_futimens, lutimens): Use them.
35839         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
35840         stdbool, sys_stat.
35841         (Link): Mention resulting library dependency.
35842         * modules/utimecmp (Link): Likewise.
35843         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
35844         (Makefile.am): Pick up library dependency.
35845         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
35846         definition.
35847         * tests/test-sys_stat.c: Test the definitions.
35848         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
35849         * NEWS: Document library dependency.
35850
35851         utimecmp: support symlink timestamps
35852         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
35853         hashing when possible.  Use pathconf when available.
35854         (SYSCALL_RESOLUTION): Recognize tighter resolution.
35855         * modules/utimecmp (Depends-on): Add lstat.
35856
35857         utimens: add lutimens interface
35858         * lib/utimens.c (lutimens): New function.
35859         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
35860         * lib/utimens.h (lutimens): Declare new interface.
35861         * tests/test-utimens.c (main): Enhance test.
35862         * tests/test-lutimens.h (test_lutimens): New file.
35863         * modules/utimens-tests (Files): Distribute it.
35864         (Depends-on): Add symlink.
35865         (configure.ac): Check for usleep.
35866
35867         utimens: validate futimens usage
35868         * lib/utimens.c (gl_futimens): Require valid fd up front, using
35869         fewer syscalls on failure later on.  Avoid compiler warning on
35870         mingw.
35871         * modules/utimens (Depends-on): Add dup2.
35872
35873         utimens: add test
35874         * modules/utimens-tests: New test.
35875         * tests/test-utimens.h: New file.
35876         * tests/test-futimens.h: Likewise.
35877         * tests/test-utimens.c: Likewise.
35878
35879         doc: mention timestamp portability issues
35880         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
35881         instead.
35882         * doc/posix-functions/utime.texi (utime): Likewise.
35883         * doc/posix-functions/utimes.texi (utimes): Likewise.
35884         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
35885         instead.
35886         * doc/posix-functions/futimens.texi (futimens): Mention utimens
35887         module.
35888         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35889         Mention weakness with symlink timestamps.
35890         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
35891         to utimensat/futimens instead.
35892         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
35893
35894         test-dup2: enhance test
35895         * tests/test-dup2.c (main): Also check AT_FDCWD.
35896
35897         test-stat-time: avoid more spurious failures
35898         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
35899         xfs; and avoid race if the two timestamps cross quantization edge.
35900
35901         relocatable: prefer 'file system' over 'filesystem'
35902         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
35903         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
35904         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
35905         * doc/relocatable.texi (Enabling Relocatability): Likewise.
35906         * lib/relocatable.c (compute_curr_prefix): Likewise.
35907
35908 2009-10-10  Jim Meyering  <meyering@redhat.com>
35909
35910         stat-time-tests: check for the usleep function
35911         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
35912
35913 2009-10-10  Bruno Haible  <bruno@clisp.org>
35914
35915         * modules/xnanosleep: Put the Link section after the Include section.
35916
35917 2009-10-09  Eric Blake  <ebb9@byu.net>
35918
35919         dup2: work around FreeBSD 6.1 bug
35920         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
35921         * doc/posix-functions/dup2.texi (dup2): Document it.
35922         Reported by Nelson H. F. Beebe and Jim Meyering.
35923
35924         test-stat-time: port to buggy NFS clients
35925         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
35926         (test_ctime): Also skip test if mtime and ctime are skewed.
35927
35928         maint: prefer 'file system' over 'filesystem'
35929         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35930         * doc/posix-functions/lstat.texi (lstat): Likewise.
35931         * lib/file-has-acl.c (file_has_acl): Likewise.
35932         * lib/fwriteerror.c [TEST]: Likewise.
35933         * tests/test-areadlink.h (test_areadlink): Likewise.
35934         * tests/test-areadlinkat-with-size.c (main): Likewise.
35935         * tests/test-areadlinkat.c (main): Likewise.
35936         * tests/test-canonicalize-lgpl.c (main): Likewise.
35937         * tests/test-canonicalize.c (main): Likewise.
35938         * tests/test-fstatat.c (main): Likewise.
35939         * tests/test-linkat.c (main): Likewise.
35940         * tests/test-lstat.h (test_lstat_func): Likewise.
35941         * tests/test-mkdir.h (test_mkdir): Likewise.
35942         * tests/test-readlink.h (test_readlink): Likewise.
35943         * tests/test-remove.c (main): Likewise.
35944         * tests/test-rename.h (test_rename): Likewise.
35945         * tests/test-renameat.c (main): Likewise.
35946         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35947         * tests/test-symlink.h (test_symlink): Likewise.
35948         * tests/test-symlinkat.c (main): Likewise.
35949         * tests/test-unlink.h (test_unlink_func): Likewise.
35950         * tests/test-unlinkat.c (main): Likewise.
35951
35952         maint: make realtime library usage explicit
35953         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
35954         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
35955         * modules/settime (Link): Likewise.
35956         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
35957
35958         test-stat-time: speed up execution
35959         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
35960         warning on mingw.
35961         (nap): New helper function.
35962         (prepare_test): Use it to reduce sleep time.
35963         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
35964         execution.
35965         * modules/stat-time-tests (configure.ac): Check for usleep.
35966
35967 2009-10-09  Jim Meyering  <meyering@redhat.com>
35968
35969         selinux-h: always use getfilecon wrappers
35970         * lib/getfilecon.c: New file.
35971         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
35972         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
35973         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
35974         (fgetfilecon): Provide a stub.
35975         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
35976         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
35977         file unconditionally.
35978         When <selinux/selinux.h> is found, arrange to use wrappers.
35979         * modules/selinux-h (Files): Add getfilecon.c.
35980         (Makefile.am): Substitute include-next-related bits
35981         into the now-always-generated selinux/selinux.h file.
35982         * doc/glibc-functions/lgetfilecon.texi: New file.
35983         * doc/glibc-functions/fgetfilecon.texi: New file.
35984         * doc/glibc-functions/getfilecon.texi: New file.
35985         * doc/glibc-functions/getfilecon-desc.texi: New file.
35986         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
35987         which to pull in the new files.
35988         * MODULES.html.sh (Misc): Add selinux-h.
35989
35990 2009-10-08  Jim Meyering  <meyering@redhat.com>
35991
35992         unistd: fix comment typo
35993         * lib/unistd.in.h (euidaccess): Fix a comment typo.
35994
35995 2009-10-08  Eric Blake  <ebb9@byu.net>
35996
35997         areadlink: use SIZE_MAX consistently
35998         * modules/areadlink (Depends-on): Add stdint.
35999         * modules/areadlink-with-size (Depends-on): Likewise.
36000         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
36001         gives NULL; drop sys/types, since unistd gives size_t; and add
36002         stdint for SIZE_MAX.
36003         (SIZE_MAX): Rely on headers.
36004         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
36005         and add stdint.
36006         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
36007         (SIZE_MAX): Likewise.
36008         (INITIAL_BUF_SIZE): Turn into enum.
36009         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
36010
36011 2009-10-08  Jim Meyering  <meyering@redhat.com>
36012
36013         areadlinkat: avoid compilation failure
36014         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
36015         Fix typo in comment.
36016
36017 2009-10-07  Eric Blake  <ebb9@byu.net>
36018
36019         areadlinkat-with-size: new module
36020         * modules/areadlinkat-with-size: New module.
36021         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
36022         * lib/areadlink.h (areadlinkat): Declare it.
36023         * MODULES.html.sh (File system functions): Mention it.
36024         * modules/areadlinkat-with-size-tests: New test.
36025         * tests/test-areadlinkat-with-size.c: New file.
36026
36027         xreadlinkat: new module
36028         * modules/xreadlinkat: New module.
36029         * lib/xreadlinkat.c (xreadlinkat): New file.
36030         * lib/xreadlink.h (xreadlinkat): Declare it.
36031         * MODULES.html.sh (File system functions): Mention it.
36032
36033         areadlinkat: new module
36034         * lib/at-func.c (FUNC_FAIL): New define.
36035         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
36036         * modules/areadlinkat: New module.
36037         * lib/linkat.c (areadlinkat): Move...
36038         * lib/areadlinkat.c (areadlinkat): ...to new file.
36039         * lib/areadlink.h (areadlinkat): Declare it.
36040         * modules/linkat (Depends-on): Add areadlinkat.
36041         * MODULES.html.sh (File system functions): Mention it.
36042         * modules/areadlinkat-tests: New test.
36043         * tests/test-areadlinkat.c: New file.
36044
36045         areadlink, areadlink-with-size: add tests
36046         * modules/areadlink-tests: New test.
36047         * modules/areadlink-with-size-tests: Likewise.
36048         * tests/test-areadlink.h: New file.
36049         * tests/test-areadlink.c: Likewise.
36050         * tests/test-areadlink-with-size.c: Likewise.
36051
36052         maint: minor cleanups
36053         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
36054         _UNUSED_PARAMETER_ instead.
36055         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
36056         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
36057         * modules/linkat-tests (Files): Distribute test-link.h.
36058
36059         openat, utimens: whitespace cleanup
36060         * lib/openat.c: Prefer space throughout, rather than mix of 8
36061         spaces vs. tabs.
36062         * lib/at-func.c: Likewise.
36063         * lib/utimens.c: Likewise.
36064
36065         openat: avoid using wrong fd
36066         * lib/openat.c (openat_permissive): Reject user's fd if saving the
36067         working directory chooses same fd.
36068         * lib/at-func.c (AT_FUNC_NAME): Likewise.
36069
36070         mkdir, mkdirat: fix cygwin 1.5.x bug
36071         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
36072         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
36073         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
36074         bug.
36075         (gl_PREREQ_MKDIR): Delete unused macro.
36076         * modules/mkdir (Files): Track file rename.
36077         (configure.ac): Update macro name.
36078         * modules/openat (Depends-on): Add mkdir.
36079         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
36080
36081         mkdir, mkdirat: add tests
36082         * modules/mkdir-tests: New test.
36083         * tests/test-mkdir.h: New file.
36084         * tests/test-mkdir.c: Likewise.
36085         * tests/test-mkdirat.c: Likewise.
36086         * modules/openat-tests (Files): Add new files.
36087         (Makefile.am): Run new test.
36088
36089 2009-10-06  Eric Blake  <ebb9@byu.net>
36090
36091         doc: tweak *at function documentation
36092         * doc/posix-functions/faccessat.texi (faccessat): Mention
36093         known issue with replacement.
36094         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
36095         * doc/posix-functions/linkat.texi (linkat): Likewise.
36096         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36097         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36098         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36099         * doc/posix-functions/renameat.texi (renameat): Likewise.
36100         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36101
36102         openat: fix GNU/Hurd bug in unlinkat
36103         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
36104         broken.
36105         * doc/posix-functions/unlink.texi (unlink): Document this.
36106         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
36107
36108         fdopendir: fix GNU/Hurd bug
36109         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
36110         allowing non-directory fds.
36111         * lib/fdopendir.c (rpl_fdopendir): Work around it.
36112         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
36113         * modules/dirent (Makefile.am): Substitute it.
36114         * lib/dirent.in.h (fdopendir): Declare replacement.
36115         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
36116         * tests/test-fdopendir.c (main): Test something other than
36117         /dev/null, since on Hurd that behaves like a directory.
36118
36119         test-symlink: port to GNU/Hurd
36120         * tests/test-symlink.h (test_symlink): Relax expected errno.
36121
36122         doc: tweak more cygwin information
36123         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
36124         now compatible with glibc.
36125         * doc/posix-functions/getopt.texi (getopt): Likewise.
36126
36127         getopt-gnu: add another test
36128         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
36129         guarantee behavior relied on by m4.
36130         * tests/test-getopt.c (main): Use it.
36131         * modules/getopt-posix-tests (Depends-on): Add setenv.
36132         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
36133
36134         getopt: fix compilation on darwin
36135         * lib/getopt.in.h (includes): Leave breadcrumbs during system
36136         include.
36137         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
36138         Reported by Ludovic Courtès.
36139
36140 2009-10-06  Bruno Haible  <bruno@clisp.org>
36141
36142         * modules/size_max (Description): Discourage its use.
36143         Reported by Simon Josefsson.
36144
36145 2009-10-06  Jim Meyering  <meyering@redhat.com>
36146
36147         linkat: avoid compilation failure
36148         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
36149
36150 2009-10-05  Eric Blake  <ebb9@byu.net>
36151
36152         linkat: support Linux 2.6.17
36153         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
36154         linkat on Linux, but allow cache variable override.
36155         * lib/linkat.c (rpl_linkat): Define override.
36156         * modules/linkat (Depends-on): Add symlinkat.
36157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
36158         * modules/unistd (Makefile.am): Substitute it.
36159         * lib/unistd.in.h (linkat): Declare replacement.
36160         Reported by Pádraig Brady.
36161
36162         quotearg: port test to systems with C.UTF-8 locale
36163         * tests/test-quotearg.c (struct result_strings): Add another
36164         member, differentiating between C.ASCII and C.UTF-8 handling.
36165         (compare_strings): Add parameter.
36166         (main): Adjust all callers.
36167
36168         getopt: avoid clash with FreeBSD _getopt_internal
36169         * lib/getopt.in.h (_getopt_internal): Override the name.
36170         * lib/getopt_int.h (includes): Pick up any overrides.
36171         Reported by Reuben Thomas.
36172
36173         hash: allow C89 compilation
36174         * lib/hash.c (check_tuning): Move declaration before statement.
36175         Reported by Reuben Thomas.
36176
36177 2009-10-05  Karl Berry  <karl@gnu.org>
36178
36179         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
36180
36181 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
36182             Bruno Haible  <bruno@clisp.org>
36183
36184         * lib/uname.c (uname): Use a table-driven algorithm to compute
36185         Windows NT versions.
36186
36187 2009-10-04  Bruno Haible  <bruno@clisp.org>
36188
36189         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
36190         program_invocation_short_name.
36191         * modules/progname (configure.ac): Test for presence of
36192         program_invocation_short_name.
36193         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
36194
36195 2009-10-04  Bruno Haible  <bruno@clisp.org>
36196
36197         * lib/progname.c (set_program_name): Fix comment.
36198         Reported by Jim Meyering.
36199
36200 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
36201             Bruno Haible  <bruno@clisp.org>
36202
36203         * lib/uname.c: Include <string.h>.
36204         (uname): Do only one call to GetVersionEx in the common case.
36205
36206 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
36207             Bruno Haible  <bruno@clisp.org>
36208
36209         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
36210         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
36211         (uname): Add support for Windows CE and various non-x86 CPU types.
36212
36213 2009-10-03  Bruno Haible  <bruno@clisp.org>
36214
36215         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
36216         invocation to tests/configure.ac.
36217         Reported by Ian Beckwith <ianb@erislabs.net>.
36218
36219 2009-10-02  Eric Blake  <ebb9@byu.net>
36220
36221         fchdir: avoid compiler warning
36222         * lib/fchdir.c (canonicalize_file_name)
36223         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
36224
36225         test-open: support mingw errno values
36226         * tests/test-open.h (test_open): Relax test.
36227         * tests/test-fopen.h (test_fopen): Likewise.
36228         * tests/test-openat-safer.c (main): Likewise.
36229
36230         open: fix opening directory on mingw
36231         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
36232
36233         test-open: on GNU/Hurd, /dev/null is a directory
36234         * tests/test-fopen.h (main): Rename...
36235         (test_fopen): ...to this.  Use a guaranteed non-directory when
36236         confirming open behavior on trailing slash.
36237         * tests/test-openat-safer.c (main): Likewise.
36238         * tests/test-open.h (main): Likewise....
36239         (test_open): ...to this.
36240         * tests/test-fopen.c (main): Adjust caller.
36241         * tests/test-fopen-safer.c (main): Likewise.
36242         * tests/test-open.c (main): Likewise.
36243         * tests/test-fcntl-safer.c (main): Likewise.
36244         Reported by Samuel Thibault.
36245
36246         rename, fchdir: don't ignore chdir failure
36247         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
36248         * lib/rename.c (rpl_rename) [W32]: Likewise.
36249         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
36250         an empty destination directory if source cannot be renamed,
36251         although there is still possibility for failure.
36252         * doc/posix-functions/rename.texi (rename): Document the race.
36253         Reported by Jim Meyering.
36254
36255         maint: cleanup whitespace in recent commits
36256         * lib/rename.c (rpl_rename): Remove tabs.
36257         * tests/test-link.h (test_link): Likewise.
36258         * lib/fchdir.c (get_name): Likewise.
36259         Reported by Jim Meyering.
36260
36261 2009-10-02  Ben Pfaff  <blp@gnu.org>
36262
36263         relocatable-prog-wrapper: Add missing dependency on
36264         double-slash-root.
36265         * modules/relocatable-prog-wrapper: Add dependency.
36266         Reported by Ian Beckwith <ianb@erislabs.net>.
36267
36268 2009-10-02  Eric Blake  <ebb9@byu.net>
36269
36270         renameat: fix Solaris bugs
36271         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
36272         needed fixing.
36273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
36274         * modules/stdio (Makefile.am): Substitute it.
36275         * lib/stdio.in.h (renameat): Declare replacement.
36276         * lib/renameat.c (rpl_renameat): Implement fix.
36277
36278         renameat: new module
36279         * modules/renameat: New file.
36280         * lib/renameat.c (renameat): Likewise.
36281         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
36282         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36283         * modules/stdio (Makefile.am): Substitute them.
36284         * lib/stdio.in.h (renameat): Declare it.
36285         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36286         * doc/posix-functions/renameat.texi (renameat): Likewise.
36287         * modules/renameat-tests: New test.
36288         * tests/test-renameat.c: Likewise.
36289
36290         rename: fix mingw bugs
36291         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
36292         directory overwrite bugs.
36293
36294         rename: fix another cygwin 1.5 bug
36295         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
36296         checks.
36297         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
36298         unnecessary cygwin workarounds.  Also work around bug with moving
36299         full directory onto an empty one.
36300         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
36301
36302         rename-dest-slash: merge into rename module
36303         * modules/rename-dest-slash (Status): Mark obsolete.
36304         (Depends-on): Add rename.
36305         (Files): Let rename do it all.
36306         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
36307         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
36308         * m4/rename-dest-slash.m4: ...so this file can be deleted.
36309         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
36310         * lib/rename.c (rpl_rename): Update comments.
36311
36312         rename: fix cygwin 1.5.x bugs
36313         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
36314         * lib/rename.c (rpl_rename): Work around them.
36315         * modules/rename (Depends-on): Add same-inode.
36316
36317         rename: fix Solaris 10 bug
36318         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
36319         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
36320         was the only bug.
36321
36322         rename: fix Solaris 9 bug
36323         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
36324         on non-directory.  Avoid calling exit.
36325         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
36326         strdup.
36327         * modules/rename-tests (Depends-on): Drop lstat.
36328         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
36329         (gl_PREREQ_RENAME): Delete unused macro.
36330
36331         rename-dest-slash: fix NetBSD bug
36332         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
36333         links.
36334         * modules/rename-dest-slash (Depends-on): Add same-inode.
36335
36336         rename-tests: new test, exposes several platform bugs
36337         * modules/rename-tests: New file.
36338         * tests/test-rename.h: Likewise.
36339         * tests/test-rename.c: Likewise.
36340         * doc/posix-functions/rename.texi (rename): Improve documentation,
36341         including bugs that will eventually be fixed in gnulib.
36342
36343 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
36344
36345         * lib/uname.c: Include <stdlib.h>
36346         (uname): Assume version info is available.
36347
36348 2009-10-02  Jim Meyering  <meyering@redhat.com>
36349
36350         gnu-web-doc-update: correct --help output
36351         * build-aux/gnu-web-doc-update: Make --help output relevant.
36352
36353         gnu-web-doc-update: add standard options
36354         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
36355
36356         gnu-web-doc-update: New module.
36357         Use this script to automatically update the on-line web documentation
36358         for your GNU project at http://www.gnu.org/software/$pkg/manual/
36359         * modules/gnu-web-doc-update: New file, from coreutils.
36360         * build-aux/gnu-web-doc-update: New script.
36361
36362 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
36363
36364         link: LoadLibrary is not needed.
36365         * lib/link.c: Use GetModuleHandle.
36366
36367 2009-10-01  Eric Blake  <ebb9@byu.net>
36368
36369         getopt: bump serial number
36370         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
36371         change.
36372
36373         tests: tighten link, rmdir, and remove tests
36374         * tests/test-link.h (includes): No need to use <config.h> here.
36375         Clean up if directory hard link was created, otherwise test for
36376         trailing '.'.
36377         * tests/test-linkat.c (main): Simplify.
36378         * tests/test-remove.c (main): Enhance test for trailing '.'.
36379         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36380
36381 2009-10-01  Jim Meyering  <meyering@redhat.com>
36382
36383         maint.mk: requiring "make major" was annoying, for a "minor" release.
36384         What is intended is "stable", to contrast with alpha and beta,
36385         so require "make stable", not "make major".
36386         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
36387         (get_tool_versions): Likewise.
36388         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
36389
36390 2009-09-30  Ben Pfaff  <blp@gnu.org>
36391
36392         Fix broken build of replacement for Windows tmpfile().
36393         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
36394         flags argument added along with the 'mkostemp' module.
36395
36396 2009-09-28  Bruno Haible  <bruno@clisp.org>
36397
36398         Avoid identifier clash with POSIX function 'remove' defined as a macro.
36399         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
36400         to 'remove_elt'.
36401         (gl_list_remove): Update.
36402         * lib/gl_list.c (gl_list_remove): Update.
36403         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
36404         to 'remove_elt'.
36405         (gl_oset_remove): Update.
36406         * lib/gl_list.c (gl_oset_remove): Update.
36407         Reported by Eric Blake.
36408
36409 2009-09-28  Eric Blake  <ebb9@byu.net>
36410
36411         doc: mention yet more cygwin 1.7 status
36412         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
36413         cygwin.
36414         * doc/glibc-functions/execvpe.texi (execvpe): New file.
36415         * doc/gnulib.texi (Glibc unistd.h): Mention it.
36416
36417         argp: fix test failure
36418         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
36419         that are not upper-case.  Pass correct range to tolower.
36420
36421 2009-09-27  Jim Meyering  <meyering@redhat.com>
36422
36423         test-yesno: work around sparc-dash here-document infelicity
36424         Without this change, the literal \177 byte in a here document
36425         would make dash 0.5.5.1-3 access uninitialized memory.
36426         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
36427         Instead, use a marker, "@", and filter through tr to create the desired
36428         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
36429
36430 2009-09-27  Bruno Haible  <bruno@clisp.org>
36431
36432         Disable untested support for new flavours of ACLs on AIX.
36433         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
36434         progress.
36435         * lib/set-mode-acl.c (qset_acl): Likewise.
36436
36437 2008-12-07  Bruno Haible  <bruno@clisp.org>
36438
36439         Add support for new flavours of ACLs on AIX. (Untested.)
36440         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
36441         (file_has_acl): Add support for newer AIX.
36442         * lib/set-mode-acl.c (qset_acl): Likewise.
36443         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
36444         Rainer Tammer <tammer@tammer.net>.
36445
36446 2009-09-26  Eric Blake  <ebb9@byu.net>
36447
36448         argp: fix compilation of getopt
36449         * lib/getopt.in.h (includes): Use different guard than glibc.
36450         Reported by Sergey Poznyakoff.
36451
36452         doc: mention more cygwin 1.7 status
36453         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
36454         bug.
36455         * doc/posix-functions/execl.texi (execl): Likewise.
36456         * doc/posix-functions/execle.texi (execle): Likewise.
36457         * doc/posix-functions/execlp.texi (execlp): Likewise.
36458         * doc/posix-functions/execv.texi (execv): Likewise.
36459         * doc/posix-functions/execve.texi (execve): Likewise.
36460         * doc/posix-functions/execvp.texi (execvp): Likewise.
36461         * doc/glibc-functions/canonicalize_file_name.texi
36462         (canonicalize_file_name): Cygwin 1.7 now provides this.
36463         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
36464         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
36465         on AT_SYMLINK_NOFOLLOW.
36466
36467 2009-09-24  Eric Blake  <ebb9@byu.net>
36468
36469         test-linkat: make test more robust
36470         * tests/test-linkat.c (main): Avoid collision with EEXIST.
36471
36472         getopt: fix inclusion guards for cygwin
36473         * modules/getopt-posix (Depends-on): Add include-next.
36474         (Makefile.am): Substitute more items in replacement header.
36475         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
36476         <getopt.h>.
36477         * lib/getopt.in.h (includes): Use split inclusion guard, and
36478         prefer <getopt.h> over include <unistd.h> when one is present.
36479         (option): Also override name of 'struct option'.
36480
36481         same-inode: revert prior change; it is not yet ready
36482         * NEWS: Undo mention of this change.
36483         * lib/same-inode.h (same-inode.h): Undo tri-state change.
36484         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
36485         * lib/cycle-check.c (cycle_check): Likewise.
36486         * lib/same.c (same_name): Likewise.
36487         * lib/at-func2.c (at_func2): Likewise.
36488
36489 2009-09-23  Eric Blake  <ebb9@byu.net>
36490
36491         linkat: new module
36492         * modules/linkat: New file.
36493         * lib/at-func2.c (at_func2): Likewise.
36494         * lib/linkat.c (linkat): Likewise.
36495         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
36496         * lib/openat-priv.h (at_func2): Add declaration.
36497         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36498         * modules/unistd (Makefile.am): Substitute them.
36499         * lib/unistd.in.h (linkat): Declare it.
36500         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36501         * doc/posix-functions/linkat.texi (linkat): Likewise.
36502         * doc/posix-functions/link.texi (link): Tweak wording.
36503         * tests/test-link.c (main): Move guts...
36504         * tests/test-link.h (test_link): ...into new file.
36505         * modules/linkat-tests: New test.
36506         * tests/test-linkat.c: Likewise.
36507         * modules/link-tests (Files): Ship new file.
36508         (Depends-on): Add stdbool.
36509
36510         dirname: add library-safe mdir_name
36511         * lib/dirname.h (mdir_name): New prototype.
36512         * lib/dirname.c (dir_name): Move guts...
36513         (mdir_name): ...to new function that avoids xalloc_die.
36514
36515         fchdir: another mingw fix
36516         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
36517         * lib/fchdir.c (get_name): New helper method; skips canonicalize
36518         on mingw (where it has not yet been ported), and make it optional
36519         elsewhere.
36520         (_gl_register_fd): Use it.
36521
36522         same-inode: make SAME_INODE tri-state, to port to mingw
36523         * NEWS: Mention this change.
36524         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
36525         st_ino always being 0.
36526         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
36527         * lib/cycle-check.c (cycle_check): Likewise.
36528         * lib/same.c (same_name): Likewise.
36529
36530         lstat: avoid mingw compilation error
36531         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
36532         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
36533         lstat ourselves.
36534         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
36535         was adequate.
36536         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
36537         the checks for lstat.
36538         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
36539
36540         link: fix test failure on Solaris 9
36541         * lib/link.c (rpl_link): Don't assume link will catch bogus
36542         trailing slash on source.
36543
36544         test-symlinkat: enhance test
36545         * tests/test-readlink.c (main): Move guts...
36546         * tests/test-readlink.h (test_readlink): ...into new file.
36547         * tests/test-symlink.c (main): Move guts...
36548         * tests/test-symlink.h (test_symlink): ...into new file.
36549         * tests/test-symlinkat.c (main): Use new files for further
36550         coverage.
36551         (do_symlink, do_readlink): New helper functions.
36552         * modules/symlink-tests (Files): Ship new file.
36553         (Depends-on): Add stdbool.
36554         * modules/readlink-tests (Files): Ship new file.
36555         (Depends-on): Add stdbool.
36556         * modules/symlinkat-tests (Files): Use new files.
36557
36558 2009-09-23  Eric Blake  <ebb9@byu.net>
36559
36560         readlink: document portability issue with symlink length
36561         * doc/posix-functions/lstat.texi (lstat): Mention that some file
36562         systems have bogus st_size on symlinks, and mention the
36563         areadlink-with-size module.
36564         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
36565         * doc/posix-functions/readlink.texi (readlink): Mention the
36566         areadlink module, and ERANGE failure.
36567         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36568         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
36569
36570         readlink: fix Solaris 9 bug with trailing slash
36571         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
36572         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
36573         * doc/posix-functions/readlink.texi (readlink): Document this.
36574         * modules/readlink-tests: New test.
36575         * tests/test-readlink.c: Likewise.
36576
36577         readlink: fix cygwin 1.5.x bug with return type
36578         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
36579         * lib/unistd.in.h (readlink): Use ssize_t.
36580         * lib/readlink.c (readlink): Likewise.
36581         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36582         * modules/unistd (Makefile.am): Substitute it.
36583         * lib/unistd.in.h (readlink): Declare replacement.
36584         * doc/posix-functions/readlink.texi (readlink): Document this.
36585
36586         symlink: use throughout gnulib
36587         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
36588         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
36589         symlink is not used.
36590         * modules/symlinkat (Depends-on): Add symlink.
36591         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36592         * modules/canonicalize-tests (Depends-on): Likewise.
36593         * modules/lstat-tests (Depends-on): Likewise.
36594         * modules/openat-tests (Depends-on): Likewise.
36595         * modules/remove-tests (Depends-on): Likewise.
36596         * modules/rmdir-tests (Depends-on): Likewise.
36597         * modules/unlink-tests (Depends-on): Likewise.
36598         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
36599         * tests/test-canonicalize.c (symlink): Likewise.
36600         * tests/test-fstatat.c (symlink): Likewise.
36601         * tests/test-lstat.c (symlink): Likewise.
36602         * tests/test-remove.c (symlink): Likewise.
36603         * tests/test-rmdir.c (symlink): Likewise.
36604         * tests/test-unlink.c (symlink): Likewise.
36605         * tests/test-unlinkat.c (symlink): Likewise.
36606
36607         symlink: new module, for Solaris 9 bug
36608         * modules/symlink: New file.
36609         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
36610         * lib/symlink.c: Likewise.
36611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
36612         * modules/unistd (Makefile.am): Substitute them.
36613         * lib/unistd.in.h (symlink): Declare replacement.
36614         * MODULES.html.sh (File system functions): Mention it.
36615         * doc/posix-functions/symlink.texi (symlink): Likewise.
36616         * modules/symlink-tests: New test.
36617         * tests/test-symlink.c: Likewise.
36618
36619 2009-09-23  Bruno Haible  <bruno@clisp.org>
36620
36621         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
36622         when needed.
36623         Test case: gnulib-tool --import --with-tests atexit inttypes.
36624         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
36625
36626 2009-09-23  Bruno Haible  <bruno@clisp.org>
36627
36628         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
36629         subcommand, not in a subshell.
36630
36631 2009-09-22  Eric Blake  <ebb9@byu.net>
36632
36633         unistd: sort replacement declarations
36634         * lib/unistd.in.h: Sort declarations.
36635
36636         open, openat: minor optimization
36637         * lib/open.c (open): If open succeeded, len is non-zero.
36638         * lib/openat.c (rpl_openat): Likewise.
36639
36640         link-follow: ensure correct result
36641         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
36642         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
36643         distinguish between possible failures.
36644
36645 2009-09-21  Eric Blake  <ebb9@byu.net>
36646
36647         fts: avoid compiler warning
36648         * lib/fts.c (dirent_inode_sort_may_be_useful)
36649         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
36650
36651 2009-09-19  Bruno Haible  <bruno@clisp.org>
36652
36653         * lib/progreloc.c (canonicalize_file_name): New declaration.
36654
36655 2009-09-19  Eric Blake  <ebb9@byu.net>
36656
36657         link: fix quoting
36658         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
36659
36660         openat: fix openat bugs on Solaris 9
36661         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
36662         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
36663         * modules/openat (Depends-on): Add open.
36664         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
36665         * modules/fcntl-h (Makefile.am): Substitute it.
36666         * lib/fcntl.in.h (openat): Declare replacement.
36667         * doc/posix-functions/openat.texi (openat): Document this.
36668
36669         openat: move fstatat and unlinkat into correct files
36670         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
36671         compiled.
36672         * lib/openat.c (fstatat, unlinkat): Move...
36673         * lib/fstatat.c (fstatat): ...into correct files.
36674         * lib/unlinkat.c (unlinkat): Likewise.
36675
36676         openat: fix unlinkat bugs on Solaris 9
36677         * lib/unlinkat.c (unlinkat): New file.
36678         * modules/openat (Depends-on): Add unlink.
36679         (Files): Distribute it.
36680         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
36681         trailing slash behavior is broken.
36682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36683         * modules/unistd (Makefile.am): Substitute it.
36684         * lib/unistd.in.h (unlinkat): Declare replacement.
36685         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
36686
36687         openat: fix fstatat bugs on Solaris 9
36688         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
36689         stat.
36690         * doc/posix-functions/fstatat.texi (fstatat): Document this.
36691
36692         test-unlinkat: enhance test, to expose Solaris 9 bug
36693         * tests/test-unlink.c (main): Factor guts...
36694         * tests/test-unlink.h (test_rmdir_func): ...into new file.
36695         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
36696         * tests/test-rmdir.c (main): Adjust caller.
36697         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
36698         (unlinker): New helper function.
36699         (rmdirat): Enhance check.
36700         * modules/rmdir-tests (Depends-on): Add stdbool.
36701         * modules/unlink-tests (Depends-on): Likewise.
36702         (Files): Add test-unlink.h.
36703         * modules/openat-tests (Files): Likewise.
36704         (Depends-on): Add unlinkdir.
36705
36706         test-fstatat: new test, to expose Solaris 9 bugs
36707         * tests/test-stat.c (main): Factor guts...
36708         * tests/test-stat.h (test_stat_func): ...into new file.
36709         * tests/test-lstat.c (main): Factor guts...
36710         * tests/test-lstat.h (test_lstat_func): ...into new file.
36711         * tests/test-fstatat.c: New file.
36712         * modules/stat-tests (Files): Add test-stat.h.
36713         * modules/lstat-tests (Files): Add test-lstat.h.
36714         (Depends-on): Add stdbool.
36715         * modules/openat-tests (Depends-on): Add pathmax.
36716         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
36717         (Makefile.am): Run new test.
36718
36719         remove: new module, for mingw and Solaris 9 bugs
36720         * modules/remove: New file.
36721         * lib/remove.c: Likewise.
36722         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
36723         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36724         * modules/stdio (Makefile.am): Use them.
36725         * lib/stdio.in.h (remove): Declare replacement.
36726         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36727         * doc/posix-functions/remove.texi (remove): Likewise.
36728         * modules/remove-tests: New test.
36729         * tests/test-remove.c: Likewise.
36730
36731         unlink: new module, for Solaris 9 bug
36732         * modules/unlink: New file.
36733         * lib/unlink.c: Likewise.
36734         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
36735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36736         * modules/unistd (Makefile.am): Use them.
36737         * lib/unistd.in.h (stat): Declare replacement.
36738         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36739         * doc/posix-functions/unlink.texi (unlink): Likewise.
36740         * modules/unlink-tests: New test.
36741         * tests/test-unlink.c: Likewise.
36742
36743         lstat: fix Solaris 9 bug
36744         * lib/lstat.c (lstat): Also check for trailing slash on
36745         non-symlink, non-directories.  Use stat module to simplify logic.
36746         * doc/posix-functions/lstat.texi (lstat): Document it.
36747         * modules/lstat-tests (Depends-on): Add errno, same-inode.
36748         (configure.ac): Check for symlink.
36749         * tests/test-lstat.c (main): Add more tests.
36750
36751         stat: add as dependency to other modules
36752         * modules/chown (Depends-on): Add stat.
36753         * modules/euidaccess (Depends-on): Likewise.
36754         * modules/fchdir (Depends-on): Likewise.
36755         * modules/isdir (Depends-on): Likewise.
36756         * modules/link (Depends-on): Likewise.
36757         * modules/lstat (Depends-on): Likewise.
36758         * modules/mkdir-p (Depends-on): Likewise.
36759         * modules/modechange (Depends-on): Likewise.
36760         * modules/open (Depends-on): Likewise.
36761         * modules/readlink (Depends-on): Likewise.
36762         * modules/same (Depends-on): Likewise.
36763
36764         stat: fix Solaris 9 bug
36765         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
36766         slash.
36767         * lib/stat.c (rpl_stat): Work around it.
36768         * doc/posix-functions/stat.texi (stat): Update documentation.
36769
36770         stat: new module, for mingw bug
36771         * modules/stat: New file.
36772         * lib/stat.c: Likewise.
36773         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36774         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36775         * modules/sys_stat (Makefile.am): Use them.
36776         * lib/sys_stat.in.h (stat): Declare replacement.
36777         * lib/openat.c (fstatat): Deal with lstat and stat being function
36778         macros.
36779         * modules/openat (Depends-on): Add inline.
36780         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36781         * doc/posix-functions/stat.texi (stat): Likewise.
36782         * modules/stat-tests: New test.
36783         * tests/test-stat.c: Likewise.
36784
36785 2009-09-19  Jim Meyering  <meyering@redhat.com>
36786
36787         syntax-check: detect unnecessary inclusion of canonicalize.h
36788         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
36789
36790 2009-09-19  Eric Blake  <ebb9@byu.net>
36791
36792         canonicalize-lgpl: adjust clients to use correct header
36793         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36794         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
36795         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
36796         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
36797         * lib/progreloc.c (includes): Likewise.
36798
36799 2009-09-19  Jim Meyering  <meyering@redhat.com>
36800
36801         test-posixtm.c: correct a comment
36802         * tests/test-posixtm.c: Correct first-line comment.
36803         Spotted by Eric Blake.
36804
36805 2009-09-16  Jim Meyering  <meyering@redhat.com>
36806
36807         posixtm-tests: make T const-correct; add a test case
36808         * tests/test-posixtm.c (T): Declare const.
36809         Add a test for -(2^31+1).
36810         Remove useless can-succeed-only-in-2002 test.
36811
36812         posixtm-tests: adjust the sole failing test
36813         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
36814         expected output matches what mktime now produces.  Cross-checked via
36815         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
36816
36817         posixtm: move #ifdef'd tests into a new module
36818         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
36819         * tests/test-posixtm.c: ... this new file.
36820         * modules/posixtm-tests: New module.
36821
36822 2009-09-19  Eric Blake  <ebb9@byu.net>
36823
36824         openat: simplify use of at-func.c
36825         * lib/at-func.c (includes): Include prerequisites here, to
36826         simplify requirements on client files.
36827         * lib/openat-priv.h: Add double-inclusion guard.
36828         * lib/faccessat.c (includes): Simplify.
36829         * lib/fchmodat.c (includes): Likewise.
36830         * lib/fchownat.c (includes): Likewise.
36831         * lib/mkdirat.c (includes): Likewise.
36832         * lib/mkfifoat.c (includes): Likewise.
36833         * lib/symlinkat.c (includes): Likewise.
36834
36835         openat: allow return of fd 0
36836         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
36837         * modules/save-cwd (Depends-on): Replace fcntl-safer with
36838         unistd-safer.
36839         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
36840         <fcntl.h>; this module does not leak fds.
36841         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
36842         must be allowed to return 0, leaving openat_safer to add the
36843         safety.
36844         (openat_permissive): Avoid writing to just-opened fd 2 if
36845         restoring the current directory fails.
36846         * lib/openat-die.c (openat_restore_fail): Add comment.
36847         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
36848         (save_cwd): Guarantee safe fd, but without use of open_safer.
36849         * tests/test-openat.c: New test.
36850         * modules/openat-tests (Files, Makefile.am): Distribute and build
36851         new file.
36852
36853         relocatable-prog-wrapper: fix build
36854         * modules/relocatable-prog-wrapper (Files): Update name of
36855         canonicalize m4 file, broken on 2009-09-17.
36856         Reported by emad hajjar <aleppos@hotmail.com>.
36857
36858 2009-09-19  Bruno Haible  <bruno@clisp.org>
36859
36860         * lib/safe-alloc.h: Use the standard header with GPL copyright.
36861         * lib/safe-alloc.c: Likewise.
36862         Reported by Ian Beckwith <ianb@erislabs.net>.
36863
36864 2009-09-18  Bruno Haible  <bruno@clisp.org>
36865
36866         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
36867         Reported by <erobles@sensacd.com.mx>.
36868
36869 2009-09-17  Eric Blake  <ebb9@byu.net>
36870
36871         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
36872         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
36873         slashes when checking if last component is missing.
36874         * tests/test-canonicalize.c (main): Test this.
36875
36876         canonicalize, canonicalize-lgpl: honor // if distinct from /
36877         * modules/canonicalize (Files): Add double-slash-root.m4.
36878         * modules/canonicalize-lgpl (Files): Likewise.
36879         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36880         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
36881         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
36882         fallback definition.
36883         (canonicalize_filename_mode): Use it to protect //.
36884         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
36885         (__realpath): Likewise.
36886         * tests/test-canonicalize.c (main): Test this.
36887         * tests/test-canonicalize-lgpl.c (main): Likewise.
36888         * modules/canonicalize-tests (Depends-on): Add same-inode.
36889         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36890
36891         canonicalize-lgpl: fix glibc bug with trailing slash
36892         * m4/canonicalize-lgpl.m4: Move contents...
36893         * m4/canonicalize.m4: ...here.
36894         (gl_CANONICALIZE_LGPL): Factor realpath check...
36895         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
36896         glibc 2.3.5 bug, fixed 2005-04-27.
36897         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
36898         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
36899         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
36900         * modules/canonicalize-lgpl (Files): Manage file rename.
36901         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36902         * modules/stdlib (Makefile.am): Substitute witness.
36903         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
36904         is needed.
36905         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
36906         replacement is required.
36907         * lib/canonicalize.c (canonicalize_file_name): Likewise.
36908         * doc/glibc-functions/canonicalize_file_name.texi
36909         (canonicalize_file_name): Document this.
36910         * doc/posix-functions/realpath.texi (realpath): Likewise.
36911
36912         canonicalize-lgpl: reject non-directory with trailing slash
36913         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
36914         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
36915         catches failures in glibc 2.3.5.
36916         * tests/test-canonicalize.c (main): Likewise.
36917
36918         canonicalize-lgpl: use native realpath if it works
36919         * lib/canonicalize-lgpl.c (realpath): Guard with
36920         FUNC_REALPATH_WORKS.
36921         * lib/stdlib.in.h (realpath): Make declaration optional based on
36922         HAVE_REALPATH.
36923         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
36924         native realpath works.
36925         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36926         * modules/stdlib (Makefile.am): Substitute witness.
36927
36928         canonicalize, canonicalize-lgpl: use <stdlib.h>
36929         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
36930         (Include): Mention <stdlib.h>.
36931         (configure.ac): Mention functions we provide.
36932         * modules/canonicalize (configure.ac): Likewise.
36933         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
36934         realpath if canonicalize_file_name is missing.
36935         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
36936         * modules/stdlib (Makefile.am): Substitute witnesses.
36937         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
36938         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
36939         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
36940         * NEWS: Document this.
36941         * doc/glibc-functions/canonicalize_file_name.texi
36942         (canonicalize_file_name): Likewise.
36943         * doc/posix-functions/realpath.texi (realpath): Likewise.
36944         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
36945
36946         test-canonicalize: consolidate into single C program
36947         * tests/test-canonicalize.sh: Delete; move setup into...
36948         * tests/test-canonicalize.c (main): ...the program, making it
36949         easier to run in debugger.  Add some tests.
36950         * modules/canonicalize-tests (Files): Remove unused file.
36951         (Depends-on): Add progname.
36952         (configure.ac, Makefile.am): Simplify.
36953
36954         test-canonicalize-lgpl: consolidate into single C program
36955         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
36956         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
36957         easier to run in debugger.  Add some tests.
36958         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
36959         (configure.ac, Makefile.am): Simplify.
36960
36961         canonicalize: avoid resolvepath
36962         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
36963         unnecessary checks.
36964         * lib/canonicalize.c (includes): Simplify.
36965         (canonicalize_file_name): Drop resolvepath implementation.
36966         * modules/canonicalize (Depends-on): Drop filenamecat.
36967
36968         canonicalize: don't lose errno
36969         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
36970         over calls to free.
36971
36972         canonicalize: simplify errno handling
36973         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
36974         assignment.
36975
36976         canonicalize, canonicalize-lgpl: update module dependencies
36977         * modules/canonicalize (Depends-on): Add extensions, lstat,
36978         pathmax, stdlib.
36979         (Files): Drop pathmax.h.
36980         (configure.ac): Adjust macro name.
36981         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
36982         lstat, stdlib, sys_stat.
36983         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
36984         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
36985         extensions.
36986         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
36987         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
36988         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
36989         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
36990         declaration, if available.
36991         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
36992         we can rely on the readlink module.
36993         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
36994         (includes): Use <unistd.h> unconditionally.
36995
36996 2009-09-17  Eric Blake  <ebb9@byu.net>
36997
36998         maint: make Include sections of modules consistent
36999         * modules/alloca: Use only header name; no need to list #include.
37000         * modules/alloca-opt: Likewise.
37001         * modules/arpa_inet: Likewise.
37002         * modules/canon-host: Likewise.
37003         * modules/configmake: Likewise.
37004         * modules/dirent: Likewise.
37005         * modules/eealloc: Likewise.
37006         * modules/environ: Likewise.
37007         * modules/fchdir: Likewise.
37008         * modules/fcntl: Likewise.
37009         * modules/fcntl-h: Likewise.
37010         * modules/gethrxtime: Likewise.
37011         * modules/gettime: Likewise.
37012         * modules/ignore-value: Likewise.
37013         * modules/inet_ntop: Likewise.
37014         * modules/inet_pton: Likewise.
37015         * modules/inttypes: Likewise.
37016         * modules/isnand-nolibm: Likewise.
37017         * modules/isnanf-nolibm: Likewise.
37018         * modules/mbchar: Likewise.
37019         * modules/mbfile: Likewise.
37020         * modules/mbiter: Likewise.
37021         * modules/mbuiter: Likewise.
37022         * modules/netdb: Likewise.
37023         * modules/netinet_in: Likewise.
37024         * modules/nproc: Likewise.
37025         * modules/pagealign_alloc: Likewise.
37026         * modules/poll: Likewise.
37027         * modules/printf-frexp: Likewise.
37028         * modules/pthread: Likewise.
37029         * modules/putenv: Likewise.
37030         * modules/random_r: Likewise.
37031         * modules/relocatable-prog: Likewise.
37032         * modules/search: Likewise.
37033         * modules/select: Likewise.
37034         * modules/selinux-h: Likewise.
37035         * modules/settime: Likewise.
37036         * modules/signal: Likewise.
37037         * modules/size_max: Likewise.
37038         * modules/socklen: Likewise.
37039         * modules/ssize_t: Likewise.
37040         * modules/stdarg: Likewise.
37041         * modules/stdbool: Likewise.
37042         * modules/stddef: Likewise.
37043         * modules/stdint: Likewise.
37044         * modules/stdio: Likewise.
37045         * modules/stdlib: Likewise.
37046         * modules/string: Likewise.
37047         * modules/strings: Likewise.
37048         * modules/sys_file: Likewise.
37049         * modules/sys_ioctl: Likewise.
37050         * modules/sys_select: Likewise.
37051         * modules/sys_socket: Likewise.
37052         * modules/sys_stat: Likewise.
37053         * modules/sys_time: Likewise.
37054         * modules/sys_times: Likewise.
37055         * modules/sys_utsname: Likewise.
37056         * modules/sys_wait: Likewise.
37057         * modules/sysexits: Likewise.
37058         * modules/time: Likewise.
37059         * modules/times: Likewise.
37060         * modules/tmpfile: Likewise.
37061         * modules/trim: Likewise.
37062         * modules/unistd: Likewise.
37063         * modules/wchar: Likewise.
37064         * modules/wctype: Likewise.
37065
37066 2009-09-17  Bruno Haible  <bruno@clisp.org>
37067
37068         Make getdate.y compile on QNX and NetBSD 5 / i386.
37069         * m4/getdate.m4 (gl_GETDATE): Conditionally define
37070         TIME_T_FITS_IN_LONG_INT.
37071         * lib/getdate.y (long_time_t): New type.
37072         (relative_time): Change type of 'seconds' field to long_time_t.
37073         (get_date): Update types of local variables. Check against overflow
37074         during conversion from long_time_t to time_t.
37075         Reported by Matt Kraai <kraai@ftbfs.org>
37076         and Hasso Tepper <hasso@netbsd.org>.
37077
37078 2009-09-17  Bruno Haible  <bruno@clisp.org>
37079
37080         * modules/COPYING: Update copyright years.
37081         * modules/README: Likeiwse.
37082         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
37083         Reported by Ian Beckwith <ianb@erislabs.net>.
37084
37085 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
37086
37087         * users.txt: Update references for gnuit package.
37088
37089 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
37090
37091         * m4/getdelim.m4: Fix typo in copyright line.
37092
37093 2009-09-17  Bruno Haible  <bruno@clisp.org>
37094
37095         * lib/atoll.c: Use the standard header with GPL copyright.
37096         * lib/argz.in.h: Likewise.
37097         * lib/glob.c: Likewise.
37098         * lib/glob-libc.h: Likewise.
37099         * lib/random_r.c: Likewise.
37100         * lib/siglist.h: Likewise.
37101         * lib/strsignal.c: Likewise.
37102         Reported by Ian Beckwith <ianb@erislabs.net>.
37103
37104 2009-09-17  Eric Blake  <ebb9@byu.net>
37105
37106         rmdir: ensure correct dependency order
37107         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
37108
37109 2009-09-17  Bruno Haible  <bruno@clisp.org>
37110
37111         Disable assertion that fails on NetBSD 5 / i386.
37112         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
37113         Reported by Sam Steingold <sds@gnu.org>
37114         and Hasso Tepper <hasso@netbsd.org>.
37115
37116 2009-09-16  Eric Blake  <ebb9@byu.net>
37117
37118         unlinkdir: port to mingw
37119         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
37120         on which no one can unlink a directory.
37121
37122         stdlib: sort witness names
37123         * modules/stdlib (Makefile.am): Sort replacements.
37124         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
37125         * lib/stdlib.in.h: Likewise.
37126
37127         parse-duration-tests: avoid link failure
37128         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
37129         LIBINTL.
37130         Reported by Tom G. Christensen.
37131
37132         openat-tests: ensure unlinkat behaves like rmdir
37133         * tests/test-rmdir.c (main): Factor guts...
37134         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
37135         * modules/rmdir-tests (Files): Ship new file.
37136         * modules/openat-tests: New test.
37137         * tests/test-unlinkat.c: Likewise.
37138
37139         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
37140         * modules/rmdir-errno (Status, Notice): Now obsolete.
37141
37142         rmdir: work around cygwin 1.5.x and mingw bugs
37143         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
37144         * lib/rmdir.c (rmdir): Work around it.
37145         * modules/rmdir (Status, Notice): No longer obsolete.
37146         (Files): Add dos.m4.
37147         (Depends-on): Add unistd.
37148         (configure.ac): Set witnesses.
37149         (License): Relax to LGPLv2+.
37150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
37151         * modules/unistd (Makefile.am): Substitute witnesses.
37152         * lib/unistd.in.h (rmdir): Declare replacement.
37153         * doc/posix-functions/rmdir.texi (rmdir): Document this.
37154         * modules/rmdir-tests: New tests.
37155         * tests/test-rmdir.c: Likewise.
37156
37157 2009-09-15  Eric Blake  <ebb9@byu.net>
37158
37159         fchdir: improve use of replacement functions
37160         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
37161         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
37162         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
37163         REPLACE_CLOSEDIR.
37164         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
37165         * modules/sys_stat (Makefile.am): Substitute correct witness.
37166         * modules/dirent (Makefile.am): Likewise.
37167         * modules/unistd (Makefile.am): Likewise.
37168         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
37169         * lib/unistd.in.h (dup): Likewise.
37170         * lib/sys_stat.in.h (fstat): Likewise.
37171
37172         maint: ignore gnulib-tool temp files
37173         * .gitignore: Ignore files created during gnulib-tool --test.
37174
37175 2009-09-13  Jim Meyering  <meyering@redhat.com>
37176
37177         posixtm: don't reject a time that specify "60" as the number of seconds
37178         * lib/posixtm.c (posixtime): The code to reject invalid dates
37179         would also reject a time specified with the .60 suffix.
37180         But POSIX allows that, in order to accommodate leap seconds.
37181         So don't reject it.
37182         (main): Adjust tests accordingly.
37183         * modules/posixtm (Depends-on): Add stpcpy.
37184
37185 2009-09-11  Jim Meyering  <meyering@redhat.com>
37186
37187         announce-gen: include [$release_type] in emitted Subject:
37188         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
37189         e.g., [stable] in the emitted Subject: line.
37190
37191 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37192
37193         Remove obsolete macros from several modules.
37194         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
37195         obsolete Autoconf macros with their modern counterparts.
37196         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
37197         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
37198         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
37199         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
37200         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
37201         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37202         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
37203         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
37204         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
37205         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
37206         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
37207         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
37208         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
37209         * m4/sockets.m4 (gl_SOCKETS): Likewise.
37210         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
37211         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
37212         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
37213         * m4/time_r.m4 (gl_TIME_R): Likewise.
37214         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
37215         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
37216         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
37217
37218         Fix copyright header in build-aux scripts.
37219         * build-aux/git-version-gen: Fix copyright header to match GPLv3
37220         recommendation.
37221         * build-aux/ncftpput-ftp: Likewise.
37222         * build-aux/update-copyright: Likewise.
37223
37224 2009-09-09  Eric Blake  <ebb9@byu.net>
37225
37226         test-link: allow Linux choice of errno
37227         * tests/test-link.c (main): Relax test for alternate error.
37228
37229         strndup: fix improper m4 caching
37230         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
37231         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
37232         (gl_PREREQ_STRNDUP): Delete.
37233         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
37234         * modules/string (Makefile.am): Substitute it.
37235         * lib/string.in.h (strndup): Modernize prototype.
37236
37237         getcwd: port to mingw
37238         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
37239         different from the POSIX assumptions made throughout the getcwd
37240         module; fortunately, the mingw getcwd does not need replacement.
37241         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
37242         * modules/getcwd-tests: New test.
37243         * tests/test-getcwd.c: Likewise.
37244
37245         link: fix platform bugs
37246         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
37247         * lib/link.c (link): Work around them.  Fix related mingw bug.
37248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
37249         * modules/unistd (Makefile.am): Substitute it.
37250         * lib/unistd.in.h (link): Declare replacement.
37251         * doc/posix-functions/link.texi (link): Document this.
37252         * modules/link (Depends-on): Add strdup-posix, sys_stat.
37253
37254         test-link: consolidate into single C program, test more cases
37255         * tests/test-link.sh: Delete.
37256         * tests/test-link.c: Test more error conditions.  Exposes bugs on
37257         at least Cygwin and Solaris.
37258         * modules/link-tests (Files): Remove unused file.
37259         (Depends-on): Add errno, sys_stat.
37260         (Makefile.am): Simplify.
37261
37262 2009-09-08  Bruno Haible  <bruno@clisp.org>
37263
37264         Work around towlower, towupper bug on mingw.
37265         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
37266         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
37267         * doc/posix-functions/towlower.texi: Mention the mingw bug.
37268         * doc/posix-functions/towupper.texi: Likewise.
37269         Reported by Eric Blake.
37270
37271 2009-09-08  Jim Meyering  <meyering@redhat.com>
37272
37273         build: don't try to run autoheader if we don't use it
37274         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
37275         is not used in configure.ac.
37276
37277 2009-09-08  Eric Blake  <ebb9@byu.net>
37278
37279         euidaccess: fix compilation error
37280         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
37281
37282         rawmemchr: relax license
37283         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
37284         okay.
37285         Reported by Jim Meyering.
37286
37287         mkfifoat: new module
37288         * modules/mkfifoat: New file.
37289         * lib/mkfifoat.c: Likewise.
37290         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
37291         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37292         * modules/sys_stat (Makefile.am): Use them.
37293         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
37294         * MODULES.html.sh (File system functions): Mention module.
37295         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
37296         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
37297         * modules/mkfifoat-tests: New test.
37298         * tests/test-mkfifoat.c: Likewise.
37299
37300         strchrnul: relax license
37301         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
37302         okay.
37303         Reported by Jim Meyering.
37304
37305 2009-09-08  Eric Blake  <ebb9@byu.net>
37306
37307         fstatat: fix compilation on Solaris
37308         * lib/fstatat.c (includes): Add fcntl.h.
37309         Reported by Pádraig Brady.
37310
37311 2009-09-07  Eric Blake  <ebb9@byu.net>
37312
37313         rename: modernize replacement
37314         * modules/rename (Depends-on): Add stdio.
37315         (configure.ac): Declare witness.
37316         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
37317         stdio take care of replacement.
37318         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
37319         * modules/stdio (Makefile.am): Substitute them.
37320         * lib/stdio.in.h (rename): Declare replacement.
37321         * lib/rename.c (includes): Allow cross-compilation to non-windows
37322         machines.
37323         * doc/posix-functions/rename.texi (rename): Improve
37324         documentation.
37325
37326         stdio: sort witness names
37327         * modules/stdio (Makefile.am): Sort replacements.
37328         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37329         * lib/stdio.in.h: Likewise.
37330
37331         getcwd: minor cleanups
37332         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
37333         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
37334
37335         openat: provide more convenience names
37336         * modules/faccessat (configure.ac): Add C witness.
37337         * lib/unistd.in.h (readlinkat): Fix typo.
37338         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
37339         convenience wrappers.
37340         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
37341         wrappers in syntax checks.
37342
37343 2009-09-06  Eric Blake  <ebb9@byu.net>
37344
37345         doc: fix comments in recent patches
37346         * lib/faccessat.c: Mention correct function.
37347         * lib/fchmodat.c: Likewise.
37348         * lib/fchownat.c: Likewise.
37349         * lib/symlinkat.c: Likewise.
37350         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
37351         constants.
37352
37353         faccessat, symlinkat: continue cleanup of previous patch
37354         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
37355         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
37356         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
37357         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
37358         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
37359         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
37360         set.
37361
37362 2009-09-06  Bruno Haible  <bruno@clisp.org>
37363
37364         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
37365         (fstatat): Declare if GNULIB_FSTATAT is set.
37366         (mkdirat): Declare if GNULIB_MKDIRAT is set.
37367         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
37368         (unlinkat): Declare if GNULIB_UNLINKAT is set.
37369         * modules/fcntl-h (Files): Remove m4/openat.m4.
37370         * modules/sys_stat (Files): Remove m4/openat.m4.
37371         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
37372         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
37373         * modules/unistd (Files): Remove m4/openat.m4.
37374         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
37375         GNULIB_OPENAT.
37376         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
37377         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
37378         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
37379         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
37380         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
37381         gl_OPENAT_DEFAULTS.
37382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
37383         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
37384         Don't require gl_OPENAT_DEFAULTS.
37385         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
37386         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
37387         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
37388         (gl_OPENAT_DEFAULTS): Remove macro.
37389
37390 2009-09-06  Bruno Haible  <bruno@clisp.org>
37391
37392         * modules/openat (configure.ac): Remove unneeded witness.
37393
37394 2009-09-06  Bruno Haible  <bruno@clisp.org>
37395
37396         Set errno to ENOSYS when a function is entirely unsupported.
37397         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
37398         EOPNOTSUPP.
37399         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37400         * modules/chown (Depends-on): Remove errno.
37401
37402 2009-09-06  Bruno Haible  <bruno@clisp.org>
37403
37404         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
37405
37406 2009-09-06  Bruno Haible  <bruno@clisp.org>
37407
37408         * lib/sys_stat.in.h: Fix preprocessor command indentation.
37409
37410 2009-09-06  Ben Pfaff  <blp@gnu.org>
37411             Bruno Haible  <bruno@clisp.org>
37412
37413         Work around a glibc bug in strtok_r.
37414         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
37415         Undefine if UNDEFINE_STRTOK_R is set.
37416         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
37417         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37418         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
37419         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
37420         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
37421         UNDEFINE_STRTOK_R.
37422         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
37423
37424 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
37425
37426         exclude: minor fix
37427         * lib/exclude.c: Include wctype.h
37428
37429 2009-09-06  Akim Demaille  <demaille@gostai.com>
37430
37431         bootstrap: improve error message
37432         * build-aux/bootstrap (find_tool): Upon failure, report the list
37433         of candidates.
37434         Honor the initial value of the envvar.
37435
37436 2009-09-05  Eric Blake  <ebb9@byu.net>
37437
37438         symlinkat: new module
37439         * modules/symlinkat: New file.
37440         * lib/symlinkat.c: Likewise.
37441         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
37442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37443         * modules/unistd (Makefile.am): Use them.
37444         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
37445         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
37446         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
37447         * MODULES.html.sh (File system functions): Mention module.
37448         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37449         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37450         * modules/symlinkat-tests: New test.
37451         * tests/test-symlinkat.c: Likewise.
37452
37453         test-openat-safer: add more checks
37454         * tests/test-openat-safer.c (main): Check more code paths.
37455
37456 2009-09-05  Jim Meyering  <meyering@redhat.com>
37457
37458         syntax-check: detect unnecessary inclusion of openat.h
37459         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
37460
37461 2009-09-05  Bruno Haible  <bruno@clisp.org>
37462
37463         Support towlower, towupper.
37464         * doc/posix-functions/towlower.texi: Mention module wctype.
37465         * doc/posix-functions/towupper.texi: Likewise.
37466         * lib/wctype.in.h (towlower, towupper): New functions.
37467         * tests/test-wctype.c: Include stdio.h, stdlib.h.
37468         (ASSERT): New macro.
37469         (e): New variable.
37470         (main): Test also towlower, towupper. Test WEOF argument.
37471         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37472
37473 2009-09-05  Bruno Haible  <bruno@clisp.org>
37474
37475         Fix conversion behaviour when the input is invalid.
37476         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
37477         mark occurring in first pass of indirect conversion.
37478         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
37479         input.
37480         Found by clang's static analyzer.
37481
37482 2009-09-05  Bruno Haible  <bruno@clisp.org>
37483
37484         * tests/test-striconveh.c (main): Test indirect conversion on platforms
37485         where direct conversion is possible.
37486
37487 2009-09-04  Eric Blake  <ebb9@byu.net>
37488
37489         openat: fail with ENOENT on empty name
37490         * lib/openat-proc.c (openat_proc_name): Special-case the empty
37491         buffer.
37492
37493         link-follow: fix logic bug in prior patch
37494         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
37495         reversed sense of yes and no in prior patch.  Avoid confusing
37496         compilation failure with desired semantics.
37497
37498         link-follow: accomodate mingw and cross-compilation
37499         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
37500         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
37501         cross-compilation results to -1, to make linkat easier to
37502         implement when cross-compiling.  Trivially support mingw.
37503         * modules/link-follow (configure.ac): Call new name.
37504         * NEWS: Mention this.
37505
37506 2009-09-03  Eric Blake  <ebb9@byu.net>
37507
37508         faccessat: compile replacement
37509         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
37510         needed.
37511
37512         fts: fix compilation error
37513         * lib/fts.c (includes): Re-add "openat.h", for
37514         openat_needs_fchdir.
37515
37516         faccessat: new module
37517         * modules/faccessat: New file.
37518         * lib/faccessat.c: Likewise.
37519         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
37520         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37521         * modules/unistd (Makefile.am): Use it.
37522         * lib/unistd.in.h (faccessat): Declare it.
37523         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
37524         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
37525         * MODULES.html.sh (File system functions): Mention it.
37526         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
37527         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37528
37529         euidaccess: prefer POSIX over non-standard implementation
37530         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
37531         * lib/euidaccess.c (euidaccess): Use it if available.
37532
37533         openat: make template easier to use
37534         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
37535         AT_FUNC_F2 to be undefined.
37536         (VALIDATE_FLAG): New macro; use it to reject bad flags.
37537         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
37538         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
37539         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
37540         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
37541         Likewise.
37542         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
37543         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
37544         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
37545         Likewise.
37546
37547         openat: declare in POSIX headers
37548         * NEWS: Mention this.
37549         * modules/openat (configure.ac): Declare witnesses.
37550         (Depends-on): Add fcntl-h, sys_stat, unistd.
37551         (Include): Mention correct headers.
37552         * modules/fcntl-h (Depends-on): Add link-warning.
37553         (Files): Add openat.m4.
37554         (Makefile.am): Substitute witnesses.
37555         * modules/sys_stat (Files, Makefile.am): Likewise.
37556         * modules/unistd (Files, Makefile.am): Likewise.
37557         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
37558         (gl_OPENAT_DEFAULTS): New macro.
37559         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
37560         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
37561         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
37562         (SYS_STAT_H): Remove unused variable.
37563         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
37564         * lib/fcntl--.h (includes): Remove unneeded header.
37565         * lib/openat-safer.c (includes): Likewise.
37566         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
37567         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
37568         appropriate headers.
37569         (__OPENAT_PREFIX): Delete.
37570         * lib/fcntl.in.h (openat): Provide declaration.
37571         (AT_FDCWD): Fix Solaris bug.
37572         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
37573         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
37574         * lib/fchmodat.c (includes):  Adjust to find declaration.
37575         * lib/fchownat.c (includes): Likewise.
37576         * lib/mkdirat.c (includes): Likewise.
37577         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
37578         still visible.
37579
37580 2009-09-02  Eric Blake  <ebb9@byu.net>
37581
37582         errno: use consistently
37583         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
37584         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
37585         * lib/canonicalize.c (ELOOP): Likewise.
37586         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
37587         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
37588         * lib/lchown.c (EOPNOTSUPP): Likewise.
37589         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
37590         * lib/savewd.c (ESTALE): Likewise.
37591         * lib/settime.c (ENOSYS): Likewise.
37592         * lib/utimens.c (ENOSYS): Likewise.
37593         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
37594         * lib/chdir-safer.c (ELOOP): Likewise.
37595         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
37596         * modules/c-stack (Depends-on): Add errno.
37597         * modules/canonicalize (Depends-on): Likewise.
37598         * modules/chdir-safer (Depends-on): Likewise.
37599         * modules/fdopendir (Depends-on): Likewise.
37600         * modules/inet_ntop (Depends-on): Likewise.
37601         * modules/inet_pton (Depends-on): Likewise.
37602         * modules/lchown (Depends-on): Likewise.
37603         * modules/openat (Depends-on): Likewise.
37604         * modules/savewd (Depends-on): Likewise.
37605         * modules/settime (Depends-on): Likewise.
37606         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
37607
37608         fts: avoid leaking fds
37609         * modules/fts (Depends-on): Add cloexec.
37610         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
37611         flag.
37612
37613         fts: make directory fds more robust
37614         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
37615         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
37616
37617         backupfile, chdir-long, fts, savedir: make safer
37618         * lib/backupfile.c (includes): Use "dirent--.h", since
37619         numbered_backup can write to stderr during readdir.
37620         * lib/savedir.c (includes): Likewise.
37621         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
37622         emulation can write to stderr on failure.
37623         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
37624         * lib/getcwd.c: Document why opendir_safer is unused.
37625         * lib/glob.c: Likewise.
37626         * lib/scandir.c: Likewise.
37627         * lib/openat-proc.c: Likewise, for open_safer.
37628         * modules/backupfile (Depends-on): Add dirent-safer.
37629         * modules/savedir (Depends-on): Likewise.
37630         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
37631         * modules/chdir-long (Depends-on): Add openat-safer.
37632
37633         openat-safer: new module
37634         * modules/openat-safer: New file.
37635         * lib/openat-safer.c: Likewise.
37636         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
37637         * lib/fcntl-safer.h (openat_safer): Declare.
37638         * lib/fcntl--.h (openat): Override.
37639         * MODULES.html.sh (File descriptor based I/O): Mention it.
37640         * lib/openat.h: Add double-inclusion guards.
37641         * lib/openat.c (includes): Only include "fcntl-safer.h", not
37642         "fcntl--.h", so we can implement openat.
37643         * modules/openat-safer-tests: New test.
37644         * tests/test-openat-safer.c: New file.
37645
37646         dirent-safer: new module
37647         * modules/dirent-safer: New file.
37648         * lib/dirent--.h: Likewise.
37649         * lib/dirent-safer.h: Likewise.
37650         * lib/opendir-safer.c: Likewise.
37651         * m4/dirent-safer.m4: Likewise.
37652         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
37653         * modules/dirent-safer-tests: New test.
37654         * tests/test-dirent-safer.c: New file.
37655         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
37656
37657         fdopendir: optimize on mingw
37658         * lib/unistd.in.h (_gl_directory_name): New prototype.
37659         * lib/fchdir.c (_gl_directory_name): Implement it.
37660         (fchdir): Use it to simplify implementation.
37661         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
37662         fchdir, when available, to avoid calling [f]chdir().
37663
37664         fdopendir: split into its own module
37665         * lib/openat.c (fdopendir): Move...
37666         * lib/fdopendir.c: ...into new file.
37667         * modules/fdopendir: New module.
37668         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
37669         * modules/openat (Depends-on): Add fdopendir.
37670         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
37671         fdopendir here.
37672         * modules/savedir (Depends-on): Only need fdopendir, not full
37673         openat.
37674         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
37675         * lib/openat.h (fdopendir): Drop prototype.
37676         * lib/dirent.in.h (fdopendir): Provide prototype.
37677         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
37678         * modules/dirent (Makefile.am): Substitute them.
37679         * MODULES.html.sh (File system functions): Mention it.
37680         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
37681         * modules/fdopendir-tests: New file.
37682         * tests/test-fdopendir.c: Likewise.
37683
37684         fchdir: use more consistent macro convention
37685         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
37686         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
37687         REPLACE_FCHDIR, rather than relying on config.h macros.
37688         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
37689         inside a single make-time REPLACE_FCHDIR block, rather than using
37690         the config.h FCHDIR_REPLACEMENT.
37691         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
37692         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
37693         Manage fstat replacement.
37694         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
37695         REPLACE_FCHDIR.
37696         * modules/sys_stat (Files): Add m4/unistd_h.m4.
37697         (Makefile.am): Substitute REPLACE_FCHDIR.
37698         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
37699         FCHDIR_REPLACEMENT.
37700         * lib/dup-safer.c (dup_safer): Likewise.
37701         * lib/dup2.c (rpl_dup2): Likewise.
37702         * lib/dup3.c (rpl_dup3): Likewise.
37703         * lib/open.c (rpl_open): Likewise.
37704
37705         fchdir: simplify error handling, and support dup3
37706         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
37707         stdbool, malloc-posix, realloc-posix.
37708         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
37709         (ensure_dirs_slot): Return false on allocation failure.
37710         (rpl_dup2): Delete.
37711         (_gl_register_dup): New function.
37712         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
37713         (_gl_register_fd): Close fd on allocation failure.
37714         * lib/fcntl.in.h (_gl_register_fd): Update signature.
37715         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
37716         prototype.
37717         (rpl_dup2_fchdir): Delete prototype.
37718         * lib/open.c (open): Update caller.
37719         * lib/dup2.c (dup2): Track fchdir metadata.
37720         * lib/dup3.c (dup3): Likewise.
37721         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
37722         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
37723
37724 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37725
37726         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
37727         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
37728         don't pass arguments to AC_OUTPUT.
37729
37730 2009-09-02  Bruno Haible  <bruno@clisp.org>
37731
37732         * modules/mkdtemp (License): Relicense under LGPLv2+.
37733         Reported by Paolo Bonzini.
37734
37735 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37736
37737         Replace uses of obsolete autoconf macros in Jim's modules.
37738         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
37739         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
37740         can evoke a warning from autoconf when run with -Wobsolete
37741         enabled.  They were declared obsolete for good reasons (see
37742         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
37743         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
37744         should not continue using the deprecated macros.
37745         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
37746         obsolete Autoconf macros with modern counterparts.
37747         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
37748         * m4/dos.m4 (gl_AC_DOS): Likewise.
37749         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
37750         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
37751         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
37752         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
37753         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
37754         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
37755         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
37756         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
37757         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
37758         Likewise.
37759         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
37760         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
37761         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
37762         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
37763         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37764         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
37765
37766 2009-09-01  Eric Blake  <ebb9@byu.net>
37767
37768         fchdir: fix off-by-one bug in previous patch
37769         * lib/fchdir.c (rpl_fstat): Use correct bounds.
37770         (_gl_unregister_fd): Delete useless if.
37771
37772 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
37773
37774         maint.mk: sort the list of syntax-check rules
37775         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
37776         easier to get a sense of progress when the rules are run sequentially
37777         and take a long time.
37778
37779 2009-09-01  Simon Josefsson  <simon@josefsson.org>
37780
37781         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
37782         * modules/netinet_in: Likewise.
37783         * modules/sys_file: Likewise.
37784         * modules/sys_ioctl: Likewise.
37785         * modules/sys_select: Likewise.
37786         * modules/sys_socket: Likewise.
37787         * modules/sys_stat: Likewise.
37788         * modules/sys_time: Likewise.
37789         * modules/sys_times: Likewise.
37790         * modules/sys_utsname: Likewise.
37791         * modules/sys_wait: Likewise.
37792
37793 2009-09-01  Jim Meyering  <meyering@redhat.com>
37794
37795         fts: help ensure that return values are not ignored
37796         * lib/fts_.h (__GNUC_PREREQ): Define.
37797         (__attribute_warn_unused_result__): Define.
37798         (fts_children, fts_close, fts_open, fts_read): Declare with
37799         __attribute_warn_unused_result__.
37800
37801         fts: fts_close now fails also when closing a dir file descriptor fails
37802         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
37803         and propagate to caller, along with errno.
37804
37805         announce-gen: correct formatting in --help output
37806         * build-aux/announce-gen (usage): Move the one-line description in
37807         --help output "up", to where it belongs, just after Usage:.
37808
37809 2009-08-31  Eric Blake  <ebb9@byu.net>
37810
37811         fchdir: port to mingw
37812         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
37813         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
37814         opened, then use a substitute.
37815         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
37816         replacement.
37817         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
37818         (_gl_register_fd): No need to check stat if open already filters
37819         all directories.
37820         (fchdir): Fix error condition to match POSIX.
37821         * modules/fchdir (Depends-on): Add sys_stat.
37822         * doc/posix-functions/open.texi (open): Document the limitation.
37823         * modules/fchdir-tests: New file.
37824         * tests/test-fchdir.c: Likewise.
37825
37826         canonicalize: allow cross-testing from cygwin to mingw
37827         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
37828         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
37829         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
37830         Likewise.
37831         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
37832         target does not support symlinks.
37833         * tests/test-canonicalize-lgpl.sh: Likewise.
37834
37835         chown: avoid compilation warning on mingw
37836         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
37837         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
37838         mingw.
37839         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37840         * modules/chown (Depends-on): Add errno.
37841
37842 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
37843
37844         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
37845         command.
37846
37847 2009-08-31  Jim Meyering  <meyering@redhat.com>
37848
37849         canonicalize: remove useless initialization
37850         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
37851         initialization of local, "end".
37852
37853 2009-08-30  Bruno Haible  <bruno@clisp.org>
37854
37855         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
37856         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
37857         ENOSYS.
37858
37859 2009-08-30  Bruno Haible  <bruno@clisp.org>
37860
37861         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
37862         /usr/xpg4/bin/tr when it exists.
37863         * tests/test-pipe-filter-gi1.sh: Likewise.
37864
37865 2009-08-30  Bruno Haible  <bruno@clisp.org>
37866
37867         Work around deficient /usr/bin/id program on Solaris.
37868         * tests/test-file-has-acl.sh (ID): New variable.
37869         * tests/test-set-mode-acl.sh (ID): Likewise.
37870         * tests/test-copy-acl.sh (ID): Likewise.
37871         * tests/test-copy-file.sh (ID): Likewise.
37872
37873 2009-08-30  Bruno Haible  <bruno@clisp.org>
37874
37875         New module 'xstriconveh'.
37876         * lib/xstriconveh.h: New file.
37877         * lib/xstriconveh.c: New file.
37878         * modules/xstriconveh: New file.
37879
37880 2009-08-30  Bruno Haible  <bruno@clisp.org>
37881
37882         Make it easier to use mem_cd_iconveh.
37883         * lib/striconveh.h (iconveh_t): New type.
37884         (iconveh_open, iconveh_close): New declarations.
37885         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37886         with a single 'const iconveh_t *' argument.
37887         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
37888         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37889         with a single 'const iconveh_t *' argument.
37890         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
37891         * tests/test-striconveh.c (main): Update.
37892         * NEWS: Mention the change.
37893
37894 2009-08-30  Bruno Haible  <bruno@clisp.org>
37895
37896         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
37897         problem.
37898
37899 2009-08-30  Bruno Haible  <bruno@clisp.org>
37900
37901         Work around iconv_open problem on Solaris.
37902         * lib/iconv_open-solaris.gperf: New file.
37903         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
37904         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
37905         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
37906         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
37907         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
37908         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
37909
37910 2009-08-29  Jim Meyering  <meyering@redhat.com>
37911
37912         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
37913         * top/maint.mk (cvs-check): Remove target; it was just an alias
37914         to the better-named vc-diff-check.
37915         (maintainer-distcheck): Remove rule.  It was used only from
37916         the (alpha/beta/major) target, and all of its commands but one
37917         were coreutils-specific.
37918         (vc-dist): Remove rule.
37919         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
37920         Run vc-diff-check, not vc-dist.
37921         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
37922
37923 2009-08-27  Bruno Haible  <bruno@clisp.org>
37924
37925         * tests/test-bitrotate.c (main): Remove test that uses a shift count
37926         of 0.
37927
37928 2009-08-27  Bruno Haible  <bruno@clisp.org>
37929
37930         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
37931         compilers.
37932         * doc/func.texi: Document the SunPRO C bug.
37933
37934 2009-08-27  Bruno Haible  <bruno@clisp.org>
37935
37936         Fix link error on Solaris.
37937         * tests/test-parse-duration.c (xstrdup): Remove function.
37938
37939 2009-08-26  Pádraig Brady  <P@draigbrady.com>
37940
37941         ignore-value: handle pointer types, too
37942         * lib/ignore-value.h (__attribute__): Remove definition.
37943         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
37944         of a more concise and more-often effective "(void) i" statement.
37945         (ignore_ptr): New function to suppress warnings from functions that
37946         return pointers, and to make it explicit that one function doesn't
37947         handle all cases.
37948
37949 2009-08-25  Bruno Haible  <bruno@clisp.org>
37950
37951         dup2: work around a Linux bug.
37952         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
37953         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
37954         * doc/posix-functions/dup2.texi: Mention the Linux bug.
37955         Reported by Simon Josefsson.
37956
37957 2009-08-25  Jim Meyering  <meyering@redhat.com>
37958
37959         libguestfs uses gnulib
37960         * users.txt: Add libguestfs.
37961
37962 2009-08-24  Eric Blake  <ebb9@byu.net>
37963
37964         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
37965         * lib/pipe2.c (includes): Add binary-io.h.
37966         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
37967
37968 2009-08-24  Bruno Haible  <bruno@clisp.org>
37969
37970         Tolerate declared but missing accept4 syscall.
37971         * lib/accept4.c (accept4): Invoke original accept4 function first, if
37972         available.
37973         * lib/sys_socket.in.h (accept4): If the function is already present,
37974         override it.
37975         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
37976         * modules/accept4 (Makefile.am): Compile accept4.c always.
37977         Reported by Paolo Bonzini and Eric Blake.
37978
37979 2009-08-23  Bruno Haible  <bruno@clisp.org>
37980
37981         New module 'accept4'.
37982         * lib/sys_socket.in.h (accept4): New declaration.
37983         * lib/accept4.c: New file.
37984         * m4/accept4.m4: New file.
37985         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37986         GNULIB_ACCEPT4, HAVE_ACCEPT4.
37987         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
37988         HAVE_ACCEPT4.
37989         * modules/accept4: New file.
37990         * doc/glibc-functions/accept4.texi: Mention the new module.
37991
37992 2009-08-24  Jim Meyering  <meyering@redhat.com>
37993
37994         progname: also set global program_invocation_name, when possible
37995         Before this change, a libtool-enabled program that calls glibc's
37996         error function would report the program name as
37997         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
37998         * modules/progname (configure.ac): Check for a declaration of
37999         program_invocation_name.
38000         * lib/progname.c:  Include <errno.h>.
38001         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
38002         Set program_invocation_name.
38003
38004 2009-08-23  Bruno Haible  <bruno@clisp.org>
38005
38006         * lib/dup3.c: Include <string.h>.
38007
38008 2009-08-23  Bruno Haible  <bruno@clisp.org>
38009
38010         * lib/dup3.c (dup3): Test only once whether the system actually exists.
38011         * lib/pipe2.c (pipe2): Likewise.
38012         Suggested by Eric Blake.
38013
38014 2009-08-23  Bruno Haible  <bruno@clisp.org>
38015
38016         Tolerate declared but missing dup3 syscall.
38017         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
38018         * lib/unistd.in.h (dup3): If the function is already present,
38019         override it.
38020         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
38021         * modules/dup3 (Makefile.am): Compile dup3.c always.
38022         Reported by Paolo Bonzini.
38023
38024 2009-08-23  Bruno Haible  <bruno@clisp.org>
38025
38026         Tolerate declared but missing pipe2 syscall.
38027         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
38028         available.
38029         * lib/unistd.in.h (pipe2): If the function is already present,
38030         override it.
38031         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
38032         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
38033         Reported by Paolo Bonzini.
38034
38035 2009-08-23  Bruno Haible  <bruno@clisp.org>
38036
38037         * lib/pipe2.c (pipe2): Move #ifs inside function.
38038
38039 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38040
38041         quotearg: document limitations of quote_these_too
38042         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
38043         those limitations are created.
38044         * lib/quotearg.h (set_char_quoting): Document that digits and
38045         letters that are special after backslash are not permitted.
38046         (quotearg_char): Cross-reference set_char_quoting documentation.
38047
38048 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
38049
38050         quotearg: implement custom_quoting_style
38051         * lib/quotearg.c: (struct quoting_options): Add left_quote and
38052         right_quote fields.
38053         (set_custom_quoting): New public function.
38054         (quotearg_buffer_restyled): Add left_quote and right_quote
38055         arguments, handle them very much like locale quoting, and update
38056         all uses.
38057         (quotearg_n_custom): New public function.
38058         (quotearg_n_custom_mem): New public function.
38059         (quotearg_custom): New public function.
38060         (quotearg_custom_mem): New public function.
38061         * lib/quotearg.h: Prototype and document new public functions.
38062         (enum quoting_style): For escape_quoting_style and
38063         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
38064         ignored even though they're otherwise like c_quoting_style.
38065         Add custom_quoting_style member and document with comparison to
38066         clocale_quoting_style.
38067         * tests/test-quotearg.c (custom_quotes): New array.
38068         (custom_results): New array.
38069         (main): Extend to test custom quoting.
38070
38071 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38072
38073         quotearg: fix right quote escaping when it's in quote_these_too
38074         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
38075         quote, be sure to prepend only one backslash.
38076         * tests/test-quotearg.c (use_quote_double_quotes): New function.
38077         (main): Test it.
38078
38079 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38080
38081         quotearg-tests: test escaping of embedded locale quotes
38082         * tests/test-quotearg.c (struct result_strings): Add member for
38083         new input.
38084         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
38085         (inputs): Add new input.
38086         (results_g): Add expected results.
38087         (flag_results): Likewise.
38088         (locale_results): Likewise.
38089         (compare_strings): Check those.
38090
38091 2009-08-23  Bruno Haible  <bruno@clisp.org>
38092
38093         Tests for module 'dup3'.
38094         * modules/dup3-tests: New file.
38095         * tests/test-dup3.c: New file.
38096
38097         New module 'dup3'.
38098         * lib/unistd.in.h (dup3): New declaration.
38099         * lib/dup3.c: New file.
38100         * m4/dup3.m4: New file.
38101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
38102         HAVE_DUP3.
38103         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
38104         * modules/dup3: New file.
38105         * doc/glibc-functions/dup3.texi: Mention the new module.
38106
38107 2009-08-23  Bruno Haible  <bruno@clisp.org>
38108
38109         Tweak the dup2 test.
38110         * tests/test-dup2.c (main): Create the test file empty. Verify that an
38111         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
38112         the test file is still empty. Fix argument order of lseek.
38113
38114 2009-08-23  Bruno Haible  <bruno@clisp.org>
38115
38116         Avoid test link errors when the modules getopt-gnu, gettext are used.
38117         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
38118         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38119
38120 2009-08-23  Bruno Haible  <bruno@clisp.org>
38121
38122         Fix getdtablesize() on mingw.
38123         * lib/getdtablesize.c (getdtablesize): Implement differently.
38124         * lib/unistd.in.h (getdtablesize): Improve comment.
38125
38126 2009-08-23  Bruno Haible  <bruno@clisp.org>
38127
38128         New module 'mkostemp'.
38129         Based on Ulrich Drepper's 2007-08-10 change in glibc.
38130         * lib/stdlib.in.h (mksotemp): New declaration.
38131         * lib/mkostemp.c: New file, from glibc with modifications.
38132         * lib/tempname.h (GT_FILE): Remove outdated comment.
38133         (gen_tempname): Add flags argument.
38134         * lib/tempname.c (__GT_BIGFILE): Remove macro.
38135         (__GT_FILE): Map to 1.
38136         (small_open, large_open): Remove macros.
38137         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
38138         * lib/mkstemp.c (mkstemp): Update.
38139         * lib/mkdtemp.c (mkdtemp): Likewise.
38140         * m4/mkostemp.m4: New file.
38141         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
38142         HAVE_MKOSTEMP.
38143         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
38144         HAVE_MKOSTEMP.
38145         * modules/mkostemp: New file, based on modules/mkstemp.
38146         * doc/glibc-functions/mkostemp.texi: Mention the new module.
38147         * NEWS: Mention the change.
38148
38149 2009-08-23  Bruno Haible  <bruno@clisp.org>
38150
38151         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
38152         Reported by Eric Blake.
38153
38154 2009-08-23  Bruno Haible  <bruno@clisp.org>
38155
38156         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
38157         Reported by Eric Blake.
38158
38159 2009-08-23  Bruno Haible  <bruno@clisp.org>
38160
38161         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
38162         * modules/pipe2 (Depends-on): Likewise.
38163
38164 2009-08-23  Eric Blake  <ebb9@byu.net>
38165
38166         fcntl-h: add O_TTY_INIT support
38167         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
38168         * tests/test-fcntl-h.c (o): Test it.
38169         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38170
38171         fcntl-h: rename from fcntl, in preparation for fcntl(2)
38172         * modules/fcntl: Move <fcntl.h> header replacement...
38173         * modules/fcntl-h: ...to new name, so as not to collide with
38174         like-named function.
38175         * tests/test-fcntl.c: Rename...
38176         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
38177         * modules/fcntl-tests: Rename...
38178         * modules/fcntl-h-tests: ...to this.  Update test file name.
38179         * modules/chdir-long (Depends-on): Update clients.
38180         * modules/chdir-safer (Depends-on): Likewise.
38181         * modules/fcntl-safer (Depends-on): Likewise.
38182         * modules/fts (Depends-on): Likewise.
38183         * modules/mkancesdirs (Depends-on): Likewise.
38184         * modules/mkdir-p (Depends-on): Likewise.
38185         * modules/open (Depends-on): Likewise.
38186         * modules/savewd (Depends-on): Likewise.
38187         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
38188         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38189
38190 2009-08-22  Bruno Haible  <bruno@clisp.org>
38191
38192         * modules/binary-io (License): Relicense under LGPL.
38193         * modules/pipe2 (License): Likewise.
38194
38195 2009-08-22  Bruno Haible  <bruno@clisp.org>
38196
38197         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
38198         return value.
38199         * lib/pipe-filter-gi.c (filter_init): Likewise.
38200         Reported by Eric Blake.
38201
38202 2009-08-22  Bruno Haible  <bruno@clisp.org>
38203
38204         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
38205         * modules/pipe (Depends-on): Add pipe2.
38206
38207 2009-08-22  Bruno Haible  <bruno@clisp.org>
38208
38209         Tests for module 'pipe2'.
38210         * modules/pipe2-tests: New file.
38211         * tests/test-pipe2.c: New file.
38212
38213         New module 'pipe2'.
38214         * lib/unistd.in.h (pipe2): New declaration.
38215         * lib/pipe2.c: New file.
38216         * m4/pipe2.m4: New file.
38217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
38218         HAVE_PIPE2.
38219         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
38220         * modules/pipe2: New file.
38221         * doc/glibc-functions/pipe2.texi: Mention the new module.
38222
38223 2009-08-22  Bruno Haible  <bruno@clisp.org>
38224
38225         Reference some new glibc functions.
38226         * doc/glibc-functions/accept4.texi: New file.
38227         * doc/glibc-functions/dup3.texi: New file.
38228         * doc/glibc-functions/mkostemp.texi: New file.
38229         * doc/glibc-functions/pipe2.texi: New file.
38230         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
38231         (Glibc sys/socket.h): Refer to accept4.
38232         (Glibc unistd.h): Refer to dup3, pipe2.
38233         Reported by Eric Blake.
38234
38235 2009-08-22  Jim Meyering  <meyering@redhat.com>
38236             Bruno Haible  <bruno@clisp.org>
38237
38238         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
38239         This makes it so packages using automake-1.11's silent-rules option
38240         can print e.g., a single "GEN    configmake.h" line, rather than
38241         the 30+ statements that perform the job.  If you want to see the
38242         actual commands, you can still run "make V=1".
38243         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
38244         so that make output is abbreviated when those variables are defined
38245         appropriately.
38246         * modules/argz: Likewise.
38247         * modules/arpa_inet: Likewise.
38248         * modules/byteswap: Likewise.
38249         * modules/configmake: Likewise.
38250         * modules/dirent: Likewise.
38251         * modules/errno: Likewise.
38252         * modules/fcntl: Likewise.
38253         * modules/float: Likewise.
38254         * modules/fnmatch: Likewise.
38255         * modules/getopt-posix: Likewise.
38256         * modules/glob: Likewise.
38257         * modules/iconv_open: Likewise.
38258         * modules/inttypes: Likewise.
38259         * modules/localcharset: Likewise.
38260         * modules/locale: Likewise.
38261         * modules/math: Likewise.
38262         * modules/netdb: Likewise.
38263         * modules/netinet_in: Likewise.
38264         * modules/poll: Likewise.
38265         * modules/posix_spawnp-tests: Likewise.
38266         * modules/sched: Likewise.
38267         * modules/search: Likewise.
38268         * modules/selinux-h: Likewise.
38269         * modules/signal: Likewise.
38270         * modules/spawn: Likewise.
38271         * modules/stdarg: Likewise.
38272         * modules/stdbool: Likewise.
38273         * modules/stddef: Likewise.
38274         * modules/stdint: Likewise.
38275         * modules/stdio: Likewise.
38276         * modules/stdlib: Likewise.
38277         * modules/string: Likewise.
38278         * modules/strings: Likewise.
38279         * modules/sys_file: Likewise.
38280         * modules/sys_ioctl: Likewise.
38281         * modules/sys_select: Likewise.
38282         * modules/sys_socket: Likewise.
38283         * modules/sys_stat: Likewise.
38284         * modules/sys_time: Likewise.
38285         * modules/sys_times: Likewise.
38286         * modules/sys_utsname: Likewise.
38287         * modules/sys_wait: Likewise.
38288         * modules/sysexits: Likewise.
38289         * modules/time: Likewise.
38290         * modules/unistd: Likewise.
38291         * modules/wchar: Likewise.
38292         * modules/wctype: Likewise.
38293
38294 2009-08-22  Jim Meyering  <meyering@redhat.com>
38295
38296         announce-gen: detect write failure
38297         * build-aux/announce-gen: Add Coda at end.
38298         Remove equivalent-but-more-verbose block at top.
38299
38300 2009-08-19  Akim Demaille  <demaille@gostai.com>
38301
38302         bootstrap: --help to stdout.
38303         * bootstrap (usage): Don't send --help to stderr.
38304         Use a here doc instead of a long string.
38305
38306 2009-08-21  Eric Blake  <ebb9@byu.net>
38307
38308         test-popen-safer: split from test-popen
38309         * tests/test-popen.c (main): Move...
38310         * tests/test-popen.h: ...into new file.
38311         * tests/test-popen-safer2.c: New file.
38312         * modules/popen-tests (Files): Add test-popen.h.
38313         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
38314         Suggested by Bruno Haible.
38315
38316         test-fcntl-safer: split from test-open
38317         * tests/test-open.c (main): Move...
38318         * tests/test-open.h: ...into new file.
38319         * tests/test-fcntl-safer.c: New file.
38320         * modules/open-tests (Files): Add test-open.h.
38321         * modules/fcntl-safer-tests: New file.
38322         Suggested by Bruno Haible.
38323
38324         test-fopen-safer: split from test-fopen
38325         * tests/test-fopen.c (main): Move...
38326         * tests/test-fopen.h: ...into new file.
38327         * tests/test-fopen-safer.c: New file.
38328         * modules/fopen-tests (Files): Add test-fopen.h.
38329         * modules/fopen-safer-tests: New file.
38330         Suggested by Bruno Haible.
38331
38332 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
38333
38334         popen-safer: test O_CLOEXEC at run-time.
38335         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
38336
38337 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
38338
38339         fcntl: move more flags to the header
38340         * lib/cloexec.c: Do not define FD_CLOEXEC here.
38341         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
38342         * lib/fcntl.in.h: Do both things here.
38343
38344 2009-08-21  Jim Meyering  <meyering@redhat.com>
38345
38346         consistently remove $@-t before redirecting to it
38347         * modules/argz: Remove $@-t and $@ before redirecting to the former.
38348         * modules/alloca-opt: Likewise.
38349         * modules/byteswap: Likewise.
38350         * modules/fnmatch: Likewise.
38351         * modules/getopt-posix: Likewise.
38352         * modules/glob: Likewise.
38353         * modules/poll: Likewise.
38354         * modules/posix_spawnp-tests: Likewise.
38355         * modules/sys_socket: Likewise.
38356         * modules/sysexits: Likewise.
38357
38358 2009-08-21  Eric Blake  <ebb9@byu.net>
38359
38360         popen: simplify access to original popen
38361         * lib/popen.c (rpl_popen): No need to worry about popen being a
38362         macro.
38363         Reported by Bruno Haible.
38364
38365 2009-08-20  Eric Blake  <ebb9@byu.net>
38366
38367         build: avoid some compiler warnings
38368         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
38369         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
38370         type.
38371         (new_exclude_segment, excluded_file_pattern_p)
38372         (excluded_file_name_p): Reduce scope.
38373         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
38374         old-style declaration.
38375
38376 2009-08-20  Simon Josefsson  <simon@josefsson.org>
38377
38378         * tests/test-exclude1.sh: Handle Windows EOL.
38379         * tests/test-exclude2.sh: Likewise.
38380         * tests/test-exclude3.sh: Likewise.
38381         * tests/test-exclude4.sh: Likewise.
38382         * tests/test-exclude5.sh: Likewise.
38383         * tests/test-exclude6.sh: Likewise.
38384         * tests/test-exclude7.sh: Likewise.
38385
38386 2009-08-19  Akim Demaille  <demaille@gostai.com>
38387
38388         bootstrap: find sha1sum when named gsha1sum.
38389         * bootstrap (find_tool): New.
38390         ($SHA1SUM): New.
38391         Use it.
38392
38393 2009-08-20  Jim Meyering  <meyering@redhat.com>
38394
38395         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
38396         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
38397         expression that converts "." in a file name to "\." in the resulting
38398         regexp.  Start with a dummy statement, so that prior shell variable
38399         definitions are expanded portably.  Reported by Simon Josefsson.
38400
38401 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
38402
38403         Fix polling for writeability of a screen buffer.
38404         * lib/poll.c: Distinguish input and screen buffers for the
38405         Win32 implementation.
38406         * lib/select.c: Likewise.
38407
38408 2009-08-19  Eric Blake  <ebb9@byu.net>
38409
38410         popen-safer: prevent popen from clobbering std descriptors
38411         * modules/popen-safer: New file.
38412         * lib/popen-safer.c: Likewise.
38413         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
38414         * lib/stdio--.h (popen): Provide override.
38415         * lib/stdio-safer.h (popen_safer): Provide declaration.
38416         * tests/test-popen.c (includes): Partially test this.
38417         * modules/popen-safer-tests: New file, for more tests.
38418         * tests/test-popen-safer.c: Likewise.
38419         * MODULES.html.sh (file stream based Input/Output): Mention it.
38420
38421         tests: test some of the *-safer modules
38422         * modules/fopen-safer (Depends-on): Add fopen.
38423         * modules/fcntl-safer (Depends-on): Add fcntl.
38424         * modules/stdlib-safer (Depends-on): Add stdlib.
38425         (configure.ac): Set indicator.
38426         * modules/unistd-safer (configure.ac): Likewise.
38427         * modules/tmpfile-safer (configure.ac): Likewise.
38428         (Depends-on): Add tmpfile.
38429         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
38430         active.
38431         * tests/test-fopen.c (includes): Test safer versions when they are
38432         in use.
38433         * tests/test-open.c (includes): Likewise.
38434
38435         popen: fix cygwin 1.5 bug when stdin closed
38436         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
38437         * modules/popen: New file.
38438         * modules/popen-tests: Likewise.
38439         * tests/test-popen.c: Likewise.
38440         * m4/popen.m4: Likewise.
38441         * lib/popen.c: Likewise.
38442         * lib/stdio.in.h (popen): New declaration.
38443         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
38444         * modules/stdio (Makefile.am): Likewise.
38445         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
38446
38447 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
38448
38449         maint.mk: give full control over update-copyright exclusions
38450         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
38451         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
38452         (update-copyright): Don't force inclusion of top-level
38453         ChangeLog.  Don't force exclusion of all COPYING files, but make
38454         them the default exclusion instead.
38455
38456 2009-08-16  Bruno Haible  <bruno@clisp.org>
38457
38458         Fix test failures on Solaris 10.
38459         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
38460         tests when Solaris iconv() is used.
38461         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
38462         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
38463         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
38464         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
38465         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
38466
38467 2009-08-16  Bruno Haible  <bruno@clisp.org>
38468
38469         Fix test failures on Solaris 10.
38470         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
38471         'tr' program and pass it as first argument.
38472         * tests/test-pipe-filter-gi1.sh: Likewise.
38473         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
38474         program as first argument.
38475         * tests/test-pipe-filter-gi1.c (main): Likewise.
38476
38477 2009-08-16  Eric Blake  <ebb9@byu.net>
38478
38479         fpurge: fix previous commits
38480         * modules/fpurge (Makefile.am): Make replacement conditional,
38481         partially reverting 2007-04-29 change; missed in previous
38482         attempt.
38483         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
38484         is missing.
38485
38486 2009-08-16  Bruno Haible  <bruno@clisp.org>
38487
38488         Clarify fpurge's effect on the file position.
38489         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
38490         * tests/test-fpurge.c (main): Make a second pass for checking the file
38491         position.
38492
38493 2009-08-16  Bruno Haible  <bruno@clisp.org>
38494
38495         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
38496         declaration of fpurge is missing.
38497         * tests/test-fpurge.c (main): Check that the file has not more contents
38498         than expected. Close the file before removing it.
38499
38500 2009-08-15  Eric Blake  <ebb9@byu.net>
38501
38502         fpurge: don't wrap working cygwin implementation
38503         * lib/fpurge.c (fpurge): Fix comment typo.
38504         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
38505         1.7 to avoid replacement.
38506         * tests/test-fpurge.c (main): Enhance test.
38507
38508 2009-08-15  Eric Blake  <ebb9@byu.net>
38509         and Jim Meyering  <meyering@redhat.com>
38510
38511         test-update-copyright: skip if perl is insufficient
38512         * tests/test-update-copyright.sh: Failure to run maintainer tool
38513         should not cause testsuite failure on cygwin 1.5.
38514
38515 2009-08-14  Eric Blake  <ebb9@byu.net>
38516
38517         doc: mention more functions added in cygwin 1.7.0
38518         * doc/posix-headers/limits.texi (limits.h): Update for recent
38519         cygwin additions.
38520         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
38521         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
38522         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
38523         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
38524         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
38525
38526 2009-08-14  Eric Blake  <ebb9@byu.net>
38527
38528         maint.mk: simplify update-copyright rule
38529         * top/maint.mk (update-copyright-local): Delete, and document how
38530         to do it in cfg.mk instead.
38531         (update-copyright-exclude-regexp): Delete, and document how to do
38532         it in .x-update-copyright instead.
38533         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
38534         exclude ChangeLog.
38535
38536 2009-08-14  Bruno Haible  <bruno@clisp.org>
38537
38538         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
38539
38540 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38541
38542         maint.mk: support update-copyright-env
38543         * top/maint.mk (update-copyright-env): Define place-holder.
38544         (update-copyright): Expand $(update-copyright-env) before
38545         invoking update-copyright.
38546
38547 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38548
38549         update-copyright: implement forced reformatting
38550         * build-aux/update-copyright: Implement and document
38551         UPDATE_COPYRIGHT_FORCE.
38552         * tests/test-update-copyright.sh: Test it.
38553
38554 2009-08-14  Eric Blake  <ebb9@byu.net>
38555         and Bruno Haible  <bruno@clisp.org>
38556
38557         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
38558         * tests/test-locale.c: Revert previous patch related to NULL.
38559         * tests/test-stdio.c: Likewise.
38560         * tests/test-stdlib.c: Likewise.
38561         * tests/test-string.c: Likewise.
38562         * tests/test-unistd.c: Likewise.
38563         * modules/time-tests (Depends-on): Add verify.
38564         * modules/wchar-tests (Depends-on): Likewise.
38565         * tests/test-time.c: Test for NULL compliance.
38566         * tests/test-wchar.c: Likewise.
38567         * modules/locale (Depends-on): Add stddef.
38568         * modules/stdio (Depends-on): Likewise.
38569         * modules/stdlib (Depends-on): Likewise.
38570         * modules/string (Depends-on): Likewise.
38571         * modules/time (Depends-on): Likewise.
38572         * modules/unistd (Depends-on): Likewise.
38573         * modules/wchar (Depends-on): Likewise.
38574         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
38575         * lib/stdlib.in.h (includes): Likewise.
38576         * lib/string.in.h (includes): Likewise.
38577         * lib/time.in.h (includes): Likewise.
38578         * lib/unistd.in.h (includes): Likewise.
38579         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
38580         replaced.
38581         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38582         * m4/stddef_h.m4: New file.
38583         * modules/stddef: Likewise.
38584         * lib/stddef.in.h: Likewise.
38585         * modules/stddef-tests: Likewise.
38586         * tests/test-stddef.c: Likewise.
38587         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
38588         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
38589         * doc/posix-headers/locale.texi (locale.h): Likewise.
38590         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
38591         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
38592         * doc/posix-headers/string.texi (string.h): Likewise.
38593         * doc/posix-headers/time.texi (time.h): Likewise.
38594         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
38595         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
38596
38597 2009-08-14  Eric Blake  <ebb9@byu.net>
38598
38599         doc: improve git diff of texinfo files
38600         * .gitattributes: Add rule for *.texi files, with hint on how to
38601         use it.
38602         Copied from m4, and based on a report by Bruno Haible.
38603
38604 2009-08-14  Bruno Haible  <bruno@clisp.org>
38605
38606         Disable multithread support by default on Cygwin 1.5.x for real.
38607         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
38608
38609 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38610
38611         update-copyright: much ado about intervals
38612         * build-aux/update-copyright: Implement and document
38613         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
38614         of copyright year intervals.
38615         Also, document UPDATE_COPYRIGHT_YEAR.
38616         * tests/test-update-copyright.sh: Test it.
38617
38618         update-copyright: convert 2-digit to 4-digit years
38619         * build-aux/update-copyright: Implement and document.
38620         * tests/test-update-copyright.sh: Update.
38621
38622 2009-08-14  Jim Meyering  <meyering@redhat.com>
38623
38624         test-exclude: avoid coreutils "make check" failure
38625         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
38626         just as in test-argmatch.c.
38627
38628 2009-08-13  Eric Blake  <ebb9@byu.net>
38629
38630         test-dup2: fix bad assumption
38631         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
38632         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
38633
38634         test-version-etc: fix CRLF portability issue
38635         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
38636         recognize \r.
38637         * tests/test-argp-version-etc-1.sh: Likewise.
38638
38639         getopt: update client modules
38640         * modules/argp (Depends-on): Use getopt-gnu.
38641         * modules/git-merge-changelog (Depends-on): Likewise.
38642         * modules/long-options (Depends-on): Likewise.
38643         * modules/xstrtol (Depends-on): Likewise.
38644
38645 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38646
38647         * tests/test-version-etc.sh: Don't fail on different
38648         project/version.  Don't fail on CRLF differences.  Rewrite to use
38649         multiple -e instead of multiple sed forks, suggested by Eric Blake
38650         <ebb9@byu.net>.
38651         * tests/test-argp-version-etc-1.sh: Likewise.
38652
38653 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38654
38655         * tests/test-version-etc.sh: Don't fail on different
38656         project/version.
38657
38658 2009-08-12  Bruno Haible  <bruno@clisp.org>
38659
38660         Tests for modules 'getopt-posix', 'getopt-gnu'.
38661         * modules/getopt-posix-tests: New file.
38662         * tests/test-getopt.c: New file.
38663         * tests/test-getopt.h: New file.
38664         * tests/test-getopt_long.h: New file.
38665
38666         New modules 'getopt-posix', 'getopt-gnu'.
38667         * modules/getopt-gnu: New file, renamed from modules/getopt.
38668         * modules/getopt-posix: New file.
38669         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
38670         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
38671         (gl_GETOPT): Remove macro.
38672         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
38673         Disable the test against BSD systems that declare optreset. Test
38674         against mingw bug. Test against lack of support of optional arguments
38675         on many platforms.
38676         * doc/glibc-headers/getopt.texi: Update module name and list of
38677         relevant platforms.
38678         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
38679         'getopt-gnu' and more portability problems.
38680         * NEWS: Mention the changes.
38681
38682 2009-08-12  Bruno Haible  <bruno@clisp.org>
38683
38684         Ensure that optarg etc. get declared by <unistd.h>.
38685         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
38686         AC_USE_SYSTEM_EXTENSIONS.
38687         * modules/getopt (Depends-on): Add 'extensions'.
38688
38689 2009-08-12  Bruno Haible  <bruno@clisp.org>
38690
38691         Avoid test link errors.
38692         * modules/pipe-filter-ii-tests (Makefile.am): Define
38693         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
38694         * modules/pipe-filter-gi-tests (Makefile.am): Define
38695         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
38696         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38697
38698 2009-08-12  Bruno Haible  <bruno@clisp.org>
38699
38700         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
38701         gl_GETOPT_SUBSTITUTE before.
38702         (gl_GETOPT): Use it.
38703         * m4/argp.m4 (gl_ARGP): Update.
38704         Reported by Sergey Poznyakoff.
38705
38706         * m4/getopt.m4: Reorder macros.
38707         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
38708         (gl_GETOPT_SUBSTITUTE): Remove macro.
38709
38710 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38711
38712         Minor improvement in gitlog-to-changelog
38713
38714         * build-aux/gitlog-to-changelog: New option `--format' makes
38715         output format string configurable.
38716
38717 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38718
38719         Optimize exclude: use hash tables for non-wildcard patterns.
38720
38721         * lib/exclude.c: Include hash.h and mbuiter.h
38722         (struct exclude_pattern, exclude_segment): New data types.
38723         (struct exclude): Rewrite.
38724         (fnmatch_pattern_has_wildcards): New function.
38725         (new_exclude_segment, free_exclude_segment): New functions.
38726         (excluded_file_pattern_p, excluded_file_name_p): New functions.
38727         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
38728         * lib/exclude.h (is_fnmatch_pattern): New prototype.
38729         * modules/exclude: Depend on hash and mbuiter.
38730
38731         * modules/exclude-tests: New file.
38732         * tests/test-exclude.c: New file.
38733         * tests/test-exclude1.sh: New file.
38734         * tests/test-exclude2.sh: New file.
38735         * tests/test-exclude3.sh: New file.
38736         * tests/test-exclude4.sh: New file.
38737         * tests/test-exclude5.sh: New file.
38738         * tests/test-exclude6.sh: New file.
38739         * tests/test-exclude7.sh: New file.
38740
38741 2009-08-12  Bruno Haible  <bruno@clisp.org>
38742
38743         Ensure that getopt() gets declared by <unistd.h>.
38744         * lib/unistd.in.h: Conditionally include getopt.h.
38745         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
38746         Set GNULIB_UNISTD_H_GETOPT.
38747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38748         GNULIB_UNISTD_H_GETOPT.
38749         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
38750
38751 2009-08-12  Bruno Haible  <bruno@clisp.org>
38752
38753         Clarify logic.
38754         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
38755         gl_replace_getopt instead of GETOPT_H.
38756
38757 2009-08-12  Bruno Haible  <bruno@clisp.org>
38758
38759         * m4/getopt.m4: Add comments.
38760
38761 2009-08-12  Bruno Haible  <bruno@clisp.org>
38762
38763         Disable multithread support by default on Cygwin 1.5.x.
38764         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
38765         set gl_use_threads=no if not specified otherwise.
38766
38767 2009-08-11  Bruno Haible  <bruno@clisp.org>
38768
38769         Avoid compilation error on NetBSD 5.0.
38770         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
38771         * tests/test-stdio.c: Likewise.
38772         * tests/test-stdlib.c: Likewise.
38773         * tests/test-string.c: Likewise.
38774         * tests/test-unistd.c: Likewise.
38775         Reported by Greg Troxel <gdt@ir.bbn.com>
38776         at <https://savannah.gnu.org/support/?106973>.
38777
38778 2009-08-11  Bruno Haible  <bruno@clisp.org>
38779
38780         * modules/dup2-tests (Depends-on): Remove close.
38781
38782         Undo 2009-07-19 commit.
38783         * modules/acl-tests (Depends-on): Remove close.
38784         * modules/binary-io-tests (Depends-on): Likewise.
38785         * modules/closein-tests (Depends-on): Likewise.
38786         * modules/flock-tests (Depends-on): Likewise.
38787         * modules/fsync-tests (Depends-on): Likewise.
38788         * modules/lseek-tests (Depends-on): Likewise.
38789         * modules/pipe-tests (Depends-on): Likewise.
38790         * modules/posix_spawn-tests (Depends-on): Likewise.
38791         * modules/posix_spawnp-tests (Depends-on): Likewise.
38792         * modules/stat-time-tests (Depends-on): Likewise.
38793         * modules/yesno-tests (Depends-on): Likewise.
38794
38795 2009-08-10  Bruno Haible  <bruno@clisp.org>
38796
38797         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
38798
38799 2009-08-10  Bruno Haible  <bruno@clisp.org>
38800
38801         Fix a gcc warning.
38802         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
38803
38804 2009-08-10  Bruno Haible  <bruno@clisp.org>
38805
38806         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
38807         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
38808         not only the first time.
38809         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
38810         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
38811         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
38812         is 1, not only the the first time.
38813
38814 2009-08-10  Bruno Haible  <bruno@clisp.org>
38815
38816         Make it possible to use module 'gethostname' without module 'close'.
38817         * lib/unistd.in.h (close): Evoke a link error only if
38818         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38820         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38821         * modules/unistd (Makefile.am): Substitute
38822         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38823         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
38824         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38825         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
38826         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38827         * modules/sys_ioctl (Makefile.am): Substitute
38828         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38829         * modules/socket (configure.ac): On native Windows, set
38830         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
38831         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38832         Reported by Sam Steingold <sds@gnu.org>.
38833
38834 2009-08-10  Bruno Haible  <bruno@clisp.org>
38835
38836         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
38837         * modules/ioctl (configure.ac): Likewise.
38838
38839 2009-08-10  Bruno Haible  <bruno@clisp.org>
38840
38841         Avoid collision between gnulib wrapper and libintl wrapper.
38842         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
38843         already defined in intl/printf.c.
38844         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
38845         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
38846
38847 2009-08-09  Bruno Haible  <bruno@clisp.org>
38848
38849         Make <sys/select.h> really self-contained, also on Solaris 10.
38850         * lib/sys_select.in.h: Include <string.h>.
38851         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
38852         Solaris 10 problem.
38853         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
38854         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
38855         Reported by Jim Meyering.
38856
38857 2009-08-09  Bruno Haible  <bruno@clisp.org>
38858
38859         Avoid warnings from 'aclocal' that are due to a use of macro name
38860         AM_XGETTEXT_OPTION that is not defined in automake.
38861         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
38862         automake.
38863         * modules/error (configure.ac): Likewise.
38864         * modules/propername (configure.ac): Likewise.
38865         * modules/vasprintf (configure.ac): Likewise.
38866         * modules/verror (configure.ac): Likewise.
38867         * modules/xprintf (configure.ac): Likewise.
38868         * modules/xvasprintf (configure.ac): Likewise.
38869
38870 2009-08-08  Bruno Haible  <bruno@clisp.org>
38871
38872         Avoid compilation error in C++ mode.
38873         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
38874         Reported by Sam Steingold <sds@gnu.org>.
38875
38876 2009-08-08  Bruno Haible  <bruno@clisp.org>
38877
38878         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
38879         for the various Unix platforms.
38880         * doc/posix-headers/limits.texi: Update platforms list regarding
38881         HOST_NAME_MAX.
38882         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38883
38884 2009-08-07  Jim Meyering  <meyering@redhat.com>
38885
38886         selinux-at: fix typo in a comment
38887         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
38888         Spotted by Paolo Bonzini.
38889
38890         selinux-at: remove redundant m4 code, add documentation
38891         * modules/selinux-at (configure.ac): Remove redundant code.
38892         LIB_SELINUX is already set via the dependent module, selinux-h.
38893         (Include): Add quotes around selinux-at.h.
38894         * lib/selinux-at.h: Add documentation.
38895         Reported by Bruno Haible in
38896         http://marc.info/?l=gnulib-bug&m=124958988300749
38897
38898 2009-08-07  Bruno Haible  <bruno@clisp.org>
38899
38900         Avoid link error on MacOS X 10.3 and 10.4.
38901         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
38902         on non-ELF systems.
38903         * lib/argp-pv.c (argp_program_version): Likewise.
38904         Reported by Simon Josefsson.
38905
38906 2009-08-07  Simon Josefsson  <simon@josefsson.org>
38907
38908         * tests/test-version-etc.sh: Use $EXEEXT.
38909
38910 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
38911
38912         update-copyright: update documentation to point to maint.mk
38913         * build-aux/update-copyright: Here.
38914
38915 2009-08-06  Jim Meyering  <meyering@redhat.com>
38916
38917         maint.mk: support update-copyright-local
38918         * top/maint.mk (update-copyright-local): Define place-holder.
38919         (update-copyright): Depend on $(update-copyright-local).
38920
38921 2009-08-06  Jim Meyering  <meyering@redhat.com>
38922
38923         selinux-at: new module
38924         Initially written for coreutils, this module will soon be
38925         used by findutils, too.
38926         * MODULES.html.sh [Misc]: Add selinux-at.
38927         * lib/selinux-at.h: New file, from coreutils.
38928         * lib/selinux-at.c: Likewise.
38929         * modules/selinux-at: Likewise.
38930         (License): Change from LGPL to GPL, since it depends
38931         on the GPL'd openat module.
38932
38933         doc: update README
38934         * README: Remove references to cogito.
38935         Remove cvs-repo-updating instructions from 2007.
38936         Don't imply that CVS is better if you have limited disk space.
38937
38938 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38939
38940         update-copyright: support C-style comments
38941         * build-aux/update-copyright: Implement and document.
38942         * tests/test-update-copyright.sh: Test.
38943
38944 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38945
38946         update-copyright: support omitted "(C)"
38947         * build-aux/update-copyright: Implement and document.  Also,
38948         allow variable whitespace before "(C)".
38949         * tests/test-update-copyright.sh: Test.
38950
38951 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38952
38953         update-copyright: don't trip on non-FSF copyright statements
38954         * build-aux/update-copyright: Fix so that the first correctly
38955         formatted FSF copyright statement is recognized no matter what
38956         appears before it.  Update documentation.
38957         * tests/test-update-copyright.sh: Test that.
38958
38959 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38960
38961         update-copyright: clean up code a little
38962         * build-aux/update-copyright: Append "_re" to the name of any
38963         variable holding a regular expression.
38964         Replace "old" and "new" with "stmt" in variable names.
38965         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
38966         handled correctly.
38967         Format code more consistently.
38968
38969 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38970
38971         update-copyright-tests: improve portability
38972         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
38973         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
38974
38975 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38976
38977         update-copyright: support @copyright{} and &copy;
38978         * build-aux/update-copyright: Implement and document.
38979         * tests/test-update-copyright.sh: Test.
38980
38981 2009-08-04  Jim Meyering  <meyering@redhat.com>
38982
38983         update-copyright-tests: correctly test EOL=\r\n handling
38984         * tests/test-update-copyright.sh: Put \r at the end of some lines
38985         for the dos-eol tests.  Based on a patch by Joel E. Denny.
38986
38987         maint.mk: make update-copyright exclusion list more configurable
38988         * top/maint.mk (update-copyright): Default to excluding COPYING,
38989         but allow an override, in case someone does want to update that file.
38990
38991         maint.mk: don't update copyright date in COPYING
38992         * top/maint.mk (update-copyright): Exclude COPYING.
38993
38994         maint.mk: add a copyright-updating rule
38995         * top/maint.mk (update-copyright): New rule.
38996         Derived from coreutils/Makefile.am.
38997
38998         update-copyright: rename some variables
38999         * build-aux/update-copyright: Rename a few variables for clarity.
39000         Tweak syntax.  List Joel E. Denny as coauthor.
39001
39002 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
39003
39004         update-copyright: fix bug for 2-digit last year and add tests
39005         * build-aux/update-copyright: Fix bug.
39006         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
39007         specified.
39008         * modules/update-copyright-tests: New
39009         * tests/test-update-copyright.sh: New.
39010
39011 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39012
39013         update-copyright: handle leading tabs in line prefix
39014         * build-aux/update-copyright: Count leading tabs as 8 spaces
39015         when computing margin.  This helps with the formatting of
39016         ChangeLogs, for example.
39017         Fix documentation a little.
39018
39019 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39020
39021         update-copyright: support EOL=\r\n
39022         * build-aux/update-copyright: Implement that.
39023
39024 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39025
39026         update-copyright: automatically format copyright statements
39027         * build-aux/update-copyright: Implement that.
39028         Also, be a little more predictable and safer by always failing
39029         when the full copyright format is not perfectly recognized as an
39030         unbroken whole.  Discussed at
39031         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
39032         Rewrite documentation.
39033
39034 2009-08-03  Bruno Haible  <bruno@clisp.org>
39035
39036         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
39037
39038 2009-08-02  Bruno Haible  <bruno@clisp.org>
39039
39040         Tests for module 'uname'.
39041         * modules/uname-tests: New file.
39042         * tests/test-uname.c: New file.
39043
39044         New module 'uname'.
39045         * lib/uname.c: New file.
39046         * m4/uname.m4: New file.
39047         * modules/uname: New file.
39048         * doc/posix-functions/uname.texi: Mention the new module.
39049
39050 2009-08-02  Bruno Haible  <bruno@clisp.org>
39051
39052         Tests for module 'sys_utsname'.
39053         * modules/sys_utsname-tests: New file.
39054         * tests/test-sys_utsname.c: New file.
39055
39056         New module 'sys_utsname'.
39057         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
39058         * m4/sys_utsname_h.m4: New file.
39059         * modules/sys_utsname: New file.
39060         * doc/posix-headers/sys_utsname.texi: Mention the new module.
39061
39062 2009-08-02  Bruno Haible  <bruno@clisp.org>
39063
39064         Implicitly initialize the sockets library.
39065         * lib/gethostname.c: Include sockets.h.
39066         (rpl_gethostname): Invoke gl_sockets_startup.
39067         * lib/socket.c: Include sockets.h.
39068         (rpl_socket): Invoke gl_sockets_startup.
39069         * modules/gethostname (Depends-on): Add sockets.
39070         * modules/socket (Depends-on): Likewise.
39071         * tests/test-poll.c: Don't include sockets.h.
39072         (main): Don't invoke gl_sockets_startup.
39073         * tests/test-select.c: Don't include sockets.h.
39074         (main): Don't invoke gl_sockets_startup.
39075
39076 2009-08-02  Bruno Haible  <bruno@clisp.org>
39077
39078         Allow multiple calls to gl_sockets_startup.
39079         * lib/sockets.c (initialized_sockets_version): New variable.
39080         (gl_sockets_startup): Do nothing if already called for this or a higher
39081         version.
39082         (gl_sockets_cleanup): Reset initialized_sockets_version.
39083
39084 2009-08-03  Simon Josefsson  <simon@josefsson.org>
39085
39086         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
39087         different project/version.
39088
39089 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
39090             Bruno Haible  <bruno@clisp.org>
39091
39092         Tests for module 'pipe-filter-gi'.
39093         * modules/pipe-filter-gi-tests: New file.
39094         * tests/test-pipe-filter-gi1.sh: New file.
39095         * tests/test-pipe-filter-gi1.c: New file.
39096         * tests/test-pipe-filter-gi2.sh: New file.
39097         * tests/test-pipe-filter-gi2-main.c: New file.
39098         * tests/test-pipe-filter-gi2-child.c: New file.
39099
39100         New module 'pipe-filter-gi'.
39101         * lib/pipe-filter-gi.c: New file.
39102         * modules/pipe-filter-gi: New file.
39103
39104 2009-08-02  Bruno Haible  <bruno@clisp.org>
39105             Paolo Bonzini  <bonzini@gnu.org>
39106
39107         Tests for module 'pipe-filter-ii'.
39108         * modules/pipe-filter-ii-tests: New file.
39109         * tests/test-pipe-filter-ii1.sh: New file.
39110         * tests/test-pipe-filter-ii1.c: New file.
39111         * tests/test-pipe-filter-ii2.sh: New file.
39112         * tests/test-pipe-filter-ii2-main.c: New file.
39113         * tests/test-pipe-filter-ii2-child.c: New file.
39114
39115         New module 'pipe-filter-ii'.
39116         * lib/pipe-filter.h: New file.
39117         * lib/pipe-filter-ii.c: New file.
39118         * lib/pipe-filter-aux.h: New file.
39119         * modules/pipe-filter-ii: New file.
39120
39121 2009-08-02  Simon Josefsson  <simon@josefsson.org>
39122
39123         * lib/gc-libgcrypt.c: Change copyright to FSF.
39124         * lib/gc-gnulib.c: Likewise.
39125
39126 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
39127
39128         * lib/gethostname.c: Include limits.h.
39129
39130 2009-08-02  Simon Josefsson  <simon@josefsson.org>
39131             Bruno Haible  <bruno@clisp.org>
39132
39133         Ensure HOST_NAME_MAX as part of the gethostname module.
39134         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
39135         define also HOST_NAME_MAX.
39136         * tests/test-gethostname.c: Include <limits.h>.
39137         (main): Check also HOST_NAME_MAX.
39138         * doc/posix-headers/limits.texi: Document the mingw problem.
39139
39140 2009-08-02  Bruno Haible  <bruno@clisp.org>
39141
39142         * lib/gethostname.c (gethostname): Fix handling of large len argument.
39143         Add comments.
39144
39145 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39146
39147         * lib/gethostname.c: Add Windows wrapper.
39148         * m4/gethostname.m4: Look for gethostname in -lws2_32.
39149         * modules/gethostname: Depend on sys_socket & errno, for also
39150         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
39151         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
39152
39153 2009-07-31  Jim Meyering  <meyering@redhat.com>
39154
39155         getloadavg: fix symbol name in comment
39156         * lib/getloadavg.c: Correct a typo I introduced when adding
39157         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
39158         Matt Kraai spotted the problem.
39159
39160 2009-07-29  Matt Kraai  <mkraai@beckman.com>
39161
39162         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
39163         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
39164         code also if ! defined N_NAME_POINTER.
39165         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
39166         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
39167         but the n_name member is a 12-byte array.
39168
39169 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
39170
39171         update-copyright: generalize comment handling
39172         * build-aux/update-copyright: Handle copyright statements
39173         within more comment styles.
39174         Document usage.
39175         Report any file with an external copyright holder or parse failure.
39176
39177 2009-07-29  Jim Meyering  <meyering@redhat.com>
39178
39179         mktime: correct setting of REPLACE_MKTIME
39180         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
39181
39182         update-copyright: new module
39183         * modules/update-copyright: New file.
39184         * build-aux/update-copyright: New file.
39185         * MODULES.html.sh (maint+release support): Add update-copyright.
39186
39187 2009-07-27  Bruno Haible  <bruno@clisp.org>
39188
39189         Fix compilation error when <ctime> is used and mktime is replaced.
39190         * lib/time.in.h (mktime): New declaration.
39191         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
39192         REPLACE_MKTIME instead of defining mktime in config.h.
39193         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
39194         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
39195         Reported by Ross McFarland <rwmcfa1@neces.com>.
39196
39197 2009-07-27  Bruno Haible  <bruno@clisp.org>
39198
39199         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
39200         Reported by Matt Kraai <mkraai@beckman.com>.
39201
39202 2009-07-25  Jim Meyering  <meyering@redhat.com>
39203
39204         maint.mk: avoid warnings about missing files
39205         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
39206         diagnostic when .prev-version does not exist.
39207         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
39208         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
39209         nonexistent cfg.mk.
39210         Suggestions from Simon Josefsson.
39211
39212 2009-07-25  Bruno Haible  <bruno@clisp.org>
39213
39214         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
39215         defined as macros. Needed on QNX 6.4.1.
39216         Reported by Matt Kraai <mkraai@beckman.com>.
39217
39218 2009-07-23  Jim Meyering  <meyering@redhat.com>
39219
39220         maint.mk: invoke "make dist" with a working value of XZ_OPT
39221         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
39222
39223 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
39224
39225         Make fseeko.c compile on QNX.
39226         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
39227
39228 2009-07-22  Peter Simons  <simons@cryp.to>
39229
39230         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
39231         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
39232         * lib/md4.h: Likewise.
39233         * lib/md5.h: Likewise.
39234         * lib/sha1.h: Likewise.
39235         * lib/sha256.h: Likewise.
39236         * lib/sha512.h: Likewise.
39237
39238         tests-sha1: don't assign literal string to 'char *' variable
39239         * tests/test-sha1.c (main): Declare locals with "const" to match
39240         attributes of the right hand side.
39241
39242 2009-07-21  Eric Blake  <ebb9@byu.net>
39243
39244         dup2: fix more mingw problems
39245         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
39246         fd to itself.
39247         * doc/posix-functions/dup2.texi (dup2): Document the bug.
39248         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
39249         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
39250         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
39251         care of mingw bugs.
39252
39253 2009-07-21  Jim Meyering  <meyering@redhat.com>
39254
39255         vc-list-files: avoid failure when /bin/sh is dash
39256         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
39257         On some Debian based systems, /bin/sh is a symlink to dash, and running
39258         this command would omit the "/" following each 'tests' prefix:
39259           dash -x build-aux/vc-list-files -C . tests
39260         That is because bash and dash work differently:
39261           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
39262           bash ok
39263           dash odd
39264
39265 2009-07-21  Eric Blake  <ebb9@byu.net>
39266
39267         dup2-tests: test previous patch
39268         * modules/dup2-tests: New file.
39269         * tests/test-dup2.c: Likewise.
39270         * tests/test-open.c (main): Avoid unspecified behavior.
39271         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
39272         test.
39273
39274         dup2: work around mingw and cygwin 1.5 bug
39275         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
39276         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39277         * modules/unistd (Makefile.am): Substitute it.
39278         * lib/unistd.in.h (dup2): Declare the replacement.
39279         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
39280         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
39281         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
39282         * modules/execute (Depends-on): Add dup2.
39283         * modules/fseterr (Depends-on): Likewise.
39284         * modules/pipe (Depends-on): Likewise.
39285         * modules/posix_spawn-internal (Depends-on): Likewise.
39286
39287 2009-07-21  Bruno Haible  <bruno@clisp.org>
39288
39289         * modules/.gitattributes: New file.
39290
39291 2009-07-20  Bruno Haible  <bruno@clisp.org>
39292
39293         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
39294         (main): Use it.
39295
39296 2009-07-20  Eric Blake  <ebb9@byu.net>
39297
39298         test-pipe: make a bit more robust.
39299         * tests/test-pipe.c (myerr): Allow error messages regardless of
39300         what we do to stderr.
39301         (test_pipe): Rearrange to avoid deadlock.
39302         (child_main): Try a larger read, to ensure we avoided deadlock.
39303         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
39304         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
39305         if misused.
39306
39307 2009-07-19  Jim Meyering  <meyering@redhat.com>
39308
39309         fts: avoid false-positive cycle-detection
39310         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
39311         for each new command line argument.
39312
39313 2009-07-19  Bruno Haible  <bruno@clisp.org>
39314
39315         Fix build error on mingw with the modules sys_select and unistd.
39316         * modules/acl-tests (Depends-on): Add close.
39317         * modules/binary-io-tests (Depends-on): Likewise.
39318         * modules/closein-tests (Depends-on): Likewise.
39319         * modules/flock-tests (Depends-on): Likewise.
39320         * modules/fsync-tests (Depends-on): Likewise.
39321         * modules/lseek-tests (Depends-on): Likewise.
39322         * modules/pipe-tests (Depends-on): Likewise.
39323         * modules/posix_spawn-tests (Depends-on): Likewise.
39324         * modules/posix_spawnp-tests (Depends-on): Likewise.
39325         * modules/stat-time-tests (Depends-on): Likewise.
39326         * modules/yesno-tests (Depends-on): Likewise.
39327
39328 2009-07-19  Bruno Haible  <bruno@clisp.org>
39329
39330         Unify conditionals.
39331         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
39332         macros, not at the compiler macros.
39333         * lib/pipe.c: Likewise.
39334         * lib/execute.c: Likewise.
39335         * lib/spawni.c: Likewise.
39336
39337 2009-07-19  Bruno Haible  <bruno@clisp.org>
39338
39339         Fix handling of closed stdin/stdout/stderr on mingw.
39340         * lib/w32spawn.h: Include unistd.h.
39341         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
39342         file descriptor with O_NOINHERIT flag.
39343         (fd_safer_noinherit): New function, based on fd-safer.c.
39344         (dup_safer_noinherit): New function, based on dup-safer.c.
39345         (undup_safer_noinherit): New function.
39346         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
39347         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
39348         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
39349         instead of fd_safer.
39350         * tests/test-pipe.c: Include <windows.h>.
39351         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
39352         result.
39353
39354         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
39355         from main.
39356         (test_pipe): Pass an extra argument for disambiguation.
39357         (main): Invoke parent_main or child_main.
39358
39359         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
39360         consistently.
39361
39362 2009-07-18  Eric Blake  <ebb9@byu.net>
39363
39364         test-pipe: fix mingw build
39365         * tests/test-pipe.c (main): Avoid fcntl on mingw.
39366
39367 2009-07-18  Bruno Haible  <bruno@clisp.org>
39368
39369         * modules/pipe-tests (Makefile.am): Fix typo.
39370
39371 2009-07-18  Eric Blake  <ebb9@byu.net>
39372
39373         error: fix mingw build
39374         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
39375         Reported by Bruno Haible.
39376
39377         error: avoid undefined use of stdout
39378         * lib/error.c (error, error_at_line): Check that fd 1 is open
39379         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
39380         is handling faults and the close_stdout module wants to report the
39381         detection of closed stdout as an error.
39382
39383 2009-07-17  Eric Blake  <ebb9@byu.net>
39384
39385         pipe: be robust in face of closed fds
39386         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
39387         should cause child to misbehave.
39388         * modules/pipe-tests: New module.
39389         * tests/test-pipe.c: New file.
39390         * tests/test-pipe.sh: New file.
39391         Reported by Akim Demaille.
39392
39393 2009-07-14  Bruno Haible  <bruno@clisp.org>
39394
39395         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
39396         Reported by anonymous kc.
39397
39398 2009-07-07  Jim Meyering  <meyering@redhat.com>
39399
39400         maint.mk: don't look for translatable strings in *.m4 or *.mk
39401         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
39402         when searching for translatable strings.
39403
39404 2009-07-05  Jim Meyering  <meyering@redhat.com>
39405
39406         remove superfluous parentheses in STREQ definition
39407         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
39408         * lib/getugroups.c (STREQ): Likewise.
39409         * lib/fnmatch.c (STREQ): Likewise.
39410         Spotted by Bruno Haible.
39411
39412 2009-07-04  Jim Meyering  <meyering@redhat.com>
39413
39414         argv-iter: new module
39415         * MODULES.html.sh: Add argv-iter.
39416         * lib/argv-iter.c, lib/argv-iter.h: New files.
39417         * modules/argv-iter: New file.
39418         * modules/argv-iter-tests: New file.
39419         * tests/test-argv-iter.c: Test it.
39420
39421 2009-07-04  Bruno Haible  <bruno@clisp.org>
39422
39423         Fix assertion.
39424         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
39425         contains more exact copies of a given entry than file2, leave the extra
39426         copies unpaired rather than aborting.
39427         Reported by Eric Blake.
39428
39429 2009-07-02  Bruno Haible  <bruno@clisp.org>
39430
39431         Speedup git-merge-changelog for git cherry-pick.
39432         * lib/git-merge-changelog.c (struct entries_mapping): New type.
39433         (entries_mapping_get): New function, extracted from compute_mapping.
39434         (entries_mapping_reverse_get): New function.
39435         (compute_mapping): Add a 'full' argument. Return the result in a
39436         'struct entries_mapping'.
39437         (main): Update. Access the mappings through entries_mapping_get.
39438         Reported by Eric Blake.
39439
39440 2009-07-02  Bruno Haible  <bruno@clisp.org>
39441
39442         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
39443         best_i.
39444
39445 2009-07-02  Bruno Haible  <bruno@clisp.org>
39446
39447         Speed up approximate search for matching ChangeLog entries.
39448         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
39449         argument. Call fstrcmp_bounded instead of fstrcmp.
39450         (compute_mapping, try_split_merged_entry, main): Update callers.
39451
39452 2009-07-02  Bruno Haible  <bruno@clisp.org>
39453
39454         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
39455
39456 2009-06-30  Bruno Haible  <bruno@clisp.org>
39457
39458         Reduce the number of uc_is_cased calls.
39459         * lib/unicase.h (casing_suffix_context_t): Add
39460         'first_char_except_ignorable' field.
39461         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
39462         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
39463         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
39464         Update initializer.
39465         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
39466         case-ignorable characters.
39467         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
39468         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
39469         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
39470         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
39471         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
39472
39473 2009-06-30  Bruno Haible  <bruno@clisp.org>
39474
39475         Tests for module 'unicase/ignorable'.
39476         * modules/unicase/ignorable-tests: New file.
39477         * tests/unicase/test-ignorable.c: New file, generated by
39478         gen-uni-tables.
39479
39480         Tests for module 'unicase/cased'.
39481         * modules/unicase/cased-tests: New file.
39482         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
39483         * tests/unicase/test-predicate-part1.h: New file, derived from
39484         tests/unictype/test-predicate-part1.h.
39485         * tests/unicase/test-predicate-part2.h: New file, same as
39486         tests/unictype/test-predicate-part2.h.
39487
39488         Fix evaluation of "Before C" condition of FINAL_SIGMA.
39489         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
39490         (output_casing_properties): New function.
39491         (main): Call it.
39492         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
39493         * lib/unicase/cased.c: Include unictype/bitmap.h.
39494         (uc_is_cased): Define through a bitmap lookup.
39495         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
39496         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
39497         (uc_is_case_ignorable): Define through a bitmap lookup.
39498         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
39499         lib/unictype/bitmap.h.
39500         (Depends-on): Add inline. Clean up.
39501         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
39502         lib/unictype/bitmap.h.
39503         (Depends-on): Add inline. Clean up.
39504         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
39505         recognition.
39506         * tests/unicase/test-u16-tolower.c (main): Likewise.
39507         * tests/unicase/test-u32-tolower.c (main): Likewise.
39508
39509 2009-06-30  Bruno Haible  <bruno@clisp.org>
39510
39511         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
39512         * lib/unicase/u16-casemap.c: Likewise.
39513         * lib/unicase/u32-casemap.c: Likewise.
39514
39515 2009-06-29  Bruno Haible  <bruno@clisp.org>
39516
39517         Define u32_casefold as a wrapper around u32_ct_casefold.
39518         * lib/unicase/u32-casefold.c: Update.
39519         * modules/unicase/u32-casefold (Depends-on): Add
39520         unicase/u32-ct-casefold, unicase/empty-prefix-context,
39521         unicase/empty-suffix-context. Clean up.
39522
39523         Define u16_casefold as a wrapper around u16_ct_casefold.
39524         * lib/unicase/u16-casefold.c: Update.
39525         * modules/unicase/u16-casefold (Depends-on): Add
39526         unicase/u16-ct-casefold, unicase/empty-prefix-context,
39527         unicase/empty-suffix-context. Clean up.
39528
39529         Define u8_casefold as a wrapper around u8_ct_casefold.
39530         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
39531         * lib/unicase/u8-casefold.c: Update.
39532         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
39533         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39534
39535         Define u32_totitle as a wrapper around u32_ct_totitle.
39536         * lib/unicase/u32-totitle.c: Update.
39537         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
39538         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39539
39540         Define u16_totitle as a wrapper around u16_ct_totitle.
39541         * lib/unicase/u16-totitle.c: Update.
39542         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
39543         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39544
39545         Define u8_totitle as a wrapper around u8_ct_totitle.
39546         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
39547         functions.
39548         (FUNC): Delegate to U_CT_TOTITLE.
39549         * lib/unicase/u8-totitle.c: Update.
39550         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
39551         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39552
39553         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
39554         invocation.
39555         * modules/unicase/u32-tolower (Depends-on): Add
39556         unicase/empty-prefix-context, unicase/empty-suffix-context.
39557
39558         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
39559         invocation.
39560         * modules/unicase/u16-tolower (Depends-on): Add
39561         unicase/empty-prefix-context, unicase/empty-suffix-context.
39562
39563         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
39564         * modules/unicase/u8-tolower (Depends-on): Add
39565         unicase/empty-prefix-context, unicase/empty-suffix-context.
39566
39567         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
39568         invocation.
39569         * modules/unicase/u32-toupper (Depends-on): Add
39570         unicase/empty-prefix-context, unicase/empty-suffix-context.
39571
39572         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
39573         invocation.
39574         * modules/unicase/u16-toupper (Depends-on): Add
39575         unicase/empty-prefix-context, unicase/empty-suffix-context.
39576
39577         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
39578         * modules/unicase/u8-toupper (Depends-on): Add
39579         unicase/empty-prefix-context, unicase/empty-suffix-context.
39580
39581         New module 'unicase/u32-ct-casefold'.
39582         * lib/unicase/u32-ct-casefold.c: New file.
39583         * modules/unicase/u32-ct-casefold: New file.
39584
39585         New module 'unicase/u16-ct-casefold'.
39586         * lib/unicase/u16-ct-casefold.c: New file.
39587         * modules/unicase/u16-ct-casefold: New file.
39588
39589         New module 'unicase/u8-ct-casefold'.
39590         * lib/unicase/u8-ct-casefold.c: New file.
39591         * lib/unicase/u-ct-casefold.h: New file, derived from
39592         lib/unicase/u-casefold.h.
39593         * modules/unicase/u8-ct-casefold: New file.
39594
39595         New module 'unicase/u32-ct-totitle'.
39596         * lib/unicase/u32-ct-totitle.c: New file.
39597         * modules/unicase/u32-ct-totitle: New file.
39598
39599         New module 'unicase/u16-ct-totitle'.
39600         * lib/unicase/u16-ct-totitle.c: New file.
39601         * modules/unicase/u16-ct-totitle: New file.
39602
39603         New module 'unicase/u8-ct-totitle'.
39604         * lib/unicase/u8-ct-totitle.c: New file.
39605         * lib/unicase/u-ct-totitle.h: New file, derived from
39606         lib/unicase/u-totitle.h.
39607         * modules/unicase/u8-ct-totitle: New file.
39608
39609         New module 'unicase/u32-ct-tolower'.
39610         * lib/unicase/u32-ct-tolower.c: New file.
39611         * modules/unicase/u32-ct-tolower: New file.
39612
39613         New module 'unicase/u16-ct-tolower'.
39614         * lib/unicase/u16-ct-tolower.c: New file.
39615         * modules/unicase/u16-ct-tolower: New file.
39616
39617         New module 'unicase/u8-ct-tolower'.
39618         * lib/unicase/u8-ct-tolower.c: New file.
39619         * modules/unicase/u8-ct-tolower: New file.
39620
39621         New module 'unicase/u32-ct-toupper'.
39622         * lib/unicase/u32-ct-toupper.c: New file.
39623         * modules/unicase/u32-ct-toupper: New file.
39624
39625         New module 'unicase/u16-ct-toupper'.
39626         * lib/unicase/u16-ct-toupper.c: New file.
39627         * modules/unicase/u16-ct-toupper: New file.
39628
39629         New module 'unicase/u8-ct-toupper'.
39630         * lib/unicase/u8-ct-toupper.c: New file.
39631         * modules/unicase/u8-ct-toupper: New file.
39632
39633         Add context arguments to u*_casemap functions.
39634         * lib/unicase/unicasemap.h: Include unicase.h.
39635         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
39636         suffix_context arguments.
39637         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
39638         functions.
39639         (FUNC): Add prefix_context and suffix_context arguments. Use
39640         uc_is_cased and uc_is_case_ignorable.
39641         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
39642         * lib/unicase/u16-casemap.c: Likewise.
39643         * lib/unicase/u32-casemap.c: Likewise.
39644         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
39645         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39646         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
39647         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39648         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
39649         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39650
39651         New module 'unicase/u32-suffix-context'.
39652         * lib/unicase/u32-suffix-context.c: New file.
39653         * modules/unicase/u32-suffix-context: New file.
39654
39655         New module 'unicase/u16-suffix-context'.
39656         * lib/unicase/u16-suffix-context.c: New file.
39657         * modules/unicase/u16-suffix-context: New file.
39658
39659         New module 'unicase/u8-suffix-context'.
39660         * lib/unicase/u8-suffix-context.c: New file.
39661         * lib/unicase/u-suffix-context.h: New file.
39662         * modules/unicase/u8-suffix-context: New file.
39663
39664         New module 'unicase/empty-suffix-context'.
39665         * lib/unicase/empty-suffix-context.c: New file.
39666         * modules/unicase/empty-suffix-context: New file.
39667
39668         New module 'unicase/u32-prefix-context'.
39669         * lib/unicase/u32-prefix-context.c: New file.
39670         * modules/unicase/u32-prefix-context: New file.
39671
39672         New module 'unicase/u16-prefix-context'.
39673         * lib/unicase/u16-prefix-context.c: New file.
39674         * modules/unicase/u16-prefix-context: New file.
39675
39676         New module 'unicase/u8-prefix-context'.
39677         * lib/unicase/u8-prefix-context.c: New file.
39678         * lib/unicase/u-prefix-context.h: New file.
39679         * lib/unicase/context.h: New file.
39680         * modules/unicase/u8-prefix-context: New file.
39681
39682         New module 'unicase/empty-prefix-context'.
39683         * lib/unicase/empty-prefix-context.c: New file.
39684         * modules/unicase/empty-prefix-context: New file.
39685
39686         New module 'unicase/ignorable'.
39687         * lib/unicase/ignorable.c: New file.
39688         * modules/unicase/ignorable: New file.
39689
39690         New module 'unicase/cased'.
39691         * lib/unicase/caseprop.h: New file.
39692         * lib/unicase/cased.c: New file.
39693         * modules/unicase/cased: New file.
39694
39695         New functions for case mapping of substrings.
39696         * lib/unicase.h (casing_prefix_context_t): New type.
39697         (unicase_empty_prefix_context): New variable.
39698         (u8_casing_prefix_context, u16_casing_prefix_context,
39699         u32_casing_prefix_context, u8_casing_prefixes_context,
39700         u16_casing_prefixes_context, u32_casing_prefixes_context): New
39701         declarations.
39702         (casing_suffix_context_t): New type.
39703         (unicase_empty_suffix_context): New variable.
39704         (u8_casing_suffix_context, u16_casing_suffix_context,
39705         u32_casing_suffix_context, u8_casing_suffixes_context,
39706         u16_casing_suffixes_context, u32_casing_suffixes_context,
39707         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
39708         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
39709         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
39710         declarations.
39711
39712 2009-06-28  Jim Meyering  <meyering@redhat.com>
39713
39714         boostrap: indent only with spaces
39715         * build-aux/bootstrap: Indent only with spaces, never TABs.
39716
39717         bootstrap: split long lines
39718         * build-aux/bootstrap: Keep line length < 80.
39719
39720         bootstrap: sync from coreutils
39721         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
39722         just as autoreconf does.  Verify a list of prerequisite
39723         package-name,version-number pairs if defined in bootstrap.conf.
39724         Refer to README-prereq, if prerequisites are not satisfied.
39725
39726 2009-06-27  Eric Blake  <ebb9@byu.net>
39727
39728         tests: add test for bogus NULL definition
39729         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
39730         * tests/test-stdlib.c: Likewise.
39731         * tests/test-string.c: Likewise.
39732         * tests/test-locale.c: Likewise.
39733         * tests/test-unistd.c: Likewise.
39734         * modules/stdio-tests (Depends-on): Add verify.
39735         * modules/stdlib-tests (Depends-on): Likewise.
39736         * modules/string-tests (Depends-on): Likewise.
39737         * modules/locale-tests (Depends-on): Likewise.
39738         * modules/unistd-tests (Depends-on): Likewise.
39739
39740 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
39741
39742         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
39743         self-explaining comment.
39744         * m4/selinux-selinux-h: Update serial.
39745         (gl_LIBSELINUX): New macro, adding a warning for missing development
39746         packages to code extracted from...
39747         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
39748         Add warning for missing development packages here, too.
39749
39750 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
39751
39752         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
39753
39754 2009-06-25  Eric Blake  <ebb9@byu.net>
39755
39756         version-etc: fix regression
39757         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
39758         gcc.
39759         (version_etc): Use it, to catch bugs with trailing NULL.
39760         * lib/version-etc.c (version_etc_arn): Delete unused argument.
39761         (version_etc_va): Fix logic bug.
39762         * modules/version-etc-tests: Add test.
39763         * tests/test-version-etc.c: New file.
39764         * tests/test-version-etc.sh: Likewise.
39765
39766 2009-06-25  Sam Steingold  <sds@gnu.org>
39767
39768         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
39769         mbtowc declaration.
39770
39771 2009-06-25  Eric Blake  <ebb9@byu.net>
39772
39773         fpurge: migrate into <stdio.h>
39774         * lib/fpurge.h: Delete...
39775         * lib/stdio.in.h (fpurge): ...and declare here, instead.
39776         * lib/fpurge.c (fpurge): Change declaring header.
39777         * modules/fpurge (Files): Drop deleted file.
39778         (Depends-on): Add stdio.
39779         (configure.ac): Set witness.
39780         * modules/stdio (Makefile.am): Support fpurge macros.
39781         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39782         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
39783         * lib/fflush.c: Update client.
39784         * tests/test-fpurge.c: Likewise.
39785         * NEWS: Mention the change.
39786
39787 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39788
39789         * lib/argp-version-etc.c (program_authors): Add const
39790         qualifier.
39791         * lib/version-etc.c: Fix typos in the comments.
39792         * modules/argp-version-etc: Depends on version-etc.
39793
39794 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39795
39796         argp-version-etc: new module.
39797
39798         * lib/argp-version-etc.c: New file.
39799         * lib/argp-version-etc.h: New file.
39800         * modules/argp-version-etc: New file.
39801         * modules/argp-version-etc-tests: New file.
39802         * tests/test-argp-version-etc.c: New test.
39803         * tests/test-argp-version-etc-1.sh: New test.
39804
39805 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39806
39807         Provide additional interfaces and documentation for version-etc
39808         module.
39809
39810         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
39811         interfaces.
39812         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
39813         prototypes.
39814
39815 2009-06-24  Bruno Haible  <bruno@clisp.org>
39816
39817         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
39818         HAVE_LIB${NAME} macro.
39819         Reported by Sam Steingold <sds@gnu.org>.
39820
39821 2009-06-23  Simon Josefsson  <simon@josefsson.org>
39822
39823         * modules/hash-tests (test_hash_LDADD): Link to libintl when
39824         needed.
39825
39826 2009-06-21  Bruno Haible  <bruno@clisp.org>
39827
39828         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
39829         work.
39830         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
39831         together with LIB${NAME}, LTLIB${NAME}.
39832         Reported by Sam Steingold <sds@gnu.org>.
39833
39834 2009-06-20  Jim Meyering  <meyering@redhat.com>
39835
39836         tests: make sc_require_test_exit_idiom more generic
39837         * top/maint.mk (Exit_witness_file): New overridable variable.
39838         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
39839         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
39840
39841 2009-06-19  Jim Meyering  <meyering@redhat.com>
39842
39843         hash: reverse order of src/dst parameters in an internal interface
39844         * lib/hash.c (transfer_entries): Reverse order of parameters to
39845         put DST before SRC.  Adjust callers.
39846
39847         tests: test-hash: avoid wholesale duplication
39848         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
39849         Instead, use a loop and add a single conditional.
39850
39851         tests: test-hash: allow seed selection via a command line argument
39852         * tests/test-hash.c (get_seed): New function.
39853         (main): Use it.
39854
39855 2009-06-19  Eric Blake  <ebb9@byu.net>
39856
39857         hash: avoid memory leak on allocation failure
39858         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
39859         failure.  Factor repeated algorithm...
39860         (transfer_entries): ...into new helper routine.
39861         (hash_delete): React to hash_rehash return value.
39862
39863         hash: reduce memory pressure in hash_rehash no-op case
39864         * lib/hash.c (next_prime): Avoid overflow.
39865         (hash_initialize): Factor bucket size computation...
39866         (compute_bucket_size): ...into new helper function.
39867         (hash_rehash): Use new function and open coding to reduce memory
39868         pressure, and avoid a memory leak in USE_OBSTACK code.
39869         Reported by Jim Meyering.
39870
39871 2009-06-18  Eric Blake  <ebb9@byu.net>
39872
39873         hash: make rotation more obvious
39874         * modules/hash (Depends-on): Add bitrotate and stdint.
39875         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
39876         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
39877         (SIZE_MAX): Rely on headers for definition.
39878         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
39879         (raw_hasher): Use rotr_sz.
39880         Suggested by Jim Meyering.
39881
39882         hash: fix memory leak in last patch
39883         * lib/hash.c (hash_rehash): Avoid memory leak.
39884
39885         hash: avoid no-op rehashing
39886         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
39887
39888         hash: provide default callback functions
39889         * lib/hash.c (raw_hasher, raw_comparator): New functions.
39890         (hash_initialize): Use them as defaults.
39891         * tests/test-hash.c (main): Test this.
39892
39893         hash: minor optimization
39894         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
39895         when possible.
39896         (hash_initialize): Document this promise.
39897         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
39898         * tests/test-hash.c (hash_compare_strings): Test this.
39899
39900 2009-06-18  Bruno Haible  <bruno@clisp.org>
39901
39902         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
39903         going to be replaced anyway.
39904
39905 2009-06-18  Bruno Haible  <bruno@clisp.org>
39906
39907         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
39908         in one place.
39909         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
39910         be replaced anyway.
39911
39912 2009-06-18  Eric Blake  <ebb9@byu.net>
39913
39914         hash: check for resize before insertion
39915         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
39916         threshold before insertion, so that a pathological hash_rehash
39917         that fills every bucket can still trigger another rehash.
39918
39919 2009-06-18  Jim Meyering  <meyering@redhat.com>
39920
39921         hash-tests: add a loop around the small tests
39922         * tests/test-hash.c (main): Repeat small tests with selected
39923         small initial table sizes.
39924
39925 2009-06-17  Eric Blake  <ebb9@byu.net>
39926
39927         hash: minor cleanups
39928         * lib/hash.h (hash_entry): Make opaque, by moving...
39929         * lib/hash.c (hash_entry): ...here.
39930         (hash_insert): Clarify restrictions on what can be inserted.
39931         (hash_get_next): Clarify when it is safe to remove an element
39932         during traversal.
39933         (check_tuning): Skip verification when tuning is known safe.
39934         (hash_initialize): Clarify restrictions on tuning.
39935
39936 2009-06-17  Jim Meyering  <jim@meyering.net>
39937         and Eric Blake  <ebb9@byu.net>
39938
39939         hash-tests: new module
39940         * modules/hash-tests: New file.
39941         * tests/test-hash.c: New file.
39942
39943 2009-06-17  Eric Blake  <ebb9@byu.net>
39944
39945         strstr-simple: document new module
39946         * MODULES.html.sh: Document new module.
39947
39948         strstr, strcasestr: replace on platforms with broken memchr
39949         * modules/strstr: Split into...
39950         * modules/strstr-simple: ...new module that does not care about
39951         performance, but does care about glibc bug.
39952         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
39953         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
39954         if platform memchr is broken, per Debian bug 521737.
39955         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
39956         memchr.
39957         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
39958         * doc/posix-functions/strstr.texi (strstr): Document the fix.
39959         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39960         * modules/mountlist (Depends-on): Add strstr-simple.
39961         * modules/gen-uni-tables (Depends-on): Likewise.
39962         * modules/argz (Depends-on): Add strstr.
39963
39964 2009-06-17  Bruno Haible  <bruno@clisp.org>
39965
39966         * modules/posix_spawn-internal (Depends-on): Add errno.
39967
39968 2009-06-17  Bruno Haible  <bruno@clisp.org>
39969
39970         Define missing ESTALE on Interix 3.5.
39971         * lib/errno.in.h (ESTALE): Assign a value if missing.
39972         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
39973         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
39974         missing.
39975         * doc/posix-headers/errno.texi: Mention the Interix bug.
39976         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
39977
39978 2009-06-15  Eric Blake  <ebb9@byu.net>
39979
39980         memchr, memchr2: add valgrind exception
39981         * lib/memchr.valgrind: New file.
39982         * lib/memchr2.valgrind: New file.
39983         * modules/memchr (Files): Distribute valgrind file.
39984         * modules/memchr2 (Files): Likewise.
39985
39986         docs: memchr is no longer obsolete
39987         * MODULES.html.sh: Move memchr from obsolete to string.h section.
39988         * lib/string.in.h (memchr): Simplify logic.
39989
39990 2009-06-14  Jim Meyering  <meyering@redhat.com>
39991
39992         link-follow: fix the "checking..." message to not mention trailing slash
39993         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
39994         never considered trailing slashes.
39995
39996 2009-06-14  Bruno Haible  <bruno@clisp.org>
39997
39998         * m4/memchr.m4: Mention also the bug on IA-64.
39999         * doc/posix-functions/memchr.texi: Likewise.
40000
40001 2009-06-12  Eric Blake  <ebb9@byu.net>
40002
40003         memchr: detect broken x86_64 and alpha implementations
40004         * modules/memchr-tests (Depends-on): Move mmap detection...
40005         * modules/memchr (Depends-on): ...here.
40006         (configure.ac): Set indicator.
40007         * lib/string.in.h (memchr): Declare replacement.
40008         * modules/string (Makefile.am): Trigger replacement.
40009         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
40010         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
40011         bugs.
40012         * doc/posix-functions/memchr.texi (memchr): Document the bug.
40013         * modules/getpagesize (License): Relax license.
40014
40015 2009-06-11  Bruno Haible  <bruno@clisp.org>
40016
40017         * lib/idpriv.h: Add more references.
40018
40019 2009-06-08  Bruno Haible  <bruno@clisp.org>
40020
40021         Tests for module 'idpriv-droptemp'.
40022         * modules/idpriv-droptemp-tests: New file.
40023         * tests/test-idpriv-droptemp.sh: New file.
40024         * tests/test-idpriv-droptemp.su.sh: New file.
40025         * tests/test-idpriv-droptemp.c: New file.
40026
40027         New module 'idpriv-droptemp'.
40028         * lib/idpriv-droptemp.c: New file.
40029         * modules/idpriv-droptemp: New file.
40030
40031 2009-06-08  Bruno Haible  <bruno@clisp.org>
40032
40033         Tests for module 'idpriv-drop'.
40034         * modules/idpriv-drop-tests: New file.
40035         * tests/test-idpriv-drop.sh: New file.
40036         * tests/test-idpriv-drop.su.sh: New file.
40037         * tests/test-idpriv-drop.c: New file.
40038
40039         New module 'idpriv-drop'.
40040         * lib/idpriv.h: New file.
40041         * lib-idpriv-drop.c: New file.
40042         * m4/idpriv.m4: New file.
40043         * modules/idpriv-drop: New file.
40044
40045 2009-06-08  Bruno Haible  <bruno@clisp.org>
40046
40047         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
40048         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40049         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40050         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40051         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40052         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40053         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40054
40055 2009-06-08  Eric Blake  <ebb9@byu.net>
40056
40057         test-strstr: use memory fence, when possible
40058         * tests/test-strstr.c (main): Use memory fence, in order to be
40059         more likely to trigger Debian bug 521737.
40060         * modules/strstr-tests (Files): Pull in additional files.
40061
40062         memchr: no longer obsolete, for wider field testing
40063         * modules/memchr (Status, Notice): Delete, this module is no
40064         longer obsolete.
40065         * modules/vasnprintf (Depends-on): Add memchr.
40066
40067 2009-06-07  Jim Meyering  <meyering@redhat.com>
40068
40069         hash: declare some functions with the warn_unused_result attribute
40070         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
40071
40072 2009-06-07  Bruno Haible  <bruno@clisp.org>
40073
40074         * tests/test-alignof.c: Don't test int64_t if it does not exist.
40075         Reported by Eric Blake.
40076
40077 2009-06-06  Eric Blake  <ebb9@byu.net>
40078
40079         test-alignof: fix typo with long double
40080         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
40081         compiler error.
40082
40083 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
40084
40085         Escape non-texinfo { and }s.
40086         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
40087         markup error.
40088
40089 2009-06-04  Jim Meyering  <meyering@redhat.com>
40090
40091         gitlog-to-changelog: don't infloop on an empty commit log
40092         * build-aux/gitlog-to-changelog: Warn about an empty log message.
40093         Reported by Boris Petersen <transacid@centerim.org>.
40094
40095 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
40096
40097         version-etc: extend for packagers
40098         Add three new configure options, intended for packagers:
40099           --with-packager="packager name"
40100           --with-packager-version="packager-specific version"
40101           --with-packager-bug-reports="packager bug reporting"
40102         An example with coreutils:
40103           $ ./configure \
40104             --with-packager=Gentoo \
40105             --with-packager-bug-report=http://bugs.gentoo.org/ \
40106             --with-packager-version="patchset 1.6"
40107           $ ./src/ls --version | head -n2
40108           ls (GNU coreutils) 7.1-dirty
40109           Packaged by Gentoo (patchset 1.6)
40110         Note that the bug reporting info via --help doesn't show up because
40111         coreutils uses its own custom emit_bug_reporting_address() implementation
40112         in src/system.h.  If it didn't, it'd look like:
40113           $ ./src/ls --help | tail -n4
40114           Report bugs to <bug-coreutils@gnu.org>.
40115           Report Gentoo bugs to <http://bugs.gentoo.org/>.
40116           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
40117           General help using GNU software: <http://www.gnu.org/gethelp/>.
40118         * lib/version-etc.c: Print new information, if provided.
40119         * m4/version-etc.m4: New file.
40120         * modules/version-etc (Files): Add m4/version-etc.m4.
40121         (configure.ac): Add gl_VERSION_ETC.
40122
40123 2009-05-31  Bruno Haible  <bruno@clisp.org>
40124
40125         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
40126         and 'int64_t'.
40127         * modules/alignof-tests (Dependencies): Add stdint.
40128         Reported by Eric Blake.
40129
40130 2009-05-31  Bruno Haible  <bruno@clisp.org>
40131
40132         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
40133         restriction due to compiler bugs.
40134         Reported by Eric Blake.
40135
40136 2009-05-31  Simon Josefsson  <simon@josefsson.org>
40137             Bruno Haible  <bruno@clisp.org>
40138
40139         Fix test-alignof failure.
40140         * lib/alignof.h (alignof_slot): New macro.
40141         (alignof_type): New macro, with the same semantics as the previous
40142         'alignof'.
40143         (alignof): Alias to alignof_slot.
40144         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
40145         check that the results are usable as constant expressions.
40146
40147 2009-05-31  Bruno Haible  <bruno@clisp.org>
40148
40149         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
40150         * tests/test-memchr.c (main): Check that memchr does not read past the
40151         first occurrence of the byte.
40152         * tests/test-strstr.c (main): Update comment.
40153         Suggested by Eric Blake.
40154
40155 2009-05-30  Bruno Haible  <bruno@clisp.org>
40156
40157         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
40158         detail how to use dumpbin.
40159         Reported by David Byron <dbyron@dbyron.com>.
40160
40161 2009-06-02  Simon Josefsson  <simon@josefsson.org>
40162
40163         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
40164
40165 2009-06-02  Simon Josefsson  <simon@josefsson.org>
40166
40167         * m4/manywarnings.m4: Add GCC 4.4 warnings.
40168
40169 2009-05-28  Bruno Haible  <bruno@clisp.org>
40170
40171         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
40172         build-aux/ files.
40173
40174 2009-05-28  Simon Josefsson  <simon@josefsson.org>
40175
40176         * gnulib-tool (func_import): Transform license on build-aux/ files too.
40177
40178 2009-05-27  Simon Josefsson  <simon@josefsson.org>
40179
40180         * gnulib-tool (sed_transform_main_lib_file)
40181         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
40182         regexps.
40183
40184 2009-05-26  Simon Josefsson  <simon@josefsson.org>
40185
40186         * tests/test-strstr.c: Add another self-test.
40187         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
40188         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
40189
40190 2009-05-23  Bruno Haible  <bruno@clisp.org>
40191
40192         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
40193         change.
40194
40195 2009-05-21  Bruno Haible  <bruno@clisp.org>
40196
40197         Simplify use of mode_t varargs.
40198         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
40199         uses 'mode_t' or 'int'.
40200         * lib/openat.c (openat): Likewise.
40201         * lib/open-safer.c (open_safer): Likewise.
40202         * m4/mode_t.m4: New file.
40203         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
40204         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
40205         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
40206         * modules/open (Files): Add m4/mode_t.m4.
40207         * modules/openat (Files): Likewise.
40208         * modules/fcntl-safer (Files): Likewise.
40209         Suggested by Eric Blake.
40210
40211 2009-05-21  Pádraig Brady  <P@draigbrady.com>
40212
40213         * doc/glibc-functions/fallocate.texi: New file.
40214         * doc/gnulib.texi: Include it.
40215
40216 2009-05-21  Eric Blake  <ebb9@byu.net>
40217             Bruno Haible  <bruno@clisp.org>
40218
40219         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
40220         invocations.
40221         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40222
40223 2009-05-21  Eric Blake  <ebb9@byu.net>
40224             Bruno Haible  <bruno@clisp.org>
40225
40226         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
40227         include_next. Fix of 2008-11-20 commit.
40228         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
40229         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
40230         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
40231         NEXT_MATH_H.
40232         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
40233         instead of NEXT_MATH_H.
40234
40235 2009-05-21  Bruno Haible  <bruno@clisp.org>
40236
40237         Avoid redefinition warnings for SIZE_MAX.
40238         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
40239         Reported by Simon Josefsson.
40240
40241 2009-05-21  Bruno Haible  <bruno@clisp.org>
40242
40243         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
40244         AC_CACHE_VAL.
40245
40246 2009-05-20  Bruno Haible  <bruno@clisp.org>
40247
40248         Make zeroptr.h work on mingw.
40249         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
40250         mprotect.
40251         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
40252         * modules/memchr2-tests (configure.ac): Likewise.
40253         * modules/memcmp-tests (configure.ac): Likewise.
40254         * modules/memmem-tests (configure.ac): Likewise.
40255         * modules/memrchr-tests (configure.ac): Likewise.
40256         Reported by Simon Josefsson.
40257
40258 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40259
40260         * tests/test-glob.c: Include string.h for strcmp prototype.
40261
40262 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40263
40264         * modules/getdelim (Depends-on): Add explicit stdint, although it
40265         was implicitly already pulled in via realloc-posix.
40266         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
40267
40268 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40269
40270         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
40271         G. Christensen" <tgc@jupiterrise.com>.
40272         * m4/sys_socket_h.m4: Check for sa_family_t.
40273         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
40274         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
40275         * tests/test-sys_socket.c: Check that sa_family_t works.
40276
40277 2009-05-18  Eric Blake  <ebb9@byu.net>
40278
40279         maint.mk: allow gnulib_dir in VPATH build
40280         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
40281
40282 2009-05-15  Jim Meyering  <meyering@redhat.com>
40283
40284         maint.mk: Give gnulib_dir a default definition.
40285         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
40286         Thus, most packages no longer need to specify this variable in cfg.mk
40287
40288 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
40289
40290         rename.m4: fix typos that would make non-mingw cross-configure fail
40291         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
40292
40293 2009-05-13  Eric Blake  <ebb9@byu.net>
40294
40295         mmap-anon: avoid out-of-order autoconf expansion
40296         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
40297         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
40298         * modules/memchr-tests (Depends-on): Add extensions.
40299         * modules/memchr2-tests (Depends-on): Add extensions.
40300         * modules/memcmp-tests (Depends-on): Add extensions.
40301         * modules/memmem-tests (Depends-on): Add extensions.
40302         * modules/memrchr-tests (Depends-on): Add extensions.
40303
40304 2009-05-13  Bruno Haible  <bruno@clisp.org>
40305
40306         Make some tests ISO C 99 compliant.
40307         * tests/zerosize-ptr.h: New file.
40308         * tests/test-memchr.c: Include zerosize-ptr.h.
40309         (main): Use a zero-size object pointer instead of NULL.
40310         * tests/test-memchr2.c: Include zerosize-ptr.h.
40311         (main): Use a zero-size object pointer instead of NULL.
40312         * tests/test-memcmp.c: Include zerosize-ptr.h.
40313         (main): Use a zero-size object pointer instead of NULL.
40314         * tests/test-memmem.c: Include zerosize-ptr.h.
40315         (main): Use a zero-size object pointer instead of NULL.
40316         * tests/test-memrchr.c: Include zerosize-ptr.h.
40317         (main): Use a zero-size object pointer instead of NULL.
40318         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
40319         m4/mmap-anon.m4.
40320         (Depends-on): Add getpagesize.
40321         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40322         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
40323         m4/mmap-anon.m4.
40324         (Depends-on): Add getpagesize.
40325         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40326         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
40327         m4/mmap-anon.m4.
40328         (Depends-on): Add getpagesize.
40329         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40330         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
40331         m4/mmap-anon.m4.
40332         (Depends-on): Add getpagesize.
40333         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40334         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
40335         m4/mmap-anon.m4.
40336         (Depends-on): Add getpagesize.
40337         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40338
40339 2009-05-12  Bruno Haible  <bruno@clisp.org>
40340
40341         Tests for module 'alignof'.
40342         * modules/alignof-tests: New file.
40343         * tests/test-alignof.c: New file.
40344
40345 2009-05-12  Bruno Haible  <bruno@clisp.org>
40346
40347         Fix alignof macro.
40348         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
40349         vendor compilers that are always correct.
40350
40351 2009-05-12  Bruno Haible  <bruno@clisp.org>
40352
40353         Make the MAP_ANONYMOUS detection work on HP-UX 11.
40354         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
40355         not whether its fully works.
40356
40357 2009-05-12  Bruno Haible  <bruno@clisp.org>
40358
40359         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
40360
40361 2009-05-12  Jim Meyering  <meyering@redhat.com>
40362
40363         * top/maint.mk: Adjust backslash alignment.
40364
40365 2009-05-11  Simon Josefsson  <simon@josefsson.org>
40366
40367         * top/maint.mk: Make $(srcdir)/build-aux configurable.
40368
40369 2009-05-11  Eric Blake  <ebb9@byu.net>
40370
40371         argp: avoid undefined behavior
40372         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
40373         macros.
40374
40375 2009-05-08  Simon Josefsson  <simon@josefsson.org>
40376
40377         * tests/test-vc-list-files-git.sh: Do git config of user.email and
40378         user.name to prevent git commit from complaining.
40379
40380 2009-05-10  Bruno Haible  <bruno@clisp.org>
40381
40382         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
40383         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
40384         it rewrites every file name only once.
40385         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
40386
40387 2009-05-08  Bruno Haible  <bruno@clisp.org>
40388
40389         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
40390         instead of 'max'.
40391
40392 2009-05-08  Simon Josefsson  <simon@josefsson.org>
40393
40394         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
40395         sockaddr_storage test.
40396
40397 2009-05-07  Simon Josefsson  <simon@josefsson.org>
40398
40399         * modules/sys_socket (Makefile.am): Substitute
40400         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
40401         * m4/sys_socket_h.m4: Check for sockaddr_storage.
40402         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
40403         * tests/test-sys_socket.c: Check sockaddr_storage.
40404
40405 2009-05-08  Bruno Haible  <bruno@clisp.org>
40406
40407         New module 'alignof'.
40408         * lib/alignof.h: New file.
40409         * modules/alignof: New file.
40410
40411 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40412             Bruno Haible  <bruno@clisp.org>
40413
40414         Fix test-file-has-acl on FreeBSD.
40415         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
40416         mask is implicitly added.
40417         * tests/test-file-has-acl.c: Include <signal.h>.
40418         (main): Terminate the test after 5 seconds.
40419         * modules/acl-tests (configure.ac): Check for alarm function.
40420
40421 2009-05-04  Bruno Haible  <bruno@clisp.org>
40422
40423         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
40424         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
40425         * modules/errno (configure.ac): Drop AC_REQUIRE.
40426         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
40427         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
40428
40429 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40430
40431         * modules/glob-tests: New module.
40432         * tests/test-glob.c: Add.
40433
40434 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40435
40436         * modules/fnmatch-tests: New module.
40437         * tests/test-fnmatch.c: Add.
40438
40439 2009-05-04  Eric Blake  <ebb9@byu.net>
40440
40441         maint: make the new no-submodule-changes rule VPATH-safe
40442         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
40443
40444 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40445             Bruno Haible  <bruno@clisp.org>
40446
40447         acl: Fix infinite loop on FreeBSD.
40448         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
40449         of return value from acl_get_entry.
40450         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
40451         Likewise.
40452
40453 2009-05-03  Bruno Haible  <bruno@clisp.org>
40454
40455         * lib/acl-internal.h (acl_entries): Clarify return value.
40456         * lib/acl_entries.c (acl_entries): Likewise.
40457
40458 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40459
40460         Bug fix in acl module.
40461         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
40462
40463 2009-05-03  Bruno Haible  <bruno@clisp.org>
40464
40465         Create gperf-generated file in the source dir, not in the build dir.
40466         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
40467         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
40468         * modules/unicase/locale-language (unicase/locale-languages.h):
40469         Likewise.
40470         * modules/unicase/special-casing (unicase/special-casing-table.h):
40471         Likewise.
40472         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
40473         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
40474         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
40475         Reported by Ralf Wildenhues.
40476
40477 2009-05-03  Bruno Haible  <bruno@clisp.org>
40478
40479         * modules/fnmatch (Description, configure.ac): Taken from
40480         fnmatch-posix.
40481         * modules/fnmatch-posix: Turn into a symbolic reference to the
40482         'fnmatch' module, and deprecate.
40483         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
40484
40485 2009-05-03  Bruno Haible  <bruno@clisp.org>
40486
40487         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
40488         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
40489         Reported by Ralf Wildenhues.
40490
40491 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40492
40493         * m4/fnmatch.m4: Fix fnmatch re-define.
40494
40495 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40496
40497         priv-set: new module and tests; adapt write-any-file
40498         * lib/priv-set.c: New file.
40499         * lib/priv-set.h: New file.
40500         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
40501         * lib/write-any-file.c: Simplify by using priv-set module.
40502         * m4/priv-set.m4: New file.
40503         * modules/priv-set: New file.
40504         * modules/unlinkdir: Add dependency on priv-set module.
40505         * modules/write-any-file: Likewise.
40506
40507         Tests for module 'priv-set'.
40508         * modules/priv-set-tests: New file.
40509         * tests/test-priv-set.c: New file.
40510
40511 2009-05-03  Jim Meyering  <meyering@redhat.com>
40512             Bruno Haible  <bruno@clisp.org>
40513
40514         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
40515         use the converted UTF-8 variant of the name instead.
40516
40517 2009-05-03  Jim Meyering  <meyering@redhat.com>
40518
40519         tests: tighten some getdate tests
40520         * tests/test-getdate.c (main): Tighten tests: require equality,
40521         not just greater than.  Set TZ envvar to UTC0.
40522
40523 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
40524
40525         getdate: correctly interpret "next monday" when run on a Monday
40526         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
40527         that e.g., "next tues" (when run on a tuesday) results in a date
40528         that is one week in the future, and not today's date.
40529         I.e., add a week when the wday is the same as the current one.
40530         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
40531         and earlier by Martin Bernreuther and Jan Minář.
40532         * tests/test-getdate.c (main): Check that "next DAY" is always in
40533         the future and that "last DAY" is always in the past.
40534
40535 2009-05-02  Jim Meyering  <meyering@redhat.com>
40536
40537         build: ensure that a release build fails when a submodule is unclean
40538         * top/maint.mk (no-submodule-changes): New rule.
40539         (alpha beta major): Depend on it.
40540
40541 2009-05-02  Bruno Haible  <bruno@clisp.org>
40542
40543         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
40544         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
40545         shell variable gl_fnmatch_required to detect which variant is
40546         requested.
40547         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
40548         gl_FUNC_FNMATCH_POSIX.
40549         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
40550         exclude fnmatch-posix.
40551
40552 2009-05-02  Bruno Haible  <bruno@clisp.org>
40553
40554         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
40555         * modules/mbsrtowcs (License): Change to LGPLv2+.
40556         * modules/strnlen1 (License): Likewise.
40557         Reported by Simon Josefsson.
40558
40559 2009-05-02  Bruno Haible  <bruno@clisp.org>
40560
40561         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
40562         "cross".
40563         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
40564         gnulib-tool was called with option --source-base=lib.
40565
40566 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40567
40568         Use automake *-local hooks without commands, for extensibility.
40569         * modules/localcharset (Makefile.am): Rename install-exec-local
40570         rule to install-exec-localcharset, and make it a prerequisite of
40571         install-exec-local.  Likewise, rename the uninstall-local rule to
40572         uninstall-localcharset, and make it a prerequisite of the former.
40573
40574 2009-05-01  Bruno Haible  <bruno@clisp.org>
40575
40576         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
40577         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
40578         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
40579         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
40580         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
40581         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
40582         m4/locale-zh.m4, m4/codeset.m4.
40583
40584         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
40585         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
40586         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
40587         m4/locale-zh.m4.
40588
40589         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
40590         REPLACE_WCRTOMB if mbstate_t must be replaced.
40591         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
40592         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
40593
40594 2009-05-01  Bruno Haible  <bruno@clisp.org>
40595
40596         Avoid compiler warnings when redefining macros defined by <libintl.h>.
40597         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
40598         dngettext, dcngettext, textdomain, bindtextdomain,
40599         bind_textdomain_codeset): Undefine before redefining.
40600
40601 2009-04-30  Bruno Haible  <bruno@clisp.org>
40602
40603         Fix bug introduced on 2009-04-25.
40604         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
40605         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
40606         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
40607         is defined.
40608         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
40609         is defined.
40610         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
40611         is defined.
40612         Reported by Elbert_Pol <elbert.pol@gmail.com>.
40613
40614 2009-04-28  Bruno Haible  <bruno@clisp.org>
40615
40616         Comment tweaks.
40617         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
40618         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
40619         * lib/unicase.h (u*_casexfrm): Likewise.
40620         Reported by Paolo Bonzini.
40621
40622 2009-04-28  Bruno Haible  <bruno@clisp.org>
40623
40624         Fix a compilation error.
40625         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
40626         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
40627         Reported by Jim Meyering.
40628
40629 2009-04-27  Bruno Haible  <bruno@clisp.org>
40630
40631         New module 'libunistring'.
40632         * modules/libunistring: New file.
40633         * m4/libunistring.m4: New file.
40634         * MODULES.html.sh (Unicode string functions): Add it.
40635
40636 2009-04-27  Eric Blake  <ebb9@byu.net>
40637
40638         maint.mk: allow package-specific header to provide <config.h>
40639         * top/maint.mk (sc_require_config_h): New variable.
40640         (sc_require_config_h, sc_require_config_h_first): Use it.
40641
40642 2009-04-27  Simon Josefsson  <simon@josefsson.org>
40643
40644         * top/maint.mk (sc_avoid_if_before_free): Except
40645         useless-if-before-free script.
40646
40647 2009-04-27  Eric Blake  <ebb9@byu.net>
40648
40649         maintainer-makefile: depend on all required helper scripts
40650         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
40651         useless-if-before-free.
40652         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
40653         version, rather than assuming gnulib checkout is available.
40654         Reported by Simen Josefsson.
40655
40656 2009-04-26  Bruno Haible  <bruno@clisp.org>
40657
40658         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
40659         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
40660         "../" or "..".
40661
40662 2009-04-26  Bruno Haible  <bruno@clisp.org>
40663
40664         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
40665         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
40666         AC_LIB_HAVE_LINKFLAGS.
40667
40668 2009-04-26  Bruno Haible  <bruno@clisp.org>
40669
40670         Simplify calling convention of u*_conv_from_encoding.
40671         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
40672         u32_conv_from_encoding): Expect a resultbuf argument and return the
40673         result directly as a pointer.
40674         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
40675         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
40676         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
40677         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
40678         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
40679         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40680         Update.
40681         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
40682         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
40683         * lib/vasnprintf.c (VASNPRINTF): Update.
40684         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
40685         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
40686         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
40687         * NEWS: Mention the change.
40688
40689 2009-04-26  Bruno Haible  <bruno@clisp.org>
40690
40691         Simplify calling convention of u*_conv_to_encoding.
40692         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
40693         u32_conv_to_encoding): Expect a resultbuf argument and return the
40694         result directly as a pointer.
40695         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40696         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
40697         freeing scaled_offsets if mem_iconveha failed.
40698         * lib/unicase/u-casexfrm.h (FUNC): Update.
40699         * lib/uninorm/u-normxfrm.h (FUNC): Update.
40700         * lib/vasnprintf.c (VASNPRINTF): Update.
40701         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
40702         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
40703         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
40704         * NEWS: Mention the change.
40705
40706 2009-04-26  Bruno Haible  <bruno@clisp.org>
40707
40708         Avoid test failures on AIX and OSF/1.
40709         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
40710         malloc(0).
40711         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40712         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40713         Likewise.
40714         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
40715         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
40716         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
40717         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
40718         * doc/posix-functions/malloc.texi: Document the portability problem
40719         related to malloc(0).
40720
40721 2009-04-26  Bruno Haible  <bruno@clisp.org>
40722
40723         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
40724         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
40725         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
40726
40727 2009-04-25  Bruno Haible  <bruno@clisp.org>
40728
40729         Avoid link error when creating a namespace clean library.
40730         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
40731         as macro with arguments if already defined as an alias.
40732         * lib/signbitf.c (gl_signbitf): Don't undefine.
40733         * lib/signbitd.c (gl_signbitd): Don't undefine.
40734         * lib/signbitl.c (gl_signbitl): Don't undefine.
40735
40736 2009-04-25  Jim Meyering  <meyering@redhat.com>
40737
40738         vc-list-files: fix another quoting bug
40739         * build-aux/vc-list-files: Avoid sed backslash expansion
40740         of pathological directory names.
40741
40742 2009-04-25  Eric Blake  <ebb9@byu.net>
40743
40744         vc-list-files: fix shell quoting error
40745         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
40746         timestamp.
40747
40748 2009-04-25  Jim Meyering  <meyering@redhat.com>
40749
40750         vc-list-files: restore lost functionality with subdir argument
40751         * build-aux/vc-list-files: When given a non-"." sub-directory
40752         argument, substitute the $dir/ prefix back onto each resulting name.
40753         Otherwise, coreutils' root_tests check would fail.
40754
40755 2009-04-24  Eric Blake  <ebb9@byu.net>
40756
40757         vc-list-files: ignore git symlinks
40758         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
40759         than ls-files, to ignore git symlinks.
40760
40761         maint.mk: import improvements from m4
40762         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
40763         (move_if_change): Delete unused macro.
40764         (news-date-check, vc-diff-check): Support VPATH builds.
40765         (announcement): Likewise.  Split --bootstrap-tools list...
40766         (boostrap-tools): ...into separate list, which can be overridden
40767         in cfg.mk.
40768         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
40769         requiring dependency on useless-if-before-free module.
40770         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
40771         Support VPATH builds.
40772
40773 2009-04-24  Jim Meyering  <meyering@redhat.com>
40774
40775         maint.mk: remove coreutils-specific rules and variables
40776         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
40777         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
40778         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
40779
40780         maint.mk: remove obsolete rule
40781         * top/maint.mk (rel-check): Remove rule.
40782         (WGET, WGETFLAGS): Remove now-unused variables.
40783
40784 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40785
40786         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
40787         consistency.
40788
40789         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
40790         '$(PATH_SEPARATOR)' instead of ':'.
40791
40792 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40793
40794         * lib/getopt1.c (main): Use 'const' for static array.
40795
40796 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40797
40798         * top/maint.mk: Sync with coreutils.
40799         * NEWS: Explain incompatibilities.
40800
40801 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40802             Bruno Haible  <bruno@clisp.org>
40803
40804         Fix cross-compilation results.
40805         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
40806         statement, as third argument of AC_TRY_RUN.
40807         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
40808         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
40809         Likewise.
40810         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
40811         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
40812         Likewise.
40813         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
40814         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
40815         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
40816
40817 2009-04-20  Bruno Haible  <bruno@clisp.org>
40818
40819         Avoid test failure on mingw.
40820         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
40821
40822 2009-04-20  Bruno Haible  <bruno@clisp.org>
40823
40824         Avoid compilation error on mingw.
40825         * modules/localename-tests (Depends-on): Add locale.
40826
40827 2009-04-19  Bruno Haible  <bruno@clisp.org>
40828
40829         Support for building a shared library on Windows platforms.
40830         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
40831         (main): Test the presence of UNINORM_NFC here.
40832         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
40833         (main): Test the presence of UNINORM_NFD here.
40834         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
40835         (main): Test the presence of UNINORM_NFKC here.
40836         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
40837         (main): Test the presence of UNINORM_NFKD here.
40838
40839 2009-04-19  Bruno Haible  <bruno@clisp.org>
40840
40841         Avoid a compiler warning.
40842         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
40843         Change type of variable 'sequence'.
40844
40845 2009-04-19  Bruno Haible  <bruno@clisp.org>
40846
40847         * modules/configmake (Makefile.am): When the contents of configmake.h
40848         does not change, arrange to preserve its modification time.
40849
40850 2009-04-17  Simon Josefsson  <simon@josefsson.org>
40851
40852         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
40853         gettext domain.
40854
40855 2009-04-16  Jim Meyering  <meyering@redhat.com>
40856
40857         useless-if-before-free: improve conversion code
40858         * build-aux/useless-if-before-free: Adjust code-in-comment to match
40859         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
40860
40861 2009-04-14  Bruno Haible  <bruno@clisp.org>
40862
40863         * modules/fcntl (Depends-on): Add extensions.
40864         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
40865
40866 2009-04-12  Ben Pfaff  <blp@gnu.org>
40867
40868         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
40869         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
40870
40871 2009-03-20  Ben Pfaff  <blp@gnu.org>
40872
40873         Make rename replace existing destinations on Windows.
40874         * m4/rename.m4: Add test for Mingw.
40875         * lib/rename.c: Add rename replacement that uses MoveFileEx with
40876         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
40877         * doc/posix-functions/rename.texi: Document.
40878
40879 2009-04-10  Bruno Haible  <bruno@clisp.org>
40880
40881         New include file "iconveh.h".
40882         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
40883         * lib/striconveh.h: Include it.
40884         (enum iconv_ilseq_handler): Remove definition.
40885         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
40886         striconveh.h.
40887         * lib/striconveha.c: Include striconveh.h.
40888         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
40889         * modules/striconveh (Files): Add lib/iconveh.h.
40890         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
40891         lib/striconveh.h.
40892
40893 2009-04-10  Bruno Haible  <bruno@clisp.org>
40894
40895         * lib/uniconv.h: Update comment.
40896
40897 2009-04-10  Bruno Haible  <bruno@clisp.org>
40898
40899         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
40900         always.
40901         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
40902         * lib/unistr/u16-mbtouc-aux.c: Likewise.
40903         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
40904         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
40905         "unistring-notinline.h", so that the function gets defined always.
40906         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
40907         * lib/unistr/u8-uctomb.c: Likewise.
40908         * lib/unistr/u16-mbtouc.c: Likewise.
40909         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
40910         * lib/unistr/u16-uctomb.c: Likewise.
40911         * lib/unistr/u32-mbtouc.c: Likewise.
40912         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
40913         * lib/unistr/u32-uctomb.c: Likewise.
40914
40915 2009-04-10  Bruno Haible  <bruno@clisp.org>
40916
40917         Mark 'utime' obsolete.
40918         * modules/utime (Status, Notice): New sections.
40919         Suggested by Jim Meyering.
40920
40921         Fix cross-compile guess for utime test.
40922         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
40923         autoconf.
40924         * doc/posix-functions/utime.texi: Give more precisions.
40925         Reported by Jan <ipif@ymail.com>.
40926
40927 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
40928
40929         filevercmp: correct today's change
40930         * lib/filevercmp.c: Also handle coreutils' test inputs.
40931         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
40932
40933         Fix regression in 'filevercmp' module. Thanks Sven Joachim
40934         for reporting it.
40935         * lib/filevercmp.c: Special handle for "", "." and "..".
40936         * tests/test-filevercmp.c: Enlarge the set suite.
40937
40938 2009-04-07  Jim Meyering  <meyering@redhat.com>
40939
40940         useless-if-before-free: show how to remove braced useless free, too
40941         * build-aux/useless-if-before-free: still only in a comment, though.
40942
40943 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
40944
40945         maint.mk: import changes to syntax-check macros from coreutils
40946         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
40947         Use them in the relevant macros.
40948
40949 2009-04-06  Bruno Haible  <bruno@clisp.org>
40950
40951         Fix unportable use of bit-fields.
40952         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
40953         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
40954         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
40955
40956 2009-04-06  Bruno Haible  <bruno@clisp.org>
40957
40958         Avoid test failures on AIX and OSF/1.
40959         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
40960         that malloc(0) = NULL.
40961         * tests/unicase/test-u8-tolower.c (check): Likewise.
40962         * tests/unicase/test-u8-totitle.c (check): Likewise.
40963         * tests/unicase/test-u8-toupper.c (check): Likewise.
40964         * tests/unicase/test-u16-casefold.c (check): Likewise.
40965         * tests/unicase/test-u16-tolower.c (check): Likewise.
40966         * tests/unicase/test-u16-totitle.c (check): Likewise.
40967         * tests/unicase/test-u16-toupper.c (check): Likewise.
40968         * tests/unicase/test-u32-casefold.c (check): Likewise.
40969         * tests/unicase/test-u32-tolower.c (check): Likewise.
40970         * tests/unicase/test-u32-totitle.c (check): Likewise.
40971         * tests/unicase/test-u32-toupper.c (check): Likewise.
40972         * tests/uninorm/test-u8-nfc.c (check): Likewise.
40973         * tests/uninorm/test-u8-nfd.c (check): Likewise.
40974         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
40975         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
40976         * tests/uninorm/test-u16-nfc.c (check): Likewise.
40977         * tests/uninorm/test-u16-nfd.c (check): Likewise.
40978         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
40979         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
40980         * tests/uninorm/test-u32-nfc.c (check): Likewise.
40981         * tests/uninorm/test-u32-nfd.c (check): Likewise.
40982         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
40983         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
40984
40985 2009-04-05  Bruno Haible  <bruno@clisp.org>
40986
40987         Work around an autoconf limitation.
40988         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
40989         comment line if it would be longer than 3 KB.
40990
40991 2009-04-05  Bruno Haible  <bruno@clisp.org>
40992
40993         Avoid test failure with libiconv-1.13.
40994         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
40995         of the expected test results.
40996
40997 2009-04-05  Bruno Haible  <bruno@clisp.org>
40998
40999         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
41000         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
41001         that it should be installed.
41002
41003 2009-04-05  Bruno Haible  <bruno@clisp.org>
41004
41005         * gnulib-tool: New option --copy-file.
41006         (func_usage): Document it.
41007         (func_dest_tmpfilename): Moved out of func_import.
41008         (func_add_file, func_update_file): New functions, extracted from
41009         func_import.
41010         (func_import): Update.
41011
41012 2009-04-05  Karl Berry  <karl@gnu.org>
41013
41014         * README: prominently mention gnulib-tool.
41015         Rearrange sections so getting the code is near the top.
41016
41017 2009-04-05  Bruno Haible  <bruno@clisp.org>
41018
41019         * lib/unicase.h: Mention u*_cmp2.
41020         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
41021         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
41022         * lib/unicase/ulc-casecmp.c: Likewise.
41023         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
41024         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
41025         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
41026         unistr/u8-cmp.
41027         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
41028         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
41029         unistr/u16-cmp.
41030         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
41031         unistr/u32-cmp.
41032
41033         * lib/uninorm.h: Mention u*_cmp2.
41034         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
41035         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
41036         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
41037         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
41038         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
41039         unistr/u8-cmp.
41040         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
41041         unistr/u16-cmp.
41042         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
41043         unistr/u32-cmp.
41044
41045         New module 'unistr/u32-cmp2'.
41046         * lib/unistr/u32-cmp2.c: New file.
41047         * modules/unistr/u32-cmp2: New file.
41048
41049         New module 'unistr/u16-cmp2'.
41050         * lib/unistr/u16-cmp2.c: New file.
41051         * modules/unistr/u16-cmp2: New file.
41052
41053         New module 'unistr/u8-cmp2'.
41054         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
41055         * lib/unistr/u8-cmp2.c: New file.
41056         * lib/unistr/u-cmp2.h: New file.
41057         * modules/unistr/u8-cmp2: New file.
41058
41059 2009-04-05  Bruno Haible  <bruno@clisp.org>
41060
41061         * lib/unictype.h (uc_property_is_valid): New macro.
41062         * tests/unictype/test-pr_byname.c (main): Use it.
41063
41064         * lib/unistr.h: Doc fixes.
41065         * lib/uniconv.h: Doc fixes.
41066         * lib/unictype.h: Doc fixes.
41067
41068 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
41069
41070         Port coreutils 7.2 to Solaris 8.
41071
41072         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
41073         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
41074         for Solaris 8.  This is a bit of a hack, as it means it's the
41075         caller's responsibility to add -lnsl if needed, but most likely it
41076         won't be needed since only getaddrinfo uses this and getaddrinfo
41077         isn't needed on Solaris 8.
41078
41079         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
41080         problem to Solaris 8 encountered with coreutils 7.2, which
41081         resulted in a message "fnmatch.c:292: warning: passing argument 4
41082         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
41083         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
41084
41085 2009-04-03  Simon Josefsson  <simon@josefsson.org>
41086
41087         * m4/ld-version-script.m4: Add FIXME comment.
41088
41089 2009-04-02  Simon Josefsson  <simon@josefsson.org>
41090
41091         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
41092         SOVERSION variable.
41093
41094 2009-04-02  Bruno Haible  <bruno@clisp.org>
41095
41096         * Makefile (info, html, dvi, pdf): Combine the rules.
41097         Suggested by Jim Meyering.
41098
41099 2009-04-01  Bruno Haible  <bruno@clisp.org>
41100
41101         * Makefile (info, html, dvi, pdf): New targets.
41102         Reported by Reuben Thomas <rrt@sc3d.org>.
41103
41104 2009-04-01  Bruno Haible  <bruno@clisp.org>
41105
41106         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
41107         can be put into PATH.
41108         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
41109
41110 2009-04-01  Bruno Haible  <bruno@clisp.org>
41111
41112         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
41113
41114 2009-04-01  Bruno Haible  <bruno@clisp.org>
41115
41116         Rename module 'visibility'.
41117         * modules/lib-symbol-visibility: Renamed from modules/visibility.
41118         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
41119         * doc/gnulib.texi: Update.
41120         * MODULES.html.sh (Misc): Update.
41121         * NEWS: Mention the change.
41122
41123 2009-04-01  Simon Josefsson  <simon@josefsson.org>
41124
41125         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
41126         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
41127         Eric Blake <ebb9@byu.net> for review.
41128         * MODULES.html.sh: Add lib-msvc-compat.
41129         * doc/gnulib.texi: Link to new section.
41130         * m4/ld-output-def.m4: New file.
41131         * doc/ld-output-def.texi: New file.
41132
41133 2009-04-01  Simon Josefsson  <simon@josefsson.org>
41134
41135         Rename ld-version-script to lib-symbol-versions.  Suggested by
41136         Bruno Haible <bruno@clisp.org>.
41137         * modules/ld-version-script: Renamed to lib-symbol-versions.
41138         * doc/ld-version-script.texi: Fix module name.
41139         * MODULES.html.sh: Add lib-symbol-versions.
41140
41141 2009-03-31  Simon Josefsson  <simon@josefsson.org>
41142
41143         * modules/u64-tests: New file.
41144         * tests/test-u64.c: New file.
41145
41146 2009-03-04  Simon Josefsson  <simon@josefsson.org>
41147
41148         * MODULES.html.sh: Mention u64.
41149         * modules/u64: New module.
41150         * modules/crypto/sha512: Depend on u64 module instead of providing
41151         u64.h.
41152
41153 2009-03-27  Eric Blake  <ebb9@byu.net>
41154
41155         test-strerror: make debugging EAI_SYSTEM easier
41156         * modules/getaddrinfo-tests (Depends-on): Add strerror.
41157         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
41158         failure was EAI_SYSTEM.
41159
41160 2009-03-25  Bruno Haible  <bruno@clisp.org>
41161
41162         Fix a problem with --enable-relocatable on Solaris 7.
41163         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
41164         since 2008-02-24.
41165
41166 2009-03-25  Eric Blake  <ebb9@byu.net>
41167
41168         test-sockets: avoid gcc warning
41169         * tests/test-sockets.c (main): Silence compiler warning.
41170
41171 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
41172
41173         New modules nproc, pthread, contributed by Glen Lenker.
41174
41175         * MODULES.html.sh: Add pthread, nproc.
41176         * lib/nproc.c: New file.
41177         * lib/nproc.h: New file.
41178         * lib/pthread.in.h: New file.
41179         * m4/pthread.m4: New file.
41180         * modules/nproc: New file.
41181         * modules/pthread: New file.
41182
41183 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41184
41185         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
41186         New variable.
41187
41188 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
41189
41190         filevercmp: handle simple~ and numbered.~3~ backup suffixes
41191         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
41192         * tests/test-filevercmp.c: Add tests for backup suffixes.
41193
41194 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41195
41196         * modules/stdlib (Depends-on): Add stdint, needed when defining
41197         struct random_data on, for example, HP-UX 10.20.  Reported by
41198         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41199
41200 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41201
41202         * lib/readline.c (readline): Call fflush on stdout after printing
41203         prompt.
41204
41205 2009-03-20  Bruno Haible  <bruno@clisp.org>
41206
41207         Remove dependency from 'close' module to -lws2_32 on native Windows.
41208         * lib/close-hook.h: New file.
41209         * lib/close-hook.c: New file.
41210         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
41211         w32sock.h.
41212         (_gl_close_fd_maybe_socket): Remove function.
41213         (rpl_close): Invoke execute_all_close_hooks instead of
41214         _gl_close_fd_maybe_socket.
41215         * lib/sockets.c: Include close-hook.h, w32sock.h.
41216         (close_fd_maybe_socket): New function, essentially from lib/close.c.
41217         (close_sockets_hook): New variable.
41218         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
41219         (gl_sockets_cleanup): Unregister it.
41220         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
41221         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
41222         * modules/close-hook: New file.
41223         * modules/close (Files): Remove lib/w32sock.h.
41224         (Depends-on): Add close-hook.
41225         (Link): Remove section.
41226         * modules/sockets (Files): Add lib/w32sock.h.
41227         (Depends-on): Add close-hook.
41228         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
41229         invocation.
41230         * NEWS: Mention that LIB_CLOSE is gone.
41231
41232 2009-03-23  Eric Blake  <ebb9@byu.net>
41233
41234         signal-tests: test previous patch
41235         * tests/test-signal.c: New file.
41236         * modules/signal-tests: Likewise.
41237
41238         signal.h: always support 'volatile sig_atomic_t'
41239         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
41240         (gl_SIGNAL_H_DEFAULTS): Add a default.
41241         * modules/signal (Makefile.am): Substitute if needed.
41242         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
41243         users can blindly add volatile.
41244         * doc/posix-headers/signal.texi (signal.h): Document it.
41245         Reported by Matthew Woehlke.
41246
41247 2009-03-23  Jim Meyering  <meyering@redhat.com>
41248
41249         pathmax: PATH_MAX: use pathconf only when available
41250         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
41251         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
41252         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
41253         This avoids a link failure in a PSP cross-compilation environment
41254         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
41255
41256         * lib/vasnprintf.c (divide): Fix typo in comment.
41257
41258 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41259
41260         * gnulib-tool (func_filter_filelist): Fix comment.
41261
41262 2009-03-20  Bruno Haible  <bruno@clisp.org>
41263
41264         Make sockets.h self-contained.
41265         * lib/sockets.c: Include sockets.h first.
41266         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
41267
41268 2009-03-19  Eric Blake  <ebb9@byu.net>
41269
41270         doc: mention more functions added in cygwin 1.7.0
41271         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
41272         addition.
41273         * doc/posix-functions/log2f.texi: Likewise.
41274
41275 2009-03-19  Jim Meyering  <meyering@redhat.com>
41276
41277         fsusage: avoid syntax error due to statement-before-declaration
41278         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
41279         after all declarations.  Reported by Matthew Woehlke in
41280         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
41281
41282 2009-03-18  Eric Blake  <ebb9@byu.net>
41283
41284         build-aux/compile: sync from automake
41285         * build-aux/compile: New file, from automake.
41286         * config/srclist.txt: Mention build-aux/compile.
41287
41288 2009-03-17  Bruno Haible  <bruno@clisp.org>
41289
41290         * lib/git-merge-changelog.c: Fix typo in comment.
41291         Reported by Reuben Thomas <rrt@sc3d.org>.
41292
41293 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
41294
41295         * m4/regex.m4: update and improve help for
41296         --without-included-regex.
41297
41298 2009-03-17  Simon Josefsson  <simon@josefsson.org>
41299
41300         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
41301         failure on missing include files.
41302
41303 2009-03-17  Eric Blake  <ebb9@byu.net>
41304
41305         doc: mention more functions added in cygwin 1.7.0
41306         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
41307         addition.
41308         * doc/posix-functions/fwscanf.texi: Likewise.
41309         * doc/posix-functions/swprintf.texi: Likewise.
41310         * doc/posix-functions/swscanf.texi: Likewise.
41311         * doc/posix-functions/vfwprintf.texi: Likewise.
41312         * doc/posix-functions/vfwscanf.texi: Likewise.
41313         * doc/posix-functions/vswprintf.texi: Likewise.
41314         * doc/posix-functions/vswscanf.texi: Likewise.
41315         * doc/posix-functions/vwprintf.texi: Likewise.
41316         * doc/posix-functions/vwscanf.texi: Likewise.
41317         * doc/posix-functions/wcscasecmp.texi: Likewise.
41318         * doc/posix-functions/wcsdup.texi: Likewise.
41319         * doc/posix-functions/wcsftime.texi: Likewise.
41320         * doc/posix-functions/wcsncasecmp.texi: Likewise.
41321         * doc/posix-functions/wprintf.texi: Likewise.
41322         * doc/posix-functions/wscanf.texi: Likewise.
41323         * doc/glibc-functions/gethostbyname2.texi: Likewise.
41324
41325 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41326
41327         maint.mk: really add $(AM_MAKEFLAGS)
41328         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
41329         was inadvertently omitted in the last commit.
41330         Spotted by Bruno Haible.
41331
41332         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
41333         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
41334         $(AM_MAKEFLAGS)' rather than plain `make'.
41335
41336         gnulib-tool: execute $MAKE not make
41337         * gnulib-tool: Default $MAKE to 'make'.
41338         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
41339         than make.  Initialize $MAKE in the do-autobuild script.
41340
41341         gnulib-tool: use $MAKE not make in generated files
41342         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
41343         make, in generated files.  Initialize $MAKE in the do-autobuild
41344         script.
41345
41346         * top/GNUmakefile (_have-git-version-gen): Fix typo.
41347
41348         GNUmakefile: disable parallelism only for multiple, recursive targets
41349         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
41350         additions in the Makefile.
41351         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
41352         by Automake.
41353         (.NOTPARALLEL): Only disable parallel builds if multiple targets
41354         are listed on the command line and at least one of them is
41355         listed in $(ALL_RECURSIVE_TARGETS).
41356
41357 2009-03-14  Bruno Haible  <bruno@clisp.org>
41358
41359         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
41360         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
41361         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
41362         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
41363         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
41364         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
41365         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
41366         unistr/u8-uctomb.
41367         * modules/unistr/u8-strchr (Depends-on): Likewise.
41368         * modules/unistr/u8-strrchr (Depends-on): Likewise.
41369         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
41370         unistr/u16-uctomb.
41371         * modules/unistr/u16-strchr (Depends-on): Likewise.
41372         * modules/unistr/u16-strrchr (Depends-on): Likewise.
41373
41374 2009-03-12  Bruno Haible  <bruno@clisp.org>
41375
41376         Work around select() bug on Interix 3.5.
41377         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
41378         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
41379         * m4/select.m4: New file.
41380         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
41381         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
41382         * modules/select (Files): Add m4/select.m4.
41383         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
41384         * modules/nanosleep (Depends-on): Add select.
41385         * modules/poll (Depends-on): Likewise.
41386         * doc/posix-functions/select.texi: Mention the Interix bug.
41387         Reported by Markus Duft <mduft@gentoo.org>.
41388
41389         * lib/select.c: Renamed from lib/winsock-select.c.
41390         * modules/select (Files): Add lib/select.c, remove
41391         lib/winsock-select.c.
41392         (configure.ac): Update.
41393
41394 2009-03-12  Jim Meyering  <meyering@redhat.com>
41395
41396         avoid gcc warnings about unused macro definitions
41397         * lib/readtokens.c (STREQ): Remove unused definition.
41398         * lib/xmalloc.c (SIZE_MAX): Likewise.
41399         * lib/openat-die.c (N_): Likewise.
41400         * lib/mountlist.c (SIZE_MAX): Remove definition.
41401         Instead, include <stdint.h>.
41402         * lib/readutmp.c: Likewise.
41403         * modules/readutmp (Depends-on): Add stdint.
41404         * modules/mountlist (Depends-on): Add stdint.
41405         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
41406
41407 2009-03-10  Bruno Haible  <bruno@clisp.org>
41408
41409         Tests for module 'mbmemcasecoll'.
41410         * modules/mbmemcasecoll-tests: New file.
41411         * tests/test-mbmemcasecoll1.sh: New file.
41412         * tests/test-mbmemcasecoll2.sh: New file.
41413         * tests/test-mbmemcasecoll3.sh: New file.
41414         * tests/test-mbmemcasecoll.c: New file.
41415
41416         New module 'mbmemcasecoll'.
41417         * lib/mbmemcasecoll.h: New file.
41418         * lib/mbmemcasecoll.c: New file.
41419         * modules/mbmemcasecoll: New file.
41420
41421         * tests/test-mbmemcasecmp.h: New file, extracted from
41422         tests/test-mbmemcasecmp.c.
41423         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
41424         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
41425         (main): Update.
41426         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
41427
41428 2009-03-09  Bruno Haible  <bruno@clisp.org>
41429
41430         Tests for module 'mbmemcasecmp'.
41431         * modules/mbmemcasecmp-tests: New file.
41432         * tests/test-mbmemcasecmp1.sh: New file.
41433         * tests/test-mbmemcasecmp2.sh: New file.
41434         * tests/test-mbmemcasecmp3.sh: New file.
41435         * tests/test-mbmemcasecmp.c: New file.
41436
41437         New module 'mbmemcasecmp'.
41438         * lib/mbmemcasecmp.h: New file.
41439         * lib/mbmemcasecmp.c: New file.
41440         * modules/mbmemcasecmp: New file.
41441
41442 2009-03-09  Bruno Haible  <bruno@clisp.org>
41443
41444         Tests for module 'unicase/ulc-casecoll'.
41445         * modules/unicase/ulc-casecoll-tests: New file.
41446         * tests/unicase/test-ulc-casecoll1.sh: New file.
41447         * tests/unicase/test-ulc-casecoll2.sh: New file.
41448         * tests/unicase/test-ulc-casecoll.c: New file.
41449
41450         New module 'unicase/ulc-casecoll'.
41451         * lib/unicase.h (ulc_casecoll): New declaration.
41452         * lib/unicase/ulc-casecoll.c: New file.
41453         * modules/unicase/ulc-casecoll: New file.
41454
41455         New module 'unicase/ulc-casexfrm'.
41456         * lib/unicase.h (ulc_casexfrm): New declaration.
41457         * lib/unicase/ulc-casexfrm.c: New file.
41458         * modules/unicase/ulc-casexfrm: New file.
41459
41460 2009-03-09  Bruno Haible  <bruno@clisp.org>
41461
41462         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
41463         invocations.
41464
41465         * m4/mbscasecmp.m4: Remove file.
41466         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
41467         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
41468
41469         * m4/mbscasestr.m4: Remove file.
41470         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
41471         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
41472
41473         * m4/mbschr.m4: Remove file.
41474         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
41475         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
41476
41477         * m4/mbscspn.m4: Remove file.
41478         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
41479         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
41480
41481         * m4/mbslen.m4: Remove file.
41482         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
41483         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
41484
41485         * m4/mbsncasecmp.m4: Remove file.
41486         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
41487         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
41488
41489         * m4/mbsnlen.m4: Remove file.
41490         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
41491         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
41492
41493         * m4/mbspbrk.m4: Remove file.
41494         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
41495         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
41496
41497         * m4/mbspcasecmp.m4: Remove file.
41498         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
41499         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
41500
41501         * m4/mbsrchr.m4: Remove file.
41502         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
41503         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
41504
41505         * m4/mbssep.m4: Remove file.
41506         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
41507         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
41508
41509         * m4/mbsspn.m4: Remove file.
41510         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
41511         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
41512
41513         * m4/mbsstr.m4: Remove file.
41514         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
41515         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
41516
41517         * m4/mbstok_r.m4: Remove file.
41518         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
41519         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
41520
41521         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
41522
41523         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
41524         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
41525
41526         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
41527
41528 2009-03-08  Bruno Haible  <bruno@clisp.org>
41529
41530         Tests for module 'unicase/ulc-casecmp'.
41531         * modules/unicase/ulc-casecmp-tests: New file.
41532         * tests/unicase/test-ulc-casecmp1.sh: New file.
41533         * tests/unicase/test-ulc-casecmp2.sh: New file.
41534         * tests/unicase/test-ulc-casecmp.c: New file.
41535
41536         New module 'unicase/ulc-casecmp'.
41537         * lib/unicase.h (ulc_casecmp): New declaration.
41538         * lib/unicase/ulc-casecmp.c: New file.
41539         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
41540         'const SRC_UNIT *'.
41541         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
41542         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
41543         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
41544         * modules/unicase/ulc-casecmp: New file.
41545
41546         Tests for module 'unicase/u32-is-cased'.
41547         * modules/unicase/u32-is-cased-tests: New file.
41548         * tests/unicase/test-u32-is-cased.c: New file.
41549
41550         Tests for module 'unicase/u16-is-cased'.
41551         * modules/unicase/u16-is-cased-tests: New file.
41552         * tests/unicase/test-u16-is-cased.c: New file.
41553
41554         Tests for module 'unicase/u8-is-cased'.
41555         * modules/unicase/u8-is-cased-tests: New file.
41556         * tests/unicase/test-u8-is-cased.c: New file.
41557         * tests/unicase/test-is-cased.h: New file.
41558
41559         New module 'unicase/u32-is-cased'.
41560         * lib/unicase/u32-is-cased.c: New file.
41561         * modules/unicase/u32-is-cased: New file.
41562
41563         New module 'unicase/u16-is-cased'.
41564         * lib/unicase/u16-is-cased.c: New file.
41565         * modules/unicase/u16-is-cased: New file.
41566
41567         New module 'unicase/u8-is-cased'.
41568         * lib/unicase/u8-is-cased.c: New file.
41569         * lib/unicase/u-is-cased.h: New file.
41570         * modules/unicase/u8-is-cased: New file.
41571
41572         Tests for module 'unicase/u32-is-casefolded'.
41573         * modules/unicase/u32-is-casefolded-tests: New file.
41574         * tests/unicase/test-u32-is-casefolded.c: New file.
41575
41576         Tests for module 'unicase/u16-is-casefolded'.
41577         * modules/unicase/u16-is-casefolded-tests: New file.
41578         * tests/unicase/test-u16-is-casefolded.c: New file.
41579
41580         Tests for module 'unicase/u8-is-casefolded'.
41581         * modules/unicase/u8-is-casefolded-tests: New file.
41582         * tests/unicase/test-u8-is-casefolded.c: New file.
41583         * tests/unicase/test-is-casefolded.h: New file.
41584
41585         New module 'unicase/u32-is-casefolded'.
41586         * lib/unicase/u32-is-casefolded.c: New file.
41587         * modules/unicase/u32-is-casefolded: New file.
41588
41589         New module 'unicase/u16-is-casefolded'.
41590         * lib/unicase/u16-is-casefolded.c: New file.
41591         * modules/unicase/u16-is-casefolded: New file.
41592
41593         New module 'unicase/u8-is-casefolded'.
41594         * lib/unicase/u8-is-casefolded.c: New file.
41595         * modules/unicase/u8-is-casefolded: New file.
41596
41597         Tests for module 'unicase/u32-is-titlecase'.
41598         * modules/unicase/u32-is-titlecase-tests: New file.
41599         * tests/unicase/test-u32-is-titlecase.c: New file.
41600
41601         Tests for module 'unicase/u16-is-titlecase'.
41602         * modules/unicase/u16-is-titlecase-tests: New file.
41603         * tests/unicase/test-u16-is-titlecase.c: New file.
41604
41605         Tests for module 'unicase/u8-is-titlecase'.
41606         * modules/unicase/u8-is-titlecase-tests: New file.
41607         * tests/unicase/test-u8-is-titlecase.c: New file.
41608         * tests/unicase/test-is-titlecase.h: New file.
41609
41610         New module 'unicase/u32-is-titlecase'.
41611         * lib/unicase/u32-is-titlecase.c: New file.
41612         * modules/unicase/u32-is-titlecase: New file.
41613
41614         New module 'unicase/u16-is-titlecase'.
41615         * lib/unicase/u16-is-titlecase.c: New file.
41616         * modules/unicase/u16-is-titlecase: New file.
41617
41618         New module 'unicase/u8-is-titlecase'.
41619         * lib/unicase/u8-is-titlecase.c: New file.
41620         * modules/unicase/u8-is-titlecase: New file.
41621
41622         Tests for module 'unicase/u32-is-lowercase'.
41623         * modules/unicase/u32-is-lowercase-tests: New file.
41624         * tests/unicase/test-u32-is-lowercase.c: New file.
41625
41626         Tests for module 'unicase/u16-is-lowercase'.
41627         * modules/unicase/u16-is-lowercase-tests: New file.
41628         * tests/unicase/test-u16-is-lowercase.c: New file.
41629
41630         Tests for module 'unicase/u8-is-lowercase'.
41631         * modules/unicase/u8-is-lowercase-tests: New file.
41632         * tests/unicase/test-u8-is-lowercase.c: New file.
41633         * tests/unicase/test-is-lowercase.h: New file.
41634
41635         New module 'unicase/u32-is-lowercase'.
41636         * lib/unicase/u32-is-lowercase.c: New file.
41637         * modules/unicase/u32-is-lowercase: New file.
41638
41639         New module 'unicase/u16-is-lowercase'.
41640         * lib/unicase/u16-is-lowercase.c: New file.
41641         * modules/unicase/u16-is-lowercase: New file.
41642
41643         New module 'unicase/u8-is-lowercase'.
41644         * lib/unicase/u8-is-lowercase.c: New file.
41645         * modules/unicase/u8-is-lowercase: New file.
41646
41647         Tests for module 'unicase/u32-is-uppercase'.
41648         * modules/unicase/u32-is-uppercase-tests: New file.
41649         * tests/unicase/test-u32-is-uppercase.c: New file.
41650
41651         Tests for module 'unicase/u16-is-uppercase'.
41652         * modules/unicase/u16-is-uppercase-tests: New file.
41653         * tests/unicase/test-u16-is-uppercase.c: New file.
41654
41655         Tests for module 'unicase/u8-is-uppercase'.
41656         * modules/unicase/u8-is-uppercase-tests: New file.
41657         * tests/unicase/test-u8-is-uppercase.c: New file.
41658         * tests/unicase/test-is-uppercase.h: New file.
41659
41660         New module 'unicase/u32-is-uppercase'.
41661         * lib/unicase/u32-is-uppercase.c: New file.
41662         * modules/unicase/u32-is-uppercase: New file.
41663
41664         New module 'unicase/u16-is-uppercase'.
41665         * lib/unicase/u16-is-uppercase.c: New file.
41666         * modules/unicase/u16-is-uppercase: New file.
41667
41668         New module 'unicase/u8-is-uppercase'.
41669         * lib/unicase/u8-is-uppercase.c: New file.
41670         * modules/unicase/u8-is-uppercase: New file.
41671
41672         New module 'unicase/u32-is-invariant'.
41673         * lib/unicase/u32-is-invariant.c: New file.
41674         * modules/unicase/u32-is-invariant: New file.
41675
41676         New module 'unicase/u16-is-invariant'.
41677         * lib/unicase/u16-is-invariant.c: New file.
41678         * modules/unicase/u16-is-invariant: New file.
41679
41680         New module 'unicase/u8-is-invariant'.
41681         * lib/unicase/u8-is-invariant.c: New file.
41682         * lib/unicase/invariant.h: New file.
41683         * lib/unicase/u-is-invariant.h: New file.
41684         * modules/unicase/u8-is-invariant: New file.
41685
41686         Tests for module 'unicase/u32-casecoll'.
41687         * modules/unicase/u32-casecoll-tests: New file.
41688         * tests/unicase/test-u32-casecoll.c: New file.
41689
41690         Tests for module 'unicase/u16-casecoll'.
41691         * modules/unicase/u16-casecoll-tests: New file.
41692         * tests/unicase/test-u16-casecoll.c: New file.
41693
41694         Tests for module 'unicase/u8-casecoll'.
41695         * modules/unicase/u8-casecoll-tests: New file.
41696         * tests/unicase/test-u8-casecoll.c: New file.
41697
41698         New module 'unicase/u32-casecoll'.
41699         * lib/unicase/u32-casecoll.c: New file.
41700         * modules/unicase/u32-casecoll: New file.
41701
41702         New module 'unicase/u16-casecoll'.
41703         * lib/unicase/u16-casecoll.c: New file.
41704         * modules/unicase/u16-casecoll: New file.
41705
41706         New module 'unicase/u8-casecoll'.
41707         * lib/unicase/u8-casecoll.c: New file.
41708         * lib/unicase/u-casecoll.h: New file.
41709         * modules/unicase/u8-casecoll: New file.
41710
41711         New module 'unicase/u32-casexfrm'.
41712         * lib/unicase/u32-casexfrm.c: New file.
41713         * modules/unicase/u32-casexfrm: New file.
41714
41715         New module 'unicase/u16-casexfrm'.
41716         * lib/unicase/u16-casexfrm.c: New file.
41717         * modules/unicase/u16-casexfrm: New file.
41718
41719         New module 'unicase/u8-casexfrm'.
41720         * lib/unicase/u8-casexfrm.c: New file.
41721         * lib/unicase/u-casexfrm.h: New file.
41722         * modules/unicase/u8-casexfrm: New file.
41723
41724         Tests for module 'unicase/u32-casecmp'.
41725         * modules/unicase/u32-casecmp-tests: New file.
41726         * tests/unicase/test-u32-casecmp.c: New file.
41727
41728         Tests for module 'unicase/u16-casecmp'.
41729         * modules/unicase/u16-casecmp-tests: New file.
41730         * tests/unicase/test-u16-casecmp.c: New file.
41731
41732         Tests for module 'unicase/u8-casecmp'.
41733         * modules/unicase/u8-casecmp-tests: New file.
41734         * tests/unicase/test-u8-casecmp.c: New file.
41735         * tests/unicase/test-casecmp.h: New file.
41736
41737         New module 'unicase/u32-casecmp'.
41738         * lib/unicase/u32-casecmp.c: New file.
41739         * modules/unicase/u32-casecmp: New file.
41740
41741         New module 'unicase/u16-casecmp'.
41742         * lib/unicase/u16-casecmp.c: New file.
41743         * modules/unicase/u16-casecmp: New file.
41744
41745         New module 'unicase/u8-casecmp'.
41746         * lib/unicase/u8-casecmp.c: New file.
41747         * lib/unicase/u-casecmp.h: New file.
41748         * modules/unicase/u8-casecmp: New file.
41749
41750         Tests for module 'unicase/u32-casefold'.
41751         * modules/unicase/u32-casefold-tests: New file.
41752         * tests/unicase/test-u32-casefold.c: New file.
41753
41754         Tests for module 'unicase/u16-casefold'.
41755         * modules/unicase/u16-casefold-tests: New file.
41756         * tests/unicase/test-u16-casefold.c: New file.
41757
41758         Tests for module 'unicase/u8-casefold'.
41759         * modules/unicase/u8-casefold-tests: New file.
41760         * tests/unicase/test-u8-casefold.c: New file.
41761
41762         New module 'unicase/u32-casefold'.
41763         * lib/unicase/u32-casefold.c: New file.
41764         * modules/unicase/u32-casefold: New file.
41765
41766         New module 'unicase/u16-casefold'.
41767         * lib/unicase/u16-casefold.c: New file.
41768         * modules/unicase/u16-casefold: New file.
41769
41770         New module 'unicase/u8-casefold'.
41771         * lib/unicase/u8-casefold.c: New file.
41772         * lib/unicase/u-casefold.h: New file.
41773         * modules/unicase/u8-casefold: New file.
41774
41775         New module 'unicase/tocasefold'.
41776         * lib/unicase/casefold.h: New file.
41777         * lib/unicase/tocasefold.c: New file.
41778         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
41779         * modules/unicase/tocasefold: New file.
41780
41781         Tests for module 'unicase/u32-totitle'.
41782         * modules/unicase/u32-totitle-tests: New file.
41783         * tests/unicase/test-u32-totitle.c: New file.
41784
41785         Tests for module 'unicase/u16-totitle'.
41786         * modules/unicase/u16-totitle-tests: New file.
41787         * tests/unicase/test-u16-totitle.c: New file.
41788
41789         Tests for module 'unicase/u8-totitle'.
41790         * modules/unicase/u8-totitle-tests: New file.
41791         * tests/unicase/test-u8-totitle.c: New file.
41792
41793         New module 'unicase/u32-totitle'.
41794         * lib/unicase/u32-totitle.c: New file.
41795         * modules/unicase/u32-totitle: New file.
41796
41797         New module 'unicase/u16-totitle'.
41798         * lib/unicase/u16-totitle.c: New file.
41799         * modules/unicase/u16-totitle: New file.
41800
41801         New module 'unicase/u8-totitle'.
41802         * lib/unicase/u8-totitle.c: New file.
41803         * lib/unicase/u-totitle.h: New file.
41804         * modules/unicase/u8-totitle: New file.
41805
41806         Tests for module 'unicase/u32-tolower'.
41807         * modules/unicase/u32-tolower-tests: New file.
41808         * tests/unicase/test-u32-tolower.c: New file.
41809
41810         Tests for module 'unicase/u16-tolower'.
41811         * modules/unicase/u16-tolower-tests: New file.
41812         * tests/unicase/test-u16-tolower.c: New file.
41813
41814         Tests for module 'unicase/u8-tolower'.
41815         * modules/unicase/u8-tolower-tests: New file.
41816         * tests/unicase/test-u8-tolower.c: New file.
41817
41818         New module 'unicase/u32-tolower'.
41819         * lib/unicase/u32-tolower.c: New file.
41820         * modules/unicase/u32-tolower: New file.
41821
41822         New module 'unicase/u16-tolower'.
41823         * lib/unicase/u16-tolower.c: New file.
41824         * modules/unicase/u16-tolower: New file.
41825
41826         New module 'unicase/u8-tolower'.
41827         * lib/unicase/u8-tolower.c: New file.
41828         * modules/unicase/u8-tolower: New file.
41829
41830         Tests for module 'unicase/u32-toupper'.
41831         * modules/unicase/u32-toupper-tests: New file.
41832         * tests/unicase/test-u32-toupper.c: New file.
41833
41834         Tests for module 'unicase/u16-toupper'.
41835         * modules/unicase/u16-toupper-tests: New file.
41836         * tests/unicase/test-u16-toupper.c: New file.
41837
41838         Tests for module 'unicase/u8-toupper'.
41839         * modules/unicase/u8-toupper-tests: New file.
41840         * tests/unicase/test-u8-toupper.c: New file.
41841
41842         New module 'unicase/u32-toupper'.
41843         * lib/unicase/u32-toupper.c: New file.
41844         * modules/unicase/u32-toupper: New file.
41845
41846         New module 'unicase/u16-toupper'.
41847         * lib/unicase/u16-toupper.c: New file.
41848         * modules/unicase/u16-toupper: New file.
41849
41850         New module 'unicase/u8-toupper'.
41851         * lib/unicase/u8-toupper.c: New file.
41852         * modules/unicase/u8-toupper: New file.
41853
41854         New module 'unicase/u32-casemap'.
41855         * lib/unicase/u32-casemap.c: New file.
41856         * modules/unicase/u32-casemap: New file.
41857
41858         New module 'unicase/u16-casemap'.
41859         * lib/unicase/u16-casemap.c: New file.
41860         * modules/unicase/u16-casemap: New file.
41861
41862         New module 'unicase/u8-casemap'.
41863         * lib/unicase/unicasemap.h: New file.
41864         * lib/unicase/u8-casemap.c: New file.
41865         * lib/unicase/u-casemap.h: New file.
41866         * modules/unicase/u8-casemap: New file.
41867
41868         New module 'unicase/special-casing'.
41869         * lib/unicase/special-casing.h: New file.
41870         * lib/unicase/special-casing.c: New file.
41871         * lib/unicase/special-casing-table.gperf: New file, generated by
41872         gen-uni-tables.c.
41873         * modules/unicase/special-casing: New file.
41874
41875         Tests for module 'unicase/locale-language'.
41876         * modules/unicase/locale-language-tests: New file.
41877         * tests/unicase/test-locale-language.sh: New file.
41878         * tests/unicase/test-locale-language.c: New file.
41879
41880         New module 'unicase/locale-language'.
41881         * lib/unicase/locale-language.c: New file.
41882         * lib/unicase/locale-languages.gperf: New file.
41883         * modules/unicase/locale-language: New file.
41884
41885         Generate more tables for case conversion and case folding.
41886         * lib/gen-uni-tables.c (SCC_*): New enum items.
41887         (struct special_casing_rule): New type.
41888         (casing_rules, num_casing_rules, allocated_casing_rules): New
41889         variables.
41890         (add_casing_rule, fill_casing_rules): New functions.
41891         (struct casefold_rule): New type.
41892         (casefolding_rules, num_casefolding_rules,
41893         allocated_casefolding_rules): New variables.
41894         (fill_casefolding_rules): New function.
41895         (unicode_casefold): New variable.
41896         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
41897         sort_casing_rules, output_casing_rules): New functions.
41898         (main): Accept to more arguments: SpecialCasing.txt and
41899         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
41900         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
41901         Output mapping for casefolding.
41902
41903         * lib/unicase.h: Include stdbool.h, uninorm.h.
41904         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
41905         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
41906         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
41907         arguments.
41908         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
41909         resultp arguments.
41910         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
41911         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
41912         resultp arguments.
41913         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
41914         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
41915         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
41916         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
41917         declarations.
41918         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
41919
41920 2009-03-08  Bruno Haible  <bruno@clisp.org>
41921
41922         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41923         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
41924         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
41925         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41926
41927 2009-03-07  Bruno Haible  <bruno@clisp.org>
41928
41929         Adjust u*_normcmp, u*_normcoll API.
41930         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41931         u16_normcoll, u32_normcoll): Change failure conventions.
41932         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
41933         errno and return -1.
41934         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41935
41936 2009-03-07  Bruno Haible  <bruno@clisp.org>
41937
41938         Tests for module 'uninorm/u32-normcoll'.
41939         * modules/uninorm/u32-normcoll-tests: New file.
41940         * tests/uninorm/test-u32-normcoll.c: New file.
41941
41942         Tests for module 'uninorm/u16-normcoll'.
41943         * modules/uninorm/u16-normcoll-tests: New file.
41944         * tests/uninorm/test-u16-normcoll.c: New file.
41945
41946         Tests for module 'uninorm/u8-normcoll'.
41947         * modules/uninorm/u8-normcoll-tests: New file.
41948         * tests/uninorm/test-u8-normcoll.c: New file.
41949
41950 2009-03-07  Bruno Haible  <bruno@clisp.org>
41951
41952         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
41953         tests/uninorm/test-u32-normcmp.c.
41954         * tests/uninorm/test-u32-normcmp.c: Include it.
41955         (test_nonascii): New function, extracted from main. Add some more
41956         tests.
41957         (main): Invoke test_ascii and test_nonascii.
41958         * modules/uninorm/u32-normcmp-tests (Files): Add
41959         tests/uninorm/test-u32-normcmp.h.
41960         (Depends-on): Remove uninorm/u32-normcmp.
41961
41962         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
41963         tests/uninorm/test-u16-normcmp.c.
41964         * tests/uninorm/test-u16-normcmp.c: Include it.
41965         (test_nonascii): New function, extracted from main. Add some more
41966         tests.
41967         (main): Invoke test_ascii and test_nonascii.
41968         * modules/uninorm/u16-normcmp-tests (Files): Add
41969         tests/uninorm/test-u16-normcmp.h.
41970         (Depends-on): Remove uninorm/u16-normcmp.
41971
41972         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
41973         tests/uninorm/test-u8-normcmp.c.
41974         * tests/uninorm/test-u8-normcmp.c: Include it.
41975         (test_nonascii): New function, extracted from main. Add some more
41976         tests.
41977         (main): Invoke test_ascii and test_nonascii.
41978         * modules/uninorm/u8-normcmp-tests (Files): Add
41979         tests/uninorm/test-u8-normcmp.h.
41980         (Depends-on): Remove uninorm/u8-normcmp.
41981
41982 2009-03-07  Bruno Haible  <bruno@clisp.org>
41983
41984         New module 'uninorm/u32-normcoll'.
41985         * lib/uninorm/u32-normcoll.c: New file.
41986         * modules/uninorm/u32-normcoll: New file.
41987
41988         New module 'uninorm/u16-normcoll'.
41989         * lib/uninorm/u16-normcoll.c: New file.
41990         * modules/uninorm/u16-normcoll: New file.
41991
41992         New module 'uninorm/u8-normcoll'.
41993         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
41994         declarations.
41995         * lib/uninorm/u8-normcoll.c: New file.
41996         * lib/uninorm/u-normcoll.h: New file.
41997         * modules/uninorm/u8-normcoll: New file.
41998
41999         New module 'uninorm/u32-normxfrm'.
42000         * lib/uninorm/u32-normxfrm.c: New file.
42001         * modules/uninorm/u32-normxfrm: New file.
42002
42003         New module 'uninorm/u16-normxfrm'.
42004         * lib/uninorm/u16-normxfrm.c: New file.
42005         * modules/uninorm/u16-normxfrm: New file.
42006
42007         New module 'uninorm/u8-normxfrm'.
42008         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
42009         declarations.
42010         * lib/uninorm/u8-normxfrm.c: New file.
42011         * lib/uninorm/u-normxfrm.h: New file.
42012         * modules/uninorm/u8-normxfrm: New file.
42013
42014 2009-03-07  Bruno Haible  <bruno@clisp.org>
42015
42016         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
42017         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
42018         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
42019
42020 2009-03-07  Bruno Haible  <bruno@clisp.org>
42021
42022         New module 'memxfrm'.
42023         * lib/memxfrm.h: New file.
42024         * lib/memxfrm.c: New file.
42025         * modules/memxfrm: New file.
42026
42027 2009-03-07  Bruno Haible  <bruno@clisp.org>
42028
42029         New module 'memcmp2'.
42030         * lib/memcmp2.h: New file.
42031         * lib/memcmp2.c: New file.
42032         * modules/memcmp2: New file.
42033
42034 2009-03-07  Bruno Haible  <bruno@clisp.org>
42035
42036         Tests for module 'uninorm/decomposing-form'.
42037         * modules/uninorm/decomposing-form-tests: New file.
42038         * tests/uninorm/test-decomposing-form.c: New file.
42039
42040         New module 'uninorm/decomposing-form'.
42041         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
42042         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
42043         Add 'decomposing_variant' field.
42044         * lib/uninorm/decomposing-form.c: New file.
42045         * lib/uninorm/nfc.c (uninorm_nfc): Update.
42046         * lib/uninorm/nfd.c (uninorm_nfd): Update.
42047         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
42048         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
42049         * modules/uninorm/decomposing-form: New file.
42050         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
42051         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
42052
42053 2009-03-07  Bruno Haible  <bruno@clisp.org>
42054
42055         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
42056         strings.
42057
42058 2009-03-06  Bruno Haible  <bruno@clisp.org>
42059
42060         Tests for module 'uninorm/u32-normcmp'.
42061         * tests/uninorm/test-u32-normcmp.c: New file.
42062         * modules/uninorm/u32-normcmp-tests: New file.
42063
42064         Tests for module 'uninorm/u16-normcmp'.
42065         * tests/uninorm/test-u16-normcmp.c: New file.
42066         * modules/uninorm/u16-normcmp-tests: New file.
42067
42068         Tests for module 'uninorm/u8-normcmp'.
42069         * tests/uninorm/test-u8-normcmp.c: New file.
42070         * modules/uninorm/u8-normcmp-tests: New file.
42071
42072         New module 'uninorm/u32-normcmp'.
42073         * lib/uninorm/u32-normcmp.c: New file.
42074         * modules/uninorm/u32-normcmp: New file.
42075
42076         New module 'uninorm/u16-normcmp'.
42077         * lib/uninorm/u16-normcmp.c: New file.
42078         * modules/uninorm/u16-normcmp: New file.
42079
42080         New module 'uninorm/u8-normcmp'.
42081         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
42082         declarations.
42083         * lib/uninorm/u8-normcmp.c: New file.
42084         * lib/uninorm/u-normcmp.h: New file.
42085         * modules/uninorm/u8-normcmp: New file.
42086
42087 2009-03-06  Bruno Haible  <bruno@clisp.org>
42088
42089         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
42090         Reported by Eric Blake.
42091
42092 2009-03-06  Eric Blake  <ebb9@byu.net>
42093             Bruno Haible  <bruno@clisp.org>
42094
42095         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
42096         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
42097         condition.
42098         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
42099         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
42100         condition.
42101         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
42102
42103 2009-03-06  Eric Blake  <ebb9@byu.net>
42104
42105         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
42106         to avoid compiler warnings.
42107         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
42108
42109 2009-03-05  Bruno Haible  <bruno@clisp.org>
42110
42111         * tests/test-ftell.c (main): Disable test beyond end of file on
42112         FreeMiNT.
42113         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
42114
42115 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
42116
42117         * lib/filevercmp.c: Move hidden files up in ordering.
42118         * tests/test-filevercmp.c: Add tests for hidden files.
42119
42120 2009-03-04  Bruno Haible  <bruno@clisp.org>
42121
42122         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
42123         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
42124         AM_CFLAGS.
42125         Reported by Simon Josefsson.
42126
42127 2009-03-03  Bruno Haible  <bruno@clisp.org>
42128
42129         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
42130         Reported by Simon Josefsson.
42131
42132         * doc/ld-version-script.texi: Update node reference.
42133
42134 2009-03-03  Bruno Haible  <bruno@clisp.org>
42135
42136         * modules/visibility (License): Change to 'unlimited'.
42137         Suggested by Simon Josefsson.
42138
42139 2009-03-03  Jim Meyering  <meyering@redhat.com>
42140
42141         unlinkdir: cannot_unlink_dir may modify process state
42142         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
42143         it's neither thread-safe nor appropriate for use in a library.
42144
42145 2009-03-03  Eric Blake  <ebb9@byu.net>
42146
42147         test-closein: silence test under Darwin
42148         * tests/test-closein.sh: Ignore stderr from cat, since we don't
42149         care if it dies from EPIPE or EBADF.
42150
42151 2009-03-03  Bruno Haible  <bruno@clisp.org>
42152
42153         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
42154         earlier.
42155         * doc/visibility.texi: Fix @node and @section.
42156
42157 2009-03-03  Simon Josefsson  <simon@josefsson.org>
42158
42159         * doc/gnulib.texi: Link to sections for ld version script and
42160         visibility.
42161         * doc/visibility.texi: Add @node and @section.
42162         * modules/ld-version-script: New module.
42163         * m4/ld-version-script.m4: New file.
42164         * doc/ld-version-script.texi: New file.
42165
42166 2009-03-02  David Lutterkort  <lutter@redhat.com>
42167
42168         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
42169         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42170
42171 2009-03-02  Bruno Haible  <bruno@clisp.org>
42172
42173         * doc/visibility.texi: Mention libtool's -export-symbols option.
42174
42175 2009-03-02  Jim Meyering  <meyering@redhat.com>
42176
42177         announce-gen: new option: --no-print-checksums
42178         * build-aux/announce-gen (usage): Describe it.
42179         (print_checksums): Print a newline here, not in the [*] footnote.
42180         (main): Honor it.
42181
42182 2009-03-01  Bruno Haible  <bruno@clisp.org>
42183
42184         Use socklen_t in the native Windows replacements prototypes.
42185         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
42186         instead of 'int'.
42187         * lib/getsockopt.c (rpl_getsockopt): Likewise.
42188         * lib/setsockopt.c (rpl_setsockopt): Likewise.
42189         * modules/getsockopt (Depends-on): Add socklen.
42190         * modules/setsockopt (Depends-on): Add socklen.
42191
42192 2009-03-01  Bruno Haible  <bruno@clisp.org>
42193
42194         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
42195         least 4.2.
42196
42197 2009-03-01  Eric Blake  <ebb9@byu.net>
42198             Bruno Haible  <bruno@clisp.org>
42199
42200         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
42201         error messages.
42202         * lib/wait-process.c (wait_subprocess): Omit error message about
42203         deadly signal sent to the child of termsigp != NULL.
42204
42205 2009-03-01  Eric Blake  <ebb9@byu.net>
42206
42207         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
42208
42209 2009-03-01  Bruno Haible  <bruno@clisp.org>
42210
42211         Avoid a gcc warning.
42212         * tests/test-sched.c (b): Make global.
42213         Reported by Eric Blake.
42214
42215 2009-01-19  Martin Lambers  <marlam@marlam.de>
42216
42217         Provide POSIX semantics for socket timeout options on W32.
42218         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
42219         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
42220         * modules/setsockopt: Depend on sys_time module for struct timeval.
42221         * modules/getsockopt: Depend on sys_time module for struct timeval.
42222
42223 2009-03-01  Simon Josefsson  <simon@josefsson.org>
42224
42225         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
42226         __USE_GNU, for consistency with netdb.in.h.
42227         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42228
42229 2009-03-01  Bruno Haible  <bruno@clisp.org>
42230
42231         More support for FreeMiNT.
42232         * lib/fseeko.c (rpl_fseeko): Complete last commit.
42233         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42234
42235 2009-03-01  Bruno Haible  <bruno@clisp.org>
42236
42237         More support for FreeMiNT.
42238         * lib/fpurge.c (fpurge): Correct last commit.
42239         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42240
42241 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42242
42243         Fix unportable awk script in vc-list-files.
42244         * build-aux/vc-list-files: In the replacement awk script, use
42245         substr with a second argument of 1, not zero.
42246         Report by Simon Josefsson.
42247
42248 2009-02-28  Bruno Haible  <bruno@clisp.org>
42249
42250         More support for FreeMiNT.
42251         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
42252         to FreeMiNT today.
42253         * lib/fwriting.c (fwriting): Likewise.
42254         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
42255
42256 2009-02-28  Bruno Haible  <bruno@clisp.org>
42257
42258         * tests/test-freadseek.c (main): Disable test beyond end of file on
42259         FreeMiNT.
42260         * tests/test-ftello.c (main): Likewise.
42261         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
42262
42263 2009-02-28  Bruno Haible  <bruno@clisp.org>
42264
42265         Add tentative support for FreeMiNT.
42266         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
42267         * lib/fpurge.c (fpurge): Likewise.
42268         * lib/freadable.c (freadable): Likewise.
42269         * lib/freading.c (freading): Likewise.
42270         * lib/freadptr.c (freadptr): Likewise.
42271         * lib/freadseek.c (freadptrinc): Likewise.
42272         * lib/fseeko.c (rpl_fseeko): Likewise.
42273         * lib/fseterr.c (fseterr): Likewise.
42274         * lib/fwritable.c (fwritable): Likewise.
42275         * lib/fwriting.c (fwriting): Likewise.
42276         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
42277         Hourihane.
42278         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42279
42280 2009-02-28  Bruno Haible  <bruno@clisp.org>
42281
42282         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
42283         SIGCHLD.
42284         Reported by Jim Meyering.
42285
42286 2009-02-28  Bruno Haible  <bruno@clisp.org>
42287
42288         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
42289         Mention the results of these tests on various platforms.
42290         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
42291         order.
42292         * doc/posix-functions/printf.texi: Likewise.
42293         * doc/posix-functions/snprintf.texi: Likewise.
42294         * doc/posix-functions/sprintf.texi: Likewise.
42295         * doc/posix-functions/vfprintf.texi: Likewise.
42296         * doc/posix-functions/vprintf.texi: Likewise.
42297         * doc/posix-functions/vsnprintf.texi: Likewise.
42298         * doc/posix-functions/vsprintf.texi: Likewise.
42299         * doc/glibc-functions/obstack_printf.texi: Likewise.
42300         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
42301
42302 2009-02-28  Bruno Haible  <bruno@clisp.org>
42303
42304         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
42305         Reported by Loïc Minier <lool@dooz.org>.
42306
42307 2009-02-27  Bruno Haible  <bruno@clisp.org>
42308
42309         * gnulib-tool (func_import): Make the sed expression used to create the
42310         sed script for updating the .gitignore file POSIX compliant.
42311         Reported by Eric Blake.
42312
42313 2009-02-27  Bruno Haible  <bruno@clisp.org>
42314
42315         * gnulib-tool (sed): Don't alias as "sed --posix".
42316         Reported by Eric Blake.
42317
42318 2009-02-27  Bruno Haible  <bruno@clisp.org>
42319
42320         Avoid test link errors.
42321         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
42322         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
42323         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
42324         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
42325         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42326
42327 2009-02-27  Bruno Haible  <bruno@clisp.org>
42328
42329         Avoid spurious "(cached)" in configure output.
42330         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
42331         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
42332         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
42333         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
42334         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
42335         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
42336         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
42337         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
42338         Reported by Eric Blake.
42339
42340 2009-02-27  Eric Blake  <ebb9@byu.net>
42341
42342         printf: fix regression in previous patch
42343         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
42344
42345 2009-02-27  Bruno Haible  <bruno@clisp.org>
42346
42347         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
42348         value.
42349         * lib/stdint.in.h: Likewise.
42350         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
42351
42352 2009-02-27  Eric Blake  <ebb9@byu.net>
42353
42354         doc: mention more functions added in cygwin 1.7.0
42355         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
42356         addition.
42357         * doc/posix-functions/open_wmemstream.texi: Likewise.
42358         * doc/posix-functions/wcsnlen.texi: Likewise.
42359         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42360         * doc/posix-functions/wcstod.texi: Likewise.
42361         * doc/posix-functions/wcstof.texi: Likewise.
42362         * doc/posix-functions/wcstoimax.texi: Likewise.
42363         * doc/posix-functions/wcstok.texi: Likewise.
42364         * doc/posix-functions/wcstoumax.texi: Likewise.
42365
42366         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
42367         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
42368         * doc/posix-functions/fprintf.texi: Update.
42369         * doc/posix-functions/printf.texi: Update.
42370         * doc/posix-functions/snprintf.texi: Update.
42371         * doc/posix-functions/sprintf.texi: Update.
42372         * doc/posix-functions/vfprintf.texi: Update.
42373         * doc/posix-functions/vprintf.texi: Update.
42374         * doc/posix-functions/vsnprintf.texi: Update.
42375         * doc/posix-functions/vsprintf.texi: Update.
42376         * doc/glibc-functions/obstack_printf.texi: Update.
42377         * doc/glibc-functions/obstack_vprintf.texi: Update.
42378
42379 2009-02-26  Eric Blake  <ebb9@byu.net>
42380
42381         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
42382         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
42383         compilation bug by using runtime conversion.
42384         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
42385         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
42386         * modules/ceill-tests (Files): Use nan.h.
42387         * modules/floorl-tests (Files): Likewise.
42388         * modules/frexpl-tests (Files): Likewise.
42389         * modules/isnanl-tests (Files): Likewise.
42390         * modules/ldexpl-tests (Files): Likewise.
42391         * modules/roundl-tests (Files): Likewise.
42392         * modules/truncl-tests (Files): Likewise.
42393         * tests/test-ceill.c (main): Use a working NaN.
42394         * tests/test-floorl.c (main): Likewise.
42395         * tests/test-frexpl.c (main): Likewise.
42396         * tests/test-isnan.c (test_long_double): Likewise.
42397         * tests/test-isnanl.h (main): Likewise.
42398         * tests/test-ldexpl.h (main): Likewise.
42399         * tests/test-roundl.h (main): Likewise.
42400         * tests/test-truncl.h (main): Likewise.
42401         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
42402
42403 2009-02-26  Eric Blake  <ebb9@byu.net>
42404             Bruno Haible  <bruno@clisp.org>
42405
42406         Work around a *printf bug with %ls on Solaris.
42407         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
42408         precision is specified, sprintf stops converting the wide string
42409         argument when the number of bytes that have been produced by this
42410         conversion equals or exceeds the precision.
42411         * doc/posix-functions/fprintf.texi: Update.
42412         * doc/posix-functions/printf.texi: Update.
42413         * doc/posix-functions/snprintf.texi: Update.
42414         * doc/posix-functions/sprintf.texi: Update.
42415         * doc/posix-functions/vfprintf.texi: Update.
42416         * doc/posix-functions/vprintf.texi: Update.
42417         * doc/posix-functions/vsnprintf.texi: Update.
42418         * doc/posix-functions/vsprintf.texi: Update.
42419         * doc/glibc-functions/obstack_printf.texi: Update.
42420         * doc/glibc-functions/obstack_vprintf.texi: Update.
42421
42422 2009-02-26  Eric Blake  <ebb9@byu.net>
42423
42424         stdlib: favor compiler check of random.h
42425         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
42426         to avoid an ObjC random.h installed by Swarm.
42427
42428 2009-02-26  Bruno Haible  <bruno@clisp.org>
42429
42430         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
42431         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
42432         Reported by Gary V. Vaughan <gary@gnu.org>.
42433
42434 2009-02-26  Bruno Haible  <bruno@clisp.org>
42435
42436         Fix *printf behaviour regarding the %ls directive.
42437         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
42438         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
42439         NEED_PRINTF_DIRECTIVE_LS.
42440         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
42441         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42442         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42443         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
42444         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
42445         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
42446         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
42447         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42448         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42449         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42450         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42451         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
42452         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42453         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42454         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42455         * doc/posix-functions/fprintf.texi: Update.
42456         * doc/posix-functions/printf.texi: Update.
42457         * doc/posix-functions/snprintf.texi: Update.
42458         * doc/posix-functions/sprintf.texi: Update.
42459         * doc/posix-functions/vfprintf.texi: Update.
42460         * doc/posix-functions/vprintf.texi: Update.
42461         * doc/posix-functions/vsnprintf.texi: Update.
42462         * doc/posix-functions/vsprintf.texi: Update.
42463         * doc/glibc-functions/obstack_printf.texi: Update.
42464         * doc/glibc-functions/obstack_vprintf.texi: Update.
42465         Reported by Eric Blake.
42466
42467 2009-02-25  Bruno Haible  <bruno@clisp.org>
42468
42469         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
42470         with known value.
42471         Reported by Gary V. Vaughan <gary@gnu.org>.
42472
42473 2009-02-25  Bruno Haible  <bruno@clisp.org>
42474
42475         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
42476         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
42477         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
42478         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
42479         Reported by Gary V. Vaughan <gary@gnu.org>.
42480
42481 2009-02-25  Bruno Haible  <bruno@clisp.org>
42482
42483         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
42484         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
42485         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
42486         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
42487         Reported by Gary V. Vaughan <gary@gnu.org>.
42488
42489 2009-02-25  Eric Blake  <ebb9@byu.net>
42490
42491         tests: skip fseek/ftell tests if ungetc is broken
42492         * m4/ungetc.m4: New file.
42493         * modules/fseek-tests: Split test, so ungetc dependency is
42494         separate from rest of test.
42495         * modules/fseeko-tests: Likewise.
42496         * modules/ftell-tests: Likewise.
42497         * modules/ftello-tests: Likewise.
42498         * tests/test-fseek.c (main): Isolate ungetc dependency.
42499         * tests/test-fseeko.c (main): Likewise.
42500         * tests/test-ftell.c (main): Likewise.
42501         * tests/test-ftello.c (main): Likewise.
42502         * tests/test-fseek2.sh: New file.
42503         * tests/test-fseeko2.sh: Likewise.
42504         * tests/test-ftell2.sh: Likewise.
42505         * tests/test-ftello2.sh: Likewise.
42506
42507 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
42508
42509         test-getaddrinfo: fix usage of skip return code 77
42510         * tests/test-gettaddrinfo.c: Return skip code 77 only
42511         for first occurance of skip (4x77 is not 77)
42512
42513 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
42514
42515         strtod: avoid C99 decl-after-statement
42516         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
42517
42518 2009-02-24  Eric Blake  <ebb9@byu.net>
42519
42520         strtod: detect HP-UX 11.31 bug
42521         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
42522         Reported by Gary V. Vaughan.
42523
42524 2009-02-23  Bruno Haible  <bruno@clisp.org>
42525
42526         Fix invalid read past end of memory block.
42527         * lib/vasnprintf.c (DCHAR_SET): Define.
42528         (local_wcslen): Define only when needed.
42529         (local_strnlen, local_wcsnlen): New functions.
42530         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
42531         directives that involve a conversion ourselves.
42532         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
42533         wcsnlen, mbrtowc, wcrtomb.
42534         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
42535         * tests/test-vasprintf-posix.c (test_function): Likewise.
42536         * tests/test-snprintf-posix.h (test_function): Likewise.
42537         * tests/test-sprintf-posix.h (test_function): Likewise.
42538         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42539
42540 2009-02-22  Bruno Haible  <bruno@clisp.org>
42541
42542         Implement new clarified decomposition of Hangul syllables.
42543         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
42544         of type LTV, return only a pairwise decomposition.
42545         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
42546         Likewise.
42547         * tests/uninorm/test-decomposition.c (main): Updated expected result.
42548         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
42549         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
42550
42551 2009-02-22  Bruno Haible  <bruno@clisp.org>
42552
42553         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
42554         zero-length results and shrink excess allocated memory.
42555         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
42556         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
42557         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
42558         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
42559         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
42560         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
42561         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
42562         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
42563         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
42564         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
42565         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
42566         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
42567
42568 2009-02-21  Bruno Haible  <bruno@clisp.org>
42569
42570         * doc/gnulib.texi: Include safe-alloc.texi earlier.
42571         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
42572         spaces after a period. Put a space between a macro name and its
42573         argument list. Trivial rewordings.
42574         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
42575         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
42576         (main): Return 0 explicitly.
42577
42578 2009-02-21  Bruno Haible  <bruno@clisp.org>
42579
42580         Tests for module 'uninorm/filter'.
42581         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
42582         * modules/uninorm/filter-tests: New file.
42583
42584         New module 'uninorm/filter'.
42585         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
42586         uninorm_filter_flush, uninorm_filter_free): New declarations.
42587         * lib/uninorm/uninorm-filter.c: New file.
42588         * modules/uninorm/filter: New file.
42589
42590 2009-02-21  Bruno Haible  <bruno@clisp.org>
42591
42592         Tests for module 'uninorm/nfkc'.
42593         * tests/uninorm/test-nfkc.c: New file.
42594         * tests/uninorm/test-u8-nfkc.c: New file.
42595         * tests/uninorm/test-u16-nfkc.c: New file.
42596         * tests/uninorm/test-u32-nfkc.c: New file.
42597         * tests/uninorm/test-u32-nfkc-big.sh: New file.
42598         * tests/uninorm/test-u32-nfkc-big.c: New file.
42599         * modules/uninorm/nfkc-tests: New file.
42600
42601         New module 'uninorm/nfkc'.
42602         * lib/uninorm/nfkc.c: New file.
42603         * modules/uninorm/nfkc: New file.
42604
42605         Tests for module 'uninorm/nfkd'.
42606         * tests/uninorm/test-nfkd.c: New file.
42607         * tests/uninorm/test-u8-nfkd.c: New file.
42608         * tests/uninorm/test-u16-nfkd.c: New file.
42609         * tests/uninorm/test-u32-nfkd.c: New file.
42610         * tests/uninorm/test-u32-nfkd-big.sh: New file.
42611         * tests/uninorm/test-u32-nfkd-big.c: New file.
42612         * modules/uninorm/nfkd-tests: New file.
42613
42614         New module 'uninorm/nfkd'.
42615         * lib/uninorm/nfkd.c: New file.
42616         * modules/uninorm/nfkd: New file.
42617
42618         Tests for module 'uninorm/nfc'.
42619         * tests/uninorm/test-nfc.c: New file.
42620         * tests/uninorm/test-u8-nfc.c: New file.
42621         * tests/uninorm/test-u16-nfc.c: New file.
42622         * tests/uninorm/test-u32-nfc.c: New file.
42623         * tests/uninorm/test-u32-nfc-big.sh: New file.
42624         * tests/uninorm/test-u32-nfc-big.c: New file.
42625         * modules/uninorm/nfc-tests: New file.
42626
42627         New module 'uninorm/nfc'.
42628         * lib/uninorm/nfc.c: New file.
42629         * modules/uninorm/nfc: New file.
42630
42631         Tests for module 'uninorm/nfd'.
42632         * tests/uninorm/test-nfd.c: New file.
42633         * tests/uninorm/test-u8-nfd.c: New file.
42634         * tests/uninorm/test-u16-nfd.c: New file.
42635         * tests/uninorm/test-u32-nfd.c: New file.
42636         * tests/uninorm/test-u32-nfd-big.sh: New file.
42637         * tests/uninorm/test-u32-nfd-big.c: New file.
42638         * tests/uninorm/test-u32-normalize-big.h: New file.
42639         * tests/uninorm/test-u32-normalize-big.c: New file.
42640         * tests/uninorm/NormalizationTest.txt: New file, created from
42641         Unicode 5.1.0 NormalizationTest.txt.
42642         * modules/uninorm/nfd-tests: New file.
42643
42644         New module 'uninorm/nfd'.
42645         * lib/uninorm/nfd.c: New file.
42646         * modules/uninorm/nfd: New file.
42647
42648         New module 'uninorm/u32-normalize'.
42649         * lib/uninorm/u32-normalize.c: New file.
42650         * modules/uninorm/u32-normalize: New file.
42651
42652         New module 'uninorm/u16-normalize'.
42653         * lib/uninorm/u16-normalize.c: New file.
42654         * modules/uninorm/u16-normalize: New file.
42655
42656         New module 'uninorm/u8-normalize'.
42657         * lib/uninorm/u8-normalize.c: New file.
42658         * lib/uninorm/normalize-internal.h: New file.
42659         * lib/uninorm/u-normalize-internal.h: New file.
42660         * modules/uninorm/u8-normalize: New file.
42661
42662         New module 'uninorm/decompose-internal'.
42663         * lib/uninorm/decompose-internal.c: New file.
42664         * modules/uninorm/decompose-internal: New file.
42665
42666         Tests for module 'uninorm/composition'.
42667         * tests/uninorm/test-composition.c: New file.
42668         * modules/uninorm/composition-tests: New file.
42669
42670         New module 'uninorm/composition'.
42671         * lib/uninorm/composition.c: New file.
42672         * lib/uninorm/composition-table.gperf: New file, generated by
42673         gen-uni-tables.
42674         * modules/uninorm/composition: New file.
42675
42676         Tests for module 'uninorm/compat-decomposition'.
42677         * tests/uninorm/test-compat-decomposition.c: New file.
42678         * modules/uninorm/compat-decomposition-tests: New file.
42679
42680         New module 'uninorm/compat-decomposition'.
42681         * lib/uninorm/decompose-internal.h: New file.
42682         * lib/uninorm/compat-decomposition.c: New file.
42683         * modules/uninorm/compat-decomposition: New file.
42684
42685         Tests for module 'uninorm/canonical-decomposition'.
42686         * tests/uninorm/test-canonical-decomposition.c: New file.
42687         * modules/uninorm/canonical-decomposition-tests: New file.
42688
42689         New module 'uninorm/canonical-decomposition'.
42690         * lib/uninorm/canonical-decomposition.c: New file.
42691         * modules/uninorm/canonical-decomposition: New file.
42692
42693         Tests for module 'uninorm/decomposition'.
42694         * tests/uninorm/test-decomposition.c: New file.
42695         * modules/uninorm/decomposition-tests: New file.
42696
42697         New module 'uninorm/decomposition'.
42698         * lib/uninorm/decomposition.c: New file.
42699         * modules/uninorm/decomposition: New file.
42700
42701         New module 'uninorm/decomposition-table'.
42702         * lib/uninorm/decomposition-table.h: New file.
42703         * lib/uninorm/decomposition-table.c: New file.
42704         * lib/uninorm/decomposition-table1.h: New file, generated by
42705         gen-uni-tables.
42706         * lib/uninorm/decomposition-table2.h: New file, generated by
42707         gen-uni-tables.
42708         * modules/uninorm/decomposition-table: New file.
42709
42710         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
42711         (UC_DECOMP_*): New enumeration items.
42712         (get_decomposition): New function.
42713         (struct decomp_table): New type.
42714         (output_decomposition, output_decomposition_tables): New functions.
42715         (unicode_composition_exclusions): New variable.
42716         (fill_composition_exclusions, debug_output_composition_tables): New
42717         functions.
42718         (main): Accept one more argument. Invoke fill_composition_exclusions.
42719         Output decomposition and composition tables.
42720
42721         New module 'uninorm/base'.
42722         * lib/uninorm.h: New file.
42723         * lib/unictype.h: Update comment.
42724         * modules/uninorm/base: New file.
42725
42726 2009-02-21  David Lutterkort  <lutter@redhat.com>
42727
42728         Tests for module 'safe-alloc'.
42729         * tests/test-safe-alloc.c: New file.
42730         * modules/safe-alloc-tests: New file.
42731
42732         New module 'safe-alloc'.
42733         * lib/safe-alloc.h: New file.
42734         * lib/safe-alloc.c: New file.
42735         * m4/safe-alloc.m4: New file.
42736         * modules/safe-alloc: New file.
42737         * doc/safe-alloc.texi: New file.
42738         * doc/gnulib.texi: Include it.
42739         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
42740         safe-alloc.
42741
42742 2009-02-18  Bruno Haible  <bruno@clisp.org>
42743
42744         Fix link error on non-glibc systems.
42745         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
42746         variable.
42747         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42748
42749 2009-02-18  Jim Meyering  <meyering@redhat.com>
42750
42751         fts: avoid used-uninitialized error due to recent change
42752         * lib/fts.c (fts_read): Guard uses of the new member,
42753         parent->fts_n_dirs_remaining, since it's not relevant for
42754         the parent of a directory specified on the command-line.
42755
42756 2009-02-17  James Youngman  <jay@gnu.org>
42757             Bruno Haible  <bruno@clisp.org>
42758
42759         * m4/include_next.m4: Reformulate comment.
42760
42761 2009-02-16  Jim Meyering  <meyering@redhat.com>
42762
42763         fts: add #if guards so that the fts_lgpl module still builds
42764         * lib/fts.c: Guard just-added hash-table-using parts with
42765         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
42766         Reported by Simon Josefsson.
42767
42768 2009-02-15  Bruno Haible  <bruno@clisp.org>
42769
42770         * modules/array-mergesort-tests: New file.
42771         * tests/test-array-mergesort.c: New file.
42772
42773         New module 'array-mergesort'.
42774         * modules/array-mergesort: New file.
42775         * lib/array-mergesort.h: New file.
42776
42777 2009-02-15  Bruno Haible  <bruno@clisp.org>
42778
42779         Fix 2009-02-07 commit.
42780         * lib/gen-uni-tables.c (output_predicate, output_category,
42781         output_combclass, output_bidi_category, output_decimal_digit,
42782         output_digit, output_numeric, output_mirror, output_scripts,
42783         output_ident_category, output_simple_mapping): Fix format directives.
42784         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
42785
42786 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
42787
42788         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
42789         fixes are available from IBM.
42790
42791 2009-02-13  Jim Meyering  <meyering@redhat.com>
42792
42793         fts: arrange not to stat non-directories in more cases
42794         This makes GNU find (when it doesn't need to stat each file)
42795         *much* more efficient at traversing reiserfs file systems.
42796         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
42797         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
42798         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
42799         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
42800         (leaf_optimization_applies): New function.
42801         (LCO_hash, LCO_compare): New helper functions.
42802         (link_count_optimize_ok): New function.
42803         (fts_stat): Initialize new member (if dir).
42804         (fts_read): Decrement parent's fts_n_dirs_remaining count if
42805         we've just stat'ed a directory.  Skip the stat call when possible.
42806         ---
42807         Note this AFS-related exchange:
42808         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
42809         and note find's pioctl call in find/fstype.c.
42810         But that is necessary only if you want to enable the
42811         optimization for AFS, and for now, I don't.
42812
42813         fts: move a function definition "up" (no semantic change)
42814         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
42815         "up" to precede upcoming use of a related function.
42816
42817 2009-02-11  Jim Meyering  <meyering@redhat.com>
42818
42819         fts: correct internal computation of nlinks (optimization-related)
42820         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
42821         whether the current entry is a directory, so don't test it.
42822
42823 2009-02-10  Bruno Haible  <bruno@clisp.org>
42824
42825         Tests for module 'uniwbrk/ulc-wordbreaks'.
42826         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
42827         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
42828         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
42829
42830         Tests for module 'uniwbrk/u32-wordbreaks'.
42831         * modules/uniwbrk/u32-wordbreaks-tests: New file.
42832         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
42833
42834         Tests for module 'uniwbrk/u16-wordbreaks'.
42835         * modules/uniwbrk/u16-wordbreaks-tests: New file.
42836         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
42837
42838         Tests for module 'uniwbrk/u8-wordbreaks'.
42839         * modules/uniwbrk/u8-wordbreaks-tests: New file.
42840         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
42841
42842 2009-02-10  Bruno Haible  <bruno@clisp.org>
42843
42844         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
42845         property.
42846         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
42847         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
42848         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
42849
42850 2009-02-10  Simon Josefsson  <simon@josefsson.org>
42851
42852         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
42853         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
42854
42855 2009-02-10  Bruno Haible  <bruno@clisp.org>
42856
42857         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
42858         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
42859         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
42860         * lib/unilbrk/u8-possible-linebreaks.c: Update.
42861         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
42862         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
42863
42864 2009-02-09  Simon Josefsson  <simon@josefsson.org>
42865
42866         * lib/sockets.h (gl_fd_to_handle): New function.
42867
42868         * tests/test-sockets.c: Call gl_fd_to_handle.
42869
42870 2009-02-09  Bruno Haible  <bruno@clisp.org>
42871
42872         * doc/havelib.texi: Document the conventions on bi-arch systems.
42873
42874 2009-02-08  Bruno Haible  <bruno@clisp.org>
42875
42876         Document the AC_LIB_LINKFLAGS macro.
42877         * doc/havelib.texi: New file, mostly written on 2005-05-24.
42878         * doc/gnulib.texi: Include it.
42879
42880 2009-02-08  Bruno Haible  <bruno@clisp.org>
42881
42882         Fix wrong order of sections, compared to TOC.
42883         * doc/gnulib.texi: Include relocatable-maint.texi after the
42884         "Regular expressions" node, not before.
42885
42886 2009-02-08  Bruno Haible  <bruno@clisp.org>
42887
42888         Tests for module 'unicase/totitle'.
42889         * modules/unicase/totitle-tests: New file.
42890
42891         Tests for module 'unicase/tolower'.
42892         * modules/unicase/tolower-tests: New file.
42893
42894         Tests for module 'unicase/toupper'.
42895         * modules/unicase/toupper-tests: New file.
42896         * tests/unicase/test-mapping-part1.h: New file.
42897         * tests/unicase/test-mapping-part2.h: New file.
42898
42899         New module 'unicase/totitle'.
42900         * modules/unicase/totitle: New file.
42901         * lib/unicase/totitle.c: New file.
42902
42903         New module 'unicase/tolower'.
42904         * modules/unicase/tolower: New file.
42905         * lib/unicase/tolower.c: New file.
42906
42907         New module 'unicase/toupper'.
42908         * modules/unicase/toupper: New file.
42909         * lib/unicase/toupper.c: New file.
42910         * lib/unicase/simple-mapping.h: New file.
42911
42912         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
42913         (mapping_table): New structure.
42914         (output_simple_mapping): New function.
42915         (main): Invoke output_simple_mapping_test and output_simple_mapping.
42916         * modules/gen-uni-tables (Description): Update.
42917         * lib/unicase/toupper.h: New file, automatically generated by
42918         gen-uni-tables.
42919         * lib/unicase/tolower.h: New file, automatically generated by
42920         gen-uni-tables.
42921         * lib/unicase/totitle.h: New file, automatically generated by
42922         gen-uni-tables.
42923         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
42924         gen-uni-tables.
42925         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
42926         gen-uni-tables.
42927         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
42928         gen-uni-tables.
42929
42930         New module 'unicase/base'.
42931         * modules/unicase/base: New file.
42932         * lib/unicase.h: New file.
42933
42934 2009-02-08  Bruno Haible  <bruno@clisp.org>
42935
42936         New module 'uniwbrk/ulc-wordbreaks'.
42937         * modules/uniwbrk/ulc-wordbreaks: New file.
42938         * lib/uniwbrk/ulc-wordbreaks.c: New file.
42939
42940         New module 'uniwbrk/u32-wordbreaks'.
42941         * modules/uniwbrk/u32-wordbreaks: New file.
42942         * lib/uniwbrk/u32-wordbreaks.c: New file.
42943
42944         New module 'uniwbrk/u16-wordbreaks'.
42945         * modules/uniwbrk/u16-wordbreaks: New file.
42946         * lib/uniwbrk/u16-wordbreaks.c: New file.
42947
42948         New module 'uniwbrk/u8-wordbreaks'.
42949         * modules/uniwbrk/u8-wordbreaks: New file.
42950         * lib/uniwbrk/u8-wordbreaks.c: New file.
42951         * lib/uniwbrk/u-wordbreaks.h: New file.
42952
42953         New module 'uniwbrk/table'.
42954         * modules/uniwbrk/table: New file.
42955         * lib/uniwbrk/wbrktable.h: New file.
42956         * lib/uniwbrk/wbrktable.c: New file.
42957
42958         New module 'uniwbrk/wordbreak-property'.
42959         * modules/uniwbrk/wordbreak-property: New file.
42960         * lib/uniwbrk/wordbreak-property.c: New file.
42961
42962         * lib/gen-uni-tables.c (WBP_*): New enum items.
42963         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
42964         (unicode_org_wbp): New variable.
42965         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
42966         New functions.
42967         (wbp_table): New structure.
42968         (output_wbp, output_wbrk_tables): New functions.
42969         (main): Accept additional argument. Invoke fill_org_wbp,
42970         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
42971         output_wbrk_tables.
42972         * modules/gen-uni-tables (Description): Update.
42973         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
42974         gen-uni-tables.
42975
42976         New module 'uniwbrk/base'.
42977         * modules/uniwbrk/base: New file.
42978         * lib/uniwbrk.h: New file.
42979
42980 2009-02-08  Bruno Haible  <bruno@clisp.org>
42981
42982         Update to Unicode 5.1.0.
42983         * lib/gen-uni-tables.c (is_property_alphabetic): Include
42984         U+2185..U+2188.
42985         (is_property_default_ignorable_code_point): Don't include characters
42986         of category Cc or Cs and not-a-characters.
42987         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
42988         U+0D79, U+109E, U+109F, U+A60C.
42989         * lib/unictype/bidi_of.h: Regenerated.
42990         * lib/unictype/blocks.h: Regenerated.
42991         * lib/unictype/categ_C.h: Regenerated.
42992         * lib/unictype/categ_Cf.h: Regenerated.
42993         * lib/unictype/categ_Cn.h: Regenerated.
42994         * lib/unictype/categ_L.h: Regenerated.
42995         * lib/unictype/categ_Ll.h: Regenerated.
42996         * lib/unictype/categ_Lm.h: Regenerated.
42997         * lib/unictype/categ_Lo.h: Regenerated.
42998         * lib/unictype/categ_Lu.h: Regenerated.
42999         * lib/unictype/categ_M.h: Regenerated.
43000         * lib/unictype/categ_Mc.h: Regenerated.
43001         * lib/unictype/categ_Me.h: Regenerated.
43002         * lib/unictype/categ_Mn.h: Regenerated.
43003         * lib/unictype/categ_N.h: Regenerated.
43004         * lib/unictype/categ_Nd.h: Regenerated.
43005         * lib/unictype/categ_Nl.h: Regenerated.
43006         * lib/unictype/categ_No.h: Regenerated.
43007         * lib/unictype/categ_P.h: Regenerated.
43008         * lib/unictype/categ_Pd.h: Regenerated.
43009         * lib/unictype/categ_Pe.h: Regenerated.
43010         * lib/unictype/categ_Pf.h: Regenerated.
43011         * lib/unictype/categ_Pi.h: Regenerated.
43012         * lib/unictype/categ_Po.h: Regenerated.
43013         * lib/unictype/categ_Ps.h: Regenerated.
43014         * lib/unictype/categ_S.h: Regenerated.
43015         * lib/unictype/categ_Sk.h: Regenerated.
43016         * lib/unictype/categ_Sm.h: Regenerated.
43017         * lib/unictype/categ_So.h: Regenerated.
43018         * lib/unictype/categ_of.h: Regenerated.
43019         * lib/unictype/combining.h: Regenerated.
43020         * lib/unictype/ctype_alnum.h: Regenerated.
43021         * lib/unictype/ctype_alpha.h: Regenerated.
43022         * lib/unictype/ctype_graph.h: Regenerated.
43023         * lib/unictype/ctype_lower.h: Regenerated.
43024         * lib/unictype/ctype_print.h: Regenerated.
43025         * lib/unictype/ctype_punct.h: Regenerated.
43026         * lib/unictype/ctype_upper.h: Regenerated.
43027         * lib/unictype/decdigit.h: Regenerated.
43028         * lib/unictype/digit.h: Regenerated.
43029         * lib/unictype/mirror.h: Regenerated.
43030         * lib/unictype/numeric.h: Regenerated.
43031         * lib/unictype/pr_alphabetic.h: Regenerated.
43032         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
43033         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
43034         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
43035         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
43036         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
43037         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
43038         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
43039         * lib/unictype/pr_combining.h: Regenerated.
43040         * lib/unictype/pr_dash.h: Regenerated.
43041         * lib/unictype/pr_decimal_digit.h: Regenerated.
43042         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
43043         * lib/unictype/pr_deprecated.h: Regenerated.
43044         * lib/unictype/pr_diacritic.h: Regenerated.
43045         * lib/unictype/pr_extender.h: Regenerated.
43046         * lib/unictype/pr_format_control.h: Regenerated.
43047         * lib/unictype/pr_grapheme_base.h: Regenerated.
43048         * lib/unictype/pr_grapheme_extend.h: Regenerated.
43049         * lib/unictype/pr_grapheme_link.h: Regenerated.
43050         * lib/unictype/pr_id_continue.h: Regenerated.
43051         * lib/unictype/pr_id_start.h: Regenerated.
43052         * lib/unictype/pr_ideographic.h: Regenerated.
43053         * lib/unictype/pr_ignorable_control.h: Regenerated.
43054         * lib/unictype/pr_lowercase.h: Regenerated.
43055         * lib/unictype/pr_math.h: Regenerated.
43056         * lib/unictype/pr_numeric.h: Regenerated.
43057         * lib/unictype/pr_other_alphabetic.h: Regenerated.
43058         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
43059         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
43060         * lib/unictype/pr_other_id_continue.h: Regenerated.
43061         * lib/unictype/pr_other_lowercase.h: Regenerated.
43062         * lib/unictype/pr_other_math.h: Regenerated.
43063         * lib/unictype/pr_punctuation.h: Regenerated.
43064         * lib/unictype/pr_sentence_terminal.h: Regenerated.
43065         * lib/unictype/pr_soft_dotted.h: Regenerated.
43066         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
43067         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
43068         * lib/unictype/pr_unified_ideograph.h: Regenerated.
43069         * lib/unictype/pr_uppercase.h: Regenerated.
43070         * lib/unictype/pr_xid_continue.h: Regenerated.
43071         * lib/unictype/pr_xid_start.h: Regenerated.
43072         * lib/unictype/pr_zero_width.h: Regenerated.
43073         * lib/unictype/scripts.h: Regenerated.
43074         * lib/unictype/scripts_byname.gperf: Regenerated.
43075         * lib/unictype/sy_java_ident.h: Regenerated.
43076         * lib/unilbrk/lbrkprop1.h: Regenerated.
43077         * lib/unilbrk/lbrkprop2.h: Regenerated.
43078         * tests/unictype/test-categ_C.c: Regenerated.
43079         * tests/unictype/test-categ_Cf.c: Regenerated.
43080         * tests/unictype/test-categ_Cn.c: Regenerated.
43081         * tests/unictype/test-categ_L.c: Regenerated.
43082         * tests/unictype/test-categ_Ll.c: Regenerated.
43083         * tests/unictype/test-categ_Lm.c: Regenerated.
43084         * tests/unictype/test-categ_Lo.c: Regenerated.
43085         * tests/unictype/test-categ_Lu.c: Regenerated.
43086         * tests/unictype/test-categ_M.c: Regenerated.
43087         * tests/unictype/test-categ_Mc.c: Regenerated.
43088         * tests/unictype/test-categ_Me.c: Regenerated.
43089         * tests/unictype/test-categ_Mn.c: Regenerated.
43090         * tests/unictype/test-categ_N.c: Regenerated.
43091         * tests/unictype/test-categ_Nd.c: Regenerated.
43092         * tests/unictype/test-categ_Nl.c: Regenerated.
43093         * tests/unictype/test-categ_No.c: Regenerated.
43094         * tests/unictype/test-categ_P.c: Regenerated.
43095         * tests/unictype/test-categ_Pd.c: Regenerated.
43096         * tests/unictype/test-categ_Pe.c: Regenerated.
43097         * tests/unictype/test-categ_Pf.c: Regenerated.
43098         * tests/unictype/test-categ_Pi.c: Regenerated.
43099         * tests/unictype/test-categ_Po.c: Regenerated.
43100         * tests/unictype/test-categ_Ps.c: Regenerated.
43101         * tests/unictype/test-categ_S.c: Regenerated.
43102         * tests/unictype/test-categ_Sk.c: Regenerated.
43103         * tests/unictype/test-categ_Sm.c: Regenerated.
43104         * tests/unictype/test-categ_So.c: Regenerated.
43105         * tests/unictype/test-ctype_alnum.c: Regenerated.
43106         * tests/unictype/test-ctype_alpha.c: Regenerated.
43107         * tests/unictype/test-ctype_graph.c: Regenerated.
43108         * tests/unictype/test-ctype_lower.c: Regenerated.
43109         * tests/unictype/test-ctype_print.c: Regenerated.
43110         * tests/unictype/test-ctype_punct.c: Regenerated.
43111         * tests/unictype/test-ctype_upper.c: Regenerated.
43112         * tests/unictype/test-decdigit.h: Regenerated.
43113         * tests/unictype/test-digit.h: Regenerated.
43114         * tests/unictype/test-numeric.h: Regenerated.
43115         * tests/unictype/test-pr_alphabetic.c: Regenerated.
43116         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
43117         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
43118         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
43119         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
43120         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
43121         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
43122         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
43123         * tests/unictype/test-pr_combining.c: Regenerated.
43124         * tests/unictype/test-pr_dash.c: Regenerated.
43125         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
43126         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
43127         * tests/unictype/test-pr_deprecated.c: Regenerated.
43128         * tests/unictype/test-pr_diacritic.c: Regenerated.
43129         * tests/unictype/test-pr_extender.c: Regenerated.
43130         * tests/unictype/test-pr_format_control.c: Regenerated.
43131         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
43132         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
43133         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
43134         * tests/unictype/test-pr_id_continue.c: Regenerated.
43135         * tests/unictype/test-pr_id_start.c: Regenerated.
43136         * tests/unictype/test-pr_ideographic.c: Regenerated.
43137         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
43138         * tests/unictype/test-pr_lowercase.c: Regenerated.
43139         * tests/unictype/test-pr_math.c: Regenerated.
43140         * tests/unictype/test-pr_numeric.c: Regenerated.
43141         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
43142         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
43143         Regenerated.
43144         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
43145         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
43146         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
43147         * tests/unictype/test-pr_other_math.c: Regenerated.
43148         * tests/unictype/test-pr_punctuation.c: Regenerated.
43149         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
43150         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
43151         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
43152         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
43153         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
43154         * tests/unictype/test-pr_uppercase.c: Regenerated.
43155         * tests/unictype/test-pr_xid_continue.c: Regenerated.
43156         * tests/unictype/test-pr_xid_start.c: Regenerated.
43157         * tests/unictype/test-pr_zero_width.c: Regenerated.
43158
43159         Update to Unicode 5.1.0.
43160         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
43161         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
43162         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
43163         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
43164         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
43165         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
43166         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
43167         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
43168         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
43169         (nonspacing_table_ind): Update.
43170         * tests/uniwidth/test-uc_width2.sh: Update expected result.
43171
43172         Update to Unicode 5.1.0.
43173         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
43174         code transform.
43175         * lib/uniname/uniname.c (unicode_character_name,
43176         unicode_name_character): Add the range 0x1Fxxx to the code transform.
43177         * lib/uniname/uninames.h: Regenerated.
43178         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
43179
43180 2009-02-07  Bruno Haible  <bruno@clisp.org>
43181
43182         Merge gen-ctype and gen-lbrk into a single program.
43183         * lib/gen-uni-tables.c: New file, incorporating
43184         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
43185         Add directory prefixes to the names of the generated files.
43186         * lib/unictype/gen-ctype.c: Remove file.
43187         * lib/unilbrk/gen-lbrk.c: Remove file.
43188         * modules/gen-uni-tables: New file.
43189         * modules/unictype/gen-ctype: Remove file.
43190         * modules/unilbrk/gen-lbrk: Remove file.
43191
43192 2009-02-07  Bruno Haible  <bruno@clisp.org>
43193
43194         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
43195
43196         New module 'unistr/u32-strcoll'.
43197         * modules/unistr/u32-strcoll: New file.
43198         * lib/unistr/u32-strcoll.c: New file.
43199
43200         New module 'unistr/u16-strcoll'.
43201         * modules/unistr/u16-strcoll: New file.
43202         * lib/unistr/u16-strcoll.c: New file.
43203
43204         New module 'unistr/u8-strcoll'.
43205         * modules/unistr/u8-strcoll: New file.
43206         * lib/unistr/u8-strcoll.c: New file.
43207         * lib/unistr/u-strcoll.h: New file.
43208
43209 2009-02-07  Bruno Haible  <bruno@clisp.org>
43210
43211         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
43212         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
43213         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
43214         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
43215         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
43216         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
43217
43218 2009-02-07  Bruno Haible  <bruno@clisp.org>
43219
43220         Make 64-bit clean.
43221         * lib/unictype/gen-ctype.c (output_predicate, output_category,
43222         output_combclass, output_bidi_category, output_decimal_digit,
43223         output_digit, output_numeric, output_mirror, output_scripts,
43224         output_ident_category): Use proper width specifier in format strings.
43225
43226 2009-02-07  Bruno Haible  <bruno@clisp.org>
43227
43228         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
43229         failure behaviour.
43230
43231 2009-02-07  Jim Meyering  <meyering@redhat.com>
43232
43233         regex: avoid compilation failure with upcoming gcc-4.4
43234         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
43235         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
43236         "... error: integer overflow in preprocessor expression".
43237
43238 2009-02-05  Ben Pfaff  <blp@gnu.org>
43239
43240         Fix link errors on Windows when close module is used.
43241         * modules/close: Add $(LIB_CLOSE) to Link section.
43242         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
43243         $(LIB_CLOSE) on Windows.
43244
43245 2009-02-05  Jim Meyering  <meyering@redhat.com>
43246
43247         still avoid unused-parameter warnings, but do it cleanly
43248         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
43249         (get_fs_usage): Cast to void instead.
43250         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
43251         (dev_from_mount_options, read_file_system_list): Cast to void.
43252         Prompted by Bruno Haible.
43253
43254 2009-02-04  Jim Meyering  <meyering@redhat.com>
43255
43256         fsusage.c: correct copyright year
43257         * lib/fsusage.c: Reflect year in which the change is pushed into
43258
43259         avoid misc. warnings
43260         * lib/fsusage.c (UNUSED_PARAM): Define.
43261         (get_fs_usage): Mark parameter "disk" as unused.
43262         * lib/getugroups.c (getgrent): Use "void" in prototype.
43263         * lib/mountlist.c: Mark unused parameters.
43264         (read_file_system_list): Declare a local with "const".
43265         * lib/nanosleep.c (getnow): Declare static.
43266         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
43267
43268         dirfd: set errno upon failure
43269         * lib/dirfd.c: Include <errno.h>.
43270         Set errno to ENOTSUP when returning -1.
43271         * modules/dirfd (Depends-on): Add errno.
43272         Suggested by John Kodis <kodis@comcast.net>.
43273
43274 2009-02-01  Bruno Haible  <bruno@clisp.org>
43275
43276         Don't assume sizeof (long) >= sizeof (void *).
43277         * lib/memcmp.c: Include stdint.h.
43278         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
43279         srcp2 to 'const byte *'.
43280         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
43281         types to uintptr_t.
43282         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
43283         * modules/memcmp (Depends-on): Add stdint.
43284         Reported by Ozkan Sezer <sezeroz@gmail.com>.
43285
43286 2009-01-30  Eric Blake  <ebb9@byu.net>
43287
43288         fix more require-before-expand issues
43289         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
43290         expand, AC_PROG_AWK.
43291         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
43292
43293 2009-01-28  Eric Blake  <ebb9@byu.net>
43294
43295         version-etc: use consistent URL formatting
43296         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
43297         Improve formatting.  Use fputs for string without %.
43298
43299 2009-01-28  Jim Meyering  <meyering@redhat.com>
43300
43301         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
43302         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
43303         "underquoted definition of NAME" from autoconf-2.59.
43304
43305 2009-01-28  Bruno Haible  <bruno@clisp.org>
43306
43307         * doc/gnulib.texi: Add "Obsolete modules" to index.
43308
43309 2009-01-28  Jim Meyering  <meyering@redhat.com>
43310
43311         useless-if-before-free: recognize more variants
43312         * build-aux/useless-if-before-free: Also recognize e.g.,
43313         if (NULL != p) free (p);
43314
43315 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
43316
43317         test-getaddrinfo: skip (don't fail) this test when there's no network
43318         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
43319         on the presumption that it means you lack network access.
43320
43321 2009-01-26  Jim Meyering  <meyering@redhat.com>
43322
43323         fflush: avoid warnings on modern systems
43324         * lib/fflush.c (rpl_fflush): Move declarations of locals,
43325         pos and result, into scopes where they're used.
43326
43327 2009-01-26  Eric Blake  <ebb9@byu.net>
43328
43329         Silence warning reintroduced by recent extensions patch.
43330         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
43331         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
43332         autoconf.
43333
43334         Backport improved autoconf semantics of AC_DEFUN_ONCE.
43335         * m4/00gnulib.m4: New file.
43336         * gnulib-tool (func_get_filelist): Always use it.
43337         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
43338         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
43339
43340 2009-01-25  Bruno Haible  <bruno@clisp.org>
43341
43342         Make test-quotearg work on MacOS X and AIX.
43343         * tests/test-quotearg.sh: New file.
43344         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
43345         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
43346         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
43347         include <libintl.h>.
43348         (fake_locale): Remove variable.
43349         (gettext, dgettext, dcgettext): Remove functions.
43350         (main): Instead of setting a fake locale, set a real locale. Call
43351         textdomain and bindtextdomain.
43352         * modules/quotearg-tests (Files): Add the new files.
43353         (Depends-on): Add gettext, setenv, unsetenv.
43354         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
43355         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
43356         Augment TESTS_ENVIRONMENT.
43357
43358 2009-01-25  Bruno Haible  <bruno@clisp.org>
43359
43360         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
43361         fr_FR.ISO8859-1 locale on MacOS X.
43362         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
43363         ja_JP.eucJP locale on MacOS X.
43364         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
43365         zh_CN.GB18030 locale on MacOS X.
43366
43367 2009-01-25  Bruno Haible  <bruno@clisp.org>
43368
43369         Avoid link errors on MacOS X 10.3.
43370         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
43371         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
43372
43373 2009-01-25  Bruno Haible  <bruno@clisp.org>
43374
43375         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
43376         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
43377         * modules/pipe (Files): Remove m4/posix_spawn.m4.
43378         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
43379         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
43380         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
43381         posix_spawnattr_init, posix_spawnattr_setsigmask,
43382         posix_spawnattr_setflags, posix_spawnattr_destroy.
43383
43384         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
43385         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
43386         * modules/execute (Files): Remove m4/posix_spawn.m4.
43387         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
43388         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
43389         posix_spawnattr_init, posix_spawnattr_setsigmask,
43390         posix_spawnattr_setflags, posix_spawnattr_destroy.
43391
43392 2009-01-25  Bruno Haible  <bruno@clisp.org>
43393
43394         * lib/glthread/threadlib.c: Include <stdlib.h>.
43395
43396 2009-01-25  Bruno Haible  <bruno@clisp.org>
43397
43398         * lib/glthread/threadlib.c (dummy): New declaration.
43399
43400 2009-01-25  Bruno Haible  <bruno@clisp.org>
43401
43402         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
43403         multibyte characters also for the GB18030 encoding. Don't crash when
43404         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
43405
43406 2009-01-25  Bruno Haible  <bruno@clisp.org>
43407
43408         Avoid redefining 'struct random_data' on OSF/1 5.1.
43409         * lib/stdlib.in.h: Include <random.h> if it exists.
43410         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
43411         HAVE_RANDOM_H. Include <random.h> when testing whether
43412         'struct random_data' exists.
43413         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
43414
43415 2009-01-25  Bruno Haible  <bruno@clisp.org>
43416
43417         Don't install charset.alias on MacOS X >= 10.3.
43418         * lib/localcharset.c (DARWIN7): New macro.
43419         (get_charset_aliases): Hardcode the result for Darwin7.
43420         * modules/localcharset (install-exec-local): Don't install
43421         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
43422
43423 2009-01-25  Bruno Haible  <bruno@clisp.org>
43424
43425         Don't install charset.alias on mingw and Cygwin.
43426         * modules/localcharset (install-exec-local): Don't install
43427         charset.alias on mingw and Cygwin, if the file does not yet exist.
43428         The result for these platforms is hardcoded in localcharset.c.
43429
43430 2009-01-25  Bruno Haible  <bruno@clisp.org>
43431
43432         Make it possible again to use AC_GNU_SOURCE together with gnulib.
43433         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
43434         before requiring AC_USE_SYSTEM_EXTENSIONS.
43435
43436 2009-01-25  Jim Meyering  <meyering@redhat.com>
43437
43438         c-strtod: avoid warnings
43439         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
43440         "assignment discards qualifiers from pointer target type" warnings.
43441
43442 2009-01-24  Bruno Haible  <bruno@clisp.org>
43443
43444         Add support for non-UTF-8 locales on MacOS X.
43445         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
43446         canonical encodings. For Darwin 7 and newer, don't map traditional
43447         encodings to UTF-8.
43448         Reported by Vincent Lefevre <vincent@vinc17.org>
43449         at <http://savannah.gnu.org/bugs/?25235>.
43450
43451 2009-01-24  Bruno Haible  <bruno@clisp.org>
43452
43453         * doc/gnulib.texi (Obsolete modules): New section.
43454         Reported by Mike Frysinger <vapier@gentoo.org>.
43455
43456 2009-01-24  Bruno Haible  <bruno@clisp.org>
43457
43458         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
43459         (%.dvi): New rule.
43460
43461 2009-01-24  Bruno Haible  <bruno@clisp.org>
43462
43463         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
43464         Reported by Eric Blake.
43465
43466 2009-01-24  Bruno Haible  <bruno@clisp.org>
43467
43468         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
43469         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
43470         Reported by Gary V. Vaughan <gary@gnu.org>.
43471
43472 2009-01-24  Bruno Haible  <bruno@clisp.org>
43473
43474         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
43475
43476 2009-01-23  Bruno Haible  <bruno@clisp.org>
43477
43478         Make c-strtod, c-strtold usable in libraries.
43479         * lib/c-strtod.c: Include string.h instead of xalloc.h.
43480         (C_STRTOD): Call strdup instead of xstrdup.
43481         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
43482         * modules/c-strtold (Depends-on): Likewise.
43483         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
43484         * NEWS: Mention the change.
43485         Reported by Michael Gold <mgold@ncf.ca>.
43486
43487 2009-01-23  Jim Meyering  <meyering@redhat.com>
43488
43489         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
43490         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
43491         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
43492
43493 2009-01-23  Simon Josefsson  <simon@josefsson.org>
43494
43495         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
43496         GNU CoreUtils.
43497         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
43498         * modules/version-etc (Description): Update.
43499
43500 2009-01-22  Bruno Haible  <bruno@clisp.org>
43501
43502         Cache the C locale object.
43503         * lib/c-strtod.c (c_locale_cache): New variable.
43504         (c_locale): New function.
43505         (C_STRTOD): Use it, and don't call freelocale.
43506         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
43507         Suggested by Paolo Bonzini.
43508
43509 2009-01-21  Bruno Haible  <bruno@clisp.org>
43510
43511         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
43512         conditions other than overflow.
43513
43514 2009-01-21  Bruno Haible  <bruno@clisp.org>
43515
43516         * lib/c-strtod.c: Include errno.h.
43517         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
43518         value from STRTOD_L and STRTOD.
43519
43520 2009-01-21  Bruno Haible  <bruno@clisp.org>
43521         and Jim Meyering  <meyering@redhat.com>
43522
43523         nanosleep: skip configure test (fail it) for apple universal builds
43524         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
43525         universal builds, assume that nanosleep does not work.
43526         * modules/nanosleep (Depends-on): Add multiarch.
43527
43528         mktime: skip configure test (fail it) for apple universal builds
43529         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
43530         universal builds, assume that mktime does not work.
43531         * modules/mktime (Depends-on): Add multiarch.
43532
43533 2009-01-21  Eric Blake  <ebb9@byu.net>
43534
43535         multiarch: avoid expand-before-require warning
43536         * modules/multiarch (configure.ac): Require, rather than expand,
43537         gl_MULTIARCH.
43538         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
43539         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
43540         enforce that all clients require it.  Partial reversion of
43541         2008-12-29 patch.
43542
43543         error: avoid expand-before-require warning
43544         * modules/errno (configure.ac): Require, rather than expand,
43545         gl_HEADER_ERRNO_H.
43546         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
43547         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
43548         enforce that all clients require it.
43549
43550         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
43551         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
43552         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
43553         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
43554
43555 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
43556
43557         Revert:
43558         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
43559
43560         regex: do not depend on obsolete modules.
43561         * modules/regex: Remove memcmp and memmove.
43562
43563 2009-01-20  Bruno Haible  <bruno@clisp.org>
43564
43565         Make the 'link' module link on Windows NT 4.
43566         * lib/link.c (_WIN32_WINNT): Don't define.
43567         (CreateHardLinkFuncType): New type.
43568         (CreateHardLinkFunc, initialized): New variables.
43569         (initialize): New function.
43570         (link): Invoke CreateHardLink indirectly through the function pointer.
43571
43572 2009-01-20  Bruno Haible  <bruno@clisp.org>
43573
43574         Fix compilation failure on mingw.
43575         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
43576
43577 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
43578
43579         * doc/c-strtod.texi: Mention a couple of restrictions.
43580
43581 2009-01-20  Jim Meyering  <meyering@redhat.com>
43582
43583         gettimeofday: move more declarations out of functions
43584         * lib/gettimeofday.c: Move extern declarations of tzset and
43585         gmtime out of containing functions.  Prompted by Bruno Haible.
43586
43587 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
43588
43589         regex: do not depend on obsolete modules.
43590         * modules/regex: Remove memcmp and memmove.
43591
43592 2009-01-19  Bruno Haible  <bruno@clisp.org>
43593
43594         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43595         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
43596         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43597         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
43598         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
43599
43600 2009-01-19  Bruno Haible  <bruno@clisp.org>
43601
43602         * tests/test-link.c: Include <errno.h>.
43603         (main): Exit with code 77 when a hard link cannot be created due to
43604         the file system.
43605         * tests/test-link.sh: Skip test when a hard link cannot be created due
43606         to the file system.
43607         Suggested by Eric Blake.
43608
43609 2009-01-19  Martin Lambers  <marlam@marlam.de>
43610
43611         * modules/link-tests: New file.
43612         * tests/test-link.sh: New file.
43613         * tests/test-link.c: New file.
43614
43615 2009-01-19  Eric Blake  <ebb9@byu.net>
43616
43617         doc: mention another function added in cygwin 1.7.0
43618         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
43619         Another new function in cygwin 1.7.
43620
43621 2009-01-19  Bruno Haible  <bruno@clisp.org>
43622
43623         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43624         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
43625         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
43626         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43627         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43628         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
43629         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
43630         * m4/md4.m4 (gl_MD4): Likewise.
43631         * m4/md5.m4 (gl_MD5): Likewise.
43632         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
43633         * m4/sha1.m4 (gl_SHA1): Likewise.
43634         * m4/sha256.m4 (gl_SHA256): Likewise.
43635         * m4/sha512.m4 (gl_SHA512): Likewise.
43636
43637 2009-01-19  Bruno Haible  <bruno@clisp.org>
43638
43639         * modules/uniname/uniname-tests (Depends-on): Add progname.
43640         * tests/uniname/test-uninames.c: Include progname.h.
43641         (main): Call set_program_name.
43642
43643         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
43644         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
43645         (main): Call set_program_name.
43646
43647         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
43648         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
43649         (main): Call set_program_name.
43650
43651         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
43652         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
43653         (main): Call set_program_name.
43654
43655         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
43656         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
43657         (main): Call set_program_name.
43658
43659         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
43660         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
43661         (main): Call set_program_name.
43662
43663         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
43664         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
43665         (main): Call set_program_name.
43666
43667         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
43668         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
43669         (main): Call set_program_name.
43670
43671         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
43672         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
43673         (main): Call set_program_name.
43674
43675 2009-01-19  Eric Blake  <ebb9@byu.net>
43676
43677         test-unistd: test previous patch
43678         * tests/test-unistd.c: Test *_FILENO macros.
43679
43680         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
43681         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43682         Guarantee a definition.
43683         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
43684         * modules/unistd-safer (Depends-on): Add dependency on unistd.
43685         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
43686         * lib/dup-safer.c (STDERR_FILENO): Likewise.
43687         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43688         Likewise.
43689         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
43690         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
43691         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43692         Likewise.
43693         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
43694         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
43695         (STDERR_FILENO): Likewise.
43696         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
43697         (STDERR_FILENO): Likewise.
43698         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
43699         (STDERR_FILENO): Likewise.
43700         Reported by Elbert Pol.
43701
43702 2009-01-19  Eric Blake  <ebb9@byu.net>
43703
43704         doc: mention more functions added in cygwin 1.7.0
43705         * doc/posix-functions/abort.texi (abort): Update wording related
43706         to cygwin.
43707         * doc/posix-functions/daylight.texi (daylight): Likewise.
43708         * doc/posix-functions/optarg.texi (optarg): Likewise.
43709         * doc/posix-functions/optarg.texi (opterr): Likewise.
43710         * doc/posix-functions/optarg.texi (optind): Likewise.
43711         * doc/posix-functions/optarg.texi (optopt): Likewise.
43712         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
43713         worked in 1.5.x, and was withdrawn in 1.7.
43714         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
43715         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
43716         cygwin versions.
43717         * doc/posix-functions/perror.texi (perror): Likewise.
43718         * doc/posix-functions/printf.texi (printf): Likewise.
43719         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
43720         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
43721         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
43722         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
43723         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
43724         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
43725         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43726         Likewise.
43727         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43728         Likewise.
43729         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
43730         this function.
43731         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
43732         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
43733         Likewise.
43734         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
43735         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
43736         * doc/posix-functions/confstr.texi (confstr): Likewise.
43737         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
43738         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
43739         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
43740         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
43741         * doc/posix-functions/fputws.texi (fputws): Likewise.
43742         * doc/posix-functions/fwide.texi (fwide): Likewise.
43743         * doc/posix-functions/getwc.texi (getwc): Likewise.
43744         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
43745         * doc/posix-functions/putwc.texi (putwc): Likewise.
43746         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
43747         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
43748         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
43749         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
43750         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
43751         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
43752         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
43753         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
43754         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
43755         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
43756         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
43757
43758 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43759
43760         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
43761         * lib/ioctl.c: Include <sys/ioctl.h>.
43762
43763 2009-01-19  Simon Josefsson  <simon@josefsson.org>
43764
43765         * modules/getdate-tests (Depends-on): Add progname.
43766         * tests/test-getdate.c: Use progname module, to avoid link errors
43767         on non-glibc systems.
43768
43769 2009-01-18  Simon Josefsson  <simon@josefsson.org>
43770
43771         * modules/filenamecat-tests (Depends-on): Add progname.
43772         * modules/fstrcmp-tests (Depends-on): Likewise.
43773
43774         * tests/test-filenamecat.c: Use progname module, to avoid link
43775         errors on non-glibc systems.
43776         * tests/test-fstrcmp.c: Likewise.
43777
43778 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43779
43780         gettimeofday: avoid warning: nested extern declaration of 'localtime'
43781         * lib/gettimeofday.c: Move extern declaration out of function.
43782
43783 2009-01-18  Bruno Haible  <bruno@clisp.org>
43784
43785         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
43786         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
43787         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
43788
43789 2009-01-18  Bruno Haible  <bruno@clisp.org>
43790
43791         * lib/strftime.c (MEMPCPY): Remove unused macro.
43792         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
43793
43794 2009-01-18  Martin Lambers  <marlam@marlam.de>
43795
43796         New module 'link'.
43797         * lib/unistd.in.h (link): New declaration.
43798         * lib/link.c: New file.
43799         * m4/link.m4: New file.
43800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
43801         HAVE_LINK.
43802         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
43803         * modules/link: New file.
43804         * doc/posix-functions/link.texi: Mention the new module.
43805
43806 2009-01-18  Bruno Haible  <bruno@clisp.org>
43807
43808         * tests/test-avltree_list.c (main): Call set_program_name.
43809         * tests/test-avltree_oset.c (main): Likewise.
43810         * tests/test-obstack-printf.c: Include progname.h.
43811         (main): Call set_program_name.
43812         * tests/test-quotearg.c: Include progname.h.
43813         (main): Call set_program_name.
43814         * tests/test-xmemdup0.c: Include progname.h.
43815         (main): Call set_program_name.
43816
43817 2009-01-18  Bruno Haible  <bruno@clisp.org>
43818
43819         New module 'alphasort'.
43820         * lib/dirent.in.h (alphasort): New declaration.
43821         * lib/alphasort.c: New file, from glibc with modifications.
43822         * m4/alphasort.m4: New file.
43823         * modules/alphasort: New file.
43824         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
43825         HAVE_ALPHASORT.
43826         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
43827         HAVE_ALPHASORT.
43828         * doc/posix-functions/alphasort.texi: Mention the new module and the
43829         portability problems.
43830
43831 2009-01-18  Bruno Haible  <bruno@clisp.org>
43832
43833         New module 'scandir'.
43834         * lib/dirent.in.h (scandir): New declaration.
43835         * lib/scandir.c: New file, from glibc with modifications.
43836         * m4/scandir.m4: New file.
43837         * modules/scandir: New file.
43838         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
43839         HAVE_SCANDIR.
43840         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
43841         HAVE_SCANDIR.
43842         * doc/posix-functions/scandir.texi: Mention the new module and the
43843         portability problems.
43844
43845 2009-01-17  Bruno Haible  <bruno@clisp.org>
43846
43847         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
43848         Update documentation.
43849         (func_remove_suffix): Escape all dots in the suffix. Update
43850         documentation.
43851         (func_filter_filelist): Update documentation.
43852         Reported by Ralf Wildenhues.
43853
43854 2009-01-17  Bruno Haible  <bruno@clisp.org>
43855
43856         * modules/dprintf-posix-tests: New file.
43857         * tests/test-dprintf-posix.sh: New file.
43858         * tests/test-dprintf-posix.c: New file.
43859
43860         New modules 'dprintf', 'dprintf-posix'.
43861         * lib/stdio.in.h (dprintf): New declaration.
43862         * lib/dprintf.c: New file.
43863         * m4/dprintf.m4: New file.
43864         * m4/dprintf-posix.m4: New file.
43865         * modules/dprintf: New file.
43866         * modules/dprintf-posix: New file.
43867         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
43868         HAVE_DPRINTF, REPLACE_DPRINTF.
43869         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
43870         HAVE_DPRINTF, REPLACE_DPRINTF.
43871         * doc/posix-functions/dprintf.texi: Mention the new modules.
43872
43873 2009-01-17  Bruno Haible  <bruno@clisp.org>
43874
43875         * modules/vdprintf-posix-tests: New file.
43876         * tests/test-vdprintf-posix.sh: New file.
43877         * tests/test-vdprintf-posix.c: New file.
43878
43879         New modules 'vdprintf', 'vdprintf-posix'.
43880         * lib/stdio.in.h (vdprintf): New declaration.
43881         * lib/vdprintf.c: New file.
43882         * m4/vdprintf.m4: New file.
43883         * m4/vdprintf-posix.m4: New file.
43884         * modules/vdprintf: New file.
43885         * modules/vdprintf-posix: New file.
43886         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
43887         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43888         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
43889         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43890         * doc/posix-functions/vdprintf.texi: Mention the new modules.
43891
43892 2009-01-17  Bruno Haible  <bruno@clisp.org>
43893
43894         Fix replacement of fopen on mingw.
43895         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
43896         mingw.
43897
43898 2009-01-17  Bruno Haible  <bruno@clisp.org>
43899
43900         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
43901         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
43902
43903 2009-01-17  Bruno Haible  <bruno@clisp.org>
43904
43905         Avoid test-fflush2.sh failure on mingw.
43906         * tests/test-fflush2.c: Include binary-io.h.
43907         (main): Put standard input into binary mode.
43908         * modules/fflush-tests (Depends-on): Add binary-io.
43909
43910 2009-01-17  Bruno Haible  <bruno@clisp.org>
43911
43912         * lib/wchar.in.h: In another particular situation, include only the
43913         system's <wchar.h> file.
43914         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
43915         Reported by Albert Chin-A-Young <china@thewrittenword.com>
43916         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
43917
43918 2009-01-17  Bruno Haible  <bruno@clisp.org>
43919
43920         Support for stripping executables in --enable-relocatable.
43921         * build-aux/install-reloc: Expect one more argument, or an environment
43922         variable RELOC_STRIP_PROG. If set, strip the destination program and
43923         its wrapper.
43924         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
43925         RELOC_STRIP_PROG.
43926         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
43927         to set RELOCATABLE_STRIP.
43928         * NEWS: Mention the new Makefile requirement.
43929
43930 2009-01-17  Bruno Haible  <bruno@clisp.org>
43931
43932         * build-aux/install-reloc: Remove debugging information left over by
43933         C compiler on MacOS X.
43934
43935 2009-01-17  Bruno Haible  <bruno@clisp.org>
43936
43937         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
43938         * lib/progreloc.c (find_executable): Fix type of pointer passed to
43939         _NSGetExecutablePath.
43940
43941 2009-01-16  Jim Meyering  <meyering@redhat.com>
43942
43943         strerror: avoid warnings about discarding "const"
43944         * lib/strerror.c (rpl_strerror): Instead of returning a const
43945         string from each and every "case", use a variable, and add a single
43946         cast after the switch.
43947
43948 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
43949
43950         * lib/arpa_inet.in.h: Add extern "C" block for C++.
43951
43952 2009-01-16  Bruno Haible  <bruno@clisp.org>
43953
43954         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
43955         array initializer syntax that also works in C++ mode.
43956         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43957
43958 2009-01-16  Jim Meyering  <meyering@redhat.com>
43959
43960         poll: suppress a warning
43961         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
43962         to ignore "...unsigned expression < 0 is always false" warnings.
43963
43964 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
43965
43966         poll: remove declarations of unused variables
43967         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
43968         sockbuf and optlen.
43969
43970 2009-01-15  Bruno Haible  <bruno@clisp.org>
43971
43972         Make fflush-after-ungetc POSIX compliant on BSD systems.
43973         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
43974         (clear_ungetc_buffer): Implement also for other systems.
43975         (rpl_fflush): On glibc systems, invoke
43976         clear_ungetc_buffer_preserving_position. Otherwise, invoke
43977         clear_ungetc_buffer after fetching the stream's position, not before.
43978
43979 2009-01-15  Bruno Haible  <bruno@clisp.org>
43980
43981         Make fflush-after-ungetc POSIX compliant on glibc systems.
43982         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
43983         after ungetc.
43984         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
43985         (rpl_fflush): On glibc systems, simply call the system's fflush
43986         function after clearing the ungetc buffer.
43987         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
43988         Instead, lseek only to the end of file, then use the system's fseeko
43989         for the rest. On glibc systems, reset the EOF indicator bit.
43990
43991 2009-01-15  Jim Meyering  <meyering@redhat.com>
43992
43993         openmp.m4: revert quote-adding change, for portability to older autoconf
43994         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
43995         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
43996         Simon Josefsson noticed the problem when using autoconf-2.61.
43997
43998 2009-01-15  Bruno Haible  <bruno@clisp.org>
43999
44000         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
44001         * tests/test-fflush2.c (ASSERT): Always fail.
44002         (main): Add two tests for fflush() after ungetc(), taking into account
44003         the Austin Group's clarification.
44004         Suggested by Eric Blake.
44005
44006 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
44007
44008         mktime.m4: remove K&R-style function prototypes
44009         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
44010         for the Sun C++ compiler.
44011
44012 2009-01-14  Bruno Haible  <bruno@clisp.org>
44013
44014         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
44015         while including <wchar.h>.
44016         * lib/wchar.in.h: In two particular situations on HP-UX, include only
44017         the system's <wchar.h> file.
44018         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44019
44020 2009-01-14  Bruno Haible  <bruno@clisp.org>
44021
44022         * m4/csharp.m4: Don't mention gettext on the serial number line.
44023         * m4/csharpexec.m4: Likewise.
44024         * m4/eaccess.m4: Likewise.
44025         * m4/javaexec.m4: Likewise.
44026         * m4/sig_atomic_t.m4: Likewise.
44027         * m4/tmpdir.m4: Likewise.
44028         * m4/intldir.m4: Bump gettext version.
44029         * m4/lib-ld.m4: Likewise.
44030
44031 2009-01-14  Bruno Haible  <bruno@clisp.org>
44032
44033         * lib/progname.c (set_program_name): Add more comments.
44034         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
44035
44036 2009-01-14  Simon Josefsson  <simon@josefsson.org>
44037
44038         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
44039         were sys/stat.h does not define it.
44040
44041 2009-01-14  Jim Meyering  <meyering@redhat.com>
44042
44043         many *.m4 files: improve m4 quoting
44044         99% of this change was performed by running the following commands:
44045         git ls-files | grep '\.m4$' | xargs perl -pi \
44046           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
44047           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
44048           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
44049           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
44050         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
44051         The remainder were to add Copyright dates, increment serial numbers,
44052         undo some changes in comments, exclude m4/intl.m4, and add quotes
44053         around the "1" in ",1" where the unusual spacing prohibited the
44054         above regexps from doing the job.  For more details, see
44055         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
44056         * m4/acl.m4: Modified.
44057         * m4/afs.m4: Likewise.
44058         * m4/alloca.m4: Likewise.
44059         * m4/argp.m4: Likewise.
44060         * m4/argz.m4: Likewise.
44061         * m4/atexit.m4: Likewise.
44062         * m4/bison-i18n.m4: Likewise.
44063         * m4/bison.m4: Likewise.
44064         * m4/byteswap.m4: Likewise.
44065         * m4/c-stack.m4: Likewise.
44066         * m4/c-strtod.m4: Likewise.
44067         * m4/calloc.m4: Likewise.
44068         * m4/canonicalize-lgpl.m4: Likewise.
44069         * m4/chown.m4: Likewise.
44070         * m4/clock_time.m4: Likewise.
44071         * m4/codeset.m4: Likewise.
44072         * m4/copy-file.m4: Likewise.
44073         * m4/csharp.m4: Likewise.
44074         * m4/csharpcomp.m4: Likewise.
44075         * m4/csharpexec.m4: Likewise.
44076         * m4/d-ino.m4: Likewise.
44077         * m4/d-type.m4: Likewise.
44078         * m4/dirfd.m4: Likewise.
44079         * m4/double-slash-root.m4: Likewise.
44080         * m4/eaccess.m4: Likewise.
44081         * m4/eealloc.m4: Likewise.
44082         * m4/environ.m4: Likewise.
44083         * m4/errno_h.m4: Likewise.
44084         * m4/euidaccess.m4: Likewise.
44085         * m4/execute.m4: Likewise.
44086         * m4/fatal-signal.m4: Likewise.
44087         * m4/fchdir.m4: Likewise.
44088         * m4/fcntl_h.m4: Likewise.
44089         * m4/fileblocks.m4: Likewise.
44090         * m4/filenamecat.m4: Likewise.
44091         * m4/findprog.m4: Likewise.
44092         * m4/flexmember.m4: Likewise.
44093         * m4/fnmatch.m4: Likewise.
44094         * m4/fopen.m4: Likewise.
44095         * m4/fpending.m4: Likewise.
44096         * m4/fprintf-posix.m4: Likewise.
44097         * m4/free.m4: Likewise.
44098         * m4/frexp.m4: Likewise.
44099         * m4/frexpl.m4: Likewise.
44100         * m4/fsusage.m4: Likewise.
44101         * m4/ftruncate.m4: Likewise.
44102         * m4/gc-camellia.m4: Likewise.
44103         * m4/gc-random.m4: Likewise.
44104         * m4/gc.m4: Likewise.
44105         * m4/getaddrinfo.m4: Likewise.
44106         * m4/getcwd-abort-bug.m4: Likewise.
44107         * m4/getcwd-path-max.m4: Likewise.
44108         * m4/getdate.m4: Likewise.
44109         * m4/getdomainname.m4: Likewise.
44110         * m4/getgroups.m4: Likewise.
44111         * m4/gethostname.m4: Likewise.
44112         * m4/gethrxtime.m4: Likewise.
44113         * m4/getline.m4: Likewise.
44114         * m4/getloadavg.m4: Likewise.
44115         * m4/getndelim2.m4: Likewise.
44116         * m4/getpass.m4: Likewise.
44117         * m4/gettext.m4: Likewise.
44118         * m4/gettime.m4: Likewise.
44119         * m4/gettimeofday.m4: Likewise.
44120         * m4/gnulib-common.m4: Likewise.
44121         * m4/group-member.m4: Likewise.
44122         * m4/host-os.m4: Likewise.
44123         * m4/iconv.m4: Likewise.
44124         * m4/iconv_open.m4: Likewise.
44125         * m4/inet_ntop.m4: Likewise.
44126         * m4/inet_pton.m4: Likewise.
44127         * m4/inline.m4: Likewise.
44128         * m4/intldir.m4: Likewise.
44129         * m4/intlmacosx.m4: Likewise.
44130         * m4/intmax.m4: Likewise.
44131         * m4/intmax_t.m4: Likewise.
44132         * m4/inttypes.m4: Likewise.
44133         * m4/inttypes_h.m4: Likewise.
44134         * m4/inttypes-pri.m4: Likewise.
44135         * m4/isapipe.m4: Likewise.
44136         * m4/isnand.m4: Likewise.
44137         * m4/isnanf.m4: Likewise.
44138         * m4/isnanl.m4: Likewise.
44139         * m4/javacomp.m4: Likewise.
44140         * m4/javaexec.m4: Likewise.
44141         * m4/jm-winsz1.m4: Likewise.
44142         * m4/jm-winsz2.m4: Likewise.
44143         * m4/lchown.m4: Likewise.
44144         * m4/lcmessage.m4: Likewise.
44145         * m4/ldexpl.m4: Likewise.
44146         * m4/lib-ld.m4: Likewise.
44147         * m4/lib-link.m4: Likewise.
44148         * m4/libsigsegv.m4: Likewise.
44149         * m4/link-follow.m4: Likewise.
44150         * m4/localcharset.m4: Likewise.
44151         * m4/locale-fr.m4: Likewise.
44152         * m4/locale-ja.m4: Likewise.
44153         * m4/locale-tr.m4: Likewise.
44154         * m4/locale-zh.m4: Likewise.
44155         * m4/lock.m4: Likewise.
44156         * m4/longlong.m4: Likewise.
44157         * m4/ls-mntd-fs.m4: Likewise.
44158         * m4/lstat.m4: Likewise.
44159         * m4/malloc.m4: Likewise.
44160         * m4/mathl.m4: Likewise.
44161         * m4/mbrtowc.m4: Likewise.
44162         * m4/mbstate_t.m4: Likewise.
44163         * m4/mbswidth.m4: Likewise.
44164         * m4/memchr.m4: Likewise.
44165         * m4/memcmp.m4: Likewise.
44166         * m4/memcpy.m4: Likewise.
44167         * m4/memmem.m4: Likewise.
44168         * m4/memmove.m4: Likewise.
44169         * m4/mempcpy.m4: Likewise.
44170         * m4/memrchr.m4: Likewise.
44171         * m4/memset.m4: Likewise.
44172         * m4/minmax.m4: Likewise.
44173         * m4/mkdir-slash.m4: Likewise.
44174         * m4/mkdtemp.m4: Likewise.
44175         * m4/mktime.m4: Likewise.
44176         * m4/mmap-anon.m4: Likewise.
44177         * m4/mountlist.m4: Likewise.
44178         * m4/nanosleep.m4: Likewise.
44179         * m4/nls.m4: Likewise.
44180         * m4/nocrash.m4: Likewise.
44181         * m4/open.m4: Likewise.
44182         * m4/openat.m4: Likewise.
44183         * m4/openmp.m4: Likewise.
44184         * m4/pathmax.m4: Likewise.
44185         * m4/perl.m4: Likewise.
44186         * m4/physmem.m4: Likewise.
44187         * m4/pipe.m4: Likewise.
44188         * m4/po.m4: Likewise.
44189         * m4/poll.m4: Likewise.
44190         * m4/posixtm.m4: Likewise.
44191         * m4/posixver.m4: Likewise.
44192         * m4/printf-frexp.m4: Likewise.
44193         * m4/printf-frexpl.m4: Likewise.
44194         * m4/printf-posix.m4: Likewise.
44195         * m4/printf-posix-rpl.m4: Likewise.
44196         * m4/printf.m4: Likewise.
44197         * m4/progtest.m4: Likewise.
44198         * m4/putenv.m4: Likewise.
44199         * m4/readline.m4: Likewise.
44200         * m4/readlink.m4: Likewise.
44201         * m4/readutmp.m4: Likewise.
44202         * m4/realloc.m4: Likewise.
44203         * m4/regex.m4: Likewise.
44204         * m4/relocatable.m4: Likewise.
44205         * m4/relocatable-lib.m4: Likewise.
44206         * m4/rename-dest-slash.m4: Likewise.
44207         * m4/rename.m4: Likewise.
44208         * m4/rmdir-errno.m4: Likewise.
44209         * m4/rmdir.m4: Likewise.
44210         * m4/roundf.m4: Likewise.
44211         * m4/roundl.m4: Likewise.
44212         * m4/rpmatch.m4: Likewise.
44213         * m4/save-cwd.m4: Likewise.
44214         * m4/selinux-selinux-h.m4: Likewise.
44215         * m4/setenv.m4: Likewise.
44216         * m4/settime.m4: Likewise.
44217         * m4/sig2str.m4: Likewise.
44218         * m4/sig_atomic_t.m4: Likewise.
44219         * m4/signalblocking.m4: Likewise.
44220         * m4/signbit.m4: Likewise.
44221         * m4/sigpipe.m4: Likewise.
44222         * m4/sockets.m4: Likewise.
44223         * m4/sockpfaf.m4: Likewise.
44224         * m4/st_dm_mode.m4: Likewise.
44225         * m4/stat-time.m4: Likewise.
44226         * m4/stdbool.m4: Likewise.
44227         * m4/stdint.m4: Likewise.
44228         * m4/stdint_h.m4: Likewise.
44229         * m4/stpcpy.m4: Likewise.
44230         * m4/stpncpy.m4: Likewise.
44231         * m4/strcase.m4: Likewise.
44232         * m4/strchrnul.m4: Likewise.
44233         * m4/strcspn.m4: Likewise.
44234         * m4/strdup.m4: Likewise.
44235         * m4/strftime.m4: Likewise.
44236         * m4/strndup.m4: Likewise.
44237         * m4/strnlen.m4: Likewise.
44238         * m4/strpbrk.m4: Likewise.
44239         * m4/strptime.m4: Likewise.
44240         * m4/strsep.m4: Likewise.
44241         * m4/strtod.m4: Likewise.
44242         * m4/strtoimax.m4: Likewise.
44243         * m4/strtok_r.m4: Likewise.
44244         * m4/strtol.m4: Likewise.
44245         * m4/strtoll.m4: Likewise.
44246         * m4/strtoul.m4: Likewise.
44247         * m4/strtoull.m4: Likewise.
44248         * m4/strtoumax.m4: Likewise.
44249         * m4/strverscmp.m4: Likewise.
44250         * m4/threadlib.m4: Likewise.
44251         * m4/timegm.m4: Likewise.
44252         * m4/tm_gmtoff.m4: Likewise.
44253         * m4/tmpdir.m4: Likewise.
44254         * m4/tmpfile.m4: Likewise.
44255         * m4/tzset.m4: Likewise.
44256         * m4/uintmax_t.m4: Likewise.
44257         * m4/unlinkdir.m4: Likewise.
44258         * m4/unlocked-io.m4: Likewise.
44259         * m4/uptime.m4: Likewise.
44260         * m4/userspec.m4: Likewise.
44261         * m4/utimbuf.m4: Likewise.
44262         * m4/utime.m4: Likewise.
44263         * m4/utimes-null.m4: Likewise.
44264         * m4/utimes.m4: Likewise.
44265         * m4/vararrays.m4: Likewise.
44266         * m4/vasnprintf.m4: Likewise.
44267         * m4/vfprintf-posix.m4: Likewise.
44268         * m4/vprintf-posix.m4: Likewise.
44269         * m4/wait-process.m4: Likewise.
44270         * m4/wchar_t.m4: Likewise.
44271         * m4/wint_t.m4: Likewise.
44272         * m4/write-any-file.m4: Likewise.
44273         * m4/yield.m4: Likewise.
44274
44275 2009-01-13  Bruno Haible  <bruno@clisp.org>
44276
44277         Avoid test-copy-file.sh failures when ACL support insufficient.
44278         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
44279         TESTS_ENVIRONMENT.
44280         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
44281         Reported by Jim Meyering.
44282
44283 2009-01-13  Bruno Haible  <bruno@clisp.org>
44284
44285         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
44286         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
44287         * modules/unistdio/u8-printf-parse (Files): Likewise.
44288         * modules/unistdio/u32-printf-parse (Files): Likewise.
44289         * modules/unistdio/ulc-printf-parse (Files): Likewise.
44290
44291 2009-01-13  Simon Josefsson  <simon@josefsson.org>
44292
44293         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
44294         and m4/inttypes_h.m4 too.
44295
44296 2009-01-12  Eric Blake  <ebb9@byu.net>
44297
44298         tests: IRIX 6.2 cc can't compile -0.0 into .data
44299         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
44300         rather than at compile-time.
44301         * tests/test-floorl.c (minus_zero): Likewise.
44302         * tests/test-frexpl.c (minus_zero): Likewise.
44303         * tests/test-isnan.c (minus_zerol): Likewise.
44304         * tests/test-isnanl.h (minus_zero): Likewise.
44305         * tests/test-ldexpl.c (minus_zero): Likewise.
44306         * tests/test-roundl.c (minus_zero): Likewise.
44307         * tests/test-signbit.c (minus_zerol): Likewise.
44308         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
44309         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
44310         * tests/test-truncl.c (minus_zero): Likewise.
44311         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
44312         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
44313         Reported by Tom G. Christensen and Nelson H. F. Beebe.
44314
44315 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44316
44317         regex: fix glibc bug 9697
44318         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
44319         handling.
44320
44321 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44322
44323         regex: fix glibc bug 697
44324         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
44325         being NULL also if there are no backreferences.
44326
44327 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44328
44329         regex: merge glibc changes
44330         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
44331         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
44332         re_string_skip_chars, re_string_reconstruct): Likewise.
44333         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
44334
44335 2009-01-07  Jim Meyering  <meyering@redhat.com>
44336
44337         poll: filter through cppi
44338         * lib/poll.c: Indent cpp directives to reflect nesting.
44339
44340 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
44341
44342         poll: don't return uninitialized
44343         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
44344
44345 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
44346
44347         avoid compile failure on AIX 6.1
44348         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
44349         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
44350
44351 2009-01-04  Jim Meyering  <meyering@redhat.com>
44352
44353         remove duplicate inclusion of <stdio.h>
44354         * tests/test-fprintf-posix.c: Likewise.
44355         * tests/test-printf-posix.c: Likewise.
44356         * tests/test-snprintf-posix.c: Likewise.
44357         * tests/test-sprintf-posix.c: Likewise.
44358         * tests/test-vasprintf-posix.c: Likewise.
44359         * tests/test-vfprintf-posix.c: Likewise.
44360         * tests/test-vprintf-posix.c: Likewise.
44361         * tests/test-vsnprintf-posix.c: Likewise.
44362         * tests/test-vsprintf-posix.c: Likewise.
44363
44364 2009-01-03  Jim Meyering  <meyering@redhat.com>
44365
44366         gnulib-tool: fix sed-based filtering
44367         * gnulib-tool (func_filter_filelist): Remove extra backslash
44368         in sed_fff_filter definition.
44369
44370 2009-01-02  Jim Meyering  <meyering@redhat.com>
44371
44372         strftime: avoid compilation failure on Solaris 2.6
44373         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
44374         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
44375         Don't #define mbrlen or mbsinit, since now they're guaranteed to
44376         be available.  Reported by Tom G. Christensen.  Details in
44377         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
44378
44379 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44380             Bruno Haible  <bruno@clisp.org>
44381
44382         Speed up gnulib-tool by doing more string processing through shell
44383         built-ins.
44384         * gnulib-tool (fast_func_append): New variable.
44385         (func_remove_prefix, func_remove_suffix): New functions.
44386         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
44387         (func_filter_filelist): New function.
44388         (func_get_dependencies): Use func_remove_suffix instead of sed.
44389         (func_get_automake_snippet): Use func_filter_filelist instead of a
44390         subshell and sed invocation.
44391
44392 2009-01-01  Bruno Haible  <bruno@clisp.org>
44393
44394         Fix a security bug.
44395         * gnulib-tool (func_import, import, update): Don't allow the characters
44396         '"', '$', '`', '\' in macro arguments that become part of commands that
44397         are evaluated.
44398
44399 2009-01-01  Bruno Haible  <bruno@clisp.org>
44400
44401         * gnulib-tool (func_reset_sigpipe): Add more comments.
44402
44403 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44404
44405         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
44406         func_emit_tests_Makefile_am, func_import): Abort loops early if we
44407         already know the answer.
44408
44409 2009-01-01  Jim Meyering  <meyering@redhat.com>
44410
44411         * lib/version-etc.c (version_etc_va): Update copyright year.
44412
44413 2008-12-30  Bruno Haible  <bruno@clisp.org>
44414
44415         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
44416         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
44417         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
44418
44419 2008-12-29  Eric Blake  <ebb9@byu.net>
44420
44421         multiarch: avoid autoconf AC_REQUIRE bug
44422         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
44423         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
44424         2.63 and older.
44425         Reported by Bruno Haible, and analyzed in
44426         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
44427
44428 2008-12-29  Bruno Haible  <bruno@clisp.org>
44429
44430         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
44431         files in subdirectories correctly.
44432         Reported by Ralf Wildenhues.
44433
44434 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44435
44436         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
44437         rather than 'join FILE -', for Solaris join.
44438
44439 2008-12-29  Bruno Haible  <bruno@clisp.org>
44440
44441         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
44442         quoting.
44443         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
44444         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
44445         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
44446         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
44447         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
44448         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
44449         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
44450         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
44451         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44452         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
44453         * m4/nls.m4 (AM_NLS): Likewise.
44454         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
44455         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
44456         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
44457         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
44458         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
44459         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
44460         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
44461         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
44462         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
44463         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
44464         * m4/xsize.m4 (gl_XSIZE): Likewise.
44465         Suggested by Jim Meyering.
44466
44467 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44468
44469         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
44470         * lib/parse-duration.c: use a switch instead of cascading if's.
44471
44472 2008-12-29  Eric Blake  <ebb9@byu.net>
44473
44474         wchar.h: supply WEOF on Irix 5.3
44475         * lib/wchar.in.h (wint_t): Also supply WEOF.
44476         * lib/wctype.in.h (wint_t): Likewise.
44477         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
44478         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
44479         Reported by Tom G. Christensen.
44480
44481 2008-12-26  Bruno Haible  <bruno@clisp.org>
44482
44483         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
44484         i486, i586, i686.
44485
44486 2008-12-26  Bruno Haible  <bruno@clisp.org>
44487
44488         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
44489
44490 2008-12-26  Bruno Haible  <bruno@clisp.org>
44491
44492         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
44493         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
44494         not __STDC_CONSTANT_MACROS.
44495         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
44496
44497 2008-12-25  Bruno Haible  <bruno@clisp.org>
44498
44499         Add support for universal builds to vasnprintf.
44500         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
44501         universal builds, guess no.
44502         * modules/vasnprintf-posix (Depends-on): Add multiarch.
44503         * modules/vasprintf-posix (Depends-on): Likewise.
44504         * modules/fprintf-posix (Depends-on): Likewise.
44505         * modules/vfprintf-posix (Depends-on): Likewise.
44506         * modules/snprintf-posix (Depends-on): Likewise.
44507         * modules/vsnprintf-posix (Depends-on): Likewise.
44508         * modules/sprintf-posix (Depends-on): Likewise.
44509         * modules/vsprintf-posix (Depends-on): Likewise.
44510         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44511         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44512         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44513         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44514         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44515         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44516         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44517
44518         Add support for universal builds to <inttypes.h>.
44519         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
44520         _SCNu64_PREFIX): In Apple
44521         universal builds, define directly, using _LP64.
44522         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
44523         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
44524         * modules/inttypes (Depends-on): Add multiarch.
44525         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44526
44527         Add support for universal builds to <stdint.h>.
44528         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
44529         universal builds, define directly, using _LP64.
44530         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
44531         Apple universal builds, don't test for the size and suffix of ptrdiff_t
44532         and size_t.
44533         * modules/stdint (Depends-on): Add multiarch.
44534         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44535
44536         New module 'multiarch'.
44537         * modules/multiarch: New file.
44538         * m4/multiarch.m4: New file.
44539
44540 2008-12-25  Bruno Haible  <bruno@clisp.org>
44541
44542         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
44543
44544 2008-12-25  Bruno Haible  <bruno@clisp.org>
44545
44546         * modules/btowc (License): Relicense under LGPLv2+.
44547         * modules/mbsinit (License): Likewise.
44548         * modules/mbrtowc (License): Likewise.
44549         * modules/wcrtomb (License): Likewise.
44550         * modules/streq (License): Likewise.
44551         Reported by David Lutterkort <lutter@redhat.com>.
44552
44553 2008-12-23  Bruno Haible  <bruno@clisp.org>
44554
44555         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
44556
44557 2008-12-23  Bruno Haible  <bruno@clisp.org>
44558
44559         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
44560         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
44561         GETADDRINFO_LIB, not in LIBS.
44562         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
44563         * modules/canon-host (Link): Likewise.
44564         * NEWS: Mention the change.
44565         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
44566         GETADDRINFO_LIB.
44567
44568 2008-12-22  Bruno Haible  <bruno@clisp.org>
44569
44570         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
44571         * doc/posix-functions/iswalpha_l.texi: Likewise.
44572         * doc/posix-functions/iswblank_l.texi: Likewise.
44573         * doc/posix-functions/iswcntrl_l.texi: Likewise.
44574         * doc/posix-functions/iswctype_l.texi: Likewise.
44575         * doc/posix-functions/iswdigit_l.texi: Likewise.
44576         * doc/posix-functions/iswgraph_l.texi: Likewise.
44577         * doc/posix-functions/iswlower_l.texi: Likewise.
44578         * doc/posix-functions/iswprint_l.texi: Likewise.
44579         * doc/posix-functions/iswpunct_l.texi: Likewise.
44580         * doc/posix-functions/iswspace_l.texi: Likewise.
44581         * doc/posix-functions/iswupper_l.texi: Likewise.
44582         * doc/posix-functions/iswxdigit_l.texi: Likewise.
44583         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
44584         * doc/posix-functions/open_wmemstream.texi: Likewise.
44585         * doc/posix-functions/swscanf.texi: Likewise.
44586         * doc/posix-functions/towctrans_l.texi: Likewise.
44587         * doc/posix-functions/towlower.texi: Likewise.
44588         * doc/posix-functions/towlower_l.texi: Likewise.
44589         * doc/posix-functions/towupper.texi: Likewise.
44590         * doc/posix-functions/towupper_l.texi: Likewise.
44591         * doc/posix-functions/vfwprintf.texi: Likewise.
44592         * doc/posix-functions/vfwscanf.texi: Likewise.
44593         * doc/posix-functions/vswscanf.texi: Likewise.
44594         * doc/posix-functions/vwprintf.texi: Likewise.
44595         * doc/posix-functions/vwscanf.texi: Likewise.
44596         * doc/posix-functions/wcpcpy.texi: Likewise.
44597         * doc/posix-functions/wcpncpy.texi: Likewise.
44598         * doc/posix-functions/wcscasecmp.texi: Likewise.
44599         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
44600         * doc/posix-functions/wcscoll_l.texi: Likewise.
44601         * doc/posix-functions/wcsdup.texi: Likewise.
44602         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44603         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
44604         * doc/posix-functions/wcsnlen.texi: Likewise.
44605         * doc/posix-functions/wcsnrtombs.texi: Likewise.
44606         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
44607         * doc/posix-functions/wctrans_l.texi: Likewise.
44608         * doc/posix-functions/wctype_l.texi: Likewise.
44609         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
44610         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
44611         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
44612         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
44613         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
44614         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
44615         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
44616         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
44617         * doc/glibc-functions/wcschrnul.texi: Likewise.
44618         * doc/glibc-functions/wcsftime_l.texi: Likewise.
44619         * doc/glibc-functions/wcstod_l.texi: Likewise.
44620         * doc/glibc-functions/wcstof_l.texi: Likewise.
44621         * doc/glibc-functions/wcstol_l.texi: Likewise.
44622         * doc/glibc-functions/wcstold_l.texi: Likewise.
44623         * doc/glibc-functions/wcstoll_l.texi: Likewise.
44624         * doc/glibc-functions/wcstoq.texi: Likewise.
44625         * doc/glibc-functions/wcstoul_l.texi: Likewise.
44626         * doc/glibc-functions/wcstoull_l.texi: Likewise.
44627         * doc/glibc-functions/wcstouq.texi: Likewise.
44628         * doc/glibc-functions/wmempcpy.texi: Likewise.
44629
44630 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
44631             Eric Blake  <ebb9@byu.net>
44632             Paolo Bonzini  <bonzini@gnu.org>
44633             Bruno Haible  <bruno@clisp.org>
44634
44635         Make c-stack work on Haiku.
44636         * lib/c-stack.c (SA_ONSTACK): Define fallback.
44637         (c_stack_action): Use SA_ONSTACK flag.
44638
44639 2008-12-22  Bruno Haible  <bruno@clisp.org>
44640
44641         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
44642
44643 2008-12-22  Bruno Haible  <bruno@clisp.org>
44644
44645         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
44646         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
44647         being overridden.
44648         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
44649         New macros.
44650         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
44651         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
44652         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
44653         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
44654
44655 2008-12-22  Bruno Haible  <bruno@clisp.org>
44656
44657         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
44658         from test code.
44659
44660 2008-12-22  Eric Blake  <ebb9@byu.net>
44661
44662         Avoid gcc warnings on cygwin.
44663         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
44664         Avoid unused variable.
44665         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
44666         Likewise.
44667
44668 2008-12-22  Bruno Haible  <bruno@clisp.org>
44669
44670         Remove HAVE_MBRTOWC conditionals.
44671         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
44672         (mbscasecmp): Assume mbrtowc function.
44673         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
44674         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
44675         * lib/mbschr.c: Include mbuiter.h unconditionally.
44676         (mbschr): Assume mbrtowc function.
44677         * lib/mbscspn.c: Include mbuiter.h unconditionally.
44678         (mbscspn): Assume mbrtowc function.
44679         * lib/mbslen.c: Include mbuiter.h unconditionally.
44680         (mbslen): Assume mbrtowc function.
44681         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
44682         (mbsncasecmp): Assume mbrtowc function.
44683         * lib/mbsnlen.c: Include mbiter.h unconditionally.
44684         (mbsnlen): Assume mbrtowc function.
44685         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
44686         (mbspbrk): Assume mbrtowc function.
44687         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
44688         (mbspcasecmp): Assume mbrtowc function.
44689         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
44690         (mbsrchr): Assume mbrtowc function.
44691         * lib/mbssep.c: Include mbuiter.h unconditionally.
44692         (mbssep): Assume mbrtowc function.
44693         * lib/mbsspn.c: Include mbuiter.h unconditionally.
44694         (mbsspn): Assume mbrtowc function.
44695         * lib/mbsstr.c: Include mbuiter.h unconditionally.
44696         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
44697         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
44698         (mbstok_r): Assume mbrtowc function.
44699         * lib/propername.c: Include mbuiter.h unconditionally.
44700         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
44701         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
44702         (trim2): Assume mbrtowc function.
44703         * lib/mbswidth.c (mbsinit): Remove fallback definition.
44704         (mbsnwidth): Assume mbrtowc function.
44705         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
44706         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
44707         fallback definitions.
44708         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
44709
44710 2008-12-22  Bruno Haible  <bruno@clisp.org>
44711
44712         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
44713
44714 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
44715
44716         * modules/regex: Request emulations for the mb*/wc* functions we need.
44717         * m4/regex.m4: Don't look for those functions here.
44718         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
44719
44720 2008-12-22  Bruno Haible  <bruno@clisp.org>
44721
44722         * modules/fnmatch (Depends-on): Remove duplicated dependency.
44723
44724 2008-12-21  Bruno Haible  <bruno@clisp.org>
44725
44726         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
44727         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
44728         (Include): Remove conditionalization.
44729         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
44730         (Include): Remove conditionalization.
44731         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
44732         (Include): Remove conditionalization.
44733         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
44734         * m4/mbfile.m4 (gl_MBFILE): Likewise.
44735         * NEWS: Mention the change.
44736         Reported by Alan Hourihane <alanh@fairlite.co.uk>
44737         via Sergey Poznyakoff <gray@gnu.org.ua>.
44738
44739 2008-12-21  Bruno Haible  <bruno@clisp.org>
44740
44741         * MODULES.html.sh (Extended multibyte and wide character utilities
44742         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
44743         wcrtomb, wcsrtombs.
44744         (Support for systems lacking POSIX:2008): Add accept, bind, close,
44745         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
44746         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
44747         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
44748
44749 2008-12-21  Bruno Haible  <bruno@clisp.org>
44750
44751         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
44752
44753 2008-12-21  Bruno Haible  <bruno@clisp.org>
44754
44755         * modules/wcsnrtombs-tests: New file.
44756         * tests/test-wcsnrtombs1.sh: New file.
44757         * tests/test-wcsnrtombs2.sh: New file.
44758         * tests/test-wcsnrtombs3.sh: New file.
44759         * tests/test-wcsnrtombs4.sh: New file.
44760         * tests/test-wcsnrtombs.c: New file.
44761
44762         New module 'wcsnrtombs'.
44763         * lib/wchar.in.h (wcsnrtombs): New declaration.
44764         * lib/wcsnrtombs.c: New file.
44765         * lib/wcsrtombs-state.c: New file.
44766         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
44767         (internal_state): Remove variable.
44768         * m4/wcsnrtombs.m4: New file.
44769         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
44770         compilation units.
44771         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
44772         HAVE_WCSNRTOMBS.
44773         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
44774         HAVE_WCSNRTOMBS.
44775         * modules/wcsnrtombs: New file.
44776         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
44777         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
44778
44779 2008-12-21  Bruno Haible  <bruno@clisp.org>
44780
44781         * modules/wcsrtombs-tests: New file.
44782         * tests/test-wcsrtombs1.sh: New file.
44783         * tests/test-wcsrtombs2.sh: New file.
44784         * tests/test-wcsrtombs3.sh: New file.
44785         * tests/test-wcsrtombs4.sh: New file.
44786         * tests/test-wcsrtombs.c: New file.
44787
44788         New module 'wcsrtombs'.
44789         * lib/wchar.in.h (wcsrtombs): New declaration.
44790         * lib/wcsrtombs.c: New file.
44791         * m4/wcsrtombs.m4: New file.
44792         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
44793         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44794         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
44795         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44796         * modules/wcsrtombs: New file.
44797         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
44798         bugs.
44799
44800 2008-12-21  Bruno Haible  <bruno@clisp.org>
44801
44802         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
44803         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
44804         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
44805         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
44806         if not correct.
44807         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
44808         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
44809         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44810         m4/locale-zh.m4, m4/codeset.m4.
44811         * doc/posix-functions/wcrtomb.texi: Document the bug.
44812
44813 2008-12-21  Bruno Haible  <bruno@clisp.org>
44814
44815         Work around a btowc() bug on IRIX 6.5.
44816         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
44817         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
44818         REPLACE_WTOBC if not.
44819         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
44820         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
44821         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
44822
44823 2008-12-21  Bruno Haible  <bruno@clisp.org>
44824
44825         * modules/wcrtomb-tests: New file.
44826         * tests/test-wcrtomb.sh: New file.
44827         * tests/test-wcrtomb.c: New file.
44828
44829         New module 'wcrtomb'.
44830         * lib/wchar.in.h (wcrtomb): New declaration.
44831         * lib/wcrtomb.c: New file.
44832         * m4/wcrtomb.m4: New file.
44833         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
44834         HAVE_WCRTOMB.
44835         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
44836         HAVE_WCRTOMB.
44837         * modules/wcrtomb: New file.
44838         * doc/posix-functions/wcrtomb.texi: Mention the new module.
44839
44840 2008-12-21  Bruno Haible  <bruno@clisp.org>
44841
44842         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
44843         * modules/mbsrtowcs (Files): Likewise.
44844         * modules/wctob (Files): Likewise.
44845         * modules/c-strcase-tests (Files): Likewise.
44846         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
44847         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
44848         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
44849         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
44850         * modules/vasnprintf-posix-tests (Files): Likewise.
44851
44852 2008-12-21  William Pursell  <bill.pursell@gmail.com>
44853
44854         gitlog-to-changelog: pass all command-line arguments to git-log
44855         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
44856         it is sometimes convenient to filter the commits in various ways.
44857         gitlog-to-changelog only allows --since to specify a start date,
44858         but git-log itself supports many other filtering mechanisms.
44859         At the moment, I want to filter by branch name.  Rather than
44860         adding a --branch option to gitlog-to-changelog, it seems more
44861         flexible to simply pass all options directly to git-log and let
44862         git do the work.  Notice that this effectively makes --since a
44863         redundant option for gitlog-to-changelog, but removing it would
44864         require current usage to change since calls would then require
44865         an additional '--'.
44866
44867 2008-12-21  Bruno Haible  <bruno@clisp.org>
44868
44869         * modules/mbsnrtowcs-tests: New file.
44870         * tests/test-mbsnrtowcs1.sh: New file.
44871         * tests/test-mbsnrtowcs2.sh: New file.
44872         * tests/test-mbsnrtowcs3.sh: New file.
44873         * tests/test-mbsnrtowcs4.sh: New file.
44874         * tests/test-mbsnrtowcs.c: New file.
44875
44876         New module 'mbsnrtowcs'.
44877         * lib/wchar.in.h (mbsnrtowcs): New declaration.
44878         * lib/mbsnrtowcs.c: New file.
44879         * lib/mbsrtowcs-state.c: New file.
44880         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
44881         (internal_state): Remove variable.
44882         * m4/mbsnrtowcs.m4: New file.
44883         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
44884         compilation units.
44885         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
44886         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44887         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
44888         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44889         * modules/mbsnrtowcs: New file.
44890         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
44891         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
44892         portability problem.
44893
44894 2008-12-21  Bruno Haible  <bruno@clisp.org>
44895
44896         Work around mbsrtowcs bug.
44897         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
44898         (gl_FUNC_MBSRTOWCS): Invoke it.
44899         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44900         m4/locale-zh.m4.
44901         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
44902
44903 2008-12-21  Bruno Haible  <bruno@clisp.org>
44904
44905         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
44906
44907 2008-12-21  Bruno Haible  <bruno@clisp.org>
44908
44909         Update doc for AIX.
44910         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
44911         16-bit wchar_t type.
44912         * doc/posix-functions/btowc.texi: Likewise.
44913         * doc/posix-functions/fgetwc.texi: Likewise.
44914         * doc/posix-functions/fgetws.texi: Likewise.
44915         * doc/posix-functions/fputwc.texi: Likewise.
44916         * doc/posix-functions/fputws.texi: Likewise.
44917         * doc/posix-functions/fwide.texi: Likewise.
44918         * doc/posix-functions/fwprintf.texi: Likewise.
44919         * doc/posix-functions/fwscanf.texi: Likewise.
44920         * doc/posix-functions/getwchar.texi: Likewise.
44921         * doc/posix-functions/getwc.texi: Likewise.
44922         * doc/posix-functions/iswalnum.texi: Likewise.
44923         * doc/posix-functions/iswalpha.texi: Likewise.
44924         * doc/posix-functions/iswblank.texi: Likewise.
44925         * doc/posix-functions/iswcntrl.texi: Likewise.
44926         * doc/posix-functions/iswctype.texi: Likewise.
44927         * doc/posix-functions/iswdigit.texi: Likewise.
44928         * doc/posix-functions/iswgraph.texi: Likewise.
44929         * doc/posix-functions/iswlower.texi: Likewise.
44930         * doc/posix-functions/iswprint.texi: Likewise.
44931         * doc/posix-functions/iswpunct.texi: Likewise.
44932         * doc/posix-functions/iswspace.texi: Likewise.
44933         * doc/posix-functions/iswupper.texi: Likewise.
44934         * doc/posix-functions/iswxdigit.texi: Likewise.
44935         * doc/posix-functions/mbrtowc.texi: Likewise.
44936         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44937         * doc/posix-functions/mbstowcs.texi: Likewise.
44938         * doc/posix-functions/mbtowc.texi: Likewise.
44939         * doc/posix-functions/putwchar.texi: Likewise.
44940         * doc/posix-functions/putwc.texi: Likewise.
44941         * doc/posix-functions/swprintf.texi: Likewise.
44942         * doc/posix-functions/tolower.texi: Likewise.
44943         * doc/posix-functions/toupper.texi: Likewise.
44944         * doc/posix-functions/towctrans.texi: Likewise.
44945         * doc/posix-functions/ungetwc.texi: Likewise.
44946         * doc/posix-functions/vswprintf.texi: Likewise.
44947         * doc/posix-functions/wcrtomb.texi: Likewise.
44948         * doc/posix-functions/wcscat.texi: Likewise.
44949         * doc/posix-functions/wcschr.texi: Likewise.
44950         * doc/posix-functions/wcscmp.texi: Likewise.
44951         * doc/posix-functions/wcscoll.texi: Likewise.
44952         * doc/posix-functions/wcscpy.texi: Likewise.
44953         * doc/posix-functions/wcscspn.texi: Likewise.
44954         * doc/posix-functions/wcsftime.texi: Likewise.
44955         * doc/posix-functions/wcslen.texi: Likewise.
44956         * doc/posix-functions/wcsncat.texi: Likewise.
44957         * doc/posix-functions/wcsncmp.texi: Likewise.
44958         * doc/posix-functions/wcsncpy.texi: Likewise.
44959         * doc/posix-functions/wcspbrk.texi: Likewise.
44960         * doc/posix-functions/wcsrchr.texi: Likewise.
44961         * doc/posix-functions/wcsrtombs.texi: Likewise.
44962         * doc/posix-functions/wcsspn.texi: Likewise.
44963         * doc/posix-functions/wcsstr.texi: Likewise.
44964         * doc/posix-functions/wcstod.texi: Likewise.
44965         * doc/posix-functions/wcstof.texi: Likewise.
44966         * doc/posix-functions/wcstoimax.texi: Likewise.
44967         * doc/posix-functions/wcstok.texi: Likewise.
44968         * doc/posix-functions/wcstold.texi: Likewise.
44969         * doc/posix-functions/wcstoll.texi: Likewise.
44970         * doc/posix-functions/wcstol.texi: Likewise.
44971         * doc/posix-functions/wcstombs.texi: Likewise.
44972         * doc/posix-functions/wcstoull.texi: Likewise.
44973         * doc/posix-functions/wcstoul.texi: Likewise.
44974         * doc/posix-functions/wcstoumax.texi: Likewise.
44975         * doc/posix-functions/wcswidth.texi: Likewise.
44976         * doc/posix-functions/wcsxfrm.texi: Likewise.
44977         * doc/posix-functions/wctob.texi: Likewise.
44978         * doc/posix-functions/wctomb.texi: Likewise.
44979         * doc/posix-functions/wctrans.texi: Likewise.
44980         * doc/posix-functions/wctype.texi: Likewise.
44981         * doc/posix-functions/wcwidth.texi: Likewise.
44982         * doc/posix-functions/wmemchr.texi: Likewise.
44983         * doc/posix-functions/wmemcmp.texi: Likewise.
44984         * doc/posix-functions/wmemcpy.texi: Likewise.
44985         * doc/posix-functions/wmemmove.texi: Likewise.
44986         * doc/posix-functions/wmemset.texi: Likewise.
44987         * doc/posix-functions/wprintf.texi: Likewise.
44988         * doc/posix-functions/wscanf.texi: Likewise.
44989
44990 2008-12-21  Bruno Haible  <bruno@clisp.org>
44991
44992         Update doc for HP-UX 11.11.
44993         * doc/posix-functions/btowc.texi: Clarify that the function is missing
44994         in HP-UX version 11.00, not in all versions of HP-UX 11.
44995         * doc/posix-functions/fwide.texi: Likewise.
44996         * doc/posix-functions/fwprintf.texi: Likewise.
44997         * doc/posix-functions/fwscanf.texi: Likewise.
44998         * doc/posix-functions/inet_ntop.texi: Likewise.
44999         * doc/posix-functions/inet_pton.texi: Likewise.
45000         * doc/posix-functions/mbrlen.texi: Likewise.
45001         * doc/posix-functions/mbrtowc.texi: Likewise.
45002         * doc/posix-functions/mbsinit.texi: Likewise.
45003         * doc/posix-functions/mbsrtowcs.texi: Likewise.
45004         * doc/posix-functions/swprintf.texi: Likewise.
45005         * doc/posix-functions/swscanf.texi: Likewise.
45006         * doc/posix-functions/towctrans.texi: Likewise.
45007         * doc/posix-functions/vfwprintf.texi: Likewise.
45008         * doc/posix-functions/vswprintf.texi: Likewise.
45009         * doc/posix-functions/vwprintf.texi: Likewise.
45010         * doc/posix-functions/wcrtomb.texi: Likewise.
45011         * doc/posix-functions/wcsrtombs.texi: Likewise.
45012         * doc/posix-functions/wcsstr.texi: Likewise.
45013         * doc/posix-functions/wctob.texi: Likewise.
45014         * doc/posix-functions/wctrans.texi: Likewise.
45015         * doc/posix-functions/wmemchr.texi: Likewise.
45016         * doc/posix-functions/wmemcmp.texi: Likewise.
45017         * doc/posix-functions/wmemcpy.texi: Likewise.
45018         * doc/posix-functions/wmemmove.texi: Likewise.
45019         * doc/posix-functions/wmemset.texi: Likewise.
45020         * doc/posix-functions/wprintf.texi: Likewise.
45021         * doc/posix-functions/wscanf.texi: Likewise.
45022
45023 2008-12-21  Bruno Haible  <bruno@clisp.org>
45024
45025         Work around a portability problem.
45026         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
45027         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
45028
45029 2008-12-20  Bruno Haible  <bruno@clisp.org>
45030
45031         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
45032         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
45033         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
45034         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
45035         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
45036
45037         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
45038         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
45039         set.
45040         (GNULIB_defined_mbstate_t): New macro.
45041         (mbsinit): Redefine if REPLACE_MBSINIT is set.
45042         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
45043         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
45044         reuses the system's mbrtowc function but works around the bugs.
45045         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
45046         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
45047         macros.
45048         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
45049         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
45050         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
45051         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
45052         REPLACE_MBSINIT if mbsinit needs to be overridden.
45053         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
45054         REPLACE_MBSINIT, REPLACE_MBRTOWC.
45055         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
45056         REPLACE_MBSINIT, REPLACE_MBRTOWC.
45057         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45058         m4/locale-zh.m4.
45059         (Depends): Add mbsinit.
45060         * modules/mbsinit (Depends): Add mbrtowc.
45061         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
45062
45063 2008-12-20  Bruno Haible  <bruno@clisp.org>
45064
45065         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
45066         so that there are no conversion errors on AIX.
45067         * tests/test-mbsrtowcs.c (main): LIkewise.
45068
45069 2008-12-20  Bruno Haible  <bruno@clisp.org>
45070
45071         Work around wctob bug on Solaris <= 9.
45072         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
45073         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
45074         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
45075         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
45076         * modules/wctob (Files): Add m4/locale-fr.m4.
45077         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
45078
45079 2008-12-20  Bruno Haible  <bruno@clisp.org>
45080
45081         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
45082         /dev/null.
45083         * tests/test-select-in.sh: Likewise.
45084         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45085
45086 2008-12-20  Bruno Haible  <bruno@clisp.org>
45087
45088         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
45089         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
45090         Cygwin 1.5.x.
45091
45092 2008-12-20  Bruno Haible  <bruno@clisp.org>
45093
45094         Ensure mbstate_t is defined on HP-UX 11.11.
45095         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
45096         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
45097         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
45098         AC_USE_SYSTEM_EXTENSIONS.
45099         * modules/fnmatch (Depends-on): Add extensions.
45100         * modules/mbrlen (Depends-on): Likewise.
45101         * modules/mbrtowc (Depends-on): Likewise.
45102         * modules/mbsinit (Depends-on): Likewise.
45103         * modules/mbsrtowcs (Depends-on): Likewise.
45104         * modules/mbswidth (Depends-on): Likewise.
45105         * modules/quotearg (Depends-on): Likewise.
45106         * modules/strftime (Depends-on): Likewise.
45107
45108 2008-12-20  Bruno Haible  <bruno@clisp.org>
45109
45110         Ensure wctob is declared on IRIX 6.5.
45111         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
45112         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
45113         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
45114         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
45115         of HAVE_WCTOB.
45116         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
45117         HAVE_WCTOB.
45118         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
45119
45120 2008-12-19  Bruno Haible  <bruno@clisp.org>
45121
45122         * modules/mbsrtowcs-tests: New file.
45123         * tests/test-mbsrtowcs1.sh: New file.
45124         * tests/test-mbsrtowcs2.sh: New file.
45125         * tests/test-mbsrtowcs3.sh: New file.
45126         * tests/test-mbsrtowcs4.sh: New file.
45127         * tests/test-mbsrtowcs.c: New file.
45128
45129         New module 'mbsrtowcs'.
45130         * lib/wchar.in.h (mbsrtowcs): New declaration.
45131         * lib/mbsrtowcs.c: New file.
45132         * m4/mbsrtowcs.m4: New file.
45133         * modules/mbsrtowcs: New file.
45134         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
45135         HAVE_MBSRTOWCS.
45136         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
45137         HAVE_MBSRTOWCS.
45138         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
45139
45140 2008-12-19  Bruno Haible  <bruno@clisp.org>
45141
45142         New module 'mbrlen'.
45143         * lib/wchar.in.h (mbrlen): New declaration.
45144         * lib/mbrlen.c: New file.
45145         * m4/mbrlen.m4: New file.
45146         * modules/mbrlen: New file.
45147         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
45148         HAVE_MBRLEN.
45149         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
45150         HAVE_MBRLEN.
45151         * doc/posix-functions/mbrlen.texi: Document the new module.
45152
45153 2008-12-19  Bruno Haible  <bruno@clisp.org>
45154
45155         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
45156         * modules/mbrtowc (Depends-on): Add verify.
45157         Suggested by Paul Eggert.
45158
45159 2008-12-18  Bruno Haible  <bruno@clisp.org>
45160
45161         * modules/mbsinit-tests: New file.
45162         * tests/test-mbsinit.sh: New file.
45163         * tests/test-mbsinit.c: New file.
45164
45165 2008-12-18  Bruno Haible  <bruno@clisp.org>
45166
45167         * modules/mbrtowc-tests: New file.
45168         * tests/test-mbrtowc1.sh: New file.
45169         * tests/test-mbrtowc2.sh: New file.
45170         * tests/test-mbrtowc3.sh: New file.
45171         * tests/test-mbrtowc4.sh: New file.
45172         * tests/test-mbrtowc.c: New file.
45173
45174         New module 'mbrtowc'.
45175         * lib/wchar.in.h (mbstate_t): Override when the system does not have
45176         mbsinit and mbrtowc.
45177         (mbrtowc): New declaration.
45178         * lib/mbrtowc.c: New file.
45179         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
45180         * modules/mbrtowc: New file.
45181         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
45182         HAVE_MBRTOWC.
45183         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
45184         HAVE_MBRTOWC.
45185         * doc/posix-functions/mbrtowc.texi: Document the new module.
45186
45187 2008-12-18  Bruno Haible  <bruno@clisp.org>
45188
45189         New module 'wctob'.
45190         * lib/wchar.in.h (wctob): New declaration.
45191         * lib/wctob.c: New file.
45192         * m4/wctob.m4: New file.
45193         * modules/wctob: New file.
45194         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
45195         HAVE_WCTOB.
45196         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
45197         * doc/posix-functions/wctob.texi: Document the new module.
45198
45199 2008-12-18  Bruno Haible  <bruno@clisp.org>
45200
45201         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
45202         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
45203
45204 2008-12-18  Simon Josefsson  <simon@josefsson.org>
45205
45206         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
45207         G. Christensen" <tgc@jupiterrise.com>.
45208
45209         * lib/flock.c: Need to include errno.h.  Reported by "Tom
45210         G. Christensen" <tgc@jupiterrise.com>.
45211
45212         * lib/flock.c: Need to include string.h.  Reported by "Tom
45213         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
45214         <ebb9@byu.net>.
45215
45216 2008-12-18  Bruno Haible  <bruno@clisp.org>
45217
45218         * m4/locale-ja.m4: New file, from GNU gettext.
45219
45220 2008-12-17  Bruno Haible  <bruno@clisp.org>
45221
45222         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
45223         Suggested by Eric Blake.
45224
45225 2008-12-17  Bruno Haible  <bruno@clisp.org>
45226
45227         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
45228
45229 2008-12-17  Bruno Haible  <bruno@clisp.org>
45230
45231         * lib/mbsinit.c: Include verify.h. Verify an assumption.
45232         * modules/mbsinit (Depends-on): Add verify.
45233         Suggested by Paul Eggert.
45234
45235 2008-12-17  Bruno Haible  <bruno@clisp.org>
45236
45237         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
45238         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
45239         gl_FUNC_MBRTOWC.
45240         * m4/mbiter.m4 (gl_MBITER): LIkewise.
45241         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
45242         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
45243         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
45244         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
45245         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
45246         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
45247         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
45248         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
45249         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
45250         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
45251         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
45252         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
45253         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
45254         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
45255         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45256         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
45257         * modules/trim (configure.ac): Likewise.
45258
45259 2008-12-17  Bruno Haible  <bruno@clisp.org>
45260
45261         * modules/btowc-tests: New file.
45262         * tests/test-btowc1.sh: New file.
45263         * tests/test-btowc2.sh: New file.
45264         * tests/test-btowc.c: New file.
45265
45266         New module 'btowc'.
45267         * lib/wchar.in.h (btowc): New declaration.
45268         * lib/btowc.c: New file.
45269         * m4/btowc.m4: New file.
45270         * modules/btowc: New file.
45271         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
45272         HAVE_BTOWC.
45273         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
45274         * doc/posix-functions/btowc.texi: Document the new module.
45275
45276 2008-12-17  Bruno Haible  <bruno@clisp.org>
45277
45278         New module 'mbsinit'.
45279         * lib/wchar.in.h (mbsinit): New declaration.
45280         * lib/mbsinit.c: New file.
45281         * m4/mbsinit.m4: New file.
45282         * modules/mbsinit: New file.
45283         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
45284         HAVE_MBSINIT.
45285         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
45286         HAVE_MBSINIT.
45287         * doc/posix-functions/mbsinit.texi: Document the new module.
45288
45289 2008-12-16  Bruno Haible  <bruno@clisp.org>
45290
45291         * lib/unistd.in.h: Add comment.
45292         * tests/test-environ.c: Don't include <stdlib.h>.
45293
45294 2008-12-16  Bruno Haible  <bruno@clisp.org>
45295
45296         * lib/parse-duration.h (parse_duration): Document return value
45297         convention.
45298         * lib/parse-duration.c: Include specification header first. Add
45299         comments.
45300         (_): Remove macro.
45301         (parse_year_month_day, parse_hour_minute_second): Move side effects
45302         outside of strchr call.
45303         (parse_non_iso8601): Move side effects outside of isspace call.
45304         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
45305         call.
45306
45307 2008-12-16  Bruno Haible  <bruno@clisp.org>
45308
45309         * tests/test-parse-duration.sh: Produce no output when the test
45310         succeeds.
45311
45312 2008-12-16  Bruno Haible  <bruno@clisp.org>
45313
45314         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
45315         expressions.
45316
45317 2008-12-15  Bruno Haible  <bruno@clisp.org>
45318
45319         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
45320         * doc/glibc-functions/flistxattr.texi: Likewise.
45321         * doc/glibc-functions/fopencookie.texi: Likewise.
45322         * doc/glibc-functions/fremovexattr.texi: Likewise.
45323         * doc/glibc-functions/fsetxattr.texi: Likewise.
45324         * doc/glibc-functions/getxattr.texi: Likewise.
45325         * doc/glibc-functions/lgetxattr.texi: Likewise.
45326         * doc/glibc-functions/listxattr.texi: Likewise.
45327         * doc/glibc-functions/llistxattr.texi: Likewise.
45328         * doc/glibc-functions/lremovexattr.texi: Likewise.
45329         * doc/glibc-functions/lsetxattr.texi: Likewise.
45330         * doc/glibc-functions/removexattr.texi: Likewise.
45331         * doc/glibc-functions/setxattr.texi: Likewise.
45332         * doc/posix-functions/open_memstream.texi: Likewise.
45333
45334 2008-12-15  Eric Blake  <ebb9@byu.net>
45335
45336         Update doc for cygwin 1.7.
45337         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
45338         functions.
45339         * doc/posix-functions/fchmodat.texi: Likewise.
45340         * doc/posix-functions/fchownat.texi: Likewise.
45341         * doc/posix-functions/fdopendir.texi: Likewise.
45342         * doc/posix-functions/fmemopen.texi: Likewise.
45343         * doc/posix-functions/freeaddrinfo.texi: Likewise.
45344         * doc/posix-functions/fstatat.texi: Likewise.
45345         * doc/posix-functions/futimens.texi: Likewise.
45346         * doc/posix-functions/gai_strerror.texi: Likewise.
45347         * doc/posix-functions/getaddrinfo.texi: Likewise.
45348         * doc/posix-functions/getnameinfo.texi: Likewise.
45349         * doc/posix-functions/if_freenameindex.texi: Likewise.
45350         * doc/posix-functions/if_indextoname.texi: Likewise.
45351         * doc/posix-functions/if_nameindex.texi: Likewise.
45352         * doc/posix-functions/if_nametoindex.texi: Likewise.
45353         * doc/posix-functions/insque.texi: Likewise.
45354         * doc/posix-functions/linkat.texi: Likewise.
45355         * doc/posix-functions/llrint.texi: Likewise.
45356         * doc/posix-functions/llrintf.texi: Likewise.
45357         * doc/posix-functions/llrintl.texi: Likewise.
45358         * doc/posix-functions/lockf.texi: Likewise.
45359         * doc/posix-functions/lrintl.texi: Likewise.
45360         * doc/posix-functions/mkdirat.texi: Likewise.
45361         * doc/posix-functions/mkfifoat.texi: Likewise.
45362         * doc/posix-functions/mknodat.texi: Likewise.
45363         * doc/posix-functions/mq_close.texi: Likewise.
45364         * doc/posix-functions/mq_getattr.texi: Likewise.
45365         * doc/posix-functions/mq_notify.texi: Likewise.
45366         * doc/posix-functions/mq_open.texi: Likewise.
45367         * doc/posix-functions/mq_receive.texi: Likewise.
45368         * doc/posix-functions/mq_send.texi: Likewise.
45369         * doc/posix-functions/mq_setattr.texi: Likewise.
45370         * doc/posix-functions/mq_timedreceive.texi: Likewise.
45371         * doc/posix-functions/mq_timedsend.texi: Likewise.
45372         * doc/posix-functions/mq_unlink.texi: Likewise.
45373         * doc/posix-functions/open_memstream.texi: Likewise.
45374         * doc/posix-functions/openat.texi: Likewise.
45375         * doc/posix-functions/posix_fadvise.texi: Likewise.
45376         * doc/posix-functions/posix_fallocate.texi: Likewise.
45377         * doc/posix-functions/posix_madvise.texi: Likewise.
45378         * doc/posix-functions/posix_memalign.texi: Likewise.
45379         * doc/posix-functions/posix_openpt.texi: Likewise.
45380         * doc/posix-functions/readlinkat.texi: Likewise.
45381         * doc/posix-functions/remque.texi: Likewise.
45382         * doc/posix-functions/renameat.texi: Likewise.
45383         * doc/posix-functions/rintl.texi: Likewise.
45384         * doc/posix-functions/sem_unlink.texi: Likewise.
45385         * doc/posix-functions/shm_open.texi: Likewise.
45386         * doc/posix-functions/shm_unlink.texi: Likewise.
45387         * doc/posix-functions/signgam.texi: Likewise.
45388         * doc/posix-functions/sigset.texi: Likewise.
45389         * doc/posix-functions/stpcpy.texi: Likewise.
45390         * doc/posix-functions/stpncpy.texi: Likewise.
45391         * doc/posix-functions/strerror.texi: Likewise.
45392         * doc/posix-functions/strtod.texi: Likewise.
45393         * doc/posix-functions/symlinkat.texi: Likewise.
45394         * doc/posix-functions/unlinkat.texi: Likewise.
45395         * doc/posix-functions/utimensat.texi: Likewise.
45396         * doc/glibc-functions/bindresvport.texi: Likewise.
45397         * doc/glibc-functions/dn_expand.texi: Likewise.
45398         * doc/glibc-functions/exp10.texi: Likewise.
45399         * doc/glibc-functions/exp10f.texi: Likewise.
45400         * doc/glibc-functions/fgetxattr.texi: Likewise.
45401         * doc/glibc-functions/flistxattr.texi: Likewise.
45402         * doc/glibc-functions/fopencookie.texi: Likewise.
45403         * doc/glibc-functions/freeifaddrs.texi: Likewise.
45404         * doc/glibc-functions/fremovexattr.texi: Likewise.
45405         * doc/glibc-functions/fsetxattr.texi: Likewise.
45406         * doc/glibc-functions/getifaddrs.texi: Likewise.
45407         * doc/glibc-functions/getxattr.texi: Likewise.
45408         * doc/glibc-functions/lgetxattr.texi: Likewise.
45409         * doc/glibc-functions/listxattr.texi: Likewise.
45410         * doc/glibc-functions/llistxattr.texi: Likewise.
45411         * doc/glibc-functions/lremovexattr.texi: Likewise.
45412         * doc/glibc-functions/lsetxattr.texi: Likewise.
45413         * doc/glibc-functions/pow10.texi: Likewise.
45414         * doc/glibc-functions/pow10f.texi: Likewise.
45415         * doc/glibc-functions/rcmd_af.texi: Likewise.
45416         * doc/glibc-functions/removexattr.texi: Likewise.
45417         * doc/glibc-functions/res_init.texi: Likewise.
45418         * doc/glibc-functions/res_mkquery.texi: Likewise.
45419         * doc/glibc-functions/res_query.texi: Likewise.
45420         * doc/glibc-functions/res_querydomain.texi: Likewise.
45421         * doc/glibc-functions/res_send.texi: Likewise.
45422         * doc/glibc-functions/rresvport_af.texi: Likewise.
45423         * doc/glibc-functions/setxattr.texi: Likewise.
45424         * doc/glibc-functions/strcasestr.texi: Likewise.
45425
45426 2008-12-15  Bruno Haible  <bruno@clisp.org>
45427
45428         Fix compilation error on OSF/1 4.0.
45429         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
45430         <sys/time.h>, simply delegate to the system header.
45431         Reported by Daniel Richard G. <oss@teragram.com>.
45432
45433 2008-12-15  Bruno Haible  <bruno@clisp.org>
45434
45435         * doc/posix-functions/openat.texi: Mention the 'openat' module.
45436         * doc/posix-functions/fchmodat.texi: Likewise.
45437         * doc/posix-functions/fchownat.texi: Likewise.
45438         * doc/posix-functions/fdopendir.texi: Likewise.
45439         * doc/posix-functions/fstatat.texi: Likewise.
45440         * doc/posix-functions/mkdirat.texi: Likewise.
45441         * doc/posix-functions/unlinkat.texi: Likewise.
45442
45443 2008-12-14  Bruno Haible  <bruno@clisp.org>
45444
45445         Update doc for POSIX:2008.
45446         * doc/posix-functions/faccessat.texi: New file.
45447         * doc/posix-functions/fchmodat.texi: New file.
45448         * doc/posix-functions/fchownat.texi: New file.
45449         * doc/posix-functions/fdopendir.texi: New file.
45450         * doc/posix-functions/fstatat.texi: New file.
45451         * doc/posix-functions/futimens.texi: New file.
45452         * doc/posix-functions/linkat.texi: New file.
45453         * doc/posix-functions/mkdirat.texi: New file.
45454         * doc/posix-functions/mkfifoat.texi: New file.
45455         * doc/posix-functions/mknodat.texi: New file.
45456         * doc/posix-functions/open_wmemstream.texi: New file.
45457         * doc/posix-functions/openat.texi: New file.
45458         * doc/posix-functions/psiginfo.texi: New file.
45459         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
45460         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
45461         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
45462         * doc/posix-functions/readlinkat.texi: New file.
45463         * doc/posix-functions/renameat.texi: New file.
45464         * doc/posix-functions/strerror_l.texi: New file.
45465         * doc/posix-functions/symlinkat.texi: New file.
45466         * doc/posix-functions/unlinkat.texi: New file.
45467         * doc/posix-functions/utimensat.texi: New file.
45468         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45469
45470 2008-12-14  Bruno Haible  <bruno@clisp.org>
45471
45472         Update doc for POSIX:2008.
45473         * doc/posix-functions/alphasort.texi: Renamed from
45474         doc/glibc-functions/alphasort.texi.
45475         * doc/posix-functions/dirfd.texi: Renamed from
45476         doc/glibc-functions/dirfd.texi.
45477         * doc/posix-functions/dprintf.texi: Renamed from
45478         doc/glibc-functions/dprintf.texi.
45479         * doc/posix-functions/duplocale.texi: Renamed from
45480         doc/glibc-functions/duplocale.texi.
45481         * doc/posix-functions/fexecve.texi: Renamed from
45482         doc/glibc-functions/fexecve.texi.
45483         * doc/posix-functions/fmemopen.texi: Renamed from
45484         doc/glibc-functions/fmemopen.texi.
45485         * doc/posix-functions/freelocale.texi: Renamed from
45486         doc/glibc-functions/freelocale.texi.
45487         * doc/posix-functions/getdate_err.texi: Renamed from
45488         doc/glibc-functions/getdate_err.texi.
45489         * doc/posix-functions/isalnum_l.texi: Renamed from
45490         doc/glibc-functions/isalnum_l.texi.
45491         * doc/posix-functions/isalpha_l.texi: Renamed from
45492         doc/glibc-functions/isalpha_l.texi.
45493         * doc/posix-functions/isblank_l.texi: Renamed from
45494         doc/glibc-functions/isblank_l.texi.
45495         * doc/posix-functions/iscntrl_l.texi: Renamed from
45496         doc/glibc-functions/iscntrl_l.texi.
45497         * doc/posix-functions/isdigit_l.texi: Renamed from
45498         doc/glibc-functions/isdigit_l.texi.
45499         * doc/posix-functions/isgraph_l.texi: Renamed from
45500         doc/glibc-functions/isgraph_l.texi.
45501         * doc/posix-functions/islower_l.texi: Renamed from
45502         doc/glibc-functions/islower_l.texi.
45503         * doc/posix-functions/isprint_l.texi: Renamed from
45504         doc/glibc-functions/isprint_l.texi.
45505         * doc/posix-functions/ispunct_l.texi: Renamed from
45506         doc/glibc-functions/ispunct_l.texi.
45507         * doc/posix-functions/isspace_l.texi: Renamed from
45508         doc/glibc-functions/isspace_l.texi.
45509         * doc/posix-functions/isupper_l.texi: Renamed from
45510         doc/glibc-functions/isupper_l.texi.
45511         * doc/posix-functions/iswalnum_l.texi: Renamed from
45512         doc/glibc-functions/iswalnum_l.texi.
45513         * doc/posix-functions/iswalpha_l.texi: Renamed from
45514         doc/glibc-functions/iswalpha_l.texi.
45515         * doc/posix-functions/iswblank_l.texi: Renamed from
45516         doc/glibc-functions/iswblank_l.texi.
45517         * doc/posix-functions/iswcntrl_l.texi: Renamed from
45518         doc/glibc-functions/iswcntrl_l.texi.
45519         * doc/posix-functions/iswctype_l.texi: Renamed from
45520         doc/glibc-functions/iswctype_l.texi.
45521         * doc/posix-functions/iswdigit_l.texi: Renamed from
45522         doc/glibc-functions/iswdigit_l.texi.
45523         * doc/posix-functions/iswgraph_l.texi: Renamed from
45524         doc/glibc-functions/iswgraph_l.texi.
45525         * doc/posix-functions/iswlower_l.texi: Renamed from
45526         doc/glibc-functions/iswlower_l.texi.
45527         * doc/posix-functions/iswprint_l.texi: Renamed from
45528         doc/glibc-functions/iswprint_l.texi.
45529         * doc/posix-functions/iswpunct_l.texi: Renamed from
45530         doc/glibc-functions/iswpunct_l.texi.
45531         * doc/posix-functions/iswspace_l.texi: Renamed from
45532         doc/glibc-functions/iswspace_l.texi.
45533         * doc/posix-functions/iswupper_l.texi: Renamed from
45534         doc/glibc-functions/iswupper_l.texi.
45535         * doc/posix-functions/iswxdigit_l.texi: Renamed from
45536         doc/glibc-functions/iswxdigit_l.texi.
45537         * doc/posix-functions/isxdigit_l.texi: Renamed from
45538         doc/glibc-functions/isxdigit_l.texi.
45539         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
45540         doc/glibc-functions/mbsnrtowcs.texi.
45541         * doc/posix-functions/mkdtemp.texi: Renamed from
45542         doc/glibc-functions/mkdtemp.texi.
45543         * doc/posix-functions/newlocale.texi: Renamed from
45544         doc/glibc-functions/newlocale.texi.
45545         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
45546         doc/glibc-functions/nl_langinfo_l.texi.
45547         * doc/posix-functions/open_memstream.texi: Renamed from
45548         doc/glibc-functions/open_memstream.texi.
45549         * doc/posix-functions/opterr.texi: Renamed from
45550         doc/glibc-functions/opterr.texi.
45551         * doc/posix-functions/optind.texi: Renamed from
45552         doc/glibc-functions/optind.texi.
45553         * doc/posix-functions/optopt.texi: Renamed from
45554         doc/glibc-functions/optopt.texi.
45555         * doc/posix-functions/psignal.texi: Renamed from
45556         doc/glibc-functions/psignal.texi.
45557         * doc/posix-functions/scandir.texi: Renamed from
45558         doc/glibc-functions/scandir.texi.
45559         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
45560         doc/glibc-functions/sched_get_priority_min.texi.
45561         * doc/posix-functions/signgam.texi: Renamed from
45562         doc/glibc-functions/signgam.texi.
45563         * doc/posix-functions/stpcpy.texi: Renamed from
45564         doc/glibc-functions/stpcpy.texi.
45565         * doc/posix-functions/stpncpy.texi: Renamed from
45566         doc/glibc-functions/stpncpy.texi.
45567         * doc/posix-functions/strcasecmp_l.texi: Renamed from
45568         doc/glibc-functions/strcasecmp_l.texi.
45569         * doc/posix-functions/strcoll_l.texi: Renamed from
45570         doc/glibc-functions/strcoll_l.texi.
45571         * doc/posix-functions/strfmon_l.texi: Renamed from
45572         doc/glibc-functions/strfmon_l.texi.
45573         * doc/posix-functions/strftime_l.texi: Renamed from
45574         doc/glibc-functions/strftime_l.texi.
45575         * doc/posix-functions/strncasecmp_l.texi: Renamed from
45576         doc/glibc-functions/strncasecmp_l.texi.
45577         * doc/posix-functions/strndup.texi: Renamed from
45578         doc/glibc-functions/strndup.texi.
45579         * doc/posix-functions/strnlen.texi: Renamed from
45580         doc/glibc-functions/strnlen.texi.
45581         * doc/posix-functions/strsignal.texi: Renamed from
45582         doc/glibc-functions/strsignal.texi.
45583         * doc/posix-functions/strxfrm_l.texi: Renamed from
45584         doc/glibc-functions/strxfrm_l.texi.
45585         * doc/posix-functions/timer_gettime.texi: Renamed from
45586         doc/glibc-functions/timer_gettime.texi.
45587         * doc/posix-functions/tolower_l.texi: Renamed from
45588         doc/glibc-functions/tolower_l.texi.
45589         * doc/posix-functions/toupper_l.texi: Renamed from
45590         doc/glibc-functions/toupper_l.texi.
45591         * doc/posix-functions/towctrans_l.texi: Renamed from
45592         doc/glibc-functions/towctrans_l.texi.
45593         * doc/posix-functions/towlower_l.texi: Renamed from
45594         doc/glibc-functions/towlower_l.texi.
45595         * doc/posix-functions/towupper_l.texi: Renamed from
45596         doc/glibc-functions/towupper_l.texi.
45597         * doc/posix-functions/uselocale.texi: Renamed from
45598         doc/glibc-functions/uselocale.texi.
45599         * doc/posix-functions/vdprintf.texi: Renamed from
45600         doc/glibc-functions/vdprintf.texi.
45601         * doc/posix-functions/wcpcpy.texi:
45602         Renamed from doc/glibc-functions/wcpcpy.texi.
45603         * doc/posix-functions/wcpncpy.texi: Renamed from
45604         doc/glibc-functions/wcpncpy.texi.
45605         * doc/posix-functions/wcscasecmp.texi: Renamed from
45606         doc/glibc-functions/wcscasecmp.texi.
45607         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
45608         doc/glibc-functions/wcscasecmp_l.texi.
45609         * doc/posix-functions/wcscoll_l.texi: Renamed from
45610         doc/glibc-functions/wcscoll_l.texi.
45611         * doc/posix-functions/wcsdup.texi: Renamed from
45612         doc/glibc-functions/wcsdup.texi.
45613         * doc/posix-functions/wcsncasecmp.texi: Renamed from
45614         doc/glibc-functions/wcsncasecmp.texi.
45615         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
45616         doc/glibc-functions/wcsncasecmp_l.texi.
45617         * doc/posix-functions/wcsnlen.texi: Renamed from
45618         doc/glibc-functions/wcsnlen.texi.
45619         * doc/posix-functions/wcsnrtombs.texi: Renamed from
45620         doc/glibc-functions/wcsnrtombs.texi.
45621         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
45622         doc/glibc-functions/wcsxfrm_l.texi.
45623         * doc/posix-functions/wctrans_l.texi: Renamed from
45624         doc/glibc-functions/wctrans_l.texi.
45625         * doc/posix-functions/wctype_l.texi: Renamed from
45626         doc/glibc-functions/wctype_l.texi.
45627         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45628         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
45629         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
45630         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
45631         these subsections.
45632         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
45633         Remove sections.
45634
45635 2008-12-14  Bruno Haible  <bruno@clisp.org>
45636
45637         Update doc for POSIX:2008.
45638         * doc/posix-functions/*.texi: Update URL of POSIX specification.
45639
45640 2008-12-14  Bruno Haible  <bruno@clisp.org>
45641
45642         Update doc for POSIX:2008.
45643         * doc/pastposix-functions/bcmp.texi: Renamed from
45644         doc/posix-functions/bcmp.texi.
45645         * doc/pastposix-functions/bcopy.texi: Renamed from
45646         doc/posix-functions/bcopy.texi.
45647         * doc/pastposix-functions/bsd_signal.texi: Renamed from
45648         doc/posix-functions/bsd_signal.texi.
45649         * doc/pastposix-functions/bzero.texi: Renamed from
45650         doc/posix-functions/bzero.texi.
45651         * doc/pastposix-functions/ecvt.texi: Renamed from
45652         doc/posix-functions/ecvt.texi.
45653         * doc/pastposix-functions/fcvt.texi: Renamed from
45654         doc/posix-functions/fcvt.texi.
45655         * doc/pastposix-functions/ftime.texi: Renamed from
45656         doc/posix-functions/ftime.texi.
45657         * doc/pastposix-functions/gcvt.texi: Renamed from
45658         doc/posix-functions/gcvt.texi.
45659         * doc/pastposix-functions/getcontext.texi: Renamed from
45660         doc/posix-functions/getcontext.texi.
45661         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
45662         doc/posix-functions/gethostbyaddr.texi.
45663         * doc/pastposix-functions/gethostbyname.texi: Renamed from
45664         doc/posix-functions/gethostbyname.texi.
45665         * doc/pastposix-functions/getwd.texi: Renamed from
45666         doc/posix-functions/getwd.texi.
45667         * doc/pastposix-functions/h_errno.texi: Renamed from
45668         doc/posix-functions/h_errno.texi.
45669         * doc/pastposix-functions/index.texi: Renamed from
45670         doc/posix-functions/index.texi.
45671         * doc/pastposix-functions/makecontext.texi: Renamed from
45672         doc/posix-functions/makecontext.texi.
45673         * doc/pastposix-functions/mktemp.texi: Renamed from
45674         doc/posix-functions/mktemp.texi.
45675         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
45676         doc/posix-functions/pthread_attr_getstackaddr.texi.
45677         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
45678         doc/posix-functions/pthread_attr_setstackaddr.texi.
45679         * doc/pastposix-functions/rindex.texi: Renamed from
45680         doc/posix-functions/rindex.texi.
45681         * doc/pastposix-functions/scalb.texi: Renamed from
45682         doc/posix-functions/scalb.texi.
45683         * doc/pastposix-functions/setcontext.texi: Renamed from
45684         doc/posix-functions/setcontext.texi.
45685         * doc/pastposix-functions/swapcontext.texi: Renamed from
45686         doc/posix-functions/swapcontext.texi.
45687         * doc/pastposix-functions/ualarm.texi: Renamed from
45688         doc/posix-functions/ualarm.texi.
45689         * doc/pastposix-functions/usleep.texi: Renamed from
45690         doc/posix-functions/usleep.texi.
45691         * doc/pastposix-functions/vfork.texi: Renamed from
45692         doc/posix-functions/vfork.texi.
45693         * doc/pastposix-functions/wcswcs.texi: Renamed from
45694         doc/posix-functions/wcswcs.texi.
45695         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
45696         (Function Substitutes): Update.
45697
45698 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45699
45700         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
45701         m4/strerror.m4.
45702
45703 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45704             Bruno Haible  <bruno@clisp.org>
45705
45706         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
45707
45708 2008-12-13  Bruno Haible  <bruno@clisp.org>
45709
45710         * modules/strtoull (Depends-on): Remove unistd.
45711
45712 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45713
45714         * modules/strtoull (Depends-on): Add stdlib.
45715
45716 2008-12-11  Simon Josefsson  <simon@josefsson.org>
45717
45718         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
45719
45720 2008-12-10  Jim Meyering  <meyering@redhat.com>
45721
45722         gl_ASSERT: don't say assertions are disabled when they're not
45723         * m4/assert.m4 (gl_ASSERT): Do not make configure report
45724         "checking whether to enable assertions... no", when they are in
45725         fact enabled.  This is solely a bug in the output of configure.
45726         In spite of saying "no", NDEBUG was not defined in that case.
45727         Also, as noted by Eric Blake, leave assertions enabled upon
45728         --enable-assert=INVALID.
45729
45730 2008-12-10  Bruno Haible  <bruno@clisp.org>
45731
45732         Change MODULES.html to refer to POSIX:2008 where possible.
45733         * MODULES.html.sh (POSIX2008_URL): New variable.
45734         (posix_headers): Remove sys/timeb, ucontext.
45735         (posix2001_headers): New variable.
45736         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
45737         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
45738         index, makecontext, mktemp, pthread_attr_getstackaddr,
45739         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
45740         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
45741         (posix2001_functions): New variable.
45742         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
45743         otherwise.
45744
45745 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45746
45747         add missing include to parse-duration.c
45748         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
45749         * modules/parse-duration (Depends-on): Add xalloc.
45750
45751         fix sed script reading maint.mk
45752         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
45753         (syntax-check-rules): Use it.
45754
45755 2008-12-09  Bruno Haible  <bruno@clisp.org>
45756
45757         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
45758         MacOS X 10.4/PowerPC.
45759         Reported by Simon Josefsson.
45760
45761 2008-12-08  Jim Meyering  <meyering@redhat.com>
45762
45763         work around mingw's lack of some S_IF definitions
45764         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
45765         Reported by Simon Josefsson.
45766
45767 2008-12-08  Bruno Haible  <bruno@clisp.org>
45768
45769         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
45770         applied to variables. Needed on MacOS X 10.4/PowerPC.
45771         Reported by Simon Josefsson.
45772
45773 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
45774         and Eric Blake  <ebb9@byu.net>
45775
45776         assert: honor --enable-assert
45777         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
45778         order to honor --enable-assert, rather than treating it as a
45779         synonym for --disable-assert.
45780
45781 2008-12-08  Jim Meyering  <meyering@redhat.com>
45782
45783         * lib/posixtm.c: Remove now-useless declaration of mktime.
45784
45785         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
45786
45787 2008-12-07  Bruno Haible  <bruno@clisp.org>
45788
45789         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
45790         test_once): Mark functions as static.
45791         * tests/test-tls.c (test_tls): Likewise.
45792
45793 2008-12-07  Bruno Haible  <bruno@clisp.org>
45794
45795         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
45796         iconv_register_autodetect.
45797
45798 2008-12-07  Jim Meyering  <meyering@redhat.com>
45799
45800         posixtm.c: avoid a warning
45801         * lib/posixtm.c (posixtime): Don't initialize tm0.
45802         It's no longer needed to placate gcc4's -Wuninitialized,
45803         and the attempt to placate would elicit a new warning.
45804
45805         unicodeio.c: mark unused parameters
45806         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45807         (fallback_failure_callback): Likewise.
45808
45809 2008-12-07  Bruno Haible  <bruno@clisp.org>
45810
45811         * gnulib-tool (func_create_testdir): When building the tests
45812         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
45813         Reported by Simon Josefsson.
45814
45815 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45816
45817         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
45818
45819 2008-12-06  Bruno Haible  <bruno@clisp.org>
45820
45821         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
45822         Suggested by Eric Blake.
45823
45824 2008-12-06  Bruno Haible  <bruno@clisp.org>
45825
45826         Fix a c-stack test failure on MacOS X.
45827         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
45828         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
45829         handler for SIGBUS as well.
45830         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
45831         install a signal handler for SIGBUS as well.
45832         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
45833
45834 2008-12-06  Bruno Haible  <bruno@clisp.org>
45835
45836         Advocacy documentation.
45837         * doc/gnulib-intro.texi (Benefits): New section.
45838         * doc/gnulib.texi: Update.
45839
45840 2008-12-06  Bruno Haible  <bruno@clisp.org>
45841
45842         Document the 'manywarnings' module.
45843         * doc/manywarnings.texi: New file.
45844         * doc/gnulib.texi: Include it.
45845
45846 2008-12-05  Eric Blake  <ebb9@byu.net>
45847
45848         tests: silence some gcc warnings
45849         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
45850         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
45851         type mismatches.
45852
45853 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45854             Bruno Haible  <bruno@clisp.org>
45855
45856         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
45857
45858 2008-11-29  Jim Meyering  <meyering@redhat.com>
45859
45860         unicodeio.c: mark unused parameters
45861         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45862         (fallback_failure_callback): Likewise.
45863
45864         fts: fix a thinko
45865         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
45866         (set_stat_type): Return S_IF*-valued "type" directly.
45867         Prompted by James Youngman's spotting a related bug.
45868         Confirmed by further testing through find.
45869
45870         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
45871         * lib/fts.c (D_TYPE): Define.
45872         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
45873         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
45874         (s_ifmt_shift_bits): New function.
45875         (set_stat_type): New function.
45876         (fts_build): When not calling fts_stat, call set_stat_type
45877         to propagate dirent.d_type info to fts_read caller.
45878         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
45879         fts_statp->st_mode type information may be valid.
45880
45881 2008-11-28  Simon Josefsson  <simon@josefsson.org>
45882
45883         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
45884         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
45885         <sds@gnu.org>.
45886
45887 2008-11-20  Bruno Haible  <bruno@clisp.org>
45888
45889         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
45890         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
45891         INCLUDE_NEXT.
45892         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
45893         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
45894         * modules/math (Makefile.am): Substitute
45895         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
45896         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45897
45898 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
45899             Bruno Haible  <bruno@clisp.org>
45900
45901         * lib/stdint.in.h: Define all type macros so that their expansion is
45902         a single typedef'ed token. Fixes a compilation failure in Boost which
45903         does "using ::int8_t;".
45904
45905 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45906
45907         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
45908         gl_MANYWARN_ALL_GCC.
45909         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
45910         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
45911         * modules/manywarnings: New file.
45912         * MODULES.html.sh: Mention manywarnings module.
45913
45914 2008-11-18  Bruno Haible  <bruno@clisp.org>
45915
45916         * doc/gnulib-tool.texi (Unit tests): New section.
45917
45918 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45919
45920         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
45921         paths like 'lib/po/foo.po'.
45922
45923 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45924
45925         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
45926         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
45927
45928 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45929
45930         * m4/warnings.m4: Use CPPFLAGS to really check whether the
45931         parameter works.
45932
45933 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45934
45935         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
45936
45937 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45938
45939         * modules/parse-duration-tests: New file.
45940         * tests/test-parse-duration.sh: New file.
45941         * tests/test-parse-duration.c: New file.
45942
45943         New module 'parse-duration'.
45944         * lib/parse-duration.h: New file.
45945         * lib/parse-duration.c: New file.
45946         * modules/parse-duration: New file.
45947
45948 2008-11-17  Bruno Haible  <bruno@clisp.org>
45949
45950         * tests/test-select-out.sh: Comment out the first pipe test.
45951         Reported by Simon Josefsson.
45952
45953 2008-11-17  Bruno Haible  <bruno@clisp.org>
45954
45955         * modules/getaddrinfo (Depends-on): Add servent, hostent.
45956         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
45957         gl_HOSTENT.
45958
45959 2008-11-17  Bruno Haible  <bruno@clisp.org>
45960
45961         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
45962         -lnetwork and -lnet. Needed for Haiku and BeOS.
45963
45964 2008-11-16  Bruno Haible  <bruno@clisp.org>
45965
45966         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
45967
45968 2008-11-16  Bruno Haible  <bruno@clisp.org>
45969
45970         Avoid test failure on Haiku.
45971         * tests/test-fsync.c: Include <errno.h>.
45972         (main): Don't require that fsync (0) fails.
45973
45974 2008-11-15  Bruno Haible  <bruno@clisp.org>
45975
45976         New module 'hostent'.
45977         * modules/hostent: New file.
45978         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
45979
45980 2008-11-15  Bruno Haible  <bruno@clisp.org>
45981
45982         New module 'servent'.
45983         * modules/servent: New file.
45984         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
45985
45986 2008-11-15  Bruno Haible  <bruno@clisp.org>
45987
45988         Avoid generating same test program with two different rules.
45989         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
45990         test-frexp to test-frexp-nolibm.
45991         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
45992         test-frexpl to test-frexpl-nolibm.
45993
45994 2008-11-15  Bruno Haible  <bruno@clisp.org>
45995
45996         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
45997         $(FREXPL_LIBM).
45998
45999 2008-11-15  Bruno Haible  <bruno@clisp.org>
46000
46001         * lib/netdb.in.h: Activate the definitions also when the system's
46002         <netdb.h> has 'struct addrinfo'.
46003         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
46004         EAI_OVERFLOW or AI_NUMERICSERV.
46005         * doc/posix-headers/netdb.texi: Document the problem.
46006
46007 2008-11-15  Bruno Haible  <bruno@clisp.org>
46008
46009         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
46010
46011         Make the 'sched' module work on platforms where <sched.h> exists but
46012         is incomplete (such as Haiku).
46013         * lib/sched.in.h; Include the system's <sched.h> if it exists.
46014         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
46015         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
46016         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
46017         HAVE_STRUCT_SCHED_PARAM.
46018         * modules/sched (Depends-on): Add include_next.
46019         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
46020         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
46021         * doc/posix-headers/sched.texi: Document the issue.
46022
46023 2008-11-13  Jim Meyering  <meyering@redhat.com>
46024
46025         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
46026         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
46027         test would fail due to the difference in the Report bugs to ...
46028         line.  The expected address is empty, "<>", while the actual
46029         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
46030
46031 2008-11-12  Bruno Haible  <bruno@clisp.org>
46032
46033         lstat: don't compile lstat.c on systems lacking lstat
46034         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
46035         which don't have lstat; this is handled by lib/sys_stat.in.h already.
46036         Reported by Daniel P. Berrange via Jim Meyering.
46037
46038 2008-11-12  Jim Meyering  <meyering@redhat.com>
46039
46040         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
46041
46042 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46043
46044         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
46045         instead.
46046
46047 2008-11-12  Bruno Haible  <bruno@clisp.org>
46048
46049         * lib/unicodeio.c: Include unistr.h.
46050         (utf8_wctomb): Remove function.
46051         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
46052
46053 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46054
46055         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
46056         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
46057         <bruno@clisp.org>.
46058         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
46059
46060 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46061
46062         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
46063         * doc/gnulib.texi: Add section for warnings.
46064
46065 2008-11-11  Bruno Haible  <bruno@clisp.org>
46066
46067         * lib/sockets.h: Add a comment.
46068
46069 2008-11-11  Karl Berry  <karl@gnu.org>
46070
46071         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
46072
46073 2008-11-11  Eric Blake  <ebb9@byu.net>
46074
46075         fdl.texi: avoid git symlinks
46076         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
46077
46078 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46079
46080         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
46081
46082 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46083
46084         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
46085         (gl_WARN_ADD): Substitute $2 if literal.
46086
46087 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46088
46089         * m4/warning.m4: Remove.
46090
46091 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46092
46093         * m4/warnings.m4: Almost complete rewrite. :-)
46094
46095 2008-11-10  Simon Josefsson  <simon@josefsson.org>
46096
46097         * modules/warnings: New module.
46098         * m4/warnings.m4: New file.
46099         * MODULES.html.sh: Mention warnings module.
46100         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
46101         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46102
46103 2008-11-10  Eric Blake  <ebb9@byu.net>
46104
46105         fdl.texi: make a symlink to the latest version
46106         * doc/standards.texi: Revert today's earlier change.
46107         * doc/fdl-1.2.texi: Rename from old fdl.texi...
46108         * doc/fdl.texi: ...and replace this with a symlink to the newer
46109         fdl-1.3.texi.
46110
46111 2008-11-10  Bruno Haible  <bruno@clisp.org>
46112
46113         * tests/test-select-fd.c (main): Accept the result file name as fourth
46114         argument.
46115         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
46116         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
46117
46118 2008-11-10  Bruno Haible  <bruno@clisp.org>
46119
46120         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
46121         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
46122         as autoconf-substituted macros.
46123         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
46124         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
46125         gl_NETDB_H_DEFAULTS. Set these variables.
46126         * modules/netdb (Makefile.am): Substitute these variables.
46127
46128 2008-11-10  Eric Blake  <ebb9@byu.net>
46129
46130         standards.texi: include correct file for FDL 1.3
46131         * doc/standards.texi (GNU Free Documentation License): Change
46132         include file to pull in FDL 1.3, not 1.2.
46133
46134         fdl.texi: revert accidental change to license
46135         * doc/fdl.texi: This is FDL 1.2, not 1.3.
46136
46137 2008-11-10  Bruno Haible  <bruno@clisp.org>
46138
46139         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
46140         cross-compiling guesses also when the native compile gives no result.
46141
46142 2008-11-10  Bruno Haible  <bruno@clisp.org>
46143
46144         * lib/spawni.c (__spawni): Force variable into the stack.
46145
46146 2008-11-10  Bruno Haible  <bruno@clisp.org>
46147
46148         Add support for Haiku.
46149         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
46150         glibc and BeOS, but also on Haiku.
46151         * lib/fpurge.c (fpurge): Likewise.
46152         * lib/freadable.c (freadable): Likewise.
46153         * lib/freadahead.c (freadahead): Likewise.
46154         * lib/freading.c (freading): Likewise.
46155         * lib/freadptr.c (freadptr): Likewise.
46156         * lib/freadseek.c (freadptrinc): Likewise.
46157         * lib/fseeko.c (rpl_fseeko): Likewise.
46158         * lib/fseterr.c (fseterr): Likewise.
46159         * lib/fwritable.c (fwritable): Likewise.
46160         * lib/fwriting.c (fwriting): Likewise.
46161         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
46162
46163 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
46164
46165         * lib/config.charset: Treat Haiku like BeOS.
46166
46167 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
46168
46169         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
46170         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
46171
46172 2008-11-08  Bruno Haible  <bruno@clisp.org>
46173
46174         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
46175         AC_CACHE_CHECK.
46176
46177 2008-11-08  Bruno Haible  <bruno@clisp.org>
46178
46179         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
46180
46181 2008-11-08  Bruno Haible  <bruno@clisp.org>
46182
46183         * tests/test-select-fd.c: New file.
46184         * tests/test-select-in.sh: New file.
46185         * tests/test-select-out.sh: New file.
46186         * tests/test-select-stdin.c: New file.
46187         * modules/select-tests (Files): Add the new files.
46188         (Depends-on): Add gettimeofday.
46189         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
46190         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
46191         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
46192
46193 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
46194             Bruno Haible  <bruno@clisp.org>
46195
46196         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
46197
46198 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
46199
46200         * build-aux/pmccabe2html: Added support for C++ source files.
46201
46202 2008-11-05  Ben Pfaff  <blp@gnu.org>
46203
46204         Fix lib/close.c build on Windows.
46205         * modules/close (Files): Add lib/w32sock.h.
46206
46207 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
46208
46209         Accept Bison's NEWS format.
46210         * build-aux/announce-gen (print_news_deltas): Tweak
46211         $re_prefix.
46212
46213 2008-11-04  Bruno Haible  <bruno@clisp.org>
46214
46215         * modules/random_r (Maintainer): Add glibc.
46216
46217 2008-11-04  Simon Josefsson  <simon@josefsson.org>
46218
46219         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
46220         by karl@freefriends.org (Karl Berry).
46221         * doc/alloca.texi: Likewise.
46222         * doc/c-ctype.texi: Likewise.
46223         * doc/c-strcase.texi: Likewise.
46224         * doc/c-strcaseeq.texi: Likewise.
46225         * doc/c-strcasestr.texi: Likewise.
46226         * doc/c-strstr.texi: Likewise.
46227         * doc/c-strtod.texi: Likewise.
46228         * doc/c-strtold.texi: Likewise.
46229         * doc/ctime.texi: Likewise.
46230         * doc/error.texi: Likewise.
46231         * doc/fdl.texi: Likewise.
46232         * doc/gcd.texi: Likewise.
46233         * doc/getdate.texi: Likewise.
46234         * doc/gnulib-intro.texi: Likewise.
46235         * doc/gnulib-tool.texi: Likewise.
46236         * doc/gnulib.texi: Likewise.
46237         * doc/inet_ntoa.texi: Likewise.
46238         * doc/maintain.texi: Likewise.
46239         * doc/make-stds.texi: Likewise.
46240         * doc/quote.texi: Likewise.
46241         * doc/regexprops-generic.texi: Likewise.
46242         * doc/standards.texi: Likewise.
46243         * doc/verify.texi: Likewise.
46244         * doc/visibility.texi: Likewise.
46245         * doc/gnulib.texi (GNU Free Documentation License): Include
46246         fdl-1.3.texi instead of fdl.texi.
46247
46248 2008-11-04  Simon Josefsson  <simon@josefsson.org>
46249
46250         * doc/fdl-1.3.texi: New file, from
46251         <http://www.gnu.org/licenses/fdl-1.3.texi>.
46252         * modules/fdl-1.3: Add.
46253         * MODULES.html.sh: Add fdl-1.3.
46254
46255 2008-11-03  Bruno Haible  <bruno@clisp.org>
46256
46257         Make determination of absolute name of header file work with AIX xlc.
46258         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
46259         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
46260         preprocessing.
46261         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46262         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
46263
46264 2008-11-03  Simon Josefsson  <simon@josefsson.org>
46265
46266         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
46267         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
46268         <ludo@gnu.org>.
46269
46270 2008-11-02  Bruno Haible  <bruno@clisp.org>
46271
46272         Mark 'strpbrk' obsolete.
46273         * modules/strpbrk (Status, Notice): New sections.
46274         * modules/strtok_r (Depends-on): Add strpbrk.
46275
46276 2008-11-02  Bruno Haible  <bruno@clisp.org>
46277
46278         Mark 'strdup' obsolete.
46279         * modules/strdup (Status, Notice): New sections.
46280         * modules/findprog (Depends-on): Add strdup.
46281         * modules/getaddrinfo (Depends-on): Likewise.
46282         * modules/localename (Depends-on): Likewise.
46283         * modules/relocatable-lib (Depends-on): Likewise.
46284         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
46285         * modules/relocatable-prog (Depends-on): Likewise.
46286         * modules/trim (Depends-on): Likewise.
46287         * modules/unictype/gen-ctype (Depends-on): Likewise.
46288         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
46289
46290 2008-11-02  Bruno Haible  <bruno@clisp.org>
46291
46292         Mark 'strcspn' obsolete.
46293         * modules/strcspn (Status, Notice): New sections.
46294
46295 2008-11-02  Bruno Haible  <bruno@clisp.org>
46296
46297         Mark 'rmdir' obsolete.
46298         * modules/rmdir (Status, Notice): New sections.
46299         * modules/clean-temp (Depends-on): Add rmdir.
46300         * modules/openat (Depends-on): Likewise.
46301
46302 2008-11-02  Bruno Haible  <bruno@clisp.org>
46303
46304         Mark 'raise' obsolete.
46305         * modules/raise (Status, Notice): New sections.
46306         (Include): Specify <signal.h>.
46307         * modules/stdio (Depends-on): Add raise.
46308         * modules/write (Depends-on): Likewise.
46309
46310 2008-11-02  Bruno Haible  <bruno@clisp.org>
46311
46312         Mark 'memset' obsolete.
46313         * modules/memset (Status, Notice): New sections.
46314
46315 2008-11-02  Bruno Haible  <bruno@clisp.org>
46316
46317         Mark 'memmove' obsolete.
46318         * modules/memmove (Status, Notice): New sections.
46319         * modules/argp (Depends-on): Add memmove.
46320         * modules/argz (Depends-on): Likewise.
46321         * modules/canonicalize (Depends-on): Likewise.
46322         * modules/canonicalize-lgpl (Depends-on): Likewise.
46323         * modules/fts (Depends-on): Likewise.
46324         * modules/getcwd (Depends-on): Likewise.
46325         * modules/human (Depends-on): Likewise.
46326         * modules/regex (Depends-on): Likewise.
46327         * modules/striconveh (Depends-on): Likewise.
46328         * modules/trim (Depends-on): Likewise.
46329         * modules/unistr/u8-move (Depends-on): Likewise.
46330         * modules/unistr/u16-move (Depends-on): Likewise.
46331         * modules/unistr/u32-move (Depends-on): Likewise.
46332
46333 2008-11-02  Bruno Haible  <bruno@clisp.org>
46334
46335         Mark 'memcpy' obsolete.
46336         * modules/memcpy (Status, Notice): New sections.
46337
46338 2008-11-02  Bruno Haible  <bruno@clisp.org>
46339
46340         Mark 'memcmp' obsolete.
46341         * modules/memcmp (Status, Notice): New sections.
46342         * modules/argmatch (Depends-on): Add memchr.
46343         * modules/backupfile (Depends-on): Likewise.
46344         * modules/c-strcasestr (Depends-on): Likewise.
46345         * modules/crypto/des (Depends-on): Likewise.
46346         * modules/csharpcomp (Depends-on): Likewise.
46347         * modules/fnmatch (Depends-on): Likewise.
46348         * modules/git-merge-changelog (Depends-on): Likewise.
46349         * modules/isnand (Depends-on): Likewise.
46350         * modules/isnand-nolibm (Depends-on): Likewise.
46351         * modules/isnanf (Depends-on): Likewise.
46352         * modules/isnanf-nolibm (Depends-on): Likewise.
46353         * modules/isnanl (Depends-on): Likewise.
46354         * modules/isnanl-nolibm (Depends-on): Likewise.
46355         * modules/mbchar (Depends-on): Likewise.
46356         * modules/memcoll (Depends-on): Likewise.
46357         * modules/quotearg (Depends-on): Likewise.
46358         * modules/regex (Depends-on): Likewise.
46359         * modules/relocatable-prog (Depends-on): Likewise.
46360         * modules/same (Depends-on): Likewise.
46361         * modules/signbit (Depends-on): Likewise.
46362         * modules/strcasestr-simple (Depends-on): Likewise.
46363         * modules/unictype/gen-ctype (Depends-on): Likewise.
46364         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
46365         * modules/uniname/uniname (Depends-on): Likewise.
46366         * modules/unistr/u8-cmp (Depends-on): Likewise.
46367
46368 2008-11-02  Bruno Haible  <bruno@clisp.org>
46369
46370         Mark 'memchr' obsolete.
46371         * modules/memchr (Status, Notice): New sections.
46372         * modules/argp (Depends-on): Add memchr.
46373         * modules/base64 (Depends-on): Likewise.
46374         * modules/c-strcasestr (Depends-on): Likewise.
46375         * modules/chdir-long (Depends-on): Likewise.
46376         * modules/fnmatch (Depends-on): Likewise.
46377         * modules/getsubopt (Depends-on): Likewise.
46378         * modules/git-merge-changelog (Depends-on): Likewise.
46379         * modules/glob (Depends-on): Likewise.
46380         * modules/strcasestr-simple (Depends-on): Likewise.
46381         * modules/strnlen (Depends-on): Likewise.
46382
46383 2008-11-02  Bruno Haible  <bruno@clisp.org>
46384
46385         Mark 'atexit' obsolete.
46386         * modules/atexit (Status, Notice): New sections.
46387         * modules/chdir-long (Depends-on): Add atexit.
46388         * modules/wait-process (Depends-on): Likewise.
46389
46390 2008-11-02  Bruno Haible  <bruno@clisp.org>
46391
46392         * gnulib-tool: New option --with-obsolete.
46393         (func_usage): Document it.
46394         (func_modules_transitive_closure): Drop obsolete dependencies if
46395         incobsolete is not true.
46396         (func_import): Read and save the incobsolete variable to the cache.
46397
46398 2008-11-02  Bruno Haible  <bruno@clisp.org>
46399
46400         * modules/TEMPLATE-EXTENDED: New field 'Status'.
46401         * gnulib-tool: New option --extract-status.
46402         (func_usage): Document it.
46403         (sed_extract_prog): Recognize it.
46404         (func_get_status): New function.
46405
46406 2008-10-30  Simon Josefsson  <simon@josefsson.org>
46407
46408         * modules/sockets (License): Change from LGPL to LGPLv2+.
46409
46410 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46411
46412         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
46413
46414 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46415
46416         * MODULES.html.sh (Support for systems lacking POSIX:2001):
46417         Mention times and sys_times.
46418         * modules/sys_times, modules/sys_times-tests: New modules.
46419         * modules/times, modules/times-tests: Likewise
46420         * m4/sys_times_h.m4: New file.
46421         * lib/sys_times.in.h: Likewise
46422         * lib/times.c: Likewise.
46423         * tests/test-sys_times.c: Likewise.
46424         * tests/test-times.c: Likewise.
46425         * doc/posix-headers/sys_times.texi: Update.
46426         * doc/posix-functions/times.texi: Update.
46427
46428 2008-10-28  Jim Meyering  <meyering@redhat.com>
46429
46430         * modules/tempname (Depends-on): Add lstat.
46431
46432         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
46433
46434 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46435
46436         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
46437         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
46438         using idiom used elsewhere in gnulib.
46439
46440 2008-10-27  Jim Meyering  <meyering@redhat.com>
46441
46442         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
46443
46444 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46445
46446         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
46447         TESTS_ENVIRONMENT, for shell scripts that needs to call built
46448         programs.
46449         * tests/test-argp-2.sh: Use $EXEEXT when needed.
46450
46451 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46452
46453         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
46454
46455 2008-10-27  Bruno Haible  <bruno@clisp.org>
46456
46457         * tests/test-lstat.c: Include <stdio.h>.
46458
46459 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46460
46461         * modules/lstat-tests: New module.
46462         * tests/test-lstat.c: New file.
46463
46464 2008-10-26  Jim Meyering  <meyering@redhat.com>
46465
46466         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
46467
46468 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46469             Bruno Haible  <bruno@clisp.org>
46470
46471         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
46472         * modules/configmake (Include): Add a note that the include must come
46473         after all system headers.
46474         * lib/javaversion.c: Include configmake.h after all other includes.
46475
46476 2008-10-26  Bruno Haible  <bruno@clisp.org>
46477
46478         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
46479         HAVE_STRUCT_RANDOM_DATA to 1.
46480         (gl_STDLIB_H): Simplify.
46481
46482 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46483
46484         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
46485         substitute HAVE_STRUCT_RANDOM_DATA.
46486         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
46487         random_data.
46488         * modules/stdlib (Makefile.am): Substitute
46489         HAVE_STRUCT_RANDOM_DATA.
46490
46491 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46492
46493         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
46494         * doc/gnulib-intro.texi (Copyright): Likewise.
46495
46496 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46497
46498         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
46499         findings.
46500
46501 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
46502             Bruno Haible  <bruno@clisp.org>
46503
46504         * lib/unistd.in.h: Include <winsock2.h>.
46505         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
46506         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
46507         Provide dummy declarations.
46508         (gethostname): Override.
46509         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
46510         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
46511         gl_PREREQ_SYS_H_WINSOCK2.
46512         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
46513         * doc/posix-functions/gethostname.texi: More details.
46514
46515 2008-10-25  Bruno Haible  <bruno@clisp.org>
46516
46517         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46518         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
46519         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
46520
46521         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
46522         here ...
46523         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
46524         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
46525         gl_UNISTD_H_DEFAULTS.
46526
46527 2008-10-25  Eric Blake  <ebb9@byu.net>
46528
46529         signbit: avoid spurious compiler failure
46530         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
46531         declarations inside function.
46532
46533 2008-10-24  Simon Josefsson  <simon@josefsson.org>
46534             Bruno Haible  <bruno@clisp.org>
46535
46536         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
46537         * modules/random_r (Depends-on): Add stdint.
46538
46539 2008-10-24  Bruno Haible  <bruno@clisp.org>
46540
46541         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
46542         Eggert.
46543         * modules/strerror (License): Likewise.
46544
46545 2008-10-24  Jim Meyering  <meyering@redhat.com>
46546
46547         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
46548         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
46549
46550 2008-10-24  Eric Blake  <ebb9@byu.net>
46551
46552         getgroups: fix compilation when getgroups is available
46553         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
46554         but with <config.h> override of getgroups disabled.
46555
46556 2008-10-24  Simon Josefsson  <simon@josefsson.org>
46557
46558         * doc/gnulib.texi (Header files): Add note about C++ problems.
46559         Explained by Bruno Haible <bruno@clisp.org>.
46560
46561 2008-10-23  Bruno Haible  <bruno@clisp.org>
46562
46563         Define a dummy SA_NODEFER macro on Interix.
46564         * lib/signal.in.h (SA_NODEFER): Define fallback.
46565         Reported by Aleksey Cheusov <cheusov@tut.by> via
46566         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
46567
46568 2008-10-23  Bruno Haible  <bruno@clisp.org>
46569
46570         * modules/freadahead (License): Change to LGPLv2+.
46571         Suggested by Simon Josefsson.
46572
46573 2008-10-23  Jim Meyering  <meyering@redhat.com>
46574
46575         random_r: new module
46576         * modules/random_r: New file.
46577         * m4/random_r.m4: New file.
46578         * lib/random_r.c: New file, from glibc.
46579         * modules/random_r-tests: New file.
46580         * tests/test-random_r.c: New file.
46581         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
46582          Declare.
46583         (RAND_MAX): Define.
46584         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
46585         * modules/stdlib: Substitute them, too.
46586         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
46587         * doc/glibc-functions/initstate_r.texi: Mention the new module.
46588         * doc/glibc-functions/random_r.texi: Likewise.
46589         * doc/glibc-functions/setstate_r.texi: Likewise.
46590         * doc/glibc-functions/srandom_r.texi: Likewise.
46591         * config/srclist.txt: Mention it.
46592
46593 2008-10-23  David Lutterkort  <lutter@redhat.com>
46594
46595         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
46596         link requirement
46597
46598 2008-10-23  Jim Meyering  <meyering@redhat.com>
46599
46600         selinux-h: mark parameters of stub functions as intentionally unused
46601         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
46602         * lib/se-context.in.h: Likewise.
46603
46604 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46605
46606         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
46607
46608 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46609
46610         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
46611
46612 2008-10-22  Eric Blake  <ebb9@byu.net>
46613
46614         glthread/thread: avoid compiler warning
46615         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
46616         Add unreachable abort to silence compiler.
46617
46618 2008-10-22  Eric Blake  <ebb9@byu.net>
46619
46620         netdb: also supply struct addrinfo for cygwin 1.5.x
46621         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
46622         older cygwin.
46623         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
46624         cygwin.
46625         * doc/posix-headers/netdb.texi (netdb.h): Document this.
46626
46627 2008-10-22  Bruno Haible  <bruno@clisp.org>
46628
46629         * users.txt: Update entry about pspp.
46630
46631 2008-10-21  Bruno Haible  <bruno@clisp.org>
46632
46633         Simplification.
46634         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
46635         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
46636
46637         Simplification.
46638         * lib/ioctl.c (ioctl): Don't undefine.
46639         * lib/socket.c (socket): Don't undefine.
46640
46641         Remove unused module indicator macros.
46642         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
46643         GNULIB_$1 as a C macro.
46644
46645         * doc/posix-functions/close.texi: Undo last change.
46646         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
46647         Windows platforms.
46648
46649 2008-10-21  Bruno Haible  <bruno@clisp.org>
46650
46651         Add gethostname() declaration to <unistd.h>.
46652         * lib/unistd.in.h (gethostname): New declaration.
46653         * lib/gethostname.c: Include <unistd.h>.
46654         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
46655         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
46656         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
46657         and HAVE_GETHOSTNAME.
46658         * modules/gethostname (Depends-on): Add unistd.
46659         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46660         (Include): Specify <unistd.h>.
46661         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
46662         HAVE_GETHOSTNAME.
46663         * tests/test-gethostname.c: Include <unistd.h> first.
46664
46665 2008-10-21  Bruno Haible  <bruno@clisp.org>
46666
46667         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
46668         * modules/select-tests (Depends-on): Likewise.
46669         Reported by Simon Josefsson.
46670
46671 2008-10-21  Simon Josefsson  <simon@josefsson.org>
46672
46673         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
46674         * lib/accept.c: New file, based on winsock.c.
46675         * lib/bind.c: New file, based on winsock.c.
46676         * lib/connect.c: New file, based on winsock.c.
46677         * lib/getpeername.c: New file, based on winsock.c.
46678         * lib/getsockname.c: New file, based on winsock.c.
46679         * lib/getsockopt.c: New file, based on winsock.c.
46680         * lib/ioctl.c: New file, based on winsock.c.
46681         * lib/listen.c: New file, based on winsock.c.
46682         * lib/recv.c: New file, based on winsock.c.
46683         * lib/recvfrom.c: New file, based on winsock.c.
46684         * lib/send.c: New file, based on winsock.c.
46685         * lib/sendto.c: New file, based on winsock.c.
46686         * lib/setsockopt.c: New file, based on winsock.c.
46687         * lib/shutdown.c: New file, based on winsock.c.
46688         * lib/socket.c: New file, based on winsock.c.
46689         * lib/w32sock.h: New file, based on winsock.c.
46690         * lib/winsock.c: Remove file.
46691         * modules/accept: Likewise.
46692         * modules/bind: Likewise.
46693         * modules/connect: Likewise.
46694         * modules/getpeername: Likewise.
46695         * modules/getsockname: Likewise.
46696         * modules/getsockopt: Likewise.
46697         * modules/ioctl: Likewise.
46698         * modules/listen: Likewise.
46699         * modules/recv: Likewise.
46700         * modules/recvfrom: Likewise.
46701         * modules/send: Likewise.
46702         * modules/sendto: Likewise.
46703         * modules/setsockopt: Likewise.
46704         * modules/shutdown: Likewise.
46705         * modules/socket: Use socket.c instead of winsock.c.
46706         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
46707         * doc/posix-functions/accept.texi: Doc fix.
46708         * doc/posix-functions/bind.texi: Doc fix.
46709         * doc/posix-functions/close.texi: Doc fix.
46710         * doc/posix-functions/connect.texi: Doc fix.
46711         * doc/posix-functions/getpeername.texi: Doc fix.
46712         * doc/posix-functions/getsockname.texi: Doc fix.
46713         * doc/posix-functions/getsockopt.texi: Doc fix.
46714         * doc/posix-functions/ioctl.texi: Doc fix.
46715         * doc/posix-functions/listen.texi: Doc fix.
46716         * doc/posix-functions/recv.texi: Doc fix.
46717         * doc/posix-functions/recvfrom.texi: Doc fix.
46718         * doc/posix-functions/send.texi: Doc fix.
46719         * doc/posix-functions/sendto.texi: Doc fix.
46720         * doc/posix-functions/setsockopt.texi: Doc fix.
46721         * doc/posix-functions/shutdown.texi: Doc fix.
46722         * doc/posix-functions/socket.texi: Doc fix.
46723
46724 2008-10-20  Bruno Haible  <bruno@clisp.org>
46725
46726         Take into account the role of SIGABRT_COMPAT on Windows 2008.
46727         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
46728         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
46729         as an alias for SIGABRT.
46730         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
46731         (sigaction): Map it to SIGABRT.
46732         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
46733
46734 2008-10-20  Bruno Haible  <bruno@clisp.org>
46735
46736         * lib/fts.c: Don't include lstat.h.
46737         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
46738
46739         Move the lstat() declaration to <sys/stat.h>.
46740         * lib/lstat.h: Remove file.
46741         * lib/sys_stat.in.h: Add special invocation convention.
46742         (lstat): New declaration.
46743         * lib/lstat.c (orig_lstat): New function.
46744         (rpl_lstat): Use orig_lstat instead of lstat.
46745         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
46746         AC_C_INLINE. Set REPLACE_LSTAT.
46747         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
46748         and REPLACE_LSTAT.
46749         * modules/lstat (Files): Remove lib/lstat.h.
46750         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46751         (Include): Specify <sys/stat.h> instead of lstat.h.
46752         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
46753         REPLACE_LSTAT.
46754         * NEWS: Mention the change.
46755
46756 2008-10-20  Bruno Haible  <bruno@clisp.org>
46757
46758         * modules/posix_spawn-tests: New file.
46759         * tests/test-posix_spawn3.c: New file.
46760
46761 2008-10-20  Bruno Haible  <bruno@clisp.org>
46762
46763         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
46764         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46765         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
46766         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46767         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
46768
46769 2008-10-20  Bruno Haible  <bruno@clisp.org>
46770
46771         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
46772         of posix_spawn on AIX 5.3.
46773
46774 2008-10-20  Bruno Haible  <bruno@clisp.org>
46775
46776         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
46777
46778 2008-10-20  Bruno Haible  <bruno@clisp.org>
46779
46780         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
46781         of AC_LANG_PROGRAM.
46782
46783 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46784
46785         * lib/netdb.in.h: Don't define GNU specific constants until they
46786         are supported or needed.  Reported by Bruno Haible
46787         <bruno@clisp.org>.
46788
46789 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46790
46791         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
46792
46793 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46794
46795         * lib/getaddrinfo.h: Remove file.
46796         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
46797         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
46798         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
46799         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
46800         * modules/netdb: Substitute GNULIB_GETADDRINFO.
46801         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
46802         * tests/test-getaddrinfo.c: Likewise.
46803         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
46804         * NEWS: Mention change.
46805
46806 2008-10-19  Bruno Haible  <bruno@clisp.org>
46807
46808         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
46809
46810 2008-10-19  Bruno Haible  <bruno@clisp.org>
46811
46812         * lib/wait-process.c: Include simply <sys/wait.h>.
46813         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
46814         WIFSTOPPED): Remove fallback definitions.
46815         * modules/wait-process (Depends-on): Add sys_wait.
46816
46817         New module 'sys_wait'.
46818         * modules/sys_wait: New file.
46819         * lib/sys_wait.in.h: New file, partially copied from
46820         lib/wait-process.c.
46821         * m4/sys_wait_h.m4: New file.
46822         * doc/posix-headers/sys_wait.texi: Mention the new module.
46823
46824 2008-10-19  Bruno Haible  <bruno@clisp.org>
46825
46826         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
46827
46828 2008-10-19  Bruno Haible  <bruno@clisp.org>
46829
46830         Assume that waitpid() fills an 'int' status, not a 'union wait'.
46831         * lib/wait-process.c (WAIT_T): Remove type.
46832         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
46833         (wait_subprocess): Update.
46834
46835 2008-10-19  Bruno Haible  <bruno@clisp.org>
46836
46837         New module 'atoll'.
46838         * modules/atoll: New file.
46839         * lib/stdlib.in.h (atoll): New declaration.
46840         * lib/atoll.c: New file, from glibc with modifications.
46841         * m4/atoll.m4: New file.
46842         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
46843         HAVE_ATOLL.
46844         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
46845         * doc/posix-functions/atoll.texi: Mention the new module.
46846
46847 2008-10-19  Bruno Haible  <bruno@clisp.org>
46848
46849         Add strtoull() declaration to <stdlib.h>.
46850         * lib/stdlib.in.h (strtoull): New declaration.
46851         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46852         Set HAVE_STRTOULL.
46853         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
46854         HAVE_STRTOULL.
46855         * modules/strtoull (Depends-on): Add stdlib.
46856         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46857         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
46858         HAVE_STRTOULL.
46859
46860 2008-10-19  Bruno Haible  <bruno@clisp.org>
46861
46862         Add strtoll() declaration to <stdlib.h>.
46863         * lib/stdlib.in.h (strtoll): New declaration.
46864         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46865         Set HAVE_STRTOLL.
46866         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
46867         HAVE_STRTOLL.
46868         * modules/strtoll (Depends-on): Add stdlib.
46869         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46870         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
46871
46872 2008-10-19  Bruno Haible  <bruno@clisp.org>
46873
46874         * modules/bcopy (Depends-on): Add strings.
46875         (Include): Specify <strings.h>.
46876
46877 2008-10-19  Bruno Haible  <bruno@clisp.org>
46878
46879         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
46880
46881 2008-10-19  Bruno Haible  <bruno@clisp.org>
46882
46883         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
46884         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
46885         mingw.
46886
46887 2008-10-19  Bruno Haible  <bruno@clisp.org>
46888
46889         * lib/atanl.c: Don't include isnanl.h.
46890         * lib/cosl.c: Likewise.
46891         * lib/ldexpl.c: Likewise.
46892         * lib/logl.c: Likewise.
46893         * lib/sinl.c: Likewise.
46894         * lib/sqrtl.c: Likewise.
46895         * lib/tanl.c: Likewise.
46896
46897         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
46898         * lib/isnanf.h: Remove file.
46899         * lib/isnand.h: Remove file.
46900         * lib/isnanl.h: Remove file.
46901         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
46902         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
46903         macros.
46904         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
46905         HAVE_ISNANF, don't define it as a C macro.
46906         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
46907         HAVE_ISNAND, don't define it as a C macro.
46908         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
46909         HAVE_ISNANL, don't define it as a C macro.
46910         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
46911         HAVE_ISNAN[FDL].
46912         * modules/isnanf (Files): Remove lib/isnanf.h.
46913         (Depends-on): Add math.
46914         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46915         (Include): Specify <math.h> instead of isnanf.h.
46916         * modules/isnand (Files): Remove lib/isnand.h.
46917         (Depends-on): Add math.
46918         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46919         (Include): Specify <math.h> instead of isnand.h.
46920         * modules/isnanl (Files): Remove lib/isnanl.h.
46921         (Depends-on): Add math.
46922         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46923         (Include): Specify <math.h> instead of isnanl.h.
46924         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
46925         HAVE_ISNAN[FDL].
46926         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
46927         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
46928         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
46929         * NEWS: Mention the change.
46930
46931 2008-10-18  Bruno Haible  <bruno@clisp.org>
46932
46933         Add getusershell(), setusershell(), endusershell() declarations to
46934         <unistd.h>.
46935         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
46936         declarations.
46937         * lib/getusershell.c: Include unistd.h.
46938         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
46939         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46940         HAVE_GETUSERSHELL.
46941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
46942         and HAVE_GETUSERSHELL.
46943         * modules/getusershell (Depends-on): Add unistd, extensions.
46944         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46945         (Include): Specify <unistd.h>.
46946         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
46947         HAVE_GETUSERSHELL.
46948
46949 2008-10-18  Bruno Haible  <bruno@clisp.org>
46950
46951         Add a getloadavg() declaration to <stdlib.h>.
46952         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
46953         getloadavg declaration.
46954         (getloadavg): New declaration.
46955         * lib/getloadavg.c: Include <stdlib.h> first.
46956         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
46957         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
46958         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
46959         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
46960         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46961         * modules/getloadavg (Depends-on): Add stdlib, extensions.
46962         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46963         (Include): Specify <stdlib.h>.
46964         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
46965         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46966
46967 2008-10-18  Bruno Haible  <bruno@clisp.org>
46968
46969         * lib/dirchownmod.c: Don't include lchmod.h.
46970
46971         Move the lchmod() declaration to <sys/stat.h>.
46972         * lib/lchmod.h: Remove file.
46973         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
46974         (lchmod): New declaration, moved here from lib/lchown.h.
46975         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
46976         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
46977         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
46978         and HAVE_LCHMOD.
46979         * modules/lchmod (Files): Remove lib/lchmod.h.
46980         (Depends-on): Add sys_stat, extensions.
46981         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46982         (Include): Specify <sys/stat.h> instead of lchmod.h.
46983         * modules/sys_stat (Depends-on): Add link-warning.
46984         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
46985         definition of GL_LINK_WARNING.
46986         * NEWS: Mention the change.
46987
46988 2008-10-18  Bruno Haible  <bruno@clisp.org>
46989
46990         * lib/fchdir.c: Don't include dirfd.h.
46991         * lib/fts.c: Likewise.
46992         * lib/getcwd.c: Likewise.
46993         * lib/glob.c: Likewise.
46994
46995         Move the dirfd() declaration to <dirent.h>.
46996         * lib/dirfd.h: Remove file.
46997         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
46998         (dirfd): New declaration.
46999         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
47000         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
47001         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
47002         HAVE_DECL_DIRFD.
47003         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
47004         HAVE_DECL_DIRFD.
47005         * modules/dirfd (Files): Remove lib/dirfd.h.
47006         (Depends-on): Add dirent, extensions.
47007         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
47008         (Include): Specify <dirent.h> instead of dirfd.h.
47009         * modules/dirent (Depends-on): Add link-warning.
47010         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
47011         definition of GL_LINK_WARNING.
47012         * NEWS: Mention the change.
47013
47014 2008-10-18  Bruno Haible  <bruno@clisp.org>
47015
47016         Move the euidaccess() declaration to <unistd.h>.
47017         * lib/euidaccess.h: Remove file.
47018         * lib/unistd.in.h (euidaccess): New declaration.
47019         * lib/euidaccess.c: Don't include euidaccess.h.
47020         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
47021         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
47022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
47023         and HAVE_EUIDACCESS.
47024         * modules/euidaccess (Files): Remove lib/euidaccess.h.
47025         (Depends-on): Add unistd.
47026         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47027         (Include): Specify <unistd.h> instead of euidaccess.h.
47028         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
47029         HAVE_EUIDACCESS.
47030         * NEWS: Mention the change.
47031
47032 2008-10-18  Bruno Haible  <bruno@clisp.org>
47033
47034         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
47035
47036         Move the getdomainname() declaration to <unistd.h>.
47037         * lib/getdomainname.h: Remove file.
47038         * lib/unistd.in.h (getdomainname): New declaration.
47039         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
47040         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
47041         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
47042         HAVE_GETDOMAINNAME.
47043         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47044         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
47045         * modules/getdomainname (Files): Remove lib/getdomainname.h.
47046         (Depends-on): Add unistd, extensions.
47047         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47048         (Includes): Specify <unistd.h> instead of getdomainname.h.
47049         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
47050         HAVE_GETDOMAINNAME.
47051         * NEWS: Mention the change.
47052
47053 2008-10-18  Bruno Haible  <bruno@clisp.org>
47054
47055         * modules/dirent: New file.
47056         * m4/dirent_h.m4: New file.
47057         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
47058         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
47059         * modules/fchdir (Files): Remove lib/dirent.in.h.
47060         (Depends-on): Add dirent.
47061         (Makefile.am): Move rules to modules/dirent.
47062         * doc/posix-headers/dirent.texi: Mention the new module.
47063
47064 2008-10-18  Bruno Haible  <bruno@clisp.org>
47065
47066         Avoid -Wunused-parameter warnings in public gnulib header files.
47067         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
47068         macro.
47069         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
47070
47071 2008-10-18  Bruno Haible  <bruno@clisp.org>
47072
47073         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
47074         * doc/glibc-functions/error.texi: Mention the module 'error'.
47075         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
47076         * doc/glibc-functions/getdomainname.texi: Mention the module
47077         'getdomainname'.
47078         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
47079         * doc/glibc-functions/getpagesize.texi: Mention the module
47080         'getpagesize'.
47081         * doc/glibc-functions/getusershell.texi: Mention the module
47082         'getusershell'.
47083         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
47084         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
47085         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
47086         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
47087         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
47088         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
47089         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
47090         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
47091         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
47092         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
47093         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
47094         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
47095         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
47096         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
47097
47098 2008-10-17  Bruno Haible  <bruno@clisp.org>
47099
47100         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
47101         HP-UX and IRIX, use -0.0L.
47102         * tests/test-ceill.c (minus_zero): Likewise.
47103         * tests/test-floorl.c (minus_zero): Likewise.
47104         * tests/test-frexpl.c (minus_zero): Likewise.
47105         * tests/test-isnan.c (minus_zerol): Likewise.
47106         * tests/test-isnanl.h (minus_zero): Likewise.
47107         * tests/test-ldexpl.c (minus_zero): Likewise.
47108         * tests/test-roundl.c (minus_zero): Likewise.
47109         * tests/test-signbit.c (minus_zerol): Likewise.
47110         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47111         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47112         * tests/test-truncl.c (minus_zero): Likewise.
47113         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47114         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47115         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
47116         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47117
47118 2008-10-17  Bruno Haible  <bruno@clisp.org>
47119
47120         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
47121         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
47122         that it gets activated only for gcc >= 3.0.
47123         * lib/dirent.in.h: Likewise.
47124         * lib/errno.in.h: Likewise.
47125         * lib/fcntl.in.h: Likewise.
47126         * lib/float.in.h: Likewise.
47127         * lib/iconv.in.h: Likewise.
47128         * lib/inttypes.in.h: Likewise.
47129         * lib/locale.in.h: Likewise.
47130         * lib/math.in.h: Likewise.
47131         * lib/netdb.in.h: Likewise.
47132         * lib/netinet_in.in.h: Likewise.
47133         * lib/search.in.h: Likewise.
47134         * lib/signal.in.h: Likewise.
47135         * lib/spawn.in.h: Likewise.
47136         * lib/stdarg.in.h: Likewise.
47137         * lib/stdint.in.h: Likewise.
47138         * lib/stdio.in.h: Likewise.
47139         * lib/stdlib.in.h: Likewise.
47140         * lib/string.in.h: Likewise.
47141         * lib/strings.in.h: Likewise.
47142         * lib/sys_file.in.h: Likewise.
47143         * lib/sys_ioctl.in.h: Likewise.
47144         * lib/sys_select.in.h: Likewise.
47145         * lib/sys_socket.in.h: Likewise.
47146         * lib/sys_stat.in.h: Likewise.
47147         * lib/sys_time.in.h: Likewise.
47148         * lib/sysexits.in.h: Likewise.
47149         * lib/time.in.h: Likewise.
47150         * lib/unistd.in.h: Likewise.
47151         * lib/wchar.in.h: Likewise.
47152         * lib/wctype.in.h: Likewise.
47153         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47154
47155 2008-10-17  Jim Meyering  <meyering@redhat.com>
47156
47157         ignore-value: don't depend on inline module
47158         * modules/ignore-value (Depends-on): Remove 'inline'.
47159         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
47160         Suggestion from Bruno Haible.
47161
47162 2008-10-17  Bruno Haible  <bruno@clisp.org>
47163
47164         New implementation of condition variables for Win32.
47165         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
47166         (gl_linked_waitqueue_t): New type.
47167         (gl_cond_t): Use it.
47168         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
47169         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
47170         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
47171         (glthread_cond_init_func, glthread_cond_wait_func,
47172         glthread_cond_timedwait_func, glthread_cond_signal_func,
47173         glthread_cond_broadcast_func, glthread_cond_destroy_func):
47174         Reimplemented on the basis of gl_linked_waitqueue_t.
47175         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
47176         gl_waitqueue_t.
47177         (gl_rwlock_t): Update.
47178         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
47179
47180 2008-10-17  Simon Josefsson  <simon@josefsson.org>
47181
47182         * modules/recvfrom (Depends-on): Add dependency on getpeername.
47183         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47184
47185 2008-10-17  Jim Meyering  <meyering@redhat.com>
47186
47187         ignore-value: new module
47188         * modules/ignore-value: New file.
47189         * lib/ignore-value.h: New file.
47190         * MODULES.html.sh (Compiler warning management): New section,
47191         just for this module.  More to come.
47192
47193 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47194
47195         open-safer.c: avoid 'signed and unsigned in conditional...' warning
47196         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
47197         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
47198
47199 2008-10-16  Jim Meyering  <meyering@redhat.com>
47200
47201         openat-die.c: avoid 'no previous prototype' warning
47202         * lib/openat-die.c: Include "openat.h".
47203         Reported by Reuben Thomas <rrt@sc3d.org>.
47204
47205 2008-10-16  Simon Josefsson  <simon@josefsson.org>
47206
47207         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
47208         * lib/netdb.in.h: Fix typo.
47209         Reported by Bruno Haible  <bruno@clisp.org>
47210
47211         * lib/netdb.in.h: Include sys/socket.h for platforms without
47212         netdb.h, to get structures like hostent on MinGW.
47213         * modules/netdb (Depends-on): Add sys_socket.
47214
47215 2008-10-15  Simon Josefsson  <simon@josefsson.org>
47216
47217         * modules/netdb, modules/netdb-tests: New file.
47218         * m4/netdb_h.m4: New file.
47219         * lib/netdb.in.h: Add, currently just an empty file pending
47220         definitions.
47221         * tests/test-netdb.c: New file.
47222         * doc/posix-headers/netdb.texi: Mention that we replace it if
47223         needed.
47224         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47225         netdb.
47226
47227 2008-10-15  Simon Josefsson  <simon@josefsson.org>
47228
47229         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
47230         with code.
47231
47232 2008-10-13  Bruno Haible  <bruno@clisp.org>
47233
47234         * lib/glthread/cond.c (glthread_cond_wait_func,
47235         glthread_cond_timedwait_func): Add a comment.
47236
47237 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47238
47239         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
47240         * tests/test-select.c: Likewise,
47241
47242 2008-10-13  Bruno Haible  <bruno@clisp.org>
47243
47244         * lib/glthread/cond.c (glthread_cond_wait_func,
47245         glthread_cond_timedwait_func): Fix variable name.
47246         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47247
47248 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
47249
47250         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
47251         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
47252         struct sockaddr.sa_len.
47253         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
47254
47255 2008-10-13  Simon Josefsson  <simon@josefsson.org>
47256
47257         * build-aux/pmccabe2html: Add css and css_url parameters.
47258
47259 2008-10-12  Bruno Haible  <bruno@clisp.org>
47260
47261         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
47262         calling aclx_get.
47263         Reported by Rainer Tammer <tammer@tammer.net>.
47264
47265 2008-10-12  Bruno Haible  <bruno@clisp.org>
47266
47267         Use msvcrt aware primitives for creation/termination of Win32 threads.
47268         * lib/glthread/thread.c: Include <process.h>.
47269         (glthread_create_func): Use _beginthreadex instead of CreateThread.
47270         (wrapper_func): Update signature.
47271         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
47272
47273 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47274             Bruno Haible  <bruno@clisp.org>
47275
47276         Provide a Win32 implementation of the 'cond' module.
47277         * lib/glthread/cond.h [USE_WIN32]: New implementation.
47278         * lib/glthread/cond.c (glthread_cond_init_func,
47279         glthread_cond_wait_func, glthread_cond_timedwait_func,
47280         glthread_cond_signal_func, glthread_cond_broadcast_func,
47281         glthread_cond_destroy_func) [USE_WIN32]: New functions.
47282         * modules/cond (Dependencies): Add gettimeofday.
47283
47284 2008-10-11  Bruno Haible  <bruno@clisp.org>
47285
47286         Make sleep work on older versions of mingw.
47287         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
47288         only whether it exists.
47289         * doc/posix-functions/sleep.texi: Mention the problem with older
47290         versions of mingw.
47291
47292 2008-10-11  Bruno Haible  <bruno@clisp.org>
47293
47294         New module 'shutdown'.
47295         * modules/shutdown: New file.
47296         * lib/sys_socket.in.h (shutdown): New declaration.
47297         * lib/winsock.c (shutdown): New function.
47298         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47299         GNULIB_SHUTDOWN.
47300         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
47301         * doc/posix-functions/shutdown.texi: Document the new module.
47302
47303 2008-10-11  Jim Meyering  <meyering@redhat.com>
47304
47305         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
47306
47307 2008-10-11  Bruno Haible  <bruno@clisp.org>
47308
47309         New module 'fclose'.
47310         * modules/fclose: New file.
47311         * lib/stdio.in.h (fclose): New declaration.
47312         * lib/fclose.c: New file.
47313         * m4/fclose.m4: New file.
47314         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
47315         REPLACE_FCLOSE.
47316         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
47317         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
47318         REPLACE_FCLOSE.
47319         * modules/close (Depends-on): fclose.
47320         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
47321
47322 2008-10-11  Bruno Haible  <bruno@clisp.org>
47323
47324         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
47325         set errno and don't call _close.
47326
47327 2008-10-10  Bruno Haible  <bruno@clisp.org>
47328
47329         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
47330         ACL, not afterwards. Fixes test failure on Cygwin.
47331
47332 2008-10-09  Ben Pfaff  <blp@gnu.org>
47333
47334         * build-aux/announce-gen: Fix gnulib version related part of usage
47335         message.  Die with a useful error message if no tarballs are
47336         found.
47337
47338 2008-10-10  Jim Meyering  <meyering@redhat.com>
47339
47340         bootstrap: use git's --depth=N option only if it's supported
47341         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
47342         recognize the --depth option.  Reported by Pádraig Brady.
47343
47344 2008-10-09  Bruno Haible  <bruno@clisp.org>
47345
47346         New module 'ioctl'.
47347         * modules/ioctl: New file.
47348         * lib/sys_socket.in.h (ioctl): Remove declaration.
47349         * lib/winsock.c: Include <sys/ioctl.h>.
47350         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
47351         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
47352         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
47353         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
47354         * doc/posix-functions/ioctl.texi: Mention the new module.
47355
47356 2008-10-09  Bruno Haible  <bruno@clisp.org>
47357
47358         New module 'sys_ioctl'.
47359         * lib/sys_ioctl.in.h: New file.
47360         * m4/sys_ioctl_h.m4: New file.
47361         * modules/sys_ioctl: New file.
47362         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
47363
47364 2008-10-09  Bruno Haible  <bruno@clisp.org>
47365
47366         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
47367         * lib/winsock.c: Include <stdarg.h>.
47368         (rpl_ioctl): Change to second argument 'int' and then varargs.
47369
47370 2008-10-09  Bruno Haible  <bruno@clisp.org>
47371
47372         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
47373         when the sys_socket module is present and the system has <winsock2.h>.
47374
47375 2008-10-09  Bruno Haible  <bruno@clisp.org>
47376
47377         * doc/posix-functions/close.texi: Mention module 'close' instead of
47378         module 'sys_socket'.
47379
47380 2008-10-09  Bruno Haible  <bruno@clisp.org>
47381
47382         * doc/glibc-headers/sys_ioctl.texi: New file.
47383         * doc/gnulib.texi: Include it.
47384
47385 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47386             Bruno Haible  <bruno@clisp.org>
47387
47388         Combine the two replacements of 'close'.
47389         * lib/sys_socket.in.h (close): Define to a reminder to include
47390         <unistd.h>.
47391         (_gl_close_fd_maybe_socket): New declaration.
47392         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
47393         * lib/winsock.c (close): Remove undefinition.
47394         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
47395         needed for the gnulib module 'close'.
47396         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
47397         define to an error symbol or to a warning, if suitable.
47398         * lib/close.c: Include <sys/socket.h>.
47399         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
47400         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
47401         UNISTD_H_HAVE_WINSOCK2_H.
47402         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
47403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47404         UNISTD_H_HAVE_WINSOCK2_H.
47405         * modules/sys_socket (Files): Add m4/unistd_h.m4.
47406         (configure.ac): Set a module indicator.
47407         (Makefile.am): Substitute GNULIB_CLOSE.
47408         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
47409         * modules/poll-tests (Depends-on): Add close.
47410         * modules/select-tests (Depends-on): Likewise.
47411
47412 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47413             Bruno Haible  <bruno@clisp.org>
47414
47415         New module 'close'.
47416         * modules/close: New file.
47417         * lib/unistd.in.h (close): Move declaration out of the
47418         FCHDIR_REPLACEMENT scope.
47419         (_gl_unregister_fd): New declaration.
47420         * lib/close.c: New file.
47421         * lib/fchdir.c (rpl_close): Remove function.
47422         * m4/close.m4: New file.
47423         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
47424         close.
47425         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
47426         REPLACE_CLOSE.
47427         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
47428         REPLACE_CLOSE.
47429         * modules/fchdir (Depends-on): Add close.
47430
47431 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47432             Bruno Haible  <bruno@clisp.org>
47433
47434         * lib/fcntl.in.h (open): Simplify conditionals.
47435         (_gl_register_fd): New declaration.
47436         * lib/fchdir.c (rpl_open): Remove function.
47437         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
47438         also.
47439         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
47440         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
47441         open.
47442
47443 2008-10-09  Jim Meyering  <meyering@redhat.com>
47444
47445         GNUmakefile: use the more name-space-friendly "_version"
47446         * top/GNUmakefile (_dummy): Update.
47447         (_version): Rename from "version".
47448
47449 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47450             Bruno Haible  <bruno@clisp.org>
47451
47452         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
47453         rpl_close.
47454         (_gl_register_fd): New function, extracted from rpl_open.
47455         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
47456         (rpl_open, rpl_opendir): Use _gl_register_fd.
47457
47458 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47459
47460         Fix organization of 'open' replacement.
47461         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
47462         (gl_FUNC_OPEN): Use it.
47463         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
47464
47465 2008-10-08  Bruno Haible  <bruno@clisp.org>
47466
47467         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
47468
47469 2008-10-08  Simon Josefsson  <simon@josefsson.org>
47470
47471         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
47472         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
47473         listen).
47474
47475 2008-10-08  Eric Blake  <ebb9@byu.net>
47476
47477         GNUmakefile: add 'make version' target
47478         * top/GNUmakefile (_curr-ver): Split version update rules...
47479         (version): ...into a target.
47480
47481 2008-10-07  Bruno Haible  <bruno@clisp.org>
47482
47483         Use a more portable replacement expression for -0.0L.
47484         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
47485         instead of -0.0L. Fix m4 quotation.
47486
47487         * tests/test-signbit.c: Include <float.h>.
47488         (minus_zero): New variable.
47489         (test_signbitl): Use minus_zero instead of -zero.
47490         * modules/signbit-tests (Depends-on): Add float.
47491
47492         * tests/test-ceill.c: Include <float.h>.
47493         (zero): Remove variable.
47494         (minus_zero): New variable.
47495         (main): Use minus_zero instead of -zero.
47496         * modules/ceill-tests (Depends-on): Add float.
47497
47498         * tests/test-floorl.c: Include <float.h>.
47499         (zero): Remove variable.
47500         (minus_zero): New variable.
47501         (main): Use minus_zero instead of -zero.
47502         * modules/floorl-tests (Depends-on): Add float.
47503
47504         * tests/test-roundl.c: Include <float.h>.
47505         (zero): Remove variable.
47506         (minus_zero): New variable.
47507         (main): Use minus_zero instead of -zero.
47508         * modules/roundl-tests (Depends-on): Add float.
47509
47510         * tests/test-truncl.c: Include <float.h>.
47511         (zero): Remove variable.
47512         (minus_zero): New variable.
47513         (main): Use minus_zero instead of -zero.
47514         * modules/truncl-tests (Depends-on): Add float.
47515
47516         * tests/test-frexpl.c (zero): Remove variable.
47517         (minus_zero): New variable.
47518         (main): Use minus_zero instead of -zero.
47519         * modules/frexpl-tests (Depends-on): Add float.
47520
47521         * tests/test-isnan.c (zerol): Remove variable.
47522         (minus_zerol): New variable.
47523         (test_long_double): Use minus_zerol instead of -zerol.
47524         * modules/isnan-tests (Depends-on): Add float.
47525
47526         * tests/test-isnanl.h (zero): Remove variable.
47527         (minus_zero): New variable.
47528         (main): Use minus_zero instead of -zero.
47529         * modules/isnanl-nolibm-tests (Depends-on): Add float.
47530         * modules/isnanl-tests (Depends-on): Add float.
47531
47532         * tests/test-ldexpl.c (zero): Remove variable.
47533         (minus_zero): New variable.
47534         (main): Use minus_zero instead of -zero.
47535         * modules/ldexpl-tests (Depends-on): Add float.
47536
47537         * tests/test-snprintf-posix.h (zerol): Remove variable.
47538         (minus_zerol): New variable.
47539         (test_function): Use minus_zerol instead of -zerol.
47540         * modules/snprintf-posix-tests (Depends-on): Add float.
47541         * modules/vsnprintf-posix-tests (Depends-on): Add float.
47542
47543         * tests/test-sprintf-posix.h (zerol): Remove variable.
47544         (minus_zerol): New variable.
47545         (test_function): Use minus_zerol instead of -zerol.
47546         * modules/sprintf-posix-tests (Depends-on): Add float.
47547         * modules/vsprintf-posix-tests (Depends-on): Add float.
47548
47549         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
47550         (minus_zerol): New variable.
47551         (test_function): Use minus_zerol instead of -zerol.
47552         * modules/vasnprintf-posix-tests (Depends-on): Add float.
47553
47554         * tests/test-vasprintf-posix.c (zerol): Remove variable.
47555         (minus_zerol): New variable.
47556         (test_function): Use minus_zerol instead of -zerol.
47557         * modules/vasprintf-posix-tests (Depends-on): Add float.
47558
47559 2008-10-07  Simon Josefsson  <simon@josefsson.org>
47560
47561         * MODULES.html.sh (Support for building documentation): Mention
47562         pmccabe2html.  Sort entries.
47563
47564         Add pmccabe2html module, from gnupdf.
47565         * build-aux/pmccabe.css: New file.
47566         * build-aux/pmccabe2html: New file.
47567         * m4/pmccabe2html.m4: New file.
47568         * modules/pmccabe2html: New file.
47569
47570 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
47571
47572         flock: new module
47573         * MODULES.html.sh: Add to list of modules.
47574         * lib/flock.c: flock implementation for Windows and Unix systems
47575         which have fcntl.
47576         * doc/glibc-functions/flock.texi: Update documentation.
47577         * lib/sys_file.in.h: <sys/file.h> header file.
47578         * m4/flock.m4: M4 macros.
47579         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
47580         * modules/flock: flock module.
47581         * modules/flock-tests: flock tests module.
47582         * modules/sys_file: sys/file.h module.
47583         * tests/test-flock.c: test suite for flock.
47584
47585 2008-10-06  Jim Meyering  <meyering@redhat.com>
47586
47587         bootstrap: check for LT_INIT more portably still ;-)
47588         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
47589         Spotted by Bruno Haible.
47590
47591 2008-10-06  Eric Blake  <ebb9@byu.net>
47592
47593         test-signbit: avoid tripping Irix cc bug on -0.0L
47594         * tests/test-signbit.c (minus_zerol): Delete, and replace with
47595         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
47596         entire testsuite consistent and avoids an Irix 6.2 bug.
47597
47598 2008-10-05  Bruno Haible  <bruno@clisp.org>
47599             Jim Meyering  <jim@meyering.net>
47600
47601         Add an option for ignoring EPIPE during close_stdout.
47602         * lib/closeout.h: Include <stdbool.h>.
47603         (close_stdout_set_ignore_EPIPE): New declaration.
47604         * lib/closeout.c: Include <stdbool.h>.
47605         (ignore_EPIPE): New variable.
47606         (close_stdout_set_ignore_EPIPE): New function.
47607         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
47608         * lib/close-stream.c (close_stream): Mention the possible EPIPE
47609         failure.
47610         * modules/closeout (Depends-on): Add stdbool.
47611
47612 2008-10-05  Bruno Haible  <bruno@clisp.org>
47613
47614         * modules/accept: New file.
47615         * modules/bind: New file.
47616         * modules/connect: New file.
47617         * modules/getpeername: New file.
47618         * modules/getsockname: New file.
47619         * modules/getsockopt: New file.
47620         * modules/listen: New file.
47621         * modules/recv: New file.
47622         * modules/recvfrom: New file.
47623         * modules/send: New file.
47624         * modules/sendto: New file.
47625         * modules/setsockopt: New file.
47626         * modules/socket: New file.
47627         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
47628         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
47629         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
47630         the particular module is requested. Add a link warning when the
47631         particular module is not requested.
47632         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
47633         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
47634         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
47635         the particular module is requested.
47636         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
47637         gl_SYS_SOCKET_H_DEFAULTS): New macros.
47638         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
47639         * modules/sys_socket (Depends-on): Add link-warning.
47640         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
47641         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
47642         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
47643         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
47644         GL_LINK_WARNING.
47645         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
47646         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
47647         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
47648         * doc/posix-functions/getpeername.texi: Mention the new module
47649         'getpeername'.
47650         * doc/posix-functions/getsockname.texi: Mention the new module
47651         'getsockname'.
47652         * doc/posix-functions/getsockopt.texi: Mention the new module
47653         'getsockopt'.
47654         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
47655         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
47656         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
47657         * doc/posix-functions/send.texi: Mention the new module 'send'.
47658         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
47659         * doc/posix-functions/setsockopt.texi: Mention the new module
47660         'setsockopt'.
47661         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
47662         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
47663         listen, connect, accept.
47664         * modules/select-tests (Depends-on): Likewise.
47665
47666 2008-10-05  Bruno Haible  <bruno@clisp.org>
47667
47668         * lib/winsock.c (strerror): Remove unused #undef.
47669         (rpl_close): Remove unused local variable.
47670
47671         * modules/sys_socket (Depends-on); Add errno.
47672
47673 2008-10-05  Bruno Haible  <bruno@clisp.org>
47674
47675         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
47676         (select): Add a link warning when the 'select' module is not used.
47677         * modules/sys_select (Depends-on): Add link-warning.
47678         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
47679         Suggested by Paolo Bonzini.
47680
47681 2008-10-05  Jim Meyering  <meyering@redhat.com>
47682
47683         bootstrap: check for LT_INIT more portably
47684         * build-aux/bootstrap: Avoid using grep -E, since it's not
47685         portable enough.  Suggestion from Bruno Haible.
47686
47687 2008-10-05  Bruno Haible  <bruno@clisp.org>
47688
47689         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
47690         as being fixed by gnulib.
47691
47692 2008-10-05  Bruno Haible  <bruno@clisp.org>
47693
47694         * modules/select-tests: New file, mostly copied from
47695         modules/sys_select-tests.
47696         * tests/test-select.c: New file, mostly copied from
47697         tests/test-sys_select.c.
47698         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
47699         * modules/sys_select-tests (Depends-on): Remove all dependencies.
47700         (Makefile.am): Remove test_sys_select_LDADD.
47701
47702         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
47703         to an undefined symbol, for an error message.
47704         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
47705         (gl_SYS_SELECT_H_DEFAULTS): New macro.
47706         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
47707         winsock-select.c here.
47708         * modules/sys_select (Files): Remove lib/winsock-select.c.
47709         (Depends-on): Remove alloca.
47710         (Makefile.am): Substitute GNULIB_SELECT.
47711         * modules/select: New file.
47712         * doc/posix-functions/select.texi: Update.
47713
47714 2008-10-05  Bruno Haible  <bruno@clisp.org>
47715
47716         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
47717         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
47718         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
47719         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
47720         getdtablesize.
47721         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
47722         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
47723
47724 2008-10-05  Bruno Haible  <bruno@clisp.org>
47725
47726         * modules/getdtablesize-tests: New file.
47727         * tests/test-getdtablesize.c: New file.
47728
47729         New module 'getdtablesize'.
47730         * lib/unistd.in.h (getdtablesize): New declaration.
47731         * lib/getdtablesize.c: New file.
47732         * m4/getdtablesize.m4: New file.
47733         * modules/getdtablesize: New file.
47734         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47735         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
47736         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
47737         HAVE_GETDTABLESIZE.
47738         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
47739
47740 2008-10-05  Bruno Haible  <bruno@clisp.org>
47741
47742         * modules/sched (Makefile.am): Fix typo.
47743         Reported by Simon Josefsson.
47744
47745 2008-10-05  Jim Meyering  <meyering@redhat.com>
47746
47747         bootstrap: check for LT_INIT, too
47748         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
47749         are deprecated.  Suggestion from Ralf Wildenhues.
47750
47751 2008-10-05  Bruno Haible  <bruno@clisp.org>
47752
47753         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
47754         overriding them by ours.
47755         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
47756
47757 2008-10-05  Jim Meyering  <meyering@redhat.com>
47758
47759         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
47760         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
47761         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
47762
47763 2008-10-04  Bruno Haible  <bruno@clisp.org>
47764
47765         * modules/dup2 (License): Change to LGPLv2+.
47766         * modules/sleep (License): Likewise.
47767         * modules/perror (License): Likewise.
47768         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
47769         Blake.
47770         * modules/signal (License): Likewise.
47771         * modules/sigprocmask (License): Likewise.
47772         * modules/raise (License): Change to LGPLv2+, with approval by Jim
47773         Meyering.
47774
47775 2008-10-04  Bruno Haible  <bruno@clisp.org>
47776
47777         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
47778         Reported by Rainer Tammer <tammer@tammer.net>.
47779
47780 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
47781             Bruno Haible  <bruno@clisp.org>
47782
47783         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
47784         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
47785         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
47786
47787 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
47788
47789         filevercmp: new module
47790         * lib/filevercmp.h: New function filevercmp comparing version strings.
47791         * lib/filevercmp.c: Implementation of filevercmp function.
47792         * modules/filevercmp: Module metadata.
47793         * tests/test-filevercmp.c: Unit test for new module.
47794         * modules/filevercmp-tests: Unit test metadata.
47795         * MODULES.html.sh: Add filevercmp module.
47796
47797 2008-10-03  Bruno Haible  <bruno@clisp.org>
47798
47799         * lib/c-ctype.h: Add comment.
47800         Reported by Jim Meyering.
47801
47802 2008-10-02  Bruno Haible  <bruno@clisp.org>
47803
47804         * modules/posix_spawn-internal (Depends-on): Add 'open'.
47805
47806 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47807
47808         * build-aux/bootstrap: Allow renaming bootstrap, and change the
47809         name of bootstrap.conf accordingly.
47810
47811 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47812
47813         * build-aux/bootstrap: Install git-merge-changelog configuration
47814         items into .gitconfig if needed.
47815
47816 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47817
47818         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
47819         git repository, and initialize/update it accordingly.
47820
47821 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
47822
47823         * modules/fsync-tests: New file.
47824         * tests/test-fsync.c: New file.
47825
47826         New module 'fsync'.
47827         * lib/fsync.c: New file.
47828         * m4/fsync.m4: New file.
47829         * modules/fsync: New file.
47830         * lib/unistd.in.h (fsync): New declaration.
47831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
47832         GNULIB_FSYNC and HAVE_FSYNC.
47833         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
47834         * MODULES.html.sh (posix_functions): Add fsync.
47835         * doc/posix-functions/fsync.texi: Mention the new module.
47836
47837 2008-10-02  Jim Meyering  <meyering@redhat.com>
47838
47839         fts.c: sync with similar code from coreutils' remove.c
47840         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
47841         Guard also with "#if defined __linux__", since for now at least,
47842         this code is Linux-kernel-specific.
47843
47844 2008-10-02  Jim Meyering  <meyering@redhat.com>
47845
47846         fts: bug fixes
47847         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
47848         Include <sys/vfs.h>, not <sys/statfs.h>.
47849
47850         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
47851         Include <sys/vfs.h>, not <sys/statfs.h>.
47852
47853 2008-10-01  Bruno Haible  <bruno@clisp.org>
47854
47855         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
47856         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
47857         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
47858         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
47859         * doc/posix-functions/posix_spawnp.texi: Likewise.
47860         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
47861         whether posix_spawn actually works.
47862         * m4/pipe.m4 (gl_PIPE): Likewise.
47863         * modules/execute (Files): Add m4/posix_spawn.m4.
47864         * modules/pipe (Files): Add m4/posix_spawn.m4.
47865         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
47866
47867 2008-10-01  Jim Meyering  <meyering@redhat.com>
47868
47869         remove trailing spaces
47870         * NEWS: Likewise.
47871         * lib/poll.c (poll): Likewise.
47872         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
47873         * lib/winsock.c (rpl_close): Likewise.
47874         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
47875         * modules/yield: Likewise.
47876         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
47877         * tests/test-sys_select.c (connect_to_socket): Likewise.
47878
47879         fts.c: adjust a new interface to be more generally useful
47880         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
47881         (fts_build): Adjust caller.
47882
47883 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47884
47885         * modules/cond-tests: New file.
47886         * tests/test-cond.c: New file.
47887
47888 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47889             Bruno Haible  <bruno@clisp.org>
47890
47891         * modules/cond (Dependencies): Add errno, time.
47892         * lib/glthread/cond.h: Include <time.h>.
47893         (gl_cond_define, gl_cond_define_initialized): Use the same definition
47894         across platforms.
47895
47896 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47897             Bruno Haible  <bruno@clisp.org>
47898
47899         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
47900
47901 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47902             Bruno Haible  <bruno@clisp.org>
47903
47904         * modules/tls-tests (Depends-on): Add thread, yield.
47905         (configure.ac): Remove all checks.
47906         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
47907         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47908         gl_thread_self): Remove definitions. Include glthread/thread.h and
47909         glthread/yield.h instead.
47910         (test_tls): Pass an additional NULL argument to gl_thread_join.
47911
47912 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47913             Bruno Haible  <bruno@clisp.org>
47914
47915         * modules/lock-tests (Depends-on): Add thread, yield.
47916         (configure.ac): Remove all checks.
47917         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
47918         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47919         gl_thread_self): Remove definitions. Include glthread/thread.h and
47920         glthread/yield.h instead.
47921         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
47922         additional NULL argument to gl_thread_join.
47923
47924 2008-09-30  Bruno Haible  <bruno@clisp.org>
47925
47926         Fix the Win32 implementation of the 'thread' module.
47927         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
47928         pointer type.
47929         (gl_thread_self): Invoke gl_thread_self_func.
47930         (gl_thread_self_func): New declaration.
47931         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
47932         (do_init_self_key, init_self_key): New functions.
47933         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
47934         Remove some fields.
47935         (running_threads, running_lock): Remove variables.
47936         (get_current_thread_handle): New function.
47937         (gl_thread_self_func, wrapper_func, glthread_create_func,
47938         glthread_join_func, gl_thread_exit_func): Largely rewritten and
47939         simplified.
47940
47941 2008-09-30  Bruno Haible  <bruno@clisp.org>
47942
47943         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
47944         files.
47945
47946 2008-09-30  Jim Meyering  <meyering@redhat.com>
47947
47948         fts.m4: correct the test for statfs.f_type
47949         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
47950         when checking for statfs.f_type.
47951
47952 2008-09-15  Simon Josefsson  <simon@josefsson.org>
47953
47954         tests: avoid some compiler warnings
47955         * tests/test-memchr.c (main): Pass NULL indirectly.
47956         * tests/test-getdate.c (main): Remove unused variable 'ret'.
47957
47958 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
47959
47960         getdate.y: disallow countable dayshifts like "4 yesterday ago"
47961         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
47962         exactly specified dayshifts.
47963         (dayshift): New rule.
47964         (rel): Add dayshift.
47965         (relative_time_table) [tomorrow, yesterday, today, now]:
47966         Use tDAY_SHIFT in place of tDAY_UNIT.
47967         * tests/test-getdate.c: Add tests for now-disallowed countable
47968         dayshifts, e.g., "4 yesterday ago".
47969
47970 2008-09-29  Bruno Haible  <bruno@clisp.org>
47971
47972         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
47973         * tests/test-posix_spawn1.in.sh: Renamed from
47974         tests/test-posix_spawn.in.sh.
47975         * tests/test-posix_spawn2.c: New file.
47976         * tests/test-posix_spawn2.in.sh: New file.
47977         * modules/posix_spawnp-tests (Files): Update.
47978         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
47979
47980 2008-09-29  Bruno Haible  <bruno@clisp.org>
47981
47982         Propagate effects of putenv/setenv/unsetenv to child processes.
47983         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
47984         * lib/pipe.c (create_pipe): Likewise.
47985
47986 2008-09-29  Bruno Haible  <bruno@clisp.org>
47987
47988         Enable use of shell scripts as executables in mingw.
47989         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
47990         run the program as a shell script.
47991         * lib/pipe.c (create_pipe): Likewise.
47992         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
47993         resulting array.
47994
47995 2008-09-29  Eric Blake  <ebb9@byu.net>
47996
47997         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
47998
47999 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
48000
48001         * doc/posix-functions/accept.texi: Update mingw problems.
48002         * doc/posix-functions/bind.texi: Update mingw problems.
48003         * doc/posix-functions/close.texi: Update mingw problems.
48004         * doc/posix-functions/connect.texi: Update mingw problems.
48005         * doc/posix-functions/getpeername.texi: Update mingw problems.
48006         * doc/posix-functions/getsockname.texi: Update mingw problems.
48007         * doc/posix-functions/getsockopt.texi: Update mingw problems.
48008         * doc/posix-functions/ioctl.texi: Update mingw problems.
48009         * doc/posix-functions/listen.texi: Update mingw problems.
48010         * doc/posix-functions/recv.texi: Update mingw problems.
48011         * doc/posix-functions/recvfrom.texi: Update mingw problems.
48012         * doc/posix-functions/select.texi: Update mingw problems.
48013         * doc/posix-functions/send.texi: Update mingw problems.
48014         * doc/posix-functions/sendto.texi: Update mingw problems.
48015         * doc/posix-functions/setsockopt.texi: Update mingw problems.
48016         * doc/posix-functions/socket.texi: Update mingw problems.
48017
48018 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
48019             Bruno Haible  <bruno@clisp.org>
48020
48021         * lib/sys_select.in.h: Include sys/time.h.
48022         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
48023         * modules/sys_select: Depend on sys_time.
48024         * tests/test-sys_select.c: Test that sys/select.h defines struct
48025         timeval fully.
48026
48027 2008-09-29  Bruno Haible  <bruno@clisp.org>
48028
48029         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
48030         * lib/sys_select.in.h: Likewise.
48031
48032 2008-09-29  Bruno Haible  <bruno@clisp.org>
48033
48034         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
48035
48036 2008-09-29  Bruno Haible  <bruno@clisp.org>
48037
48038         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
48039         Set LIBSOCKET instead of augmenting LIBS.
48040         * modules/sockets (Link): New section.
48041         * modules/sockets-tests (test_sockets_LDADD): New variable.
48042         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
48043         * modules/poll-tests (test_poll_LDADD): New variable.
48044         * NEWS: Document the change.
48045
48046 2008-09-29  Bruno Haible  <bruno@clisp.org>
48047
48048         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
48049         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
48050         ARPA_INET_H directly.
48051         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48052
48053 2008-09-28  Bruno Haible  <bruno@clisp.org>
48054
48055         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
48056         from gl_HEADER_SYS_SOCKET.
48057         (gl_HEADER_SYS_SOCKET): Invoke it.
48058         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48059
48060 2008-09-28  Bruno Haible  <bruno@clisp.org>
48061
48062         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
48063         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
48064         Needed on OSF/1 4.0.
48065
48066 2008-09-28  Bruno Haible  <bruno@clisp.org>
48067
48068         Override open more carefully.
48069         * lib/open.c (orig_open): New function.
48070         (rpl_open): Use orig_open instead of open.
48071         * lib/fcntl.in.h: Add special invocation convention.
48072         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
48073         (gl_FUNC_OPEN): Invoke it.
48074
48075         Override freopen more carefully.
48076         * lib/freopen.c (orig_freopen): New function.
48077         (rpl_freopen): Use orig_freopen instead of freopen.
48078         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
48079         (gl_FUNC_FREOPEN): Invoke it.
48080
48081         Override fopen more carefully.
48082         * lib/fopen.c (orig_fopen): New function.
48083         (rpl_fopen): Use orig_fopen instead of fopen.
48084         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
48085         (gl_FUNC_FOPEN): Invoke it.
48086         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
48087
48088 2008-09-28  Bruno Haible  <bruno@clisp.org>
48089
48090         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
48091         SIGPIPE.
48092
48093 2008-09-28  Bruno Haible  <bruno@clisp.org>
48094
48095         * tests/test-sigaction.c (handler, main): Disable the check whether
48096         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
48097         glibc systems with LinuxThreads.
48098
48099 2008-09-28  Bruno Haible  <bruno@clisp.org>
48100
48101         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
48102
48103         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
48104         with AIX xlc.
48105         * lib/fcntl.in.h (open): Likewise.
48106         Reported by Rainer Tammer <tammer@tammer.net>.
48107
48108 2008-09-28  Bruno Haible  <bruno@clisp.org>
48109
48110         * modules/posix_spawnp-tests: New file.
48111         * tests/test-posix_spawn.c: New file.
48112         * tests/test-posix_spawn.in.sh: New file.
48113
48114         New module 'posix_spawnp'.
48115         * modules/posix_spawnp: New file.
48116         * lib/spawnp.c: New file, from GNU libc with modifications.
48117         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
48118
48119         New module 'posix_spawn'.
48120         * modules/posix_spawn: New file.
48121         * lib/spawn.c: New file, from GNU libc with modifications.
48122         * doc/posix-functions/posix_spawn.texi: Mention the new module.
48123
48124         New module 'posix_spawnattr_destroy'.
48125         * modules/posix_spawnattr_destroy: New file.
48126         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
48127         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
48128         module.
48129
48130         New module 'posix_spawnattr_setsigmask'.
48131         * modules/posix_spawnattr_setsigmask: New file.
48132         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
48133         modifications.
48134         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
48135         new module.
48136
48137         New module 'posix_spawnattr_getsigmask'.
48138         * modules/posix_spawnattr_getsigmask: New file.
48139         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
48140         modifications.
48141         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
48142         new module.
48143
48144         New module 'posix_spawnattr_setsigdefault'.
48145         * modules/posix_spawnattr_setsigdefault: New file.
48146         * lib/spawnattr_setdefault.c: New file, from GNU libc with
48147         modifications.
48148         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
48149         new module.
48150
48151         New module 'posix_spawnattr_getsigdefault'.
48152         * modules/posix_spawnattr_getsigdefault: New file.
48153         * lib/spawnattr_getdefault.c: New file, from GNU libc with
48154         modifications.
48155         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
48156         new module.
48157
48158         New module 'posix_spawnattr_setschedpolicy'.
48159         * modules/posix_spawnattr_setschedpolicy: New file.
48160         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
48161         modifications.
48162         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
48163         new module.
48164
48165         New module 'posix_spawnattr_getschedpolicy'.
48166         * modules/posix_spawnattr_getschedpolicy: New file.
48167         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
48168         modifications.
48169         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
48170         new module.
48171
48172         New module 'posix_spawnattr_setschedparam'.
48173         * modules/posix_spawnattr_setschedparam: New file.
48174         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
48175         modifications.
48176         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
48177         new module.
48178
48179         New module 'posix_spawnattr_getschedparam'.
48180         * modules/posix_spawnattr_getschedparam: New file.
48181         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
48182         modifications.
48183         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
48184         new module.
48185
48186         New module 'posix_spawnattr_setpgroup'.
48187         * modules/posix_spawnattr_setpgroup: New file.
48188         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
48189         modifications.
48190         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
48191         module.
48192
48193         New module 'posix_spawnattr_getpgroup'.
48194         * modules/posix_spawnattr_getpgroup: New file.
48195         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
48196         modifications.
48197         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
48198         module.
48199
48200         New module 'posix_spawnattr_setflags'.
48201         * modules/posix_spawnattr_setflags: New file.
48202         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
48203         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
48204         module.
48205
48206         New module 'posix_spawnattr_getflags'.
48207         * modules/posix_spawnattr_getflags: New file.
48208         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
48209         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
48210         module.
48211
48212         New module 'posix_spawnattr_init'.
48213         * modules/posix_spawnattr_init: New file.
48214         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
48215         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
48216         module.
48217
48218         New module 'posix_spawn_file_actions_destroy'.
48219         * modules/posix_spawn_file_actions_destroy: New file.
48220         * lib/spawn_faction_destroy.c: New file, from GNU libc with
48221         modifications.
48222         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
48223         the new module.
48224
48225         New module 'posix_spawn_file_actions_addopen'.
48226         * modules/posix_spawn_file_actions_addopen: New file.
48227         * lib/spawn_faction_addopen.c: New file, from GNU libc with
48228         modifications.
48229         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
48230         the new module.
48231
48232         New module 'posix_spawn_file_actions_adddup2'.
48233         * modules/posix_spawn_file_actions_adddup2: New file.
48234         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
48235         modifications.
48236         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
48237         the new module.
48238
48239         New module 'posix_spawn_file_actions_addclose'.
48240         * modules/posix_spawn_file_actions_addclose: New file.
48241         * lib/spawn_faction_addclose.c: New file, from GNU libc with
48242         modifications.
48243         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
48244         the new module.
48245
48246         New module 'posix_spawn_file_actions_init'.
48247         * modules/posix_spawn_file_actions_init: New file.
48248         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
48249         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
48250         new module.
48251
48252         New module 'posix_spawn-internal'.
48253         * modules/posix_spawn-internal: New file.
48254         * lib/spawn_int.h: New file, from GNU libc with modifications.
48255         * lib/spawni.c: New file, from GNU libc with modifications.
48256         * m4/posix_spawn.m4: New file.
48257
48258         New module 'spawn'.
48259         * modules/spawn: New file.
48260         * lib/spawn.in.h: New file, from GNU libc with modifications.
48261         * m4/spawn_h.m4: New file.
48262         * doc/posix-headers/spawn.texi: Mention the new module.
48263
48264 2008-09-28  Bruno Haible  <bruno@clisp.org>
48265
48266         * modules/sched-tests: New file.
48267         * tests/test-sched.c: New file.
48268
48269         New module 'sched'.
48270         * modules/sched: New file.
48271         * lib/sched.in.h: New file.
48272         * m4/sched_h.m4: New file.
48273         * doc/posix-headers/sched.texi: Mention the new module.
48274
48275 2008-09-27  Eric Blake  <ebb9@byu.net>
48276
48277         Fix previous patch, and tweak references to $0.
48278         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
48279         (func_version, func_gnulib_dir): Don't call this program
48280         gnulib-tool.
48281         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
48282         with using $0 in function.
48283         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
48284         (func_fatal_error): Reuse the name the user invoked us with.
48285
48286 2008-09-27  Bruno Haible  <bruno@clisp.org>
48287
48288         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
48289         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
48290         (gl_ICONV_H): Not here.
48291         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
48292         instead of assigning ICONV_H directly.
48293
48294         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
48295         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
48296         WCHAR_H directly.
48297
48298 2008-09-27  Bruno Haible  <bruno@clisp.org>
48299
48300         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
48301         * modules/arpa_inet (Depends-on): Add link-warning.
48302         (Makefile.am): Insert the definition of GL_LINK-WARNING.
48303         * modules/unistd (Makefile.am): Likewise.
48304
48305 2008-09-26  Bruno Haible  <bruno@clisp.org>
48306
48307         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
48308         variables.
48309         (func_version): Essentially copied from gnulib-tool.
48310         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
48311         func_readlink): Copied from gnulib-tool.
48312
48313 2008-09-26  Bruno Haible  <bruno@clisp.org>
48314
48315         * gnulib-tool (func_version): Change directory to $gnulib_dir before
48316         invoking git-version-gen.
48317
48318 2008-09-26  Bruno Haible  <bruno@clisp.org>
48319
48320         * posix-modules: Update to directory names changed on 2008-01-19.
48321         Remove commas in output before splitting into words. No more need to
48322         avoid 'ftruncate' since 2007-02-19.
48323
48324 2008-09-26  Bruno Haible  <bruno@clisp.org>
48325
48326         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
48327
48328 2008-09-26  Bruno Haible  <bruno@clisp.org>
48329
48330         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
48331         * modules/fwriteerror (Depends-on): Add errno.
48332
48333 2008-09-26  Bruno Haible  <bruno@clisp.org>
48334
48335         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
48336         * tests/test-vc-list-files-cvs.sh: Likewise.
48337
48338 2008-09-26  Bruno Haible  <bruno@clisp.org>
48339
48340         * doc/posix-headers/sys_resource.texi: Reorder items.
48341
48342 2008-09-26  Jim Meyering  <meyering@redhat.com>
48343
48344         fts: tweak inode comparison function
48345         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
48346         inode numbers, as documented.
48347
48348         fts: sort dirent entries on inode number before traversing
48349         This avoids a quadratic, seek-related performance penalty when
48350         operating on a directory containing many entries (measurable at 10k;
48351         3.5 hours at 2 million entries with a cold cache) on certain types
48352         of file systems, including ext3 and ext4, but not tmpfs.
48353         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
48354         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
48355         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
48356         (fs_handles_readdir_ordered_dirents_efficiently): New function.
48357         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
48358         (fts_build): Set the stat.st_ino member from D_INO.
48359         If it is likely to be useful, sort dirent entries on inode number.
48360
48361         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
48362         and the struct statfs.f_type member.
48363         * modules/fts (Depends-on): Add d-ino.
48364
48365 2008-09-26  Bruno Haible  <bruno@clisp.org>
48366
48367         * modules/sigpipe-die (Depends-on): Add sigpipe.
48368
48369         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
48370         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
48371         and GNULIB_STDIO_H_SIGPIPE are set.
48372         * lib/stdio-write.c: New file.
48373         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
48374         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48375         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48376         REPLACE_STDIO_WRITE_FUNCS.
48377         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
48378         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48379         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48380         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
48381         * modules/stdio (Files): Add lib/stdio-write.c.
48382         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
48383         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48384         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48385         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
48386         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
48387         REPLACE_FPRINTF_POSIX.
48388         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
48389         REPLACE_PRINTF_POSIX.
48390         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
48391         REPLACE_VFPRINTF_POSIX.
48392         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
48393         REPLACE_VPRINTF_POSIX.
48394         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
48395         SIGPIPE issue.
48396         * doc/posix-functions/fputc.texi: Likewise.
48397         * doc/posix-functions/fputs.texi: Likewise.
48398         * doc/posix-functions/fwrite.texi: Likewise.
48399         * doc/posix-functions/printf.texi: Likewise.
48400         * doc/posix-functions/putc.texi: Likewise.
48401         * doc/posix-functions/putchar.texi: Likewise.
48402         * doc/posix-functions/puts.texi: Likewise.
48403         * doc/posix-functions/vfprintf.texi: Likewise.
48404         * doc/posix-functions/vprintf.texi: Likewise.
48405
48406         * modules/safe-write (Depends-on): Add write.
48407
48408         * modules/sigpipe-tests: New file.
48409         * tests/test-sigpipe.c: New file.
48410         * tests/test-sigpipe.sh: New file.
48411
48412         * modules/write: New file.
48413         * lib/unistd.in.h: Include <sys/types.h>.
48414         (write): New declaration.
48415         * lib/write.c: New file.
48416         * m4/write.m4: New file.
48417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48418         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
48419         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
48420         GNULIB_WRITE, REPLACE_WRITE.
48421         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
48422         and the SIGPIPE issue.
48423
48424         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
48425         (raise): New declaration.
48426         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
48427         (ext_signal): New function.
48428         (rpl_raise): New function.
48429         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
48430         GNULIB_SIGNAL_H_SIGPIPE.
48431         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
48432         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
48433
48434         * modules/sigpipe: New file.
48435         * m4/sigpipe.m4: New file.
48436
48437 2008-09-25  Derek Price  <derek@ximbiot.com>
48438             Bruno Haible  <bruno@clisp.org>
48439
48440         * gnulib-tool (func_import): Report all license incompatibilities, not
48441         just the first one.
48442
48443 2008-09-25  Bruno Haible  <bruno@clisp.org>
48444
48445         * gnulib-tool (func_import): When computing the edits, consider not
48446         only the Makefile.ams that exist but also those that will be generated.
48447
48448 2008-09-25  Simon Josefsson  <simon@josefsson.org>
48449
48450         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
48451         fixes gnulib-tool --test warning about duplicate dependency.
48452
48453 2008-09-25  Bruno Haible  <bruno@clisp.org>
48454
48455         * gnulib-tool: Don't ask the user to perform edits in the generated
48456         Makefile.ams.
48457         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
48458         apply to the Makefile.am being generated.
48459         (func_emit_tests_Makefile_am): Execute edits that apply to the
48460         Makefile.am being generated.
48461         (func_import): Setup list of Makefile.am edits before emitting the
48462         Makefile.ams, not at the end.
48463         (func_create_testdir): Update.
48464         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48465
48466 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48467
48468         * gnulib-tool (func_import): Store the --tests-base option in the
48469         comment in gnulib-cache.m4.
48470
48471 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
48472
48473         * NEWS: Document increased portability that sys_select now provides.
48474
48475         * lib/sys_select.in.h: Install select wrapper.
48476         * lib/sys_socket.in.h: Use more descriptive name when there is no
48477         select wrapper.
48478         * lib/winsock-select.c: New.
48479         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
48480         Require gl_HEADER_SYS_SOCKET.
48481         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
48482         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
48483         * tests/test-sys_select.c: Add functional tests.
48484
48485 2008-09-24  Eric Blake  <ebb9@byu.net>
48486
48487         open, fopen: close fd leak in last patch
48488         * lib/open.c (rpl_open): Close fd before returning error.
48489         * lib/fopen.c (rpl_fopen): Close fd before returning error.
48490         * doc/posix-functions/open.texi (open): Document that Irix also
48491         has the bug.
48492         * doc/posix-functions/fopen.texi (fopen): Likewise.
48493         Reported by Paolo Bonzini.
48494
48495 2008-09-24  Bruno Haible  <bruno@clisp.org>
48496
48497         Ensure that a filename ending in a slash cannot be used to access a
48498         non-directory.
48499         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
48500         to check whether it's really a directory.
48501         * lib/fopen.c: Include fcntl.h, unistd.h.
48502         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
48503         and fdopen().
48504         * modules/fopen (Depends-on): Add unistd.
48505         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
48506         * tests/test-fopen.c (main): Likewise.
48507         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
48508         * doc/posix-functions/fopen.texi: Likewise.
48509         Reported by Eric Blake.
48510
48511 2008-09-23  Eric Blake  <ebb9@byu.net>
48512
48513         c-stack: avoid compiler optimizations when provoking overflow
48514         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
48515         recursion harder to optimize, to ensure a stack overflow occurs.
48516         * tests/test-c-stack.c (recurse): Likewise.
48517         Borrowed from libsigsegv.
48518
48519         c-stack: work around Irix sigaltstack bug
48520         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
48521         whether sigaltstack uses wrong end of stack_t (copied in part from
48522         libsigsegv).
48523         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
48524         Irix bug, without requiring an over-allocation.
48525         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
48526         bug.
48527
48528         fopen: document mingw bug on directories
48529         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
48530         not allowing a stream visiting a directory, even though reading
48531         from such a stream is not portable.
48532
48533 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48534
48535         * lib/poll.c: Rewrite.
48536         * modules/poll: Depend on alloca.
48537
48538 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48539
48540         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
48541         instead define prototypes for a full set of wrappers.  Ensure
48542         that Cygwin does not use the compatibility code, which is only
48543         for MinGW.
48544         * lib/winsock.c: New.
48545         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
48546         * modules/sys_socket: Add lib/winsock.c.
48547
48548         * modules/poll-tests: Add errno and perror.
48549         * tests/test-poll.c: Use ioctl, not ioctlsocket.
48550
48551 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48552
48553         * tests/test-poll.c: Downgrade minimum needed Winsock version.
48554
48555 2008-09-23  Bruno Haible  <bruno@clisp.org>
48556
48557         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
48558         * doc/glibc-functions/*: Likewise.
48559
48560 2008-09-23  Simon Josefsson  <simon@josefsson.org>
48561
48562         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
48563         success.
48564
48565 2008-09-22  Eric Blake  <ebb9@byu.net>
48566             Bruno Haible  <bruno@clisp.org>
48567
48568         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
48569         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
48570         supply %A but mishandle pseudo-NaN.
48571         Reported by Simon Josefsson.
48572
48573 2008-09-21  Bruno Haible  <bruno@clisp.org>
48574
48575         * tests/test-lock.c (main): Tweak skip message.
48576         * tests/test-tls.c (main): Likewise.
48577
48578 2008-09-21  Bruno Haible  <bruno@clisp.org>
48579
48580         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
48581         whether 'struct sigaction' has sa_sigaction here...
48582         (gl_PREREQ_SIG_HANDLER_H): ... not here.
48583         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
48584
48585 2008-09-21  Bruno Haible  <bruno@clisp.org>
48586
48587         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
48588         section.
48589         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
48590         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
48591         the new section.
48592         (Support for obsolete systems lacking POSIX:2001): New section.
48593         (String handling <string.h>): Move strdup to the new section.
48594         Suggested by Simon Josefsson and Paolo Bonzini.
48595
48596 2008-09-21  Bruno Haible  <bruno@clisp.org>
48597
48598         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
48599         exponents in %e and %g results on 'long double'. Needed for mingw's
48600         improved *printf functions.
48601         * tests/test-vasprintf-posix.c (test_function): Likewise.
48602         * tests/test-snprintf-posix.h (test_function): Likewise.
48603         * tests/test-sprintf-posix.h (test_function): Likewise.
48604         Reported by Eric Blake.
48605
48606 2008-09-21  Bruno Haible  <bruno@clisp.org>
48607
48608         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
48609         * tests/test-sprintf-posix.h (test_function): Likewise.
48610
48611 2008-09-21  Bruno Haible  <bruno@clisp.org>
48612
48613         * modules/getpass (Depends-on): Add strdup-posix.
48614
48615         New module 'strdup-posix'.
48616         * modules/strdup-posix: New file.
48617         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
48618         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
48619         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48620         REPLACE_STRDUP.
48621         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
48622         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
48623         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48624         strdup-posix.
48625
48626         * modules/strdup (Depends-on): Remove malloc-posix.
48627
48628 2008-09-20  Bruno Haible  <bruno@clisp.org>
48629
48630         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
48631         Wildenhues.
48632
48633 2008-09-20  Bruno Haible  <bruno@clisp.org>
48634
48635         Ensure that wint_t gets defined on IRIX 5.3.
48636         * lib/wchar.in.h (wint_t): Define if not defined by the system.
48637         * lib/wctype.in.h (wint_t): Likewise.
48638         (__wctype_wint_t): Remove type.
48639         (isw*): Use wint_t instead of __wctype_wint_t.
48640         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
48641         * modules/wchar (Files): Add m4/wint_t.m4.
48642         (Makefile.am): Substitute HAVE_WINT_T.
48643         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
48644         * tests/test-wctype.c: Check that wint_t is defined.
48645         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
48646         * doc/posix-headers/wctype.texi: Likewise.
48647         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48648
48649 2008-09-18  Bruno Haible  <bruno@clisp.org>
48650
48651         * gnulib-tool (func_exit): Update comment.
48652
48653 2008-09-18  Simon Josefsson  <simon@josefsson.org>
48654
48655         * modules/getaddrinfo (Depends-on): Remove strdup, this module
48656         assumes strdup exists and does not depend on strdup to return
48657         ENOMEM on out of memory conditions.
48658
48659 2008-09-18  Bruno Haible  <bruno@clisp.org>
48660
48661         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
48662         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
48663         digits for the exponent.
48664
48665 2008-09-18  Jim Meyering  <meyering@redhat.com>
48666             Bruno Haible  <bruno@clisp.org>
48667
48668         * lib/vasnprintf.c (decimal_point_char): Define also if
48669         NEED_PRINTF_INFINITE_LONG_DOUBLE.
48670
48671 2008-09-16  Bruno Haible  <bruno@clisp.org>
48672         and Eric Blake  <ebb9@byu.net>
48673
48674         vasnprintf: support Irix 5.3
48675         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
48676         that mishandle long double infinity.
48677         Reported by Tom G. Christensen.
48678
48679 2008-09-16  Bruno Haible  <bruno@clisp.org>
48680
48681         * doc/glibc-functions/scandir.texi: Mention the function is missing on
48682         Solaris 9.
48683         * doc/glibc-functions/alphasort.texi: Likewise.
48684         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
48685
48686 2008-09-16  Jim Meyering  <meyering@redhat.com>
48687
48688         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
48689         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
48690         a umask modification leak out of a subshell.  Otherwise, the
48691         opensolaris /bin/sh would be accepted and thus cause unwarranted
48692         failures in the coreutils test suite.
48693
48694 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
48695
48696         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
48697         to succeed.
48698
48699 2008-09-16  Jim Meyering  <meyering@redhat.com>
48700
48701         avoid spurious test failure when library is built without ACL support
48702         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
48703         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
48704         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
48705         * tests/test-copy-acl.sh: Likewise.
48706
48707 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48708
48709         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
48710         based on character occurrence counts.
48711
48712 2008-09-15  Eric Blake  <ebb9@byu.net>
48713
48714         tests: avoid some compiler warnings
48715         * tests/test-memchr.c (main): Pass NULL indirectly.
48716         * tests/test-closein.c (main): Avoid unused variable.
48717
48718 2008-09-15  Bruno Haible  <bruno@clisp.org>
48719
48720         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
48721         are missing on OpenBSD 4.0 individually.
48722         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48723
48724 2008-09-15  Bruno Haible  <bruno@clisp.org>
48725
48726         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
48727         * doc/posix-functions/strerror.texi: Mention also Cygwin.
48728         * doc/posix-functions/perror.texi: Likewise.
48729         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
48730         is missing.
48731         Reported by Eric Blake.
48732
48733         * lib/errno.in.h: Use replacement values >= 2000.
48734         Reported by Eric Blake.
48735
48736 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48737
48738         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
48739         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
48740         limit.
48741         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
48742         compareseq was aborted.
48743
48744 2008-09-14  Bruno Haible  <bruno@clisp.org>
48745
48746         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
48747         yvec_edit_count.
48748         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
48749         (fstrcmp_bounded): Simplify result computation accordingly.
48750
48751 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48752
48753         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
48754         (fstrcmp): Define in terms of fstrcmp_bounded.
48755         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
48756         lower_bound argument.
48757         Return quickly if the result is certainly < lower_bound.
48758         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
48759
48760 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48761
48762         * lib/diffseq.h (EARLY_ABORT): New macro.
48763         (compareseq): Change return type to bool. Return true when EARLY_ABORT
48764         evaluates to true.
48765
48766 2008-09-14  Bruno Haible  <bruno@clisp.org>
48767
48768         * modules/perror-tests: New file.
48769         * tests/test-perror.sh: New file.
48770         * tests/test-perror.c: New file.
48771
48772         New module 'perror'.
48773         * lib/stdio.in.h (perror): New declaration.
48774         * lib/perror.c: New file.
48775         * m4/perror.m4: New file.
48776         * modules/perror: New file.
48777         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
48778         * doc/posix-functions/perror.texi: Mention the perror module.
48779         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
48780         REPLACE_PERROR.
48781         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
48782         REPLACE_PERROR.
48783
48784 2008-09-14  Bruno Haible  <bruno@clisp.org>
48785
48786         * modules/stdio (Makefile.am): Reorder to match the order in
48787         lib/stdio.in.h.
48788         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48789
48790 2008-09-13  Bruno Haible  <bruno@clisp.org>
48791
48792         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
48793
48794 2008-09-13  Bruno Haible  <bruno@clisp.org>
48795
48796         Extend strerror to cover the added errno values.
48797         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
48798         (rpl_strerror): Provide error messages for the added errno values and
48799         for the WSA* values.
48800         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
48801         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
48802         strerror.
48803         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
48804         * modules/strerror (Depends-on): Add errno.
48805         * doc/posix-functions/strerror.texi: Document the change.
48806         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
48807         and EOVERFLOW.
48808
48809 2008-09-13  Bruno Haible  <bruno@clisp.org>
48810
48811         * modules/EOVERFLOW: Remove file.
48812         * m4/eoverflow.m4: Remove file.
48813         * modules/EOVERFLOW-tests: Remove file.
48814         * tests/test-EOVERFLOW.c: Remove file.
48815         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
48816         * modules/ftell (Depends-on): Likewise.
48817         * modules/getdelim (Depends-on): Likewise.
48818         * modules/getugroups (Depends-on): Likewise.
48819         * modules/poll (Depends-on): Likewise.
48820         * modules/snprintf (Depends-on): Likewise.
48821         * modules/sprintf-posix (Depends-on): Likewise.
48822         * modules/vasnprintf (Depends-on): Likewise.
48823         * modules/vasprintf (Depends-on): Likewise.
48824         * modules/vfprintf-posix (Depends-on): Likewise.
48825         * modules/vsnprintf (Depends-on): Likewise.
48826         * modules/vsprintf-posix (Depends-on): Likewise.
48827         * modules/xvasprintf (Depends-on): Likewise.
48828         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48829         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
48830         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
48831         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
48832         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48833         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
48834         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
48835         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
48836         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48837         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
48838         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
48839         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
48840         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48841         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
48842         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
48843         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
48844         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48845         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
48846         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
48847         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
48848         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48849         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
48850         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
48851         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
48852         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
48853         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48854         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
48855         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
48856         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
48857         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
48858         * MODULES.html.sh: Remove EOVERFLOW.
48859         * NEWS: Mention the change.
48860
48861 2008-09-13  Bruno Haible  <bruno@clisp.org>
48862
48863         * modules/errno-tests: New file.
48864         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
48865
48866         * lib/errno.in.h: New file.
48867         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
48868         * modules/errno: New file.
48869         * doc/posix-headers/errno.texi: Update documentation.
48870         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
48871
48872 2008-09-13  Bruno Haible  <bruno@clisp.org>
48873
48874         * tests/test-poll.c: Use #if for native Windows, rather than testing
48875         __MSVCRT__.
48876
48877 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48878             Bruno Haible  <bruno@clisp.org>
48879
48880         * lib/glob.c: Don't include <pwd.h> on native Windows.
48881         (WINDOWS32): New macro.
48882         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
48883
48884 2008-09-13  Bruno Haible  <bruno@clisp.org>
48885
48886         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
48887         (ETIMEDOUT): Remove macro.
48888         (glthread_cond_timedwait_multithreaded): New declaration.
48889         (glthread_cond_timedwait): Use it.
48890         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
48891         (glthread_cond_timedwait_multithreaded): New function.
48892
48893 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48894
48895         * modules/poll-tests: Do not check for io.h.
48896         * tests/test-poll.c: Check for __MSVCRT__ instead.
48897
48898 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48899
48900         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
48901         * modules/poll-tests: Add inet_pton, stdbool, sockets.
48902         * tests/test-poll.c: Use them.  Use _pipe on Windows.
48903
48904 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48905
48906         * modules/poll-tests: New.
48907         * tests/test-poll.c: New.
48908
48909 2008-09-12  Eric Blake  <ebb9@byu.net>
48910
48911         frexp: test for NetBSD failure on -0.0
48912         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
48913         not all, bugs from NetBSD 3.0 have been fixed.
48914         * doc/posix-functions/frexp.texi (frexp): Document bug.
48915         Reported by Thomas Klausner.
48916
48917         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
48918         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
48919         literal -0.0.
48920         Reported by Jonathan C. Patschke <jp@centtech.com>.
48921
48922 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48923
48924         * lib/glthread/cond.h: Use dummy implementation also if
48925         USE_WIN32_THREADS.
48926
48927 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48928
48929         * modules/fnmatch-posix (License): Change to LGPLv2+.
48930         * modules/fnmatch-gnu (License): Likewise.
48931
48932 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48933
48934         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
48935
48936 2008-09-11  Jim Meyering  <meyering@redhat.com>
48937
48938         * users.txt: Add gtk-vnc.
48939
48940 2008-09-08  Simon Josefsson  <simon@josefsson.org>
48941
48942         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
48943         rotate amounts.
48944
48945         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
48946         required for 16-bit and 8-bit rotates.
48947         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
48948         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
48949         UINT8_MAX instead of hard-coded constants.
48950         Suggested by Paul Eggert.
48951
48952 2008-09-07  Bruno Haible  <bruno@clisp.org>
48953
48954         * tests/test-striconveh.c (main): Check behaviour when converting from
48955         UTF-7.
48956
48957         Make striconveh work better with stateful encodings.
48958         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
48959         that iconv does not increment the inptr when returning -1/EINVAL.
48960
48961 2008-09-07  Bruno Haible  <bruno@clisp.org>
48962
48963         * build-aux/config.rpath: Update according to libtool-2.2.6.
48964         * build-aux/config.libpath: Likewise.
48965
48966 2008-09-06  Bruno Haible  <bruno@clisp.org>
48967
48968         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
48969         * lib/freadptr.c (freadptr): Likewise.
48970         * lib/freadseek.c (freadptrinc): Likewise.
48971         Reported by Simon Josefsson.
48972
48973 2008-09-06  Bruno Haible  <bruno@clisp.org>
48974
48975         * modules/freadptr (License): Change to LGPLv2+.
48976         * modules/freadseek (License): Likewise.
48977         Suggested by Eric Blake.
48978
48979         * modules/memchr2 (License): Change to LGPLv2+.
48980         Approved by Eric Blake.
48981
48982 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48983             Bruno Haible  <bruno@clisp.org>
48984
48985         Make gnulib-tool work with native 'sed' on AIX.
48986         * gnulib-tool (sed_noop): New variable.
48987         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
48988         func_add_or_update, func_create_testdir): Use it to initialize sed
48989         script variables.
48990         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48991
48992 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
48993             Bruno Haible  <bruno@clisp.org>
48994
48995         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
48996         also works after #include directives.
48997
48998 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
48999
49000         getdate.y: reject an out-of-range timezone value
49001         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
49002         the range [-24...+24].  When specified with only one or two digits,
49003         * tests/test-getdate.c: Tests for the fix.
49004         * doc/getdate.texi: Document this change.
49005
49006 2008-09-03  Bruno Haible  <bruno@clisp.org>
49007
49008         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
49009
49010 2008-09-02  Simon Josefsson  <simon@josefsson.org>
49011
49012         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
49013         <bruce.korb@gmail.com> with ideas from Ben Pfaff
49014         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
49015         Blake <ebb9@byu.net>.
49016
49017         * tests/test-bitrotate.c: Add more test vectors.
49018
49019 2008-09-02  Eric Blake  <ebb9@byu.net>
49020
49021         vasnprintf-posix: handle large precision via %.*d
49022         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
49023         when handling it ourselves.
49024         * tests/test-vasnprintf-posix.c (test_function): Add test.
49025         * tests/test-snprintf-posix.h (test_function): Likewise.
49026         * tests/test-sprintf-posix.h (test_function): Likewise.
49027         * tests/test-vasprintf-posix.c (test_function): Likewise.
49028         Reported by Alain Guibert.
49029
49030 2008-09-01  Eric Blake  <ebb9@byu.net>
49031
49032         c-stack: make configure-time check more robust
49033         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
49034         successful sigaction call.
49035         Reported by Tom G. Christensen.
49036
49037 2008-09-01  Bruno Haible  <bruno@clisp.org>
49038
49039         New module 'findprog-lgpl'.
49040         * modules/findprog-lgpl: New file.
49041         * lib/findprog-lgpl.c: New file.
49042         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
49043         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
49044         to decide whether to use strdup or xstrdup, concatenated_filename or
49045         xconcatenated_filename.
49046
49047 2008-09-01  Bruno Haible  <bruno@clisp.org>
49048
49049         Split module 'concat-filename' into 'concat-filename' (LGPL) and
49050         'xconcat-filename' (GPL).
49051         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
49052         (License): Change to LGPLv2+.
49053         * modules/xconcat-filename: New file.
49054         * lib/concat-filename.h (concatenated_filename): Change specification.
49055         (xconcatenated_filename): New declaration.
49056         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
49057         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
49058         memory situations.
49059         * lib/xconcat-filename.c: New file.
49060         * NEWS: Mention the change.
49061         * lib/findprog.c: Include concat-filename.h, not filename.h.
49062         (find_in_path): Use xconcatenated_filename instead of
49063         concatenated_filename.
49064         * lib/javacomp.c: Include concat-filename.h, not filename.h.
49065         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
49066         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
49067         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
49068         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
49069         instead of concatenated_filename.
49070         * lib/javaexec.c: Include concat-filename.h, not filename.h.
49071         (execute_java_class): Use xconcatenated_filename instead of
49072         concatenated_filename.
49073         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
49074         * modules/javacomp (Depends-on): Likewise.
49075         * modules/javaexec (Depends-on): Likewise.
49076
49077 2008-09-01  Bruno Haible  <bruno@clisp.org>
49078
49079         Split module 'filename' into 'filename' and 'concat-filename'.
49080         * modules/filename: Keep only lib/filename.h.
49081         (License): Change to LGPLv2+.
49082         * modules/concat-filename: New file, extracted from modules/filename.
49083         * lib/filename.h (concatenated_filename): Remove declaration.
49084         * lib/concat-filename.h: New file, extracted from lib/filename.h.
49085         * lib/concat-filename.c: Include concat-filename.h.
49086         * NEWS: Mention the change.
49087
49088 2008-09-01  Simon Josefsson  <simon@josefsson.org>
49089
49090         * lib/bitrotate.h (rotl8, rotr8): Add.
49091
49092         * modules/bitrotate (configure.ac): Need
49093         AC_REQUIRE([AC_C_INLINE]).
49094         (Description): Mention stdint.h.  Reported by Bruno Haible
49095         <bruno@clisp.org>.
49096
49097         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
49098         Paolo Bonzini <bonzini@gnu.org>.
49099
49100 2008-08-31  Bruno Haible  <bruno@clisp.org>
49101
49102         Assume Solaris specific bi-arch conventions on Solaris systems.
49103         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
49104         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
49105         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
49106         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
49107         like acl_libdirstem.
49108         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
49109         acl_libdirstem.
49110         * NEWS: Mention the change.
49111         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
49112
49113 2008-08-31  Jim Meyering  <meyering@redhat.com>
49114
49115         * lib/strftime.h: Add comments describing the two added arguments.
49116
49117         remove duplicate #include directives
49118         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
49119         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
49120
49121 2008-08-31  Bruno Haible  <bruno@clisp.org>
49122
49123         New module 'sigpipe-die'.
49124         * modules/sigpipe-die: New file.
49125         * lib/sigpipe-die.h: New file.
49126         * lib/sigpipe-die.c: New file.
49127         * MODULES.html.sh (Signal handling): Add sigpipe-die.
49128
49129 2008-08-31  Bruno Haible  <bruno@clisp.org>
49130
49131         Don't override previously installed signal handlers.
49132         * lib/fatal-signal.c (saved_sigactions): New variable.
49133         (uninstall_handlers): Reset the signal to the saved handler, not
49134         to SIG_DFL (except when ignored).
49135         (install_handlers): Save the previous handlers.
49136
49137 2008-08-30  Bruno Haible  <bruno@clisp.org>
49138
49139         * gnulib-tool (func_reset_sigpipe): New function.
49140         (func_get_automake_snippet, func_modules_transitive_closure,
49141         func_import): Invoke it before a join command that reads from stdin,
49142         to avoid "echo: write error: Broken pipe" error messages on stderr.
49143         Reported by Sam Steingold <sds@gnu.org>.
49144
49145 2008-08-30  Bruno Haible  <bruno@clisp.org>
49146
49147         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
49148         Code copied from m4/open.m4.
49149         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
49150         access and the filename ends in a slash. Code copied from lib/open.c.
49151         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
49152         * tests/test-fopen.c (main): Check against bug with trailing slash.
49153
49154 2008-08-29  Bruno Haible  <bruno@clisp.org>
49155
49156         Avoid some "gcc -pedantic" warnings.
49157         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
49158         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
49159         * lib/dirent.in.h: Likewise.
49160         * lib/fcntl.in.h: Likewise.
49161         * lib/float.in.h: Likewise.
49162         * lib/iconv.in.h: Likewise.
49163         * lib/inttypes.in.h: Likewise.
49164         * lib/locale.in.h: Likewise.
49165         * lib/math.in.h: Likewise.
49166         * lib/netinet_in.in.h: Likewise.
49167         * lib/search.in.h: Likewise.
49168         * lib/signal.in.h: Likewise.
49169         * lib/stdarg.in.h: Likewise.
49170         * lib/stdint.in.h: Likewise.
49171         * lib/stdio.in.h: Likewise.
49172         * lib/stdlib.in.h: Likewise.
49173         * lib/string.in.h: Likewise.
49174         * lib/strings.in.h: Likewise.
49175         * lib/sys_select.in.h: Likewise.
49176         * lib/sys_socket.in.h: Likewise.
49177         * lib/sys_stat.in.h: Likewise.
49178         * lib/sys_time.in.h: Likewise.
49179         * lib/sysexits.in.h: Likewise.
49180         * lib/time.in.h: Likewise.
49181         * lib/unistd.in.h: Likewise.
49182         * lib/wchar.in.h: Likewise.
49183         * lib/wctype.in.h: Likewise.
49184         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
49185         * modules/fchdir (Makefile.am): Likewise.
49186         * modules/fcntl (Makefile.am): Likewise.
49187         * modules/float (Makefile.am): Likewise.
49188         * modules/iconv_open (Makefile.am): Likewise.
49189         * modules/inttypes (Makefile.am): Likewise.
49190         * modules/locale (Makefile.am): Likewise.
49191         * modules/math (Makefile.am): Likewise.
49192         * modules/netinet_in (Makefile.am): Likewise.
49193         * modules/search (Makefile.am): Likewise.
49194         * modules/signal (Makefile.am): Likewise.
49195         * modules/stdarg (Makefile.am): Likewise.
49196         * modules/stdint (Makefile.am): Likewise.
49197         * modules/stdio (Makefile.am): Likewise.
49198         * modules/stdlib (Makefile.am): Likewise.
49199         * modules/string (Makefile.am): Likewise.
49200         * modules/strings (Makefile.am): Likewise.
49201         * modules/sys_select (Makefile.am): Likewise.
49202         * modules/sys_socket (Makefile.am): Likewise.
49203         * modules/sys_stat (Makefile.am): Likewise.
49204         * modules/sys_time (Makefile.am): Likewise.
49205         * modules/sysexits (Makefile.am): Likewise.
49206         * modules/time (Makefile.am): Likewise.
49207         * modules/unistd (Makefile.am): Likewise.
49208         * modules/wchar (Makefile.am): Likewise.
49209         * modules/wctype (Makefile.am): Likewise.
49210         Reported by Reuben Thomas <rrt@sc3d.org>.
49211
49212 2008-08-29  Bruno Haible  <bruno@clisp.org>
49213
49214         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
49215         any more.
49216
49217 2008-08-29  Simon Josefsson  <simon@josefsson.org>
49218
49219         * MODULES.html.sh (Misc): Add bitrotate.
49220
49221         * modules/bitrotate: New file.
49222
49223         * lib/bitrotate.h: New file.
49224
49225         * modules/bitrotate-tests: New file.
49226
49227         * tests/test-bitrotate.c: New file.
49228
49229         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
49230         on the bitrotate module.
49231
49232         * lib/arctwo.c: Use new bitrotate module.
49233
49234 2008-08-29  Jim Meyering  <meyering@redhat.com>
49235
49236         bootstrap: merge changes from coreutils
49237         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
49238         of copied files.  Remove a kludge, now that this is fixed.
49239         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
49240         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
49241         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
49242
49243 2008-08-29  Bruno Haible  <bruno@clisp.org>
49244
49245         * MODULES.html.sh: Remove --cvs-urls option.
49246
49247 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
49248
49249         maint.mk: adjust to file name change
49250         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
49251
49252 2008-08-28  Jim Meyering  <meyering@redhat.com>
49253
49254         * modules/getndelim2 (License): Relicense to LGPLv2+.
49255         Approved by Richard Stallman for the version of 1995, and by
49256         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
49257
49258 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
49259
49260         * lib/getdelim.c (flockfile, funlockfile): Make all of them
49261         dummy if one is not available.  Do not touch them if
49262         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
49263         (getc_maybe_unlocked): New.
49264         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
49265
49266 2008-08-26  Eric Blake  <ebb9@byu.net>
49267
49268         doc/INSTALL: resync from autoconf
49269         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
49270         (INSTALL_PRELUDE): Delete; this is done more efficiently by
49271         moving...
49272         * install.texi [!autoconf]: ...here.  Resync from autoconf.
49273         * INSTALL: Regenerate.
49274         * INSTALL.ISO: New file.
49275         * INSTALL.UTF-8: Likewise.
49276
49277 2008-08-26  Jim Meyering  <meyering@redhat.com>
49278
49279         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
49280         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
49281         these definitions conditional, so that they may be overridden, too.
49282
49283 2008-08-26  Bruno Haible  <bruno@clisp.org>
49284
49285         Generate INSTALL file variants with prettier quotes.
49286         * doc/Makefile (INSTALL_PRELUDE): New macro.
49287         (INSTALL): Use it.
49288         (INSTALL.ISO, INSTALL.UTF-8): New rules.
49289
49290 2008-08-26  Bruno Haible  <bruno@clisp.org>
49291
49292         Run makeinfo in an English locale.
49293         * doc/Makefile (MAKEINFO): New variable.
49294
49295 2008-08-26  Bruno Haible  <bruno@clisp.org>
49296
49297         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
49298         Suggested by Eric Blake.
49299
49300 2008-08-25  Bruno Haible  <bruno@clisp.org>
49301
49302         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
49303
49304 2008-08-25  Eric Blake  <ebb9@byu.net>
49305
49306         c-stack: test that stack overflow can be caught
49307         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
49308         that platform allows handling stack overflow; at least OS/2 EMX
49309         has sigaltstack, but crashes before transferring control to
49310         handler on stack overflow.
49311         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
49312         check for HAVE_STACK_OVERFLOW_HANDLING.
49313         Reported by Elbert Pol.
49314
49315 2008-08-25  Bruno Haible  <bruno@clisp.org>
49316
49317         * doc/posix-functions/strftime.texi: Fix description of strftime
49318         module.
49319
49320 2008-08-24  Bruno Haible  <bruno@clisp.org>
49321
49322         * tests/uniwidth/test-uc_width2.c: New file.
49323         * tests/uniwidth/test-uc_width2.sh: New file.
49324         * modules/uniwidth/width-tests (Files): Add the new files.
49325         (TESTS): Add uniwidth/test-uc_width2.sh.
49326         (TESTS_ENVIRONMENT): New variable.
49327         (check_PROGRAMS): Add test-uc_width2.
49328         (test_uc_width2_SOURCES): New variable.
49329
49330         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
49331         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
49332         not 0x00AB.
49333         Reported by Alexander V. Lukyanov <lav@netis.ru>.
49334
49335 2008-08-22  Eric Blake  <ebb9@byu.net>
49336
49337         test-lock, test-tls: mention why a test is skipped
49338         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
49339         skipped.
49340         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
49341
49342         count-one-bits: relax license
49343         * modules/count-one-bits (License): Relicense to LGPLv2+.
49344         Suggested by Ludovic Courtès, approved by Ben Pfaff.
49345
49346 2008-08-22  Andreas Schwab  <schwab@suse.de>
49347
49348         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
49349         Remove spurious space in assignment.
49350
49351 2008-08-21  Simon Josefsson  <simon@josefsson.org>
49352
49353         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
49354         Paul Eggert <eggert@CS.UCLA.EDU>.
49355
49356 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
49357
49358         * modules/gettext: Add m4/threadlib.m4.
49359
49360 2008-08-19  Eric Blake  <ebb9@byu.net>
49361
49362         test-c-stack: fix compilation failure on FreeBSD 5.0
49363         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
49364         headers before <sys/resource.h>.
49365         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
49366         the bug.
49367         Reported by Nelson H. F. Beebe.
49368
49369         strverscmp: migrate from "strverscmp.h" to <string.h>
49370         * modules/string (Makefile.am): Add new hooks.
49371         * modules/strverscmp (Files): Remove strverscmp.h.
49372         (Depends-on): Add string.
49373         (configure.ac): Add indicator.
49374         (Include): Mention new header.
49375         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
49376         defaults.
49377         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
49378         results.
49379         * lib/strverscmp.h: Delete.
49380         * lib/string.in.h (strverscmp): Provide declaration, when needed.
49381         * tests/test-strverscmp.c (includes): Adjust client.
49382         * lib/check-version.c (includes): Likewise.
49383         * NEWS: Document the change.
49384
49385         strverscmp: add unit test
49386         * modules/strverscmp-tests: New file.
49387         * tests/test-strverscmp.c: Likewise.
49388
49389 2008-08-19  Simon Josefsson  <simon@josefsson.org>
49390
49391         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
49392         regarding Windows crypto stuff, from Mono.
49393
49394 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
49395
49396         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
49397         if present, for intel RND.  Return error on failures.
49398
49399 2008-08-18  Ben Pfaff  <blp@gnu.org>
49400
49401         gitlog-to-changelog: give better diagnostic for failed pipe-open
49402         * build-aux/gitlog-to-changelog: Improve error message: suggest
49403         that the version of Git may be too old.
49404
49405 2008-08-18  Simon Josefsson  <simon@josefsson.org>
49406
49407         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
49408         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
49409
49410 2008-08-18  Bruno Haible  <bruno@clisp.org>
49411
49412         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
49413         pthread_in_use().
49414
49415 2008-08-18  Bruno Haible  <bruno@clisp.org>
49416
49417         * lib/glthread/threadlib.c: Include <pthread.h>.
49418
49419 2008-08-18  Bruno Haible  <bruno@clisp.org>
49420
49421         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
49422         glthread_recursive_lock_* macros.
49423         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
49424         Fix syntax error.
49425
49426 2008-08-18  Bruno Haible  <bruno@clisp.org>
49427
49428         * lib/glthread/thread.c: Avoid forcing a context switch right after
49429         thread creation.
49430
49431 2008-08-17  Bruno Haible  <bruno@clisp.org>
49432
49433         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
49434         * lib/glthread/thread.h: Provide Win32 specific implementation.
49435         * modules/thread (Files): Add lib/glthread/thread.c.
49436         (Depends-on): Add lock.
49437         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
49438
49439 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49440
49441         New module 'yield'.
49442         * modules/yield: New file.
49443         * lib/glthread/yield.h: New file.
49444         * m4/yield.m4: New file.
49445         * MODULES.html.sh (Multithreading): Add yield.
49446
49447 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49448
49449         New module 'thread'.
49450         * modules/thread: New file.
49451         * lib/glthread/thread.h: New file.
49452         * m4/thread.m4: New file.
49453         * MODULES.html.sh (Multithreading): Add thread.
49454
49455 2008-08-17  Bruno Haible  <bruno@clisp.org>
49456
49457         * lib/glthread/lock.h: Include <stdlib.h> always.
49458         * lib/glthread/tls.h: Likewise.
49459         * lib/glthread/cond.h: Likewise.
49460
49461 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49462
49463         New module 'cond'.
49464         * modules/cond: New file.
49465         * lib/glthread/cond.h: New file.
49466         * lib/glthread/cond.c: New file.
49467         * m4/cond.m4: New file.
49468         * MODULES.html.sh (Multithreading): Add cond.
49469
49470 2008-08-16  Eric Blake  <ebb9@byu.net>
49471
49472         c-stack: fix regression on Irix 5.3 from 2008-06-21
49473         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
49474         sa_sigaction...
49475         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
49476         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
49477         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
49478         * modules/signal (Makefile.am): Use the value.
49479         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
49480         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
49481         * doc/posix-headers/signal.texi (signal.h): Document this
49482         portability issue.
49483         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
49484         Reported by Tom G. Christensen.
49485
49486 2008-08-17  Bruno Haible  <bruno@clisp.org>
49487
49488         New module 'threadlib'.
49489         * modules/threadlib: New file.
49490         * lib/glthread/threadlib.c: New file, extracted from
49491         lib/glthread/lock.c.
49492         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
49493         functions.
49494         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
49495         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
49496         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
49497         macros.
49498         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
49499         (gl_DISABLE_THREADS): Remove macro.
49500         * modules/lock (Files): Remove build-aux/config.rpath.
49501         (Depends-on): Remove havelib. Add threadlib.
49502         (configure.ac-early): Remove section.
49503         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
49504         * modules/tls (Depends-on): Remove lock. Add threadlib.
49505         (Link): New section, copied from threadlib.
49506         * MODULES.html.sh (Multithreading): Add threadlib.
49507
49508 2008-08-14  Bruno Haible  <bruno@clisp.org>
49509
49510         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
49511         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
49512         glthread_rwlock_unlock, glthread_rwlock_destroy,
49513         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
49514         glthread_recursive_lock_destroy): Define as macros always.
49515         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
49516         glthread_lock_lock.
49517         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
49518         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
49519         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
49520         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
49521         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
49522         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
49523         (glthread_recursive_lock_lock_func): Renamed from
49524         glthread_recursive_lock_lock.
49525         (glthread_recursive_lock_unlock_func): Renamed from
49526         glthread_recursive_lock_unlock.
49527         (glthread_recursive_lock_destroy_func): Renamed from
49528         glthread_recursive_lock_destroy.
49529
49530 2008-08-14  Bruno Haible  <bruno@clisp.org>
49531
49532         * lib/glthread/lock.h: Renamed from lib/lock.h.
49533         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
49534         * lib/glthread/tls.h: Renamed from lib/tls.h.
49535         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
49536         * lib/fstrcmp.c: Update includes.
49537         * lib/strsignal.c: Update includes.
49538         * modules/lock (Files, Makefile.am): Update.
49539         (Include): Change to "glthread/lock.h".
49540         * modules/tls (Files, Makefile.am): Update.
49541         (Include): Change to "glthread/tls.h".
49542         * tests/test-lock.c: Update includes.
49543         * tests/test-tls.c: Update includes.
49544         * NEWS: Mention the renamed header files.
49545
49546 2008-08-11  Jim Meyering  <meyering@redhat.com>
49547
49548         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
49549
49550 2008-08-11  Eric Blake  <ebb9@byu.net>
49551
49552         test-c-stack: avoid C99-ism
49553         * tests/test-c-stack.c (main): Fix whitespace, move declaration
49554         before statement.
49555         Reported by Alain Guibert.
49556
49557 2008-08-10  Jim Meyering  <meyering@redhat.com>
49558
49559         ensure that return value of uinttostr et al are not ignored
49560         * lib/inttostr.h (__GNUC_PREREQ): Define.
49561         (__attribute_warn_unused_result__): Define.
49562         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
49563
49564 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
49565
49566         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
49567         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
49568
49569 2008-08-07  Jim Meyering  <meyering@redhat.com>
49570
49571         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
49572
49573         * modules/mkstemp (License): Relicense under LGPLv2+.
49574         * modules/tempname (License): Likewise.
49575
49576 2008-08-06  Bruno Haible  <bruno@clisp.org>
49577
49578         * lib/poll.c (poll): Further micro-optimization.
49579
49580 2008-08-06  Jim Meyering  <meyering@redhat.com>
49581
49582         inet_pton.c: use locale-independent tolower
49583         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
49584         (inet_pton6): Use c_tolower rather than tolower.
49585         * modules/inet_pton (Depends-on): Add c-ctype.
49586
49587 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
49588
49589         * lib/poll.c (poll): Avoid division when timeout is 0, cache
49590         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
49591
49592 2008-08-06  Jim Meyering  <meyering@redhat.com>
49593
49594         * modules/inet_pton (License): Relicense under LGPLv2+.
49595
49596 2008-08-03  Bruno Haible  <bruno@clisp.org>
49597
49598         Additional non-aborting API for lock and tls.
49599         * lib/lock.h: Include <errno.h>.
49600         (glthread_lock_init): New macro/function.
49601         (gl_lock_init): Define as wrapper around glthread_lock_init.
49602         (glthread_lock_lock): New macro/function.
49603         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
49604         (glthread_lock_unlock): New macro/function.
49605         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
49606         (glthread_lock_destroy): New macro/function.
49607         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
49608         (glthread_rwlock_init): New macro/function.
49609         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
49610         (glthread_rwlock_rdlock): New macro/function.
49611         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
49612         (glthread_rwlock_wrlock): New macro/function.
49613         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
49614         (glthread_rwlock_unlock): New macro/function.
49615         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
49616         (glthread_rwlock_destroy): New macro/function.
49617         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
49618         (glthread_recursive_lock_init): New macro/function.
49619         (gl_recursive_lock_init): Define as wrapper around
49620         glthread_recursive_lock_init.
49621         (glthread_recursive_lock_lock): New macro/function.
49622         (gl_recursive_lock_lock): Define as wrapper around
49623         glthread_recursive_lock_lock.
49624         (glthread_recursive_lock_unlock): New macro/function.
49625         (gl_recursive_lock_unlock): Define as wrapper around
49626         glthread_recursive_lock_unlock.
49627         (glthread_recursive_lock_destroy): New macro/function.
49628         (gl_recursive_lock_destroy): Define as wrapper around
49629         glthread_recursive_lock_destroy.
49630         (glthread_once): New macro/function.
49631         (gl_once): Define as wrapper around glthread_once.
49632         Update function declarations.
49633         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
49634         glthread_rwlock_init. Return error code.
49635         (glthread_rwlock_rdlock_multithreaded): Renamed from
49636         glthread_rwlock_rdlock. Return error code.
49637         (glthread_rwlock_wrlock_multithreaded): Renamed from
49638         glthread_rwlock_wrlock. Return error code.
49639         (glthread_rwlock_unlock_multithreaded): Renamed from
49640         glthread_rwlock_unlock. Return error code.
49641         (glthread_rwlock_destroy_multithreaded): Renamed from
49642         glthread_rwlock_destroy. Return error code.
49643         (glthread_recursive_lock_init_multithreaded): Renamed from
49644         glthread_recursive_lock_init. Return error code.
49645         (glthread_recursive_lock_lock_multithreaded): Renamed from
49646         glthread_recursive_lock_lock. Return error code.
49647         (glthread_recursive_lock_unlock_multithreaded): Renamed from
49648         glthread_recursive_lock_unlock. Return error code.
49649         (glthread_recursive_lock_destroy_multithreaded): Renamed from
49650         glthread_recursive_lock_destroy. Return error code.
49651         (glthread_once_call): Make static.
49652         (glthread_once_multithreaded): Renamed from glthread_once.
49653         * lib/tls.h: Include <errno.h>.
49654         (glthread_tls_key_init): New macro/function.
49655         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
49656         (glthread_tls_set): New macro/function.
49657         (gl_tls_set): Define as wrapper around glthread_tls_set.
49658         (glthread_tls_key_destroy): New macro/function.
49659         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
49660         Update function declarations.
49661         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
49662         glthread_tls_get.
49663         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49664
49665 2008-08-04  Eric Blake  <ebb9@byu.net>
49666
49667         gnumakefile: use space, not TAB, outside of targets
49668         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
49669
49670 2008-08-02  Jim Meyering  <meyering@redhat.com>
49671
49672         getdate.y: avoid locale-dependent date parsing failure
49673         In Turkish locales, getdate would fail to recognize keywords
49674         containing a lowercase "i".  The solution is not to rely on
49675         locale-sensitive case-conversion.
49676         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
49677         (lookup_word): Use c_toupper in place of toupper.
49678         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
49679         Reported by Vefa Bicakci <bicave@superonline.com> in
49680         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
49681         * modules/getdate (Depends-on): Add c-ctype.
49682
49683 2008-08-02  Bruno Haible  <bruno@clisp.org>
49684
49685         * gnulib-tool (func_import): When updating or creating a .gitignore
49686         file, prepend each added line with a slash, and ignore leading slashes
49687         from the existing lines.
49688         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49689
49690 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49691
49692         Portability fix for GNU make 3.79.1.
49693         * top/GNUmakefile: Avoid 'else COND', which older GNU make
49694         versions do not understand.
49695
49696 2008-08-01  Bruno Haible  <bruno@clisp.org>
49697
49698         Work around bug of HP-UX 10.20 cc with -0.0 literal.
49699         * tests/test-isnanf.h (zero): New variable.
49700         (main): Avoid literal -0.0f.
49701         * tests/test-isnand.h (zero): New variable.
49702         (main): Avoid literal -0.0.
49703         * tests/test-isnanl.h (zero): New variable.
49704         (main): Avoid literal -0.0L.
49705         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
49706         (test_float, test_double, test_long_double): Avoid literals -0.0f,
49707         -0.0, -0.0L.
49708         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
49709         (test_signbitd): Avoid literal -0.0.
49710         (test_signbitl): Avoid literal -0.0L.
49711         * tests/test-ceilf1.c (zero): New variable.
49712         (main): Avoid literal -0.0f.
49713         * tests/test-ceill.c (zero): New variable.
49714         (main): Avoid literal -0.0L.
49715         * tests/test-floorf1.c (zero): New variable.
49716         (main): Avoid literal -0.0f.
49717         * tests/test-floorl.c (zero): New variable.
49718         (main): Avoid literal -0.0L.
49719         * tests/test-roundf1.c (zero): New variable.
49720         (main): Avoid literal -0.0f.
49721         * tests/test-round1.c (zero): New variable.
49722         (main): Avoid literal -0.0.
49723         * tests/test-roundl.c (zero): New variable.
49724         (main): Avoid literal -0.0L.
49725         * tests/test-truncf1.c (zero): New variable.
49726         (main): Avoid literal -0.0f.
49727         * tests/test-trunc1.c (zero): New variable.
49728         (main): Avoid literal -0.0.
49729         * tests/test-truncl.c (zero): New variable.
49730         (main): Avoid literal -0.0L.
49731         * tests/test-frexp.c (zero): New variable.
49732         (main): Avoid literal -0.0.
49733         * tests/test-frexpl.c (zero): New variable.
49734         (main): Avoid literal -0.0L.
49735         * tests/test-ldexpl.c (zero): New variable.
49736         (main): Avoid literal -0.0L.
49737         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49738         (zerod, zerol): New variables.
49739         (test_function): Avoid literals -0.0, -0.0L.
49740         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49741         (zerod, zerol): New variables.
49742         (test_function): Avoid literals -0.0, -0.0L.
49743         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49744         (zerod, zerol): New variables.
49745         (test_function): Avoid literals -0.0, -0.0L.
49746         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49747         (zerod, zerol): New variables.
49748         (test_function): Avoid literals -0.0, -0.0L.
49749         * tests/test-strtod.c (zero): New variable.
49750         (main): Avoid literal -0.0.
49751         Reported by Jonathan C. Patschke <jp@centtech.com>.
49752
49753 2008-07-31  Jim Meyering  <meyering@redhat.com>
49754
49755         sha256.h: correct definition of SHA224_DIGEST_SIZE
49756         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
49757         Reported by Paulie Pena IV <paulie4@gmail.com>.
49758         Define as 224 / 8, rather than as a literal.
49759         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
49760         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
49761         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
49762
49763 2008-07-31  Bruno Haible  <bruno@clisp.org>
49764
49765         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
49766         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
49767         Reported by Jonathan Patschke <jp@centtech.com>.
49768
49769 2008-07-31  Bruno Haible  <bruno@clisp.org>
49770
49771         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
49772         Reported by Paolo Bonzini <bonzini@gnu.org>.
49773
49774 2008-07-30  Eric Blake  <ebb9@byu.net>
49775
49776         test-strtod: allow compilation without -lm
49777         * tests/test-strtod.c (main): Avoid link dependence on fabs.
49778         Reported by Dennis Clarke <blastwave@gmail.com>.
49779
49780 2008-07-28  Jim Meyering  <meyering@redhat.com>
49781
49782         bootstrap: work also when there are no .po files in po/
49783         * build-aux/bootstrap (update_po_files): Complete the change
49784         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
49785
49786 2008-07-27  Jim Meyering  <meyering@redhat.com>
49787
49788         * users.txt: Add zile.
49789
49790 2008-07-26  Ben Pfaff  <blp@gnu.org>
49791
49792         Add missing dependencies on new m4/exponent[fdl].m4 files.
49793         * modules/isnanf-nolibm: Add m4/exponentf.m4.
49794         * modules/isnand-nolibm: Add m4/exponentd.m4.
49795         * modules/isnanl-nolibm: Add m4/exponentl.m4.
49796         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
49797         m4/isnan[fdl].m4, because the macros actually used moved.
49798         Reported by Jim Meyering.
49799
49800 2008-07-14  Ben Pfaff  <blp@gnu.org>
49801
49802         Add isinf module.
49803         * lib/isinf.c: New file.
49804         * lib/math.in.h: Define isinf macro if we have decided to replace
49805         it.
49806         * m4/isinf.m4: New file.
49807         * m4/math_h.m4: Initialize and substitute variables for isinf
49808         module.
49809         * modules/isinf: New file.
49810         * modules/isinf-tests: New file.
49811         * modules/math: Add substitutions for new module.
49812         * tests/test-isinf.c: New file.
49813         * doc/posix-functions/isinf.texi: Mention new module.
49814         * MODULES.html.sh: Mention new module.
49815
49816 2008-07-14  Ben Pfaff  <blp@gnu.org>
49817
49818         Factor out some macros for use by additional modules.
49819         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
49820         exponentf.m4.
49821         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
49822         exponentd.m4.
49823         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
49824         file exponentl.m4.
49825         * m4/exponentf.m4: New file.
49826         * m4/exponentd.m4: New file.
49827         * m4/exponentl.m4: New file.
49828         * modules/isnanf: Use new file m4/exponentf.m4.
49829         * modules/isnand: Use new file m4/exponentd.m4.
49830         * modules/isnanl: Use new file m4/exponentl.m4.
49831
49832 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
49833
49834         mktime.c: normalize tp->tm_isdst value to -1/0/1.
49835         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
49836         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
49837         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
49838
49839         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
49840         readlink on platforms without PATH_MAX.
49841
49842 2008-07-21  Eric Blake  <ebb9@byu.net>
49843
49844         Warn, not fail, on stale version.
49845         * top/GNUmakefile (_curr-ver): Tone down previous patch.
49846
49847         Don't allow installation with stale devel version number.
49848         * top/GNUmakefile (_is-install-target): New macro.
49849         (_curr-ver): Forbid installation with stale version number.
49850
49851 2008-07-20  Bruno Haible  <bruno@clisp.org>
49852
49853         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
49854         TESTS_ENVIRONMENT.
49855         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
49856
49857 2008-07-20  Bruno Haible  <bruno@clisp.org>
49858
49859         * lib/c-stack.h (c_stack_action): Add documentation.
49860         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
49861
49862 2008-07-20  Bruno Haible  <bruno@clisp.org>
49863
49864         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
49865         * modules/readlink (License): Likewise.
49866
49867 2008-07-17  Eric Blake  <ebb9@byu.net>
49868
49869         * modules/c-stack (Link): Fix typo.
49870
49871         Make c-stack use libsigsegv, when available.
49872         * modules/c-stack (Depends-on): Add libsigsegv.
49873         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
49874         needed.
49875         * lib/c-stack.c (SIGSTKSZ): Define fallback.
49876         (segv_handler, overflow_handler, c_stack_action)
49877         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
49878         implementation when libsigsegv is available, but only when using
49879         the library is necessary.
49880         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
49881         comment, explaining why XSI check fails on Linux.
49882         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
49883         * tests/test-c-stack2.sh: Tweak skip message.
49884         * NEWS: Document new link-time requirements.
49885
49886 2008-07-16  Eric Blake  <ebb9@byu.net>
49887
49888         c-stack: Expose false positives when not using libsigsegv.
49889         * modules/c-stack-tests (Files): Expand test.
49890         * tests/test-c-stack.c (main): Add means to conditionally trigger
49891         non-overflow SIGSEGV.
49892         * tests/test-c-stack2.sh: New file.
49893
49894 2008-07-14  Bruno Haible  <bruno@clisp.org>
49895
49896         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
49897         Reported by Eric Blake.
49898
49899 2008-07-14  Sam Steingold  <sds@gnu.org>
49900             Bruno Haible  <bruno@clisp.org>
49901
49902         New module libsigsegv.
49903         * modules/libsigsegv: New file.
49904         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
49905         modifications.
49906         * MODULES.html.sh (Signal handling): New section.
49907
49908 2008-07-14  Bruno Haible  <bruno@clisp.org>
49909
49910         * modules/unictype/ctype-* (Description): Add the word "function".
49911         Improves the resulting doc in MODULES.html.
49912
49913 2008-07-12  Ben Pfaff  <blp@gnu.org>
49914
49915         Add longlong module.
49916         * modules/longlong: New file.
49917
49918 2008-07-12  Bruno Haible  <bruno@clisp.org>
49919
49920         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
49921         to empty.
49922
49923 2008-07-10  Ben Pfaff  <blp@gnu.org>
49924
49925         Add isnan module.
49926         * doc/posix-functions/isnan.texi: Mention new module.
49927         * lib/math.in.h: Define isnan macro if we have decided to replace
49928         it.
49929         * m4/isnan.m4: New file.
49930         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
49931         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
49932         also.
49933         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
49934         redundancy.
49935         * m4/math_h.m4: Initialize and substitute variables for isnan
49936         module.
49937         * modules/isnan: New file.
49938         * modules/isnan-tests: New file.
49939         * modules/math: Add substitutions for new module.
49940         * tests/test-isnan.c: New file.
49941         * MODULES.html.sh: Mention new module.
49942
49943 2008-07-10  Ben Pfaff  <blp@gnu.org>
49944
49945         Add isnanf module.
49946         * lib/isnanf.m4: New file.
49947         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
49948         (gl_HAVE_ISNANF_IN_LIBM): New macro.
49949         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
49950         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
49951         * modules/isnanf: New file.
49952         * modules/isnanf-tests: New file.
49953         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
49954         files.
49955         * tests/test-isnanf-nolibm.c: factored most of its contents into
49956         new file tests/test-isnanf.h.
49957         * tests/test-isnanf.h: New file.
49958         * tests/test-isnanf.c: New file.
49959         * MODULES.html.sh: Mention new module.
49960         * doc/glibc-functions/isnanf.texi: Mention new module.
49961
49962 2008-07-10  Ben Pfaff  <blp@gnu.org>
49963
49964         Add isnand module.
49965         * lib/isnand.h: New file.
49966         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
49967         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
49968         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
49969         functionality also.
49970         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
49971         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
49972         (gl_HAVE_ISNAND_IN_LIBM): New macro.
49973         * modules/isnand: New file.
49974         * modules/isnand-tests: New file.
49975         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
49976         files.
49977         * tests/test-isnand-nolibm.c: factored most of its contents into
49978         new file tests/test-isnand.h.
49979         * tests/test-isnand.h: New file.
49980         * tests/test-isnand.c: New file.
49981         * MODULES.html.sh: Mention new module.
49982
49983 2008-07-10  Ben Pfaff  <blp@gnu.org>
49984
49985         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
49986         * lib/isnand.h: Rename lib/isnand-nolibm.h.
49987         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
49988         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
49989         * modules/isnanf-nolibm: Update references to renamed files.
49990         * modules/isnand-nolibm: Likewise.
49991         * modules/isnanf-nolibm-tests: Likewise.
49992         * modules/isnand-nolibm-tests: Likewise.
49993         * lib/frexp.c: Likewise.
49994         * lib/isfinite.c: Likewise.
49995         * lib/signbitd.c: Likewise.
49996         * lib/signbitf.c: Likewise.
49997         * lib/vasnprintf.c: Likewise.
49998         * tests/test-ceilf1.c: Likewise.
49999         * tests/test-ceilf2.c: Likewise.
50000         * tests/test-floorf1.c: Likewise.
50001         * tests/test-floorf2.c: Likewise.
50002         * tests/test-frexp.c: Likewise.
50003         * tests/test-round1.c: Likewise.
50004         * tests/test-round2.c: Likewise.
50005         * tests/test-roundf1.c: Likewise.
50006         * tests/test-strtod.c: Likewise.
50007         * tests/test-trunc1.c: Likewise.
50008         * tests/test-trunc2.c: Likewise.
50009         * tests/test-truncf1.c: Likewise.
50010         * tests/test-truncf2.c: Likewise.
50011         * NEWS: Mention the renamed header files.
50012
50013 2008-07-11  Jim Meyering  <meyering@redhat.com>
50014
50015         vc-list-files: make the last-resort awk code more portable
50016         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
50017         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
50018         does not support it.
50019
50020 2008-07-10  Eric Blake  <ebb9@byu.net>
50021
50022         Work with tar's bootstrap.
50023         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
50024         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
50025         an m4 comment.
50026
50027 2008-07-09  Jim Meyering  <meyering@redhat.com>
50028
50029         posix-shell.m4: fix typo that made this test malfunction
50030         * m4/posix-shell.m4: Remove capitalization in variable name.
50031
50032 2008-07-08  Bruno Haible  <bruno@clisp.org>
50033
50034         * m4/onceonly.m4: Update comments.
50035         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50036
50037 2008-07-04  Jim Meyering  <meyering@redhat.com>
50038
50039         * users.txt: Add vc-dwim.
50040         (bison, coreutils): Use the gitweb URL.
50041
50042 2008-07-03  Jim Meyering  <meyering@redhat.com>
50043
50044         * users.txt: Add libffcall.  From Sam Steingold.
50045
50046 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
50047
50048         getdate.y: do not ignore TZ with relative day, month or year offset
50049         * lib/getdate.y (get_date): Move the tz-handling block to follow the
50050         relative-date-handling, since otherwise, the latter would clobber the
50051         sole output (an updated Start value) of the tz-handling block.
50052         * tests/test-getdate.c: Tests for the fix
50053
50054 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50055
50056         Recognize 'foo_LIBRARIES += libgnu.a'.
50057         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
50058         makefile snippet has already specified an installation location,
50059         also using '+='.
50060
50061 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
50062
50063         getdate.y: factor out common actions
50064         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
50065         Use them in place of open-coded actions.
50066
50067 2008-07-01  Simon Josefsson  <simon@josefsson.org>
50068
50069         Add self-test for getdate module.
50070         * modules/getdate-tests: New file.
50071         * tests/test-getdate.c: New file.
50072
50073 2008-06-29  Bruno Haible  <bruno@clisp.org>
50074
50075         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
50076         .gitignore.
50077         Reported by Sylvain Beucler <beuc@beuc.net>.
50078
50079 2008-06-29  Bruno Haible  <bruno@clisp.org>
50080
50081         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
50082         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
50083
50084 2008-06-29  Bruno Haible  <bruno@clisp.org>
50085
50086         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
50087         EXTRA_DIST.
50088         Reported by Sylvain Beucler <beuc@beuc.net>.
50089
50090 2008-06-26  Jim Meyering  <meyering@redhat.com>
50091
50092         make several modules depend on the "open" module
50093         This provides slightly increased consistency when opening-for-write
50094         the name of a non-directory spelled with a trailing slash.
50095         * modules/chdir-safer: Likewise.
50096         * modules/chown: Likewise.
50097         * modules/clean-temp: Likewise.
50098         * modules/copy-file: Likewise.
50099         * modules/fchdir: Likewise.
50100         * modules/fcntl-safer: Likewise.
50101         * modules/pipe: Likewise.
50102         * modules/utime: Likewise.
50103         Prompted by Eric Blake and Bruno Haible.
50104
50105 2008-06-24  Andreas Schwab  <schwab@suse.de>
50106
50107         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
50108         literals can be used as initializers for global variables.
50109
50110 2008-06-23  Eric Blake  <ebb9@byu.net>
50111
50112         Make gnulib-cache.m4 easier to diff.
50113         * gnulib-tool (func_import): Allow newlines when reading cached
50114         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
50115
50116 2008-06-23  Bruno Haible  <bruno@clisp.org>
50117
50118         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
50119         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
50120         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
50121         m4/signalblocking.m4.
50122         (gl_PREREQ_SIGACTION): Don't invoke it.
50123         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
50124         gl_PREREQ_SIG_HANDLER_H.
50125         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
50126         Don't check for sigaction here.
50127
50128 2008-06-23  Bruno Haible  <bruno@clisp.org>
50129
50130         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
50131         (install_handlers): Don't set the SA_RESETHAND flag.
50132
50133 2008-06-23  Bruno Haible  <bruno@clisp.org>
50134
50135         * m4/sigaction.m4: Comment fixes.
50136         * lib/signal.in.h: Likewise.
50137
50138 2008-06-23  Eric Blake  <ebb9@byu.net>
50139
50140         Fix typo.
50141         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
50142
50143         Avoid SA_ namespace.
50144         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
50145         Reported by Ralf Wildenhues.
50146
50147         Avoid test failure due to SA_RESTORER.
50148         * tests/test-sigaction.c (SA_MASK): New macro.
50149         (main): Avoid failing due to extension flags being set.
50150         Reported by Jim Meyering.
50151
50152         Revert use of sig-handler.h in sigprocmask.c.
50153         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
50154         it requires the existence of struct sigaction.
50155         * lib/sigprocmask.c (handler_t): Restore typedef.
50156         (rpl_signal, old_handlers): Use local type.
50157
50158 2008-06-22  Bruno Haible  <bruno@clisp.org>
50159
50160         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
50161         conditionally.
50162         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50163
50164 2008-06-22  Bruno Haible  <bruno@clisp.org>
50165
50166         * doc/posix-functions/siginterrupt.texi: Move note.
50167
50168         * lib/signal.in.h (SA_RESTART): New macro.
50169         * lib/sigaction.c: Update comment.
50170
50171         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
50172
50173         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
50174         (gl_PREREQ_SIGPROCMASK): Invoke it.
50175         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
50176
50177         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
50178
50179         * lib/sigprocmask.c: Update a comment.
50180
50181 2008-06-21  Eric Blake  <ebb9@byu.net>
50182
50183         Use sigaction module rather than signal().
50184         * modules/c-stack (Depends-on): Add sigaction.
50185         * modules/fatal-signal (Depends-on): Likewise.
50186         * modules/nanosleep (Depends-on): Likewise.
50187         * modules/sigprocmask (Files): Add sig-handler.h.
50188         * modules/sigaction (Files): Likewise.
50189         * lib/sig-handler.h (get_handler): New file, suggested by Paul
50190         Eggert.
50191         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
50192         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
50193         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
50194         (init_fatal_signals): Likewise.
50195         * lib/nanosleep.c (rpl_nanosleep): Likewise.
50196         (siginterrupt): Delete fallback.
50197         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
50198         instead.
50199         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
50200         siginterrupt.
50201
50202         New module sigaction, for mingw.
50203         * modules/sigaction: New module...
50204         * modules/sigaction-tests: ...and its test.
50205         * m4/sigaction.m4: New file.
50206         * lib/sigaction.c: Likewise.
50207         * tests/test-sigaction.c: Likewise.
50208         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
50209         * modules/signal (Makefile.am): Likewise.
50210         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
50211         needed.
50212         * doc/posix-headers/signal.texi (signal.h): Mention provided
50213         types.
50214         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
50215         that sigaction is preferable.
50216         * doc/posix-functions/sigaction.texi (sigaction): Mention new
50217         module.
50218         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50219         sigaction.
50220
50221         Improve robustness of sigprocmask by overriding signal.
50222         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
50223         is in use.
50224         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
50225         (SIGKILL, SIGSTOP): Provide fallbacks.
50226         (rpl_signal): Implement.
50227         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
50228         signal can be called inside handlers.
50229
50230         Fix nanosleep module on mingw.
50231         * modules/nanosleep (Depends-on): Add sys_select.
50232         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
50233
50234         Fix licensing of sigprocmask.
50235         * modules/raise (License): Relicense as LGPL.
50236
50237 2008-06-21  Bruno Haible  <bruno@clisp.org>
50238
50239         * lib/propername.c (proper_name_utf8): Don't use the transliterated
50240         result if it contains question marks.
50241         Reported by Michael Geng <linux@michaelgeng.de>.
50242
50243 2008-06-19  Bruno Haible  <bruno@clisp.org>
50244
50245         Fix CVS-ism.
50246         * doc/gnulib.texi: Include updated-stamp.texi.
50247         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
50248         (updated-stamp.texi): New rule.
50249         (gnulib.info): Depend on it.
50250         * doc/.gitignore: Add updated-stamp.texi.
50251         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
50252
50253 2008-06-19  Bruno Haible  <bruno@clisp.org>
50254
50255         * doc/Makefile (gnulib.info): Update and simplify dependencies.
50256         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50257
50258 2008-06-19  Eric Blake  <ebb9@byu.net>
50259
50260         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
50261         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
50262         Reported by Stepan Kasal.
50263
50264 2008-06-18  Bruno Haible  <bruno@clisp.org>
50265
50266         * lib/fatal-signal.c (init_fatal_signals): Add comment.
50267         Reported by Eric Blake.
50268
50269 2008-06-18  Eric Blake  <ebb9@byu.net>
50270
50271         Work around cygwin 1.5.25 strsignal bug.
50272         * tests/test-strsignal.c: Allow for const char *.
50273         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
50274
50275 2008-06-18  Simon Josefsson  <simon@josefsson.org>
50276
50277         * users.txt: Update URL to article and add author/date
50278         information.
50279
50280 2008-06-17  Bruno Haible  <bruno@clisp.org>
50281
50282         New macro gl_DISABLE_THREADS.
50283         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
50284         if the user did not pass --enable-threads or --disable-threads option.
50285         (gl_DISABLE_THREADS): New macro.
50286         Reported by Eric Blake <ebb9@byu.net>.
50287
50288 2008-06-17  Bruno Haible  <bruno@clisp.org>
50289
50290         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
50291         when the macro ignores it.
50292         Based on a patch by Eric Blake <ebb9@byu.net>.
50293
50294 2008-06-17  Bruno Haible  <bruno@clisp.org>
50295
50296         * modules/tls (License): Change to LGPLv2+.
50297         Reported by Eric Blake.
50298
50299 2008-06-17  Eric Blake  <ebb9@byu.net>
50300
50301         Simplify c-stack prerequisites.
50302         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
50303         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
50304         no longer requires <ucontext.h> to exist.  Optimize setrlimit
50305         check.
50306         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
50307         <sys/resource.h>.
50308
50309         Move c-stack test into testsuite.
50310         * modules/c-stack-tests: New file.
50311         * lib/c-stack.c [DEBUG]: Move test program...
50312         * tests/test-c-stack.c: ...into this new file.  Skip rather than
50313         fail test if sigaltstack is lacking.
50314         * tests/test-c-stack.sh: New driver file.
50315
50316 2008-06-16  Eric Blake  <ebb9@byu.net>
50317
50318         Use raise module consistently.
50319         * modules/fatal-signal (Depends-on): Add raise.
50320         * modules/sigprocmask (Depends-on): Likewise.
50321         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
50322         * lib/sigprocmask.c (sigprocmask): Likewise.
50323         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
50324         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
50325
50326         Fix compliance bug in sigpending.
50327         * lib/sigprocmask.c (sigpending): Return pending array via
50328         parameter, not return value.
50329
50330 2008-06-14  Eric Blake  <ebb9@byu.net>
50331
50332         Improve obstack-printf test code.
50333         * tests/test-obstack-printf.c (test_function): Fix comment, and
50334         simplify usage of obstack_* in macros.  Add a test for coverage.
50335         Reported by Bruno Haible.
50336
50337 2008-06-14  Bruno Haible  <bruno@clisp.org>
50338
50339         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
50340         array size as a constant, not as a const variable.
50341         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
50342         AC_USE_SYSTEM_EXTENSIONS.
50343         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
50344         Test whether the obstack_printf function actually exists.
50345         * modules/obstack-printf (Depends-on): Add extensions.
50346         (Include): Remove obstack.h.
50347         * modules/obstack-printf-posix (Depends-on): Add extensions.
50348         (Include): Remove obstack.h.
50349
50350 2008-06-13  Eric Blake  <ebb9@byu.net>
50351
50352         Add obstack-printf and obstack-printf-posix modules.
50353         * modules/obstack-printf: New file.
50354         * modules/obstack-printf-posix: Likewise.
50355         * MODULES.html.sh (Misc): Mention them.
50356         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50357         Likewise.
50358         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50359         Likewise.
50360         * modules/stdio (Makefile.am): Accomodate new modules.
50361         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50362         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
50363         Declare.
50364         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
50365         functions.
50366         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
50367         (gl_REPLACE_OBSTACK_PRINTF): New macros
50368         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
50369         * tests/test-obstack-printf.c: New file.
50370         * modules/obstack-printf-tests: Likewise.
50371         * modules/obstack-printf-posix-tests: Likewise.
50372
50373 2008-06-11  Bruno Haible  <bruno@clisp.org>
50374
50375         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
50376         * lib/open.c: Include errno.h.
50377         (open): Fail when attempting to write to a file that has a trailing
50378         slash.
50379         * tests/test-open.c (main): Test against trailing slash bug.
50380         * doc/posix-functions/open.texi: Mention the trailing slash bug.
50381
50382 2008-06-10  Bruno Haible  <bruno@clisp.org>
50383
50384         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
50385         for $? to work inside the trap command, with various /bin/sh-s.
50386         * tests/test-vc-list-files-cvs.sh: Likewise.
50387
50388 2008-06-10  Bruno Haible  <bruno@clisp.org>
50389
50390         * lib/acl-internal.h: Don't include gettext.h here.
50391         * lib/set-mode-acl.c: Include gettext.h here.
50392         * lib/copy-acl.c: Likewise.
50393
50394 2008-06-10  Bruno Haible  <bruno@clisp.org>
50395
50396         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
50397         * lib/wait-process.c (wait_subprocess): Likewise.
50398         * lib/execute.h (execute): Add termsigp argument.
50399         * lib/execute.c (execute): Likewise.
50400         * lib/csharpcomp.c (compile_csharp_using_pnet,
50401         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
50402         * lib/csharpexec.c (execute_csharp_using_pnet,
50403         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
50404         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
50405         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
50406         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
50407         is_jikes_present): Update.
50408         * lib/javaexec.c (execute_java_class): Update.
50409         * lib/javaversion.c (execute_and_read_line): Update.
50410         * NEWS: Document the changes.
50411         Reported by Eric Blake.
50412
50413 2008-06-10  Eric Blake  <ebb9@byu.net>
50414
50415         Add missing include.
50416         * tests/test-strstr.c (includes): Add <signal.h>.
50417         * tests/test-strcasestr.c (includes): Likewise.
50418         * tests/test-memmem.c (includes): Likewise.
50419
50420 2008-06-10  Bruno Haible  <bruno@clisp.org>
50421
50422         * lib/wait-process.c (wait_subprocess): Add an assertion.
50423
50424 2008-06-10  Bruno Haible  <bruno@clisp.org>
50425
50426         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
50427
50428 2008-06-10  Bruno Haible  <bruno@clisp.org>
50429
50430         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
50431         using alarm().
50432         * tests/test-strcasestr.c (main): Likewise.
50433         * tests/test-strstr.c (main): Likewise.
50434
50435 2008-06-09  Bruno Haible  <bruno@clisp.org>
50436
50437         Work around the Solaris 10 ACE ACLs ABI change.
50438         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
50439         declare if ACL_NO_TRIVIAL is present.
50440         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
50441         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
50442         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
50443         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
50444         define if ACL_NO_TRIVIAL is present.
50445         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
50446         and use the current ABI.
50447         (file_has_acl): Use same #if condition as elsewhere.
50448         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
50449         in use, and use the current ABI.
50450         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
50451         Reported by Jim Meyering.
50452
50453 2008-06-09  Eric Blake  <ebb9@byu.net>
50454
50455         Work around environments that (stupidly) ignore SIGALRM.
50456         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
50457         before using alarm().
50458         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50459         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50460         Reported by Ian Beckwith <ianb@erislabs.net>.
50461
50462         Produce autobuild blurb earlier in log.
50463         * modules/autobuild (configure.ac-early): Move AB_INIT here.
50464
50465 2008-06-09  Jim Meyering  <meyering@redhat.com>
50466         and Ondřej Vašík  <ovasik@redhat.com>
50467
50468         utimens.c: correct kernel bug work-around
50469         Ondřej Vašík found that the invalid return value of 280 indicates
50470         failure, not success, and the kernel bug we're trying to work
50471         around affects not just the utimensat call, but also the fallback
50472         futimens call.
50473         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
50474         not success.
50475         [HAVE_FUTIMENS]: Use the same work-around, here.
50476
50477 2008-06-09  Jim Meyering  <meyering@redhat.com>
50478
50479         add more guards around definition of ACE_-related code
50480         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
50481         ALLOW and ACE_OWNER are also defined.
50482
50483 2008-06-08  Bruno Haible  <bruno@clisp.org>
50484
50485         * lib/acl-internal.h: Add me as co-author.
50486         * lib/file-has-acl.c: Likewise.
50487         * lib/set-mode-acl.c: Likewise.
50488         * lib/copy-acl.c: Likewise.
50489
50490 2008-06-08  Bruno Haible  <bruno@clisp.org>
50491
50492         Add support for AIX ACLs.
50493         * lib/acl-internal.h (acl_nontrivial): New declaration.
50494         * lib/file-has-acl.c (acl_nontrivial): New function.
50495         (file_has_acl): Add implementation using AIX 4 ACL API.
50496         * lib/set-mode-acl.c (qset_acl): Likewise.
50497         * lib/copy-acl.c (qcopy_acl): Likewise.
50498
50499 2008-06-08  Bruno Haible  <bruno@clisp.org>
50500
50501         Add support for HP-UX ACLs.
50502         * lib/acl-internal.h (acl_nontrivial): New declaration.
50503         * lib/file-has-acl.c (acl_nontrivial): New function.
50504         (file_has_acl): Add implementation using HP-UX 11 ACL API.
50505         * lib/set-mode-acl.c (qset_acl): Likewise.
50506         * lib/copy-acl.c (qcopy_acl): Likewise.
50507
50508 2008-06-08  Bruno Haible  <bruno@clisp.org>
50509
50510         Add support for Cygwin ACLs.
50511         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
50512         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
50513         the chmod_or_fchmod call.
50514         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
50515
50516 2008-06-08  Bruno Haible  <bruno@clisp.org>
50517
50518         Fix bug with setuid modes in Solaris 10+ code.
50519         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
50520         succeeded, when the mode contains some special bits.
50521
50522 2008-06-08  Bruno Haible  <bruno@clisp.org>
50523
50524         Add support for Solaris 7..10 ACLs.
50525         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
50526         declarations.
50527         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
50528         functions.
50529         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
50530         * lib/set-mode-acl.c (qset_acl): Likewise.
50531         * lib/copy-acl.c (qcopy_acl): Likewise.
50532
50533 2008-06-08  Bruno Haible  <bruno@clisp.org>
50534
50535         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
50536         declaration.
50537         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
50538         (acl_access_nontrivial): Remove MacOS X case.
50539         (file_has_acl): Use acl_extended_nontrivial.
50540         * lib/copy-acl.c (qcopy_acl): Likewise.
50541
50542 2008-06-08  Bruno Haible  <bruno@clisp.org>
50543
50544         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
50545
50546 2008-06-08  Jim Meyering  <meyering@redhat.com>
50547
50548         * modules/acl (Maintainer): Add Bruno Haible.
50549
50550 2008-06-07  Bruno Haible  <bruno@clisp.org>
50551
50552         Improve support for Tru64 ACLs.
50553         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
50554         ACL on OSF/1.
50555
50556 2008-06-07  Bruno Haible  <bruno@clisp.org>
50557
50558         Add support for MacOS X ACLs.
50559         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
50560         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
50561         * lib/set-mode-acl.c (qset_acl): Likewise.
50562         * lib/copy-acl.c (qcopy_acl): Likewise.
50563
50564 2008-06-07  Bruno Haible  <bruno@clisp.org>
50565
50566         Fix memory leak introduced on 2008-05-22.
50567         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
50568         use.
50569
50570 2008-06-07  Bruno Haible  <bruno@clisp.org>
50571
50572         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
50573         to construct an empty ACL.
50574
50575 2008-06-07  Bruno Haible  <bruno@clisp.org>
50576
50577         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
50578         precisely.
50579         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
50580
50581 2008-06-07  Bruno Haible  <bruno@clisp.org>
50582
50583         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
50584         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
50585
50586 2008-06-07  Bruno Haible  <bruno@clisp.org>
50587
50588         * doc/posix-functions/_setjmp.texi: Explain the use of this function
50589         regardless of POSIX.
50590         * doc/posix-functions/_longjmp.texi: Likewise.
50591         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
50592         SystemV platform in this case.
50593
50594 2008-06-06  Eric Blake  <ebb9@byu.net>
50595
50596         Document abort() bugs.
50597         * doc/posix-functions/abort.texi (abort): Mention anomalies.
50598
50599         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
50600         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
50601         sigsetjmp.
50602         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
50603         siglongjmp, but only as a macro.
50604         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
50605         is obsolete.
50606         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
50607
50608         Tweak documentation to cover cygwin argz bugs.
50609         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
50610         argz bug fix; no code change needed since no cygwin releases
50611         occurred between the last fix and the bug being tested.
50612         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
50613         module and recently fixed cygwin bugs.
50614         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
50615         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
50616         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
50617         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
50618         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
50619         Likewise.
50620         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
50621         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
50622         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
50623         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
50624         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
50625         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
50626         Likewise.
50627
50628         Avoid gcc warning on cygwin.
50629         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
50630         !ACL_NO_TRIVIAL]: Avoid unused variable.
50631
50632 2008-06-05  Eric Blake  <ebb9@byu.net>
50633
50634         Be tolerant of UNKNOWN version in gnulib-tool test dir.
50635         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
50636         git-version-gen fails to come up with a version.
50637         Reported by Simon Josefsson.
50638
50639 2008-06-05  Jim Meyering  <meyering@redhat.com>
50640             Paul Eggert  <eggert@cs.ucla.edu>
50641
50642         utimens.c: work around a probable Linux kernel bug
50643         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
50644         appears to be a kernel bug that causes utimensat to return 280
50645         instead of 0, indicating success.
50646
50647 2008-06-04  Bruno Haible  <bruno@clisp.org>
50648
50649         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
50650         2008-06-01 commit.
50651
50652 2008-06-04  Bruno Haible  <bruno@clisp.org>
50653
50654         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
50655         * lib/file-has-acl.c (acl_access_nontrivial): New function.
50656         (file_has_acl): Use it. Save errno afterwards.
50657         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
50658
50659 2008-06-03  Bruno Haible  <bruno@clisp.org>
50660
50661         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
50662         draft code. Simplify #ifs.
50663         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
50664         Put Solaris code after POSIX-draft code. Fix comments regarding
50665         Solaris 10, HP-UX. Mention Cygwin.
50666         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
50667
50668 2008-06-03  Eric Blake  <ebb9@byu.net>
50669
50670         Provide fallback for older kernels.
50671         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
50672         Provide runtime fallback if kernel lacks support.
50673         Reported by Mike Frysinger.
50674
50675 2008-06-02  Bruno Haible  <bruno@clisp.org>
50676
50677         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
50678         it exists.
50679
50680 2008-06-02  Bruno Haible  <bruno@clisp.org>
50681
50682         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
50683         * lib/copy-acl.c (qcopy_acl): Update comment.
50684
50685 2008-06-02  Bruno Haible  <bruno@clisp.org>
50686
50687         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
50688         like ACL APIs.
50689
50690 2008-06-02  Bruno Haible  <bruno@clisp.org>
50691
50692         * tests/test-file-has-acl.sh: Use different code for Cygwin.
50693         * tests/test-set-mode-acl.sh: Likewise.
50694         * tests/test-copy-acl.sh: Likewise.
50695         * tests/test-copy-file.sh: Likewise.
50696
50697 2008-06-02  Bruno Haible  <bruno@clisp.org>
50698
50699         * tests/test-file-has-acl.sh: Remove unused code.
50700
50701 2008-06-01  Bruno Haible  <bruno@clisp.org>
50702
50703         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
50704         (copy_acl): Just a wrapper around qcopy_acl that emits the error
50705         messages.
50706         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
50707
50708 2008-06-01  Bruno Haible  <bruno@clisp.org>
50709
50710         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
50711         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
50712         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
50713         APIs.
50714         * modules/acl-tests (configure.ac): Remove tests now contained in
50715         m4/acl.m4.
50716
50717 2008-06-02  Jim Meyering  <meyering@redhat.com>
50718
50719         announce-gen: use a better key-server host name
50720         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
50721         it may be more consistently reliable.  Suggested by Werner Koch
50722         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
50723
50724 2008-06-01  Bruno Haible  <bruno@clisp.org>
50725
50726         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
50727         Reported by Voroskoi Andras <voroskoi@gmail.com>.
50728
50729 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
50730
50731         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
50732
50733 2008-06-01  Bruno Haible  <bruno@clisp.org>
50734
50735         New ACL tests.
50736         * tests/test-file-has-acl.sh: New file.
50737         * tests/test-file-has-acl.c: New file.
50738         * tests/test-set-mode-acl.sh: New file.
50739         * tests/test-set-mode-acl.c: New file.
50740         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
50741         * tests/test-copy-acl.c: New file.
50742         * modules/acl-tests: New file, based on modules/copy-file-tests.
50743         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
50744         (Depends-on): Add acl-tests.
50745         (configure.ac): Remove checks.
50746         (Makefile.am): Don't create test-sameacls program here any more.
50747
50748 2008-06-01  Bruno Haible  <bruno@clisp.org>
50749
50750         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
50751         * tests/test-sameacls.c: Include progname.h.
50752         (main): Invoke set_program_name. Portability fixes for MacOS X,
50753         Solaris, HP-UX.
50754
50755 2008-06-01  Bruno Haible  <bruno@clisp.org>
50756
50757         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
50758         function.
50759         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
50760
50761 2008-06-01  Bruno Haible  <bruno@clisp.org>
50762
50763         * modules/rpmatch (Depends-on): Add strdup.
50764
50765 2008-06-01  Bruno Haible  <bruno@clisp.org>
50766
50767         * lib/pipe.c: Include unistd-safer.h.
50768         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
50769         * modules/pipe (Depends-on): Add unistd-safer.
50770
50771 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50772
50773         * modules/autobuild (configure.ac): Call AB_INIT.
50774
50775 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50776
50777         * tests/test-getaddrinfo.c: Don't print debug messages by default.
50778         Suggested by Bruno Haible <bruno@clisp.org>.
50779
50780 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50781
50782         * tests/test-base64.c: Cast size_t to unsigned long when invoking
50783         printf.  Use %lu instead of %d.  Reported by Bruno Haible
50784         <bruno@clisp.org>.
50785
50786 2008-05-29  Eric Blake  <ebb9@byu.net>
50787
50788         Prefer new POSIX 200x interfaces over futimesat.
50789         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
50790         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
50791         when available.
50792         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
50793
50794 2008-05-28  Bruno Haible  <bruno@clisp.org>
50795
50796         * modules/stpcpy (License): Change to LGPLv2+.
50797         Requested by David Lutterkort <dlutter@redhat.com>.
50798
50799 2008-05-27  Bruno Haible  <bruno@clisp.org>
50800
50801         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
50802         current mingw.
50803         Reported by Jose E. Marchesi <jemarch@gnu.org>.
50804
50805 2008-05-27  Bruno Haible  <bruno@clisp.org>
50806
50807         * modules/iconv_open (Link): New section, from module 'iconv'.
50808         * modules/striconv (Link): Likewise.
50809         * modules/striconveh (Link): Likewise.
50810         * modules/xstriconv (Link): Likewise.
50811         * modules/unicodeio (Link): Likewise.
50812         * modules/propername (Link): Likewise.
50813         Reported by Jim Meyering.
50814
50815 2008-05-26  Jim Meyering  <meyering@redhat.com>
50816
50817         sha256: do not artificially restrict buffer length to be < 2^32
50818         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
50819         uint32_t to size_t.
50820         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
50821         to match.
50822
50823         avoid unaligned access errors, e.g., on sparc
50824         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
50825         direct access through a possibly-unaligned uint64* pointer.
50826         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
50827         direct access through a possibly-unaligned uint32* pointer.
50828         Prompted by this patch from Tom "spot" Callaway:
50829         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
50830
50831         sha512.c: fix typo in comment
50832         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
50833
50834 2008-05-25  Bruno Haible  <bruno@clisp.org>
50835
50836         * lib/set-mode-acl.c: Renamed from lib/acl.c.
50837         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
50838         (Makefile.am): Update lib_SOURCES.
50839
50840 2008-05-25  Bruno Haible  <bruno@clisp.org>
50841
50842         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
50843
50844 2008-05-25  Jim Meyering  <meyering@redhat.com>
50845
50846         useless-if-before-free: freed expr may have white-space differences
50847         * build-aux/useless-if-before-free: Recognize cases in which the
50848         freed expression differs from the tested one in embedded white
50849         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
50850         $1 was used, so we can't make any regexp shy.  Improved tests now
50851         detect this.
50852
50853         useless-if-before-free: accept white space in the expression.
50854         * build-aux/useless-if-before-free: For now, any white space
50855         in the expression must be identical in the free argument.
50856
50857         useless-if-before-free: efficiency tweak
50858         * build-aux/useless-if-before-free: Make the expression-matching
50859         regexp "shy".
50860         Make the *outer* regexp shy, not the expr-matching one.
50861
50862         update code-in-comment to accept cast of free arg
50863         * build-aux/useless-if-before-free: Update regexp.
50864
50865 2008-05-25  Bruno Haible  <bruno@clisp.org>
50866
50867         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
50868         * modules/copy-file-tests (Files, Makefile.am): Update.
50869         * tests/test-copy-file.c (func_test_copy): Update.
50870
50871 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
50872
50873         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
50874
50875 2008-05-23  Bruno Haible  <bruno@clisp.org>
50876
50877         Improve support for ACLs on OSF/1.
50878         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
50879         Remove fallback for unknown flavors of ACLs.
50880
50881 2008-05-22  Bruno Haible  <bruno@clisp.org>
50882
50883         Add support for ACLs on OSF/1.
50884         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
50885         replacements.
50886         (acl_free_text): New macro fallback.
50887         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
50888         acl_free.
50889         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
50890         acl_free_text function. Require AC_C_INLINE.
50891
50892 2008-05-22  Bruno Haible  <bruno@clisp.org>
50893
50894         Make copy_acl work on MacOS X 10.5.
50895         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
50896         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
50897         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
50898         If MODE_INSIDE_ACL, don't assume that every system has the same text
50899         representation for ACLs as FreeBSD.
50900         * lib/copy-acl.c (copy_acl): Add support for platforms with
50901         !MODE_INSIDE_ACL.
50902         * lib/file-has-acl.c (file_has_acl): Likewise.
50903         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
50904         FreeBSD, MacOS X, or IRIX, respectively.
50905
50906 2008-05-22  Bruno Haible  <bruno@clisp.org>
50907
50908         * lib/acl.h: Don't include <sys/acl.h>.
50909         (GETACLCNT): Move fallback to lib/acl-internal.h.
50910         * lib/acl-internal.h: Include <sys/acl.h> here.
50911         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
50912
50913 2008-05-22  Bruno Haible  <bruno@clisp.org>
50914
50915         Split off copy_acl function to separate file.
50916         * lib/copy-acl.c: New file, extracted from lib/acl.c.
50917         * lib/acl.c (copy_acl): Moved function to separate file.
50918         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
50919         * modules/acl (Files): Add lib/copy-acl.c.
50920         (Makefiles.am): Augment lib_SOURCES.
50921
50922 2008-05-22  Bruno Haible  <bruno@clisp.org>
50923
50924         * modules/copy-file-tests: New file.
50925         * tests/test-copy-file.sh: New file.
50926         * tests/test-copy-file.c: New file.
50927         * tests/test-copy-file-sameacls.c: New file.
50928
50929 2008-05-22  Eric Blake  <ebb9@byu.net>
50930
50931         Avoid gcc warning.
50932         * tests/test-memcmp.c (main): Pass NULL indirectly.
50933
50934 2008-05-21  Bruno Haible  <bruno@clisp.org>
50935
50936         Add reference doc about ACLs.
50937         * doc/acl-resources.txt: New file.
50938         * doc/acl-cygwin.txt: New file.
50939
50940 2008-05-21  Bruno Haible  <bruno@clisp.org>
50941
50942         Avoid one more warning from gcc.
50943         * lib/vasnprintf.c (IF_LINT): Update comments.
50944         (VASNPRINTF): Use it also for the 'prefix' array initializer.
50945
50946 2008-05-21  Jim Meyering  <meyering@redhat.com>
50947
50948         avoid a warning from gcc
50949         * lib/vasnprintf.c (IF_LINT): Define.
50950         (scale10_round_decimal_long_double):
50951         Use it to avoid a "may be used uninitialized" warning.
50952         (scale10_round_decimal_double): Likewise.
50953
50954 2008-05-21  Simon Josefsson  <simon@josefsson.org>
50955
50956         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
50957         declared.
50958
50959 2008-05-20  Bruno Haible  <bruno@clisp.org>
50960
50961         * tests/test-memcmp.c (main): Test also the sign of the result. Test
50962         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
50963
50964 2008-05-20  Simon Josefsson  <simon@josefsson.org>
50965
50966         * modules/memcmp-tests: New file.
50967         * tests/test-memcmp.c: New file.
50968
50969 2008-05-19  Bruno Haible  <bruno@clisp.org>
50970
50971         * modules/propername (Notice, configure.ac): Put quoted "..." into
50972         --keyword option.
50973         * lib/propername.h: Update comments accordingly.
50974         Reported by Eric Blake.
50975
50976 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
50977
50978         * modules/getpass-gnu (Depends-on): Add fseeko.
50979
50980 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50981
50982         * modules/base64-tests: New file.
50983
50984 2008-05-19  Bo Borgerson <gigabo@gmail.com>
50985
50986         * lib/base64.c (base64_decode_ctx): If a decode context structure
50987         was passed in use it to ignore newlines.  If a context structure
50988         was _not_ passed in, continue to treat newlines as garbage (this
50989         is the historical behavior).  Formerly base64_decode.
50990         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50991         takes a decode context structure.
50992         * lib/base64.h (base64_decode): Macro for four-argument calls.
50993         (base64_decode_alloc): Likewise.
50994         * lib/base64.c (base64_decode_ctx): If a decode context structure
50995         was passed in use it to ignore newlines.  If a context structure
50996         was _not_ passed in, continue to treat newlines as garbage (this
50997         is the historical behavior).  Formerly base64_decode.
50998         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50999         takes a decode context structure.
51000         * lib/base64.h (base64_decode): Macro for four-argument calls.
51001         (base64_decode_alloc): Likewise.
51002
51003 2008-05-19  Jim Meyering  <meyering@redhat.com>
51004
51005         avoid a warning from gcc
51006         * lib/trim.c (IF_LINT): Define.
51007         (trim2): Use it to avoid a "may be used uninitialized" warning.
51008
51009         Fix doc typo.
51010         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
51011
51012 2008-05-19  Bruno Haible  <bruno@clisp.org>
51013
51014         * doc/glibc-functions/getpass.texi: Document limits of other
51015         implementations.
51016
51017 2008-05-19  Simon Josefsson  <simon@josefsson.org>
51018             Bruno Haible <bruno@clisp.org>
51019
51020         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
51021
51022 2008-05-18  Bruno Haible  <bruno@clisp.org>
51023
51024         * modules/propername: New file, from GNU gettext.
51025         * lib/propername.h: New file, from GNU gettext.
51026         * lib/propername.c: New file, from GNU gettext.
51027         * MODULES.html.sh (Internationalization functions): Add propername.
51028
51029 2008-05-16  Jim Meyering  <meyering@redhat.com>
51030             Bruno Haible  <bruno@clisp.org>
51031
51032         Avoid some warnings from "gcc -Wshadow".
51033         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
51034
51035 2008-05-15  Eric Blake  <ebb9@byu.net>
51036
51037         Extend previous patch to cygwin 1.7.0.
51038         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
51039         fast implementation in cygwin >= 1.7.0.
51040         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51041         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51042
51043 2008-05-15  Bruno Haible  <bruno@clisp.org>
51044
51045         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
51046         implementation in glibc >= 2.9.
51047         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51048         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51049
51050 2008-05-15  Bruno Haible  <bruno@clisp.org>
51051
51052         * MODULES.html.sh (Internationalization functions): Remove linebreak.
51053         (Unicode string functions): Add unilbrk/*.
51054         Reported by Karl Berry.
51055
51056 2008-05-15  Eric Blake  <ebb9@byu.net>
51057
51058         Fix violation of <stdbool.h> replacement in regex.
51059         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
51060         * lib/regexec.c (re_search_internal): Likewise.
51061         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
51062
51063 2008-05-15  Jim Meyering  <meyering@redhat.com>
51064
51065         avoid distracting test output when git or cvs is not found
51066         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
51067         * tests/test-vc-list-files-git.sh: Likewise.
51068
51069 2008-05-15  Eric Blake  <ebb9@byu.net>
51070
51071         Glibc finally accepted the memmem speedup code, bugzilla #5514.
51072         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
51073         glibc version.
51074         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
51075         * doc/posix-functions/strstr.texi (strstr): Likewise.
51076         * lib/str-two-way.h (MAX): Sychronize with glibc.
51077
51078 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
51079
51080         * lib/regcomp.c (optimize_utf8): Add a note on why we test
51081         opr.ctx_type.
51082         (calc_first): Initialize constraint field.
51083         (duplicate_node_closure): Use it instead of special casing ANCHORS.
51084         Fix grammar.
51085         (duplicate_node): Merge constraint field for all node types.
51086         (calc_eclosure_iter): Look at constraint field for all node types.
51087         * lib/regex_internal.c (create_cd_newstate): Don't look at
51088         opr.ctx_type.
51089
51090 2008-05-14  Bruno Haible  <bruno@clisp.org>
51091
51092         Help GCC to do better code generation.
51093         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
51094         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
51095         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
51096         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
51097         Declare with attribute 'malloc' if supported.
51098
51099 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
51100
51101         use "echo STR|wc -c" rather than unportable "expr length STR"
51102         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
51103         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
51104
51105 2008-05-14  Jim Meyering  <meyering@redhat.com>
51106
51107         use dd ibs=$n count=1 ... rather than less-portable head -c$n
51108         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
51109         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
51110         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
51111         via Collin Lasse.
51112
51113 2008-05-14  Eric Blake  <ebb9@byu.net>
51114
51115         Avoid quadratic growth in gl_LIBSOURCES.
51116         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
51117         Suggested by Bruno Haible.
51118
51119         Test xmemdup0.
51120         * modules/xmemdup0-tests: New file.
51121         * tests/test-xmemdup0.c: Likewise.
51122
51123 2008-05-13  Eric Blake  <ebb9@byu.net>
51124
51125         Split xmemdup0 into its own module.
51126         * modules/xmemdup0: New file.
51127         * lib/xmemdup0.h: Likewise.
51128         * lib/xmemdup0.c: Likewise.
51129         * MODULES.html.sh (Memory management functions): Add xmemdup0.
51130         * lib/xalloc.h (xmemdup0): Remove.
51131         * lib/xmalloc.c (xmemdup0): Likewise.
51132
51133 2008-05-13  Eric Blake  <ebb9@byu.net>
51134             Bruno Haible  <bruno@clisp.org>
51135
51136         Reduce number of forks required during autoconf.
51137         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
51138         and gl_LIBSOURCES_DIR.
51139         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
51140         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
51141         m4_syscmd per file.
51142         <m4_foreach_w>: Move...
51143         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
51144
51145 2008-05-13  Eric Blake  <ebb9@byu.net>
51146
51147         * gnulib-tool: Fix various comment typos.
51148
51149 2008-05-12  Bruno Haible  <bruno@clisp.org>
51150
51151         Tailor the linebreaking algorithm.
51152         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
51153
51154 2008-05-12  Bruno Haible  <bruno@clisp.org>
51155
51156         Update to Unicode 5.0.0.
51157         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
51158         LBP_JV, LBP_JT. Redistribute values.
51159         (unilbrk_table): Change size.
51160         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
51161         Unicode TR#14 rev. 22.
51162         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
51163         LBP_JV, LBP_JT. Redistribute values.
51164         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
51165         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
51166         Update.
51167         * lib/unilbrk/lbrkprop1.h: Regenerated.
51168         * lib/unilbrk/lbrkprop2.h: Regenerated.
51169         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
51170         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
51171         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
51172         Likewise.
51173         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
51174         Likewise.
51175         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
51176         result.
51177         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
51178         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
51179         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
51180         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
51181         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
51182         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
51183
51184 2008-05-11  Bruno Haible  <bruno@clisp.org>
51185
51186         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
51187
51188 2008-05-11  Bruno Haible  <bruno@clisp.org>
51189
51190         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
51191         * modules/unilbrk/gen-lbrk: New file.
51192
51193 2008-05-11  Bruno Haible  <bruno@clisp.org>
51194
51195         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
51196         * m4/sha512.m4 (gl_SHA512): Likewise.
51197
51198 2008-05-11  Jim Meyering  <meyering@redhat.com>
51199
51200         New modules: crypto/sha256, crypto/sha512 (from coreutils)
51201         * modules/crypto/sha256: New file.
51202         * modules/crypto/sha512: Likewise.
51203         * lib/sha256.c: Likewise.
51204         * lib/sha256.h: Likewise.
51205         * lib/sha512.c: Likewise.
51206         * lib/sha512.h: Likewise.
51207         * lib/u64.h: Likewise.
51208         * m4/sha256.m4: Likewise.
51209         * m4/sha512.m4: Likewise.
51210         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
51211
51212 2008-05-10  Bruno Haible  <bruno@clisp.org>
51213
51214         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
51215         (Input/Output <stdio.h>): Add xprintf.
51216         (Signal handling <signal.h>): Add strsignal.
51217         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
51218         (Core language properties): Add func.
51219         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
51220         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
51221         strings.
51222         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
51223         (Input/output): New section.
51224         (File system functions): Add openat-die, stat-macros.
51225         (Networking functions): Add sockets.
51226         (Unicode string functions): Add unictype/*.
51227         (Support for building libraries and executables): Add gperf.
51228         (Support for building documentation): Add agpl-3.0.
51229         (Misc): Add nocrash.
51230
51231 2008-05-10  Bruno Haible  <bruno@clisp.org>
51232
51233         * modules/unictype/gen-ctype: New file.
51234
51235 2008-05-10  Jim Meyering  <meyering@redhat.com>
51236
51237         Make chdir-safer.c more efficient on a system with no symlinks.
51238         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
51239         also if ELOOP is zero.  Suggested by Bruno Haible.
51240
51241         Make chdir-safer.c slightly safer.
51242         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
51243         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
51244
51245         Avoid compile failure on systems without ELOOP (like mingw).
51246         * lib/chdir-safer.c (ELOOP): Define if not already defined.
51247         Reported by Bruno Haible.
51248
51249 2008-05-10  Bruno Haible  <bruno@clisp.org>
51250
51251         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
51252         (is_utf8_encoding): Use a case-insensitive comparison.
51253         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
51254         streq.
51255
51256 2008-05-10  Bruno Haible  <bruno@clisp.org>
51257
51258         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
51259         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
51260         * lib/unilbrk/ulc-common.h (iconv_string_length,
51261         iconv_string_keeping_offsets): Remove declarations.
51262         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
51263         Don't include <iconv.h>, streq.h, xsize.h.
51264         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
51265         conversion.
51266         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
51267         <iconv.h>, streq.h, xsize.h.
51268         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
51269         conversion.
51270         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
51271         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
51272         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
51273         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
51274
51275 2008-05-10  Bruno Haible  <bruno@clisp.org>
51276
51277         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
51278         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
51279
51280         * modules/unilbrk/u32-width-linebreaks-tests: New file.
51281         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
51282
51283         * modules/unilbrk/u16-width-linebreaks-tests: New file.
51284         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
51285
51286         * modules/unilbrk/u8-width-linebreaks-tests: New file.
51287         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
51288
51289         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
51290         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
51291
51292         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
51293         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
51294
51295         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
51296         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
51297
51298         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
51299         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
51300
51301 2008-05-10  Bruno Haible  <bruno@clisp.org>
51302
51303         Split up 'linebreak' module.
51304         * lib/unilbrk.h: New file, based on lib/linebreak.h.
51305         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
51306         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
51307         modifications.
51308         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
51309         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
51310         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
51311         lib/linebreak.c.
51312         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
51313         lib/linebreak.c.
51314         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
51315         lib/linebreak.c.
51316         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
51317         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
51318         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
51319         lib/linebreak.c.
51320         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
51321         lib/linebreak.c.
51322         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
51323         lib/linebreak.c.
51324         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
51325         lib/linebreak.c.
51326         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
51327         lib/linebreak.c.
51328         * modules/unilbrk/base: New file.
51329         * modules/unilbrk/tables: New file.
51330         * modules/unilbrk/u8-possible-linebreaks: New file.
51331         * modules/unilbrk/u16-possible-linebreaks: New file.
51332         * modules/unilbrk/u32-possible-linebreaks: New file.
51333         * modules/unilbrk/ulc-common: New file.
51334         * modules/unilbrk/ulc-possible-linebreaks: New file.
51335         * modules/unilbrk/u8-width-linebreaks: New file.
51336         * modules/unilbrk/u16-width-linebreaks: New file.
51337         * modules/unilbrk/u32-width-linebreaks: New file.
51338         * modules/unilbrk/ulc-width-linebreaks: New file.
51339         * lib/linebreak.h: Remove file.
51340         * lib/linebreak.c: Remove file.
51341         * m4/linebreak.m4: Remove file.
51342         * modules/linebreak: Remove file.
51343         * NEWS: Mention the changes.
51344
51345 2008-05-09  Eric Blake  <ebb9@byu.net>
51346
51347         Add xmemdup0.
51348         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
51349         implementation.
51350         * lib/xmalloc.c (xmemdup0): New C implementation.
51351
51352 2008-05-08  Bruno Haible  <bruno@clisp.org>
51353
51354         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
51355
51356 2008-05-07  Eric Blake  <ebb9@byu.net>
51357
51358         Support cross-compilation of <wctype.h>.
51359         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
51360         AC_CACHE_CHECK.
51361
51362 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
51363
51364         * build-aux/vc-list-files: Add support for bzr.
51365
51366 2008-05-03  Jim Meyering  <meyering@redhat.com>
51367
51368         avoid failed assertion with tight malloc
51369         * tests/test-getndelim2.c: Correct an off-by-one assertion.
51370
51371 2008-05-03  Simon Josefsson  <simon@josefsson.org>
51372
51373         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
51374         are needed from arpa/inet.h.
51375         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
51376         Reported by Bruno Haible.
51377
51378 2008-05-02  Jim Meyering  <meyering@redhat.com>
51379
51380         avoid compilation error on FreeBSD 6
51381         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
51382
51383 2008-05-01  Jim Meyering  <meyering@redhat.com>
51384
51385         useless-if-before-free: correct --help's exit status description
51386         * build-aux/useless-if-before-free (usage): Like grep, exit 0
51387         for one or more matches, etc.  Reported by Bruno Haible.
51388
51389         vc-list-files: make the stand-alone gnulib test work
51390         * modules/vc-list-files-tests (configure.ac):
51391         Define and AC_SUBST abs_aux_dir.
51392         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
51393         $(abs_top_srcdir) to each script and having each of them
51394         duplicate the work of setting PATH, set PATH here, using
51395         the new variable, abs_aux_dir instead.
51396         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
51397         * tests/test-vc-list-files-git.sh: Likewise.
51398         Reported by Bruno Haible.
51399
51400 2008-05-01  Bruno Haible  <bruno@clisp.org>
51401
51402         * lib/getndelim2.c (getndelim2): Fix newsize computation during
51403         reallocation. Rename 'done' to 'found_delimiter'.
51404
51405 2008-05-01  Jim Meyering  <meyering@redhat.com>
51406
51407         vc-list-files: accommodate /bin/sh like the one from Solaris 10
51408         * build-aux/vc-list-files: Use `...`, not $(...).
51409
51410 2008-04-30  Jim Meyering  <meyering@redhat.com>
51411
51412         add tests for vc-list-files
51413         * modules/vc-list-files-tests: New module.
51414         * tests/test-vc-list-files-cvs.sh: New file.
51415         * tests/test-vc-list-files-git.sh: New file.
51416
51417         avoid a warning from gcc
51418         * lib/getndelim2.c (IF_LINT): Define.
51419         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
51420
51421         vc-list-files: work properly with build-aux/cvsu, too
51422         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
51423         to all cvs-based clauses.
51424
51425         vc-list-files: work properly in the CVS+awk case, too
51426         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
51427
51428         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
51429         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
51430         take more than one file argument, so .  Add quotes, just in case $dir
51431         ever contains a shell meta-character.  Prompted by Soren Hansen in
51432         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
51433
51434 2008-04-29  Eric Blake  <ebb9@byu.net>
51435
51436         Optimize getndelim2 to use block operations when possible.
51437         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
51438         freadseek, and memchr2.
51439         * lib/getndelim2.c (getndelim2): Use them for block reads.
51440
51441 2008-04-29  Bruno Haible  <bruno@clisp.org>
51442
51443         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
51444         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51445         * modules/inet_ntop (Depends-on): Add extensions.
51446         * modules/inet_pton (Depends-on): Likewise.
51447         Reported by Simon Josefsson.
51448
51449 2008-04-29  Jim Meyering  <meyering@redhat.com>
51450
51451         When the is more than one match in a block, match all of them.
51452         * build-aux/useless-if-before-free: Iterate through each block
51453         until there are no more matches.
51454
51455         Fix broken useless-if-before-free script.
51456         * build-aux/useless-if-before-free: Fix typo: missing "?" after
51457         the expression to match cast of argument to free-like function.
51458
51459 2008-04-29  Eric Blake  <ebb9@byu.net>
51460
51461         Use new header.
51462         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
51463
51464 2008-04-29  Jim Meyering  <meyering@redhat.com>
51465
51466         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
51467         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
51468         by gnulib to exist and to declare e.g., inet_ntop.
51469         Don't include "inet_ntop.h", now removed.
51470
51471         * m4/arpa_inet_h.m4: Remove trailing blanks.
51472
51473 2008-04-29  Eric Blake  <ebb9@byu.net>
51474
51475         Silence valgrind on safe reads beyond potential array bounds.
51476         * lib/rawmemchr.valgrind: New file.
51477         * lib/strchrnul.valgrind: Likewise.
51478         * modules/rawmemchr (Files): Distribute new file.
51479         * modules/strchrnul (Files): Likewise.
51480         Suggested by Bruno Haible.
51481
51482 2008-04-29  Bruno Haible  <bruno@clisp.org>
51483
51484         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
51485         (inet_ntop, inet_pton): Change portability warning's wording.
51486         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
51487         Invoke gl_CHECK_NEXT_HEADERS.
51488         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
51489         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
51490         set ARPA_INET_H.
51491         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51492         * modules/arpa_inet (Description): No longer only for systems that
51493         lack it.
51494         (Depends-on): Add include_next.
51495         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
51496         HAVE_ARPA_INET_H.
51497
51498 2008-04-29  Jim Meyering  <meyering@redhat.com>
51499
51500         * modules/mkdir (License): Re-license as LGPLv2+.
51501
51502 2008-04-29  Bruno Haible  <bruno@clisp.org>
51503
51504         * modules/rawmemchr (Maintainer): Set to Eric.
51505         * modules/strchrnul (Maintainer): Likewise.
51506
51507 2008-04-29  Simon Josefsson  <simon@josefsson.org>
51508
51509         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
51510         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
51511
51512         * modules/arpa_inet (arpa/inet.h): Use them.
51513
51514 2008-04-28  Eric Blake  <ebb9@byu.net>
51515
51516         Test getndelim2.
51517         * modules/getndelim2-tests: New file.
51518         * tests/test-getndelim2.c: Likewise.
51519         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
51520         stream.
51521         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
51522
51523         * MODULES.html.sh: Document new module.
51524
51525 2008-04-20  Bruno Haible  <bruno@clisp.org>
51526
51527         * lib/c-stack.c (die): Use raise.
51528         * modules/c-stack (Depends-on): Add raise.
51529
51530 2008-04-28  Bruno Haible  <bruno@clisp.org>
51531
51532         Expect rpmatch to be declared.
51533         * lib/yesno.c (rpmatch): Remove declaration.
51534
51535         Declare rpmatch.
51536         * lib/stdlib.in.h (rpmatch): New declaration.
51537         * lib/rpmatch.c: Include <stdlib.h> first.
51538         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
51539         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
51540         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
51541         HAVE_RPMATCH.
51542         * modules/rpmatch (Depends-on): Add stdlib, extensions.
51543         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51544         (Include): Set to <stdlib.h>.
51545         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
51546         HAVE_RPMATCH.
51547         * NEWS: Document the change.
51548
51549 2008-04-28  Bruno Haible  <bruno@clisp.org>
51550
51551         Change rpmatch to use nl_langinfo when appropriate.
51552         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
51553         (N_): New macro.
51554         (localized_pattern): New function/macro.
51555         (try): Remove match, nomatch arguments. Copy the pattern into safe
51556         memory before caching it.
51557         (rpmatch): Use localized_pattern. Add translator comments.
51558         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
51559         Suggested by Eric Blake.
51560         * modules/rpmatch (Depends-on): Add stdbool.
51561
51562 2008-04-28  Eric Blake  <ebb9@byu.net>
51563
51564         Add rawmemchr module, matching glibc.
51565         * modules/string (Makefile.am): New indicator.
51566         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
51567         * lib/string.in.h (rawmemchr): Declare when appropriate.
51568         * modules/rawmemchr: New file.
51569         * m4/rawmemchr.m4: Likewise.
51570         * lib/rawmemchr.c: Likewise.
51571         * modules/rawmemchr-tests: Likewise.
51572         * tests/test-rawmemchr.c: Likewise.
51573         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
51574         module.
51575         * modules/strchrnul (Depends-on): Add rawmemchr.
51576         * lib/strchrnul.c (strchrnul): Optimize a corner case.
51577
51578         Whitespace cleanup.
51579         * tests/test-strchrnul.c: Reindent.
51580         * lib/strchrnul.c: Likewise.
51581
51582         Optimize and test strchrnul.
51583         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
51584         * modules/strchrnul-tests: New file.
51585         * tests/test-strchrnul.c: Likewise.
51586
51587         Remove intprops dependency.
51588         * modules/memchr (Depends-on): Remove intprops.
51589         * modules/memrchr (Depends-on): Likewise.
51590         * modules/memchr2 (Depends-on): Likewise.
51591         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
51592         * lib/memrchr.c (__memrchr): Likewise.
51593         * lib/memrchr2.c (memchr2): Likewise.
51594         Reported by Simon Josefsson.
51595
51596 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51597
51598         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
51599         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51600
51601 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51602
51603         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
51604
51605         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
51606
51607         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
51608
51609         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
51610         declarations.
51611         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
51612
51613         * m4/inet_pton.m4: Don't check for header files.
51614
51615         * m4/inet_ntop.m4: Don't check for header files.
51616
51617 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51618
51619         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
51620         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
51621         trigger for cygwin).
51622         Reported by Bruno Haible  <bruno@clisp.org>.
51623
51624 2008-04-28  Bruno Haible  <bruno@clisp.org>
51625
51626         * doc/posix-functions/strdup.texi: Mention mingw problem.
51627
51628 2008-04-27  Bruno Haible  <bruno@clisp.org>
51629
51630         * modules/stat-time-tests (Depends-on): Add sleep.
51631         * tests/test-stat-time.c (force_unlink): New function.
51632         (cleanup): Use it.
51633         (test_mtime): Remove the ctime related tests.
51634         (test_ctime): New function, containing the ctime related tests.
51635         (main): Call test_ctime, except on native Windows platforms.
51636
51637 2008-04-27  Bruno Haible  <bruno@clisp.org>
51638
51639         * lib/rpmatch.c (rpmatch): Add some comments.
51640         Reported by James Youngman <jay@gnu.org>.
51641
51642 2008-04-27  Bruno Haible  <bruno@clisp.org>
51643
51644         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
51645         quiet NaNs.
51646
51647 2008-04-27  Bruno Haible  <bruno@clisp.org>
51648
51649         Make test-yesno.sh work on mingw.
51650         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
51651         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
51652         (main): Set stdin to binary mode.
51653         * modules/yesno-tests (Depends-on): Add binary-io.
51654
51655 2008-04-27  Bruno Haible  <bruno@clisp.org>
51656
51657         Fix 'isfinite' on x86, x86_64, ia64 platforms.
51658         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
51659         argument that lie outside the IEEE 854 domain.
51660         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
51661         (gl_ISFINITE): Use it.
51662         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
51663
51664 2008-04-27  Bruno Haible  <bruno@clisp.org>
51665
51666         Allow local renaming in config.h.
51667         * lib/memrchr.c (memrchr): Don't undefine outside libc.
51668
51669 2008-04-27  Bruno Haible  <bruno@clisp.org>
51670
51671         * lib/memchr.c (__memchr): Change type of 'i'.
51672         * lib/memchr2.c (memchr2): Likewise.
51673
51674 2008-04-26  Eric Blake  <ebb9@byu.net>
51675         and Bruno Haible  <bruno@clisp.org>
51676
51677         Optimize and test memrchr.
51678         * modules/memrchr (Depends-on): Add intprops.
51679         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
51680         * modules/memrchr-tests: New file.
51681         * tests/test-memrchr.c: New file.
51682
51683 2008-04-26  Bruno Haible  <bruno@clisp.org>
51684
51685         Add tentative support for DragonFly BSD.
51686         * lib/stdio-impl.h: Add macros for DragonFly BSD.
51687         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
51688         fp.
51689         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51690         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
51691         * lib/fpurge.c (fpurge): Likewise.
51692         * lib/freadable.c (freaadable): Likewise.
51693         * lib/freadahead.c (freadahead): Likewise.
51694         * lib/freading.c (freading): Likewise.
51695         * lib/freadptr.c (freadptr): Likewise.
51696         * lib/freadseek.c (freadptrinc): Likewise.
51697         * lib/fseeko.c (fseeko): Likewise.
51698         * lib/fseterr.c (fseterr): Likewise.
51699         * lib/fwritable.c (fwritable): Likewise.
51700         * lib/fwriting.c (fwriting): Likewise.
51701
51702 2008-04-26  Bruno Haible  <bruno@clisp.org>
51703
51704         * lib/stdio-impl.h: New file.
51705         * lib/fbufmode.c: Include stdio-impl.h.
51706         (fbufmode): Use fp_, remove redundant #defines.
51707         * lib/fflush.c: Include stdio-impl.h.
51708         (clear_ungetc_buffer): Remove redundant #defines.
51709         * lib/fpurge.c: Include stdio-impl.h.
51710         (fpurge): Remove redundant #defines.
51711         * lib/freadable.c: Include stdio-impl.h.
51712         (freadable): Remove redundant #defines.
51713         * lib/freadahead.c: Include stdio-impl.h.
51714         (freadahead): Remove redundant #defines.
51715         * lib/freading.c: Include stdio-impl.h.
51716         (freading): Remove redundant #defines.
51717         * lib/freadptr.c: Include stdio-impl.h.
51718         (freadptr): Remove redundant #defines.
51719         * lib/freadseek.c: Include stdio-impl.h.
51720         (freadptrinc): Remove redundant #defines.
51721         * lib/fseeko.c: Include stdio-impl.h.
51722         (rpl_fseeko): Remove redundant #defines.
51723         * lib/fseterr.c: Include stdio-impl.h.
51724         (fseterr): Remove redundant #defines.
51725         * lib/fwritable.c: Include stdio-impl.h.
51726         (fwritable: Remove redundant #defines.
51727         * lib/fwriting.c: Include stdio-impl.h.
51728         (fwriting): Remove redundant #defines.
51729         * modules/fbufmode (Files): Add lib/stdio-impl.h.
51730         * modules/fflush (Files): Likewise.
51731         * modules/fpurge (Files): Likewise.
51732         * modules/freadable (Files): Likewise.
51733         * modules/freadahead (Files): Likewise.
51734         * modules/freading (Files): Likewise.
51735         * modules/freadptr (Files): Likewise.
51736         * modules/freadseek (Files): Likewise.
51737         * modules/fseeko (Files): Likewise.
51738         * modules/fseterr (Files): Likewise.
51739         * modules/fwritable (Files): Likewise.
51740         * modules/fwriting (Files): Likewise.
51741
51742 2008-04-26  Bruno Haible  <bruno@clisp.org>
51743
51744         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51745         restore_seek_optimization, update_fpos_cache): New functions, extracted
51746         from rpl_fflush.
51747         (rpl_fflush): Use them.
51748         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
51749         (gl_REPLACE_FFLUSH): Use it.
51750
51751 2008-04-26  Bruno Haible  <bruno@clisp.org>
51752
51753         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
51754         on Solaris.
51755         * tests/test-xstrtoimax.sh: Likewise.
51756         * tests/test-xstrtoumax.sh: Likewise.
51757         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51758
51759 2008-04-26  Bruno Haible  <bruno@clisp.org>
51760
51761         * modules/memchr-tests: New file.
51762         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
51763
51764 2008-04-26  Eric Blake  <ebb9@byu.net>
51765             Bruno Haible  <bruno@clisp.org>
51766
51767         * lib/memchr.c: Include intprops.h.
51768         (__memchr): Optimize parallel detection of matching bytes. Rename local
51769         variables. Add explanatory comments.
51770
51771 2008-04-26  Bruno Haible  <bruno@clisp.org>
51772
51773         Fix module 'memchr', broken since 2000-10-28.
51774         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
51775
51776 2008-04-26  Bruno Haible  <bruno@clisp.org>
51777
51778         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
51779         comments.
51780
51781 2008-04-25  Eric Blake  <ebb9@byu.net>
51782
51783         Use native fstatat on cygwin 1.7.0.
51784         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
51785         first.
51786
51787 2008-04-23  Eric Blake  <ebb9@byu.net>
51788
51789         Improve memchr2 performance.
51790         * lib/memchr2.c (memchr2): Further optimize parallel detection of
51791         NUL bytes.
51792         * modules/memchr2 (Depends-on): Use intprops.h.
51793
51794 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51795
51796         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
51797         an inline function instead of a CPP macro.  Patch by Ben Pfaff
51798         <blp@cs.stanford.edu>.
51799
51800 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51801
51802         * lib/arpa_inet.in.h: New file.
51803
51804         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
51805         (Makefile.am): Sed in substitute header file.
51806
51807         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
51808         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
51809
51810         * modules/inet_ntop (configure.ac): Use
51811         gl_ARPA_INET_MODULE_INDICATOR.
51812
51813         * modules/inet_pton (configure.ac): Use
51814         gl_ARPA_INET_MODULE_INDICATOR.
51815
51816 2008-04-22  Jim Meyering  <meyering@redhat.com>
51817
51818         * modules/verify (License): Re-license as LGPLv2+.
51819
51820 2008-04-22  Simon Josefsson  <simon@josefsson.org>
51821
51822         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
51823         parameter to void* as per POSIX standard (MinGW uses char*).
51824
51825 2008-04-21  Bruno Haible  <bruno@clisp.org>
51826
51827         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51828         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51829         Define to replacements if REPLACE_ISWCNTRL is 1.
51830         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
51831         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
51832         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
51833         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
51834         what it fixes.
51835         * doc/posix-functions/iswalpha.texi: Likewise.
51836         * doc/posix-functions/iswblank.texi: Likewise.
51837         * doc/posix-functions/iswcntrl.texi: Likewise.
51838         * doc/posix-functions/iswdigit.texi: Likewise.
51839         * doc/posix-functions/iswgraph.texi: Likewise.
51840         * doc/posix-functions/iswlower.texi: Likewise.
51841         * doc/posix-functions/iswprint.texi: Likewise.
51842         * doc/posix-functions/iswpunct.texi: Likewise.
51843         * doc/posix-functions/iswspace.texi: Likewise.
51844         * doc/posix-functions/iswupper.texi: Likewise.
51845         * doc/posix-functions/iswxdigit.texi: Likewise.
51846         Reported by Alain Guibert.
51847
51848 2008-04-21  Bruno Haible  <bruno@clisp.org>
51849
51850         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
51851         Patch by Alain Guibert.
51852
51853 2008-04-21  Bruno Haible  <bruno@clisp.org>
51854
51855         Fix test failures on mingw.
51856         * tests/test-xstrtol.c (print_no_progname): New function.
51857         (main): Install it in error_print_progname hook.
51858         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
51859         * tests/test-xstrtoimax.sh: Likewise.
51860         * tests/test-xstrtoumax.sh: Likewise.
51861
51862 2008-04-21  Bruno Haible  <bruno@clisp.org>
51863
51864         Fix test failure on mingw.
51865         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
51866
51867 2008-04-21  Bruno Haible  <bruno@clisp.org>
51868
51869         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
51870         Actually assign a value.
51871
51872 2008-04-20  Bruno Haible  <bruno@clisp.org>
51873
51874         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
51875         take 2.
51876         * lib/canonicalize.c (canonicalize_file_name): Elide if the
51877         'canonicalize-lgpl' module is also used.
51878         * lib/canonicalize-lgpl.c: Undo last change.
51879         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
51880
51881 2008-04-20  Bruno Haible  <bruno@clisp.org>
51882
51883         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
51884         config.h. Provide _mkdir based fallback for mingw.
51885         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
51886         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
51887         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
51888         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
51889         rather than defining mkdir in config.h.
51890         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
51891         (gl_SYS_STAT_H_DEFAULTS): New macro.
51892         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
51893         HAVE_IO_H any more.
51894         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
51895         HAVE_DECL_MKDIR and HAVE_IO_H.
51896
51897 2008-04-20  Bruno Haible  <bruno@clisp.org>
51898
51899         * lib/isapipe.c: Port to native Windows platforms.
51900
51901 2008-04-20  Bruno Haible  <bruno@clisp.org>
51902
51903         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
51904
51905 2008-04-21  Eric Blake  <ebb9@byu.net>
51906
51907         Work around preprocessors that don't handle UINTMAX_MAX.
51908         * lib/memchr2.c (memchr2): Avoid embedded #if.
51909         Reported by Alain Guibert, fix suggested by Bruno Haible.
51910
51911 2008-04-21  Simon Josefsson  <simon@josefsson.org>
51912
51913         * doc/posix-functions/strftime.texi (strftime): Explain better
51914         Windows incompatibility.  Suggested by Micah Cowan
51915         <micah@cowan.name>.
51916
51917 2008-04-20  Bruno Haible  <bruno@clisp.org>
51918
51919         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
51920         unistr/u8-mblen.
51921
51922 2008-04-20  Bruno Haible  <bruno@clisp.org>
51923
51924         Fix test failure on platforms with non-GNU iconv.
51925         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
51926         (U_TO_U8): Use it, rather than u16_to_u8.
51927         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
51928         units at the end of the input string.
51929         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
51930
51931 2008-04-20  Bruno Haible  <bruno@clisp.org>
51932
51933         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
51934         when the resulting length is 0.
51935         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
51936
51937 2008-04-20  Bruno Haible  <bruno@clisp.org>
51938
51939         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
51940         works.
51941         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
51942
51943 2008-04-20  Bruno Haible  <bruno@clisp.org>
51944
51945         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
51946         * modules/tsearch-tests (configure.ac): Test for initstate function.
51947
51948 2008-04-20  Bruno Haible  <bruno@clisp.org>
51949
51950         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
51951         for nlink_t if missing.
51952         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
51953
51954 2008-04-19  Bruno Haible  <bruno@clisp.org>
51955
51956         Work around snprintf bug on Linux libc5.
51957         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
51958         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51959         gl_SNPRINTF_SIZE1.
51960         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51961         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
51962         that test failed.
51963         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
51964         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
51965         * modules/snprintf (Files): Add m4/printf.m4.
51966         * modules/vsnprintf (Files): Likewise.
51967         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
51968         * doc/posix-functions/vsnprintf.texi: Likewise.
51969
51970 2008-04-19  Bruno Haible  <bruno@clisp.org>
51971
51972         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
51973         from 0.0058 to less than 10^-7.
51974
51975 2008-04-19  Bruno Haible  <bruno@clisp.org>
51976
51977         Fix rounding when a precision is given.
51978         * lib/vasnprintf.c (is_borderline): New function.
51979         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
51980         9...9x.
51981         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
51982         %e, %g.
51983         * tests/test-vasprintf-posix.c (test_function): Likewise.
51984         * tests/test-snprintf-posix.h (test_function): Likewise.
51985         * tests/test-sprintf-posix.h (test_function): Likewise.
51986         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
51987         * tests/test-printf-posix.h (test_function): Likewise.
51988         * tests/test-printf-posix.output: Update.
51989         Reported by John Darrington <john@darrington.wattle.id.au> via
51990         Ben Pfaff <blp@cs.stanford.edu>.
51991
51992 2008-04-18  Simon Josefsson  <simon@josefsson.org>
51993
51994         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
51995         Suggested by Bruno Haible <bruno@clisp.org>.
51996
51997 2008-04-17  Bruno Haible  <bruno@clisp.org>
51998
51999         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
52000         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
52001         implementation.
52002         Patch by Bruce Merry <bmerry@gmail.com>.
52003
52004 2008-04-17  Simon Josefsson  <simon@josefsson.org>
52005
52006         * doc/posix-functions/strftime.texi (strftime): Mention that %e
52007         doesn't work under Windows.
52008
52009 2008-04-16  Bruno Haible  <bruno@clisp.org>
52010
52011         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
52012         New macros.
52013         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
52014         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
52015         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
52016         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
52017         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
52018         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
52019         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
52020         macros.
52021         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
52022         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
52023         Northern Sotho, Uighur.
52024
52025 2008-04-16  Bruno Haible  <bruno@clisp.org>
52026
52027         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
52028         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
52029         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
52030         Reported by Daniel Bergström <daniel@octocode.com>.
52031
52032 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
52033             Bruno Haible  <bruno@clisp.org>
52034
52035         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
52036         function.
52037         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
52038         New functions, mostly extracted from gl_locale_name_default.
52039         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
52040
52041 2008-04-16  Eric Blake  <ebb9@byu.net>
52042
52043         Adjust strtod detection to catch glibc 2.7 bug.
52044         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
52045         Reported by John Gatewood Ham.
52046
52047 2008-04-16  Bruno Haible  <bruno@clisp.org>
52048
52049         Add tentative support for Linux libc5.
52050         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
52051         * lib/fpurge.c (fpurge): Likewise.
52052         * lib/freadable.c (freadable): Likewise.
52053         * lib/freadahead.c (freadahead): Likewise.
52054         * lib/freading.c (freading): Likewise.
52055         * lib/freadptr.c (freadptr): Likewise.
52056         * lib/freadseek.c (freadptrinc): Likewise.
52057         * lib/fseeko.c (rpl_fseeko): Likewise.
52058         * lib/fseterr.c (fseterr): Likewise.
52059         * lib/fwritable.c (fwritable): Likewise.
52060         * lib/fwriting.c (fwriting): Likewise.
52061         Reported by Alain Guibert <alguibert+bts@free.fr>.
52062
52063 2008-04-15  Bruno Haible  <bruno@clisp.org>
52064
52065         * modules/mathl (configure.ac): Define module indicator.
52066
52067 2008-04-15  Bruno Haible  <bruno@clisp.org>
52068
52069         * lib/logl.c (logl): Remove unused variables.
52070
52071 2008-04-15  Bruno Haible  <bruno@clisp.org>
52072
52073         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
52074         fails.
52075
52076 2008-04-15  Bruno Haible  <bruno@clisp.org>
52077
52078         * lib/trim.c (trim2): Fix argument of isspace() macro.
52079
52080 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
52081
52082         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
52083         to 0.
52084         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
52085
52086 2008-04-14  Bruno Haible  <bruno@clisp.org>
52087
52088         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
52089         AC_LANG_PROGRAM argument.
52090         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
52091         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
52092         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
52093         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52094         * m4/math_h.m4 (gl_MATH_H): Likewise.
52095         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
52096         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
52097         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
52098         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
52099         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
52100         * m4/regex.m4 (gl_REGEX): Likewise.
52101         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
52102         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
52103         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52104         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
52105         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52106         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52107         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52108         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52109
52110 2008-04-14  Jim Meyering  <meyering@redhat.com>
52111
52112         test-strtod: fix typos: s/abs/fabs/
52113         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
52114
52115 2008-04-13  Bruno Haible  <bruno@clisp.org>
52116
52117         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
52118         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
52119         module is also used and while not building the reloc-wrapper.
52120
52121 2008-04-13  Bruno Haible  <bruno@clisp.org>
52122
52123         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
52124
52125 2008-04-13  Bruno Haible  <bruno@clisp.org>
52126
52127         Fix AIX compilation failure introduced on 2008-04-02.
52128         * tests/test-frexp.c (exp): Undefine before redefining.
52129         * tests/test-frexpl.c (exp): Likewise.
52130
52131 2008-04-13  Bruno Haible  <bruno@clisp.org>
52132
52133         Work around a HP-UX stdio bug.
52134         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
52135         * tests/test-ftello.c (main): Likewise.
52136         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
52137         * doc/posix-functions/ftello.texi: Likewise.
52138
52139 2008-04-13  Bruno Haible  <bruno@clisp.org>
52140
52141         Make test-signbit pass on HP-UX/hppa.
52142         * tests/test-signbit.c (minus_zerol): New variable.
52143         (test_signbitl): Use it.
52144
52145 2008-04-13  Bruno Haible  <bruno@clisp.org>
52146
52147         Make truncl work on OSF/1 4.0.
52148         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
52149         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
52150         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
52151         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
52152         HAVE_DECL_TRUNCL.
52153         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
52154         HAVE_DECL_TRUNCL.
52155         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
52156
52157 2008-04-13  Bruno Haible  <bruno@clisp.org>
52158
52159         * lib/unictype.h: Remove trailing comma from enumeration definitions.
52160
52161 2008-04-13  Bruno Haible  <bruno@clisp.org>
52162
52163         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
52164         expression, so as to avoid HP-UX 11 cc compiler bug.
52165
52166 2008-04-13  Bruno Haible  <bruno@clisp.org>
52167
52168         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
52169
52170 2008-04-13  Bruno Haible  <bruno@clisp.org>
52171
52172         * lib/git-merge-changelog.c: Remove empty declaration outside of
52173         functions.
52174
52175 2008-04-13  Bruno Haible  <bruno@clisp.org>
52176
52177         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
52178
52179 2008-04-13  Bruno Haible  <bruno@clisp.org>
52180
52181         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
52182         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
52183         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
52184         also if it exists but lacks definitions of the SHUT_* macros.
52185         * modules/sys_socket (Description): Update.
52186         Reported by Elbert Pol <e.pol@chello.nl>.
52187
52188 2008-04-13  Bruno Haible  <bruno@clisp.org>
52189
52190         * lib/localcharset.c (OS2): Don't redefine if already defined.
52191         Reported by Elbert Pol <e.pol@chello.nl>.
52192
52193 2008-04-13  Bruno Haible  <bruno@clisp.org>
52194
52195         * lib/binary-io.h [__EMX__]: Include <io.h>.
52196         Reported by Elbert Pol <e.pol@chello.nl>.
52197
52198 2008-04-12  Bruno Haible  <bruno@clisp.org>
52199
52200         * lib/fpucw.h: Enable the definitions also for x86_64.
52201         Needed for NetBSD/x86_64.
52202         Reported by Thomas Klausner <tk@giga.or.at>.
52203
52204 2008-04-12  Bruno Haible  <bruno@clisp.org>
52205
52206         * tests/test-strtod.c: Include isnand.h.
52207         (main): Use isnand instead of isnan.
52208         Reported by Jim Meyering.
52209
52210 2008-04-12  Bruno Haible  <bruno@clisp.org>
52211
52212         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
52213         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
52214
52215 2008-04-12  Jim Meyering  <meyering@redhat.com>
52216
52217         * m4/math_h.m4 (gl_MATH_H): Fix typos.
52218
52219 2008-04-12  Bruno Haible  <bruno@clisp.org>
52220
52221         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
52222         Reported by Elbert Pol <e.pol@chello.nl>.
52223
52224 2008-04-12  Eric Blake  <ebb9@byu.net>
52225
52226         Work around Solaris 10 math.h bug.
52227         * m4/math_h.m4 (gl_MATH_H): Check for bug.
52228         (gl_MATH_H_DEFAULTS): Set up default.
52229         * modules/math (Makefile.am): Replace new indicators.
52230         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
52231         * tests/test-math.c (main): Test this.
52232         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
52233         * doc/posix-headers/math.texi (math.h): Mention bug.
52234         Reported by Nelson H. F. Beebe and Jim Meyering.
52235
52236 2008-04-11  Bruno Haible  <bruno@clisp.org>
52237
52238         Adapt to future versions of Apple GCC.
52239         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
52240         Reported by Peter O'Gorman <peter@pogma.com>.
52241
52242 2008-04-11  Bruno Haible  <bruno@clisp.org>
52243
52244         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
52245
52246 2008-04-11  Bruno Haible  <bruno@clisp.org>
52247
52248         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
52249
52250         * modules/getaddrinfo-tests (Makefile.am): Define
52251         test_getaddrinfo_LDADD.
52252
52253 2008-04-11  Bruno Haible  <bruno@clisp.org>
52254
52255         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
52256         (init): Fix syntax error.
52257         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
52258         is declared.
52259
52260 2008-04-11  Bruno Haible  <bruno@clisp.org>
52261
52262         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
52263         * modules/glob (Depends-on): Add stdbool.
52264
52265 2008-04-11  Bruno Haible  <bruno@clisp.org>
52266
52267         * lib/trim.c: Include <string.h>.
52268
52269 2008-04-11  Eric Blake  <ebb9@byu.net>
52270
52271         Avoid compile failure on OS/2.
52272         * lib/regex_internal.h (internal_function): Disable optimization
52273         on OS/2 (__EMX__), where it caused compiler error.
52274         Reported by Elbert Pol.
52275
52276 2008-04-11  Bruno Haible  <bruno@clisp.org>
52277
52278         Flush the standard error stream before aborting. Needed on mingw.
52279         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
52280         * tests/test-array_list.c (ASSERT): Likewise.
52281         * tests/test-array_oset.c (ASSERT): Likewise.
52282         * tests/test-avltree_list.c (ASSERT): Likewise.
52283         * tests/test-avltree_oset.c (ASSERT): Likewise.
52284         * tests/test-avltreehash_list.c (ASSERT): Likewise.
52285         * tests/test-binary-io.c (ASSERT): Likewise.
52286         * tests/test-byteswap.c (ASSERT): Likewise.
52287         * tests/test-c-ctype.c (ASSERT): Likewise.
52288         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
52289         * tests/test-c-strcasestr.c (ASSERT): Likewise.
52290         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
52291         * tests/test-c-strstr.c (ASSERT): Likewise.
52292         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
52293         * tests/test-canonicalize.c (ASSERT): Likewise.
52294         * tests/test-carray_list.c (ASSERT): Likewise.
52295         * tests/test-ceilf1.c (ASSERT): Likewise.
52296         * tests/test-ceilf2.c (ASSERT): Likewise.
52297         * tests/test-ceill.c (ASSERT): Likewise.
52298         * tests/test-count-one-bits.c (ASSERT): Likewise.
52299         * tests/test-fbufmode.c (ASSERT): Likewise.
52300         * tests/test-fflush2.c (ASSERT): Likewise.
52301         * tests/test-floorf1.c (ASSERT): Likewise.
52302         * tests/test-floorf2.c (ASSERT): Likewise.
52303         * tests/test-floorl.c (ASSERT): Likewise.
52304         * tests/test-fopen.c (ASSERT): Likewise.
52305         * tests/test-fpending.c (ASSERT): Likewise.
52306         * tests/test-fprintf-posix.c (ASSERT): Likewise.
52307         * tests/test-fpurge.c (ASSERT): Likewise.
52308         * tests/test-freadable.c (ASSERT): Likewise.
52309         * tests/test-freadahead.c (ASSERT): Likewise.
52310         * tests/test-freading.c (ASSERT): Likewise.
52311         * tests/test-freadptr.c (ASSERT): Likewise.
52312         * tests/test-freadptr2.c (ASSERT): Likewise.
52313         * tests/test-freadseek.c (ASSERT): Likewise.
52314         * tests/test-freopen.c (ASSERT): Likewise.
52315         * tests/test-frexp.c (ASSERT): Likewise.
52316         * tests/test-frexpl.c (ASSERT): Likewise.
52317         * tests/test-fseek.c (ASSERT): Likewise.
52318         * tests/test-fseeko.c (ASSERT): Likewise.
52319         * tests/test-fstrcmp.c (ASSERT): Likewise.
52320         * tests/test-ftell.c (ASSERT): Likewise.
52321         * tests/test-ftello.c (ASSERT): Likewise.
52322         * tests/test-func.c (ASSERT): Likewise.
52323         * tests/test-fwritable.c (ASSERT): Likewise.
52324         * tests/test-fwriting.c (ASSERT): Likewise.
52325         * tests/test-getdelim.c (ASSERT): Likewise.
52326         * tests/test-getline.c (ASSERT): Likewise.
52327         * tests/test-i-ring.c (ASSERT): Likewise.
52328         * tests/test-iconv-utf.c (ASSERT): Likewise.
52329         * tests/test-iconv.c (ASSERT): Likewise.
52330         * tests/test-isfinite.c (ASSERT): Likewise.
52331         * tests/test-isnand.c (ASSERT): Likewise.
52332         * tests/test-isnanf.c (ASSERT): Likewise.
52333         * tests/test-isnanl.h (ASSERT): Likewise.
52334         * tests/test-ldexpl.c (ASSERT): Likewise.
52335         * tests/test-linked_list.c (ASSERT): Likewise.
52336         * tests/test-linkedhash_list.c (ASSERT): Likewise.
52337         * tests/test-localename.c (ASSERT): Likewise.
52338         * tests/test-lseek.c (ASSERT): Likewise.
52339         * tests/test-mbscasecmp.c (ASSERT): Likewise.
52340         * tests/test-mbscasestr1.c (ASSERT): Likewise.
52341         * tests/test-mbscasestr2.c (ASSERT): Likewise.
52342         * tests/test-mbscasestr3.c (ASSERT): Likewise.
52343         * tests/test-mbscasestr4.c (ASSERT): Likewise.
52344         * tests/test-mbschr.c (ASSERT): Likewise.
52345         * tests/test-mbscspn.c (ASSERT): Likewise.
52346         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
52347         * tests/test-mbspbrk.c (ASSERT): Likewise.
52348         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
52349         * tests/test-mbsrchr.c (ASSERT): Likewise.
52350         * tests/test-mbsspn.c (ASSERT): Likewise.
52351         * tests/test-mbsstr1.c (ASSERT): Likewise.
52352         * tests/test-mbsstr2.c (ASSERT): Likewise.
52353         * tests/test-mbsstr3.c (ASSERT): Likewise.
52354         * tests/test-memchr2.c (ASSERT): Likewise.
52355         * tests/test-memmem.c (ASSERT): Likewise.
52356         * tests/test-open.c (ASSERT): Likewise.
52357         * tests/test-printf-frexp.c (ASSERT): Likewise.
52358         * tests/test-printf-frexpl.c (ASSERT): Likewise.
52359         * tests/test-printf-posix.c (ASSERT): Likewise.
52360         * tests/test-quotearg.c (ASSERT): Likewise.
52361         * tests/test-rbtree_list.c (ASSERT): Likewise.
52362         * tests/test-rbtree_oset.c (ASSERT): Likewise.
52363         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
52364         * tests/test-round1.c (ASSERT): Likewise.
52365         * tests/test-roundf1.c (ASSERT): Likewise.
52366         * tests/test-roundl.c (ASSERT): Likewise.
52367         * tests/test-signbit.c (ASSERT): Likewise.
52368         * tests/test-sleep.c (ASSERT): Likewise.
52369         * tests/test-snprintf-posix.c (ASSERT): Likewise.
52370         * tests/test-snprintf.c (ASSERT): Likewise.
52371         * tests/test-sprintf-posix.c (ASSERT): Likewise.
52372         * tests/test-stat-time.c (ASSERT): Likewise.
52373         * tests/test-strcasestr.c (ASSERT): Likewise.
52374         * tests/test-strerror.c (ASSERT): Likewise.
52375         * tests/test-striconv.c (ASSERT): Likewise.
52376         * tests/test-striconveh.c (ASSERT): Likewise.
52377         * tests/test-striconveha.c (ASSERT): Likewise.
52378         * tests/test-strsignal.c (ASSERT): Likewise.
52379         * tests/test-strstr.c (ASSERT): Likewise.
52380         * tests/test-strtod.c (ASSERT): Likewise.
52381         * tests/test-trunc1.c (ASSERT): Likewise.
52382         * tests/test-trunc2.c (ASSERT): Likewise.
52383         * tests/test-truncf1.c (ASSERT): Likewise.
52384         * tests/test-truncf2.c (ASSERT): Likewise.
52385         * tests/test-truncl.c (ASSERT): Likewise.
52386         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
52387         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
52388         * tests/test-vasnprintf.c (ASSERT): Likewise.
52389         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
52390         * tests/test-vasprintf.c (ASSERT): Likewise.
52391         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
52392         * tests/test-vprintf-posix.c (ASSERT): Likewise.
52393         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
52394         * tests/test-vsnprintf.c (ASSERT): Likewise.
52395         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
52396         * tests/test-wcwidth.c (ASSERT): Likewise.
52397         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
52398         * tests/test-xprintf-posix.c (ASSERT): Likewise.
52399         * tests/test-xvasprintf.c (ASSERT): Likewise.
52400         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
52401         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
52402         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
52403         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
52404         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
52405         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
52406         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
52407         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
52408         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
52409         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
52410         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
52411         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
52412         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
52413         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
52414         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
52415         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
52416         * tests/unictype/test-block_list.c (ASSERT): Likewise.
52417         * tests/unictype/test-block_of.c (ASSERT): Likewise.
52418         * tests/unictype/test-block_test.c (ASSERT): Likewise.
52419         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
52420         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
52421         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
52422         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
52423         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
52424         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
52425         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
52426         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
52427         * tests/unictype/test-combining.c (ASSERT): Likewise.
52428         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
52429         * tests/unictype/test-digit.c (ASSERT): Likewise.
52430         * tests/unictype/test-mirror.c (ASSERT): Likewise.
52431         * tests/unictype/test-numeric.c (ASSERT): Likewise.
52432         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
52433         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
52434         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
52435         * tests/unictype/test-scripts.c (ASSERT): Likewise.
52436         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
52437         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
52438         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
52439         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
52440         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
52441         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
52442         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
52443         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
52444         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
52445         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
52446         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
52447         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
52448         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
52449         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
52450         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
52451         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
52452         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
52453         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
52454         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
52455         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
52456         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
52457         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
52458         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
52459         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
52460         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
52461         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
52462         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
52463         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
52464         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
52465         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
52466         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
52467         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
52468         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
52469         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
52470         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
52471         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
52472         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
52473         Reported by Eric Blake.
52474
52475 2008-04-11  Bruno Haible  <bruno@clisp.org>
52476
52477         * lib/wchar.in.h: Tweak comment.
52478
52479 2008-04-11  Bruno Haible  <bruno@clisp.org>
52480
52481         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
52482         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
52483         gl_COMMON.
52484         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
52485
52486 2008-04-11  Bruno Haible  <bruno@clisp.org>
52487
52488         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
52489
52490 2008-04-11  Simon Josefsson  <simon@josefsson.org>
52491
52492         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
52493         of attempting to use non-existing /dev/*random.  Based on patch
52494         from Adam Strzelecki <ono@java.pl> in
52495         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
52496
52497 2008-04-08  Bruno Haible  <bruno@clisp.org>
52498
52499         Add tentative support for emx+gcc.
52500         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
52501         * lib/fpurge.c (fpurge): Likewise.
52502         * lib/freadable.c (freadable): Likewise.
52503         * lib/freadahead.c (freadahead): Likewise.
52504         * lib/freading.c (freading): Likewise.
52505         * lib/freadptr.c (freadptr): Likewise.
52506         * lib/freadseek.c (freadptrinc): Likewise.
52507         * lib/fseeko.c (rpl_fseeko): Likewise.
52508         * lib/fseterr.c (fseterr): Likewise.
52509         * lib/fwritable.c (fwritable): Likewise.
52510         * lib/fwriting.c (fwriting): Likewise.
52511         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
52512
52513 2008-04-09  Eric Blake  <ebb9@byu.net>
52514
52515         Avoid some autoconf warnings.
52516         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
52517         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
52518         * m4/afs.m4 (gl_AFS): Likewise.
52519         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
52520         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
52521         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52522         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
52523         (gl_INTEGER_TYPE_SUFFIX): Likewise.
52524         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
52525         (AC_CHECK_DECLS_ONCE): Likewise.
52526         Rename file...
52527         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
52528         gnulib-tool requires autoconf 2.59 or better.
52529         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
52530
52531 2008-04-08  Eric Blake  <ebb9@byu.net>
52532
52533         Use 'git describe --match' if present (added in git 1.5.5).
52534         * build-aux/git-version-gen: Limit result to tags that match 'v*'
52535         if possible.
52536
52537 2008-04-08  Bruno Haible  <bruno@clisp.org>
52538
52539         Add tentative support for OpenServer.
52540         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
52541         _ptr, _cnt.
52542         * lib/fpurge.c (fpurge): Likewise.
52543         * lib/freadable.c (freadable): Likewise.
52544         * lib/freadahead.c (freadahead): Likewise.
52545         * lib/freading.c (freading): Likewise.
52546         * lib/freadptr.c (freadptr): Likewise.
52547         * lib/freadseek.c (freadptrinc): Likewise.
52548         * lib/fseeko.c (rpl_fseeko): Likewise.
52549         * lib/fseterr.c (fseterr): Likewise.
52550         * lib/fwritable.c (fwritable): Likewise.
52551         * lib/fwriting.c (fwriting): Likewise.
52552         Reported by Roger Cornelius <rac@tenzing.org> and
52553         Brian K. White <brian@aljex.com>.
52554
52555 2008-04-06  Jim Meyering  <meyering@redhat.com>
52556
52557         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
52558
52559 2008-04-06  Bruno Haible  <bruno@clisp.org>
52560
52561         Avoid possible error with non-ASCII bytes in UTF-8 locales.
52562         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
52563         * tests/test-printf-posix.sh: Likewise.
52564         * tests/test-vfprintf-posix.sh: Likewise.
52565         * tests/test-vprintf-posix.sh: Likewise.
52566         * tests/test-xprintf-posix.sh: Likewise.
52567
52568 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52569
52570         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
52571         hide error from 'ls', needed on OS/2.
52572         Report by Elbert Pol <elbert.pol@gmail.com>.
52573
52574 2008-04-04  Eric Blake  <ebb9@byu.net>
52575
52576         Make test-fseeko.c failures meaningful.
52577         * tests/test-fseeko.c: Print line number on failure.
52578         * tests/test-fseek.c: Likewise.
52579         Reported by Nelson H. F. Beebe.
52580
52581         Improve strtod bug detection check.
52582         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
52583         required for Solaris 10.
52584         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
52585
52586 2008-04-04  Bruno Haible  <bruno@clisp.org>
52587
52588         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
52589         by m4/setenv.m4.
52590
52591 2008-04-03  Eric Blake  <ebb9@byu.net>
52592
52593         Ensure sane .version contents.
52594         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
52595         version string.
52596         * build-aux/git-version-gen: Improve documentation.
52597
52598         Make GNU make output nicer.
52599         * top/GNUmakefile [!_have-Makefile]: Add dependency on
52600         MAKECMDGOALS to enforce message for all command line targets.  Set
52601         srcdir for use in maint.mk.
52602
52603         Another maintainer tweak.
52604         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
52605         a target that regenerates version.
52606
52607 2008-04-03  Jim Meyering  <meyering@redhat.com>
52608
52609         vc-list-files: don't cause coreutils "make po-check" failure
52610         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
52611
52612 2008-04-03  Eric Blake  <ebb9@byu.net>
52613
52614         Allow VPATH usage of vc-list-files.
52615         * build-aux/vc-list-files (scriptversion): Add timestamp.
52616         (options): Add --help, --version, -C.
52617         (CVS): Support installed cvsu.
52618
52619 2008-04-02  Bruno Haible  <bruno@clisp.org>
52620
52621         Avoid some "statement with no effect" warnings from gcc.
52622         * tests/test-wctype.c (main): Explicitly ignore unused values.
52623         Reported by Jim Meyering.
52624
52625 2008-04-02  Jim Meyering  <meyering@redhat.com>
52626
52627         Avoid some warnings from "gcc -Wshadow".
52628         * tests/test-frexp.c (exp): Define to a different identifier.
52629         * tests/test-frexpl.c (exp): Likewise.
52630
52631 2008-04-03  Jim Meyering  <meyering@redhat.com>
52632
52633         bootstrap: remove dangling *.[ch] symlinks from lib
52634         * build-aux/bootstrap [dangling symlink removal]: Move find's
52635         -depth option to precede all others, to avoid a warning.
52636         Remove *.[ch] files too, and from "$source_base" (usually lib/).
52637
52638 2008-04-02  Bruno Haible  <bruno@clisp.org>
52639
52640         Avoid some warnings from "gcc -Wshadow".
52641         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
52642         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
52643         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
52644         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
52645         Reported by Jim Meyering.
52646
52647 2008-04-01  Bruno Haible  <bruno@clisp.org>
52648
52649         Fix test to work on IRIX 6.5 with cc.
52650         * tests/test-math.c (numeric_equal): New function.
52651         (main): Use it.
52652
52653 2008-04-01  Bruno Haible  <bruno@clisp.org>
52654
52655         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
52656
52657 2008-04-01  Bruno Haible  <bruno@clisp.org>
52658
52659         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
52660         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52661         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
52662         (Depends-on): Remove math.
52663
52664         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
52665         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52666         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
52667         (Depends-on): Remove math.
52668
52669         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
52670         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52671         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
52672         (Depends-on): Remove math.
52673         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
52674         (Depends-on): Remove math.
52675
52676         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
52677         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52678         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
52679         (Depends-on): Remove math.
52680         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
52681         (Depends-on): Remove math.
52682
52683         * tests/test-round1.c: Include nan.h.
52684         (main): Use NaNd instead of NAN.
52685         * modules/round-tests (Files): Add tests/nan.h.
52686
52687         * tests/test-trunc1.c: Include nan.h.
52688         (main): Use NaNd instead of NAN.
52689         * modules/trunc-tests (Files): Add tests/nan.h.
52690
52691         * tests/test-roundf1.c: Include nan.h.
52692         (main): Use NaNf instead of NAN.
52693         * modules/roundf-tests (Files): Add tests/nan.h.
52694
52695         * tests/test-truncf1.c: Include nan.h.
52696         (main): Use NaNf instead of NAN.
52697         * modules/truncf-tests (Files): Add tests/nan.h.
52698
52699         * tests/test-ceilf1.c: Include nan.h.
52700         (main): Use NaNf instead of NAN.
52701         * modules/ceilf-tests (Files): Add tests/nan.h.
52702
52703         * tests/test-floorf1.c: Include nan.h.
52704         (main): Use NaNf instead of NAN.
52705         * modules/floorf-tests (Files): Add tests/nan.h.
52706
52707         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
52708         (main): Use NaNf instead of NAN.
52709         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
52710
52711         * tests/test-isnand.c: Include nan.h instead of <math.h>.
52712         (main): Use NaNd instead of NAN.
52713         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
52714
52715         * tests/test-frexp.c: Include nan.h.
52716         (main): Use NaNd instead of NAN.
52717         * modules/frexp-tests (Files): Add tests/nan.h.
52718
52719         * lib/isnan.c: Don't include <math.h>.
52720         (FUNC): Don't use NAN macro.
52721         * modules/isnand-nolibm (Depends-on): Remove math.
52722         * modules/isnanf-nolibm (Depends-on): Remove math.
52723         * modules/isnanl (Depends-on): Remove math.
52724         * modules/isnanl-nolibm (Depends-on): Remove math.
52725
52726         * tests/nan.h: New file.
52727
52728 2008-04-01  Eric Blake  <ebb9@byu.net>
52729
52730         Fix typos.
52731         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
52732         values to be the right type.
52733
52734         For now, cater to gnulib strtod inaccuracies.
52735         * tests/test-strtod.c (main): Allow 1-ulp error on expected
52736         fractional results.  While not as nice from a QoI perspective, it
52737         is a quicker patch than correctly implementing decimal to binary
52738         rounding.
52739
52740 2008-03-31  Eric Blake  <ebb9@byu.net>
52741
52742         Guarantee a definition of NAN.
52743         * lib/math.in.h (NAN): Define if missing.
52744         * tests/test-math.c (main): Test it.
52745         * doc/posix-headers/math.texi (math.h): Document this.
52746         * lib/isnan.c (rpl_isnand): Use it.
52747         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
52748         * tests/test-floorf1.c (NaN): Likewise.
52749         * tests/test-frexp.c (NaN): Likewise.
52750         * tests/test-isnand.c (NaN): Likewise.
52751         * tests/test-isnanf.c (NaN): Likewise.
52752         * tests/test-round1.c (NaN): Likewise.
52753         * tests/test-roundf1.c (NaN): Likewise.
52754         * tests/test-snprintf-posix.h (NaN): Likewise.
52755         * tests/test-sprintf-posix.h (NaN): Likewise.
52756         * tests/test-trunc1.c (NaN): Likewise.
52757         * tests/test-truncf1.c (NaN): Likewise.
52758         * tests/test-vasnprintf-posix.c (NaN): Likewise.
52759         * tests/test-vasprintf-posix.c (NaN): Likewise.
52760         * modules/isnand-nolibm (Depends-on): Add math.
52761         * modules/isnanf-nolibm (Depends-on): Likewise.
52762         * modules/isnanl (Depends-on): Likewise.
52763         * modules/isnanl-nolibm (Depends-on): Likewise.
52764         * modules/snprintf-posix-tests (Depends-on): Likewise.
52765         * modules/sprintf-posix-tests (Depends-on): Likewise.
52766         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
52767         * modules/vsprintf-posix-tests (Depends-on): Likewise.
52768         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
52769         * modules/vasprintf-posix-tests (Depends-on): Likewise.
52770
52771 2008-03-31  Bruno Haible  <bruno@clisp.org>
52772
52773         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
52774         * doc/posix-functions/strtod.texi: Likewise.
52775
52776 2008-03-31  Bruno Haible  <bruno@clisp.org>
52777
52778         * tests/test-strtod.c (main): Don't use C99 syntax.
52779
52780 2008-03-31  Bruno Haible  <bruno@clisp.org>
52781
52782         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
52783         Reported by Eric Blake.
52784
52785 2008-03-31  Jim Meyering  <meyering@redhat.com>
52786
52787         Don't compare actual signbit return values.
52788         * tests/test-strtod.c (main): Rather, compare only their
52789         zero/non-zero nature.
52790
52791 2008-03-31  Eric Blake  <ebb9@byu.net>
52792
52793         More strtod documentation.
52794         * doc/posix-functions/strtod.texi (strtod): Interpret more test
52795         failures as distinct bugs.
52796
52797 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52798
52799         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
52800         Problem reported by Erik Benada in
52801         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
52802
52803 2008-03-30  Bruno Haible  <bruno@clisp.org>
52804
52805         * tests/test-strtod.c: Add comments about which assertion fails on which
52806         platform.
52807         * doc/posix-functions/strtod.texi: Add info about many more platforms.
52808
52809 2008-03-30  Eric Blake  <ebb9@byu.net>
52810
52811         Test signbit behavior on zeros.
52812         * tests/test-signbit.c (test_signbitf): Add tests for zero.
52813         (test_signbitd, test_signbitl): Likewise.
52814
52815         More strtod touchups.
52816         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
52817         sign of negative underflow, for now.  Use .5, not .1.
52818         * doc/posix-functions/strtod.texi (strtod): Mention these
52819         limitations.
52820         Reported by Jim Meyering.
52821
52822 2008-03-30  Bruno Haible  <bruno@clisp.org>
52823
52824         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
52825         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
52826
52827 2008-03-30  Bruno Haible  <bruno@clisp.org>
52828
52829         Avoid failure when attempting to return empty iconv results on some
52830         platforms.
52831         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
52832         allocation, don't report ENOMEM when the resulting string is empty.
52833
52834 2008-03-30  Bruno Haible  <bruno@clisp.org>
52835
52836         Fix buffer overrun.
52837         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
52838         Don't consider the width for tmp_length. Check count against tmp_length
52839         before doing the padding. Ensure enough allocation during padding.
52840
52841 2008-03-30  Eric Blake  <ebb9@byu.net>
52842
52843         strtod touchups.
52844         * lib/strtod.c (strtod): Avoid compiler warnings.
52845         Reported by Jim Meyering.
52846
52847 2008-03-30  Bruno Haible  <bruno@clisp.org>
52848
52849         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
52850         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
52851         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
52852         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
52853         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
52854         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
52855         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
52856         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
52857
52858         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
52859         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
52860         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
52861         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
52862         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
52863         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
52864         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
52865         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
52866
52867         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
52868         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
52869         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
52870         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
52871         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
52872         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
52873         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
52874         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
52875
52876         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
52877         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
52878
52879         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
52880         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
52881
52882         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
52883         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
52884
52885         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
52886         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
52887         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
52888
52889         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
52890         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
52891         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
52892
52893         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
52894         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
52895         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
52896
52897         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
52898         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
52899         * modules/vasprintf (Depends-on): Add EOVERFLOW.
52900
52901         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
52902         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
52903         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
52904         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
52905         (Depends-on): Add EOVERFLOW.
52906         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
52907         (Depends-on): Add EOVERFLOW.
52908         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52909         (Depends-on): Add EOVERFLOW.
52910         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52911         (Depends-on): Add EOVERFLOW.
52912         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52913         (Depends-on): Add EOVERFLOW.
52914         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52915         (Depends-on): Add EOVERFLOW.
52916         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52917         (Depends-on): Add EOVERFLOW.
52918         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52919         (Depends-on): Add EOVERFLOW.
52920
52921         * lib/sprintf.c (EOVERFLOW): Remove fallback.
52922         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
52923         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
52924
52925         * lib/snprintf.c (EOVERFLOW): Remove fallback.
52926         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
52927         * modules/snprintf (Depends-on): Add EOVERFLOW.
52928
52929         * lib/poll.c (EOVERFLOW): Remove fallback.
52930         * modules/poll (Depends-on): Add EOVERFLOW.
52931
52932         * lib/getugroups.c (EOVERFLOW): Remove fallback.
52933         * modules/getugroups (Depends-on): Add EOVERFLOW.
52934
52935         * lib/getdelim.c (EOVERFLOW): Remove fallback.
52936         * modules/getdelim (Depends-on): Add EOVERFLOW.
52937
52938         * lib/ftell.c (EOVERFLOW): Remove fallback.
52939         * modules/ftell (Depends-on): Add EOVERFLOW.
52940
52941         * lib/fprintf.c (EOVERFLOW): Remove fallback.
52942         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
52943         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
52944
52945         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
52946
52947         * modules/EOVERFLOW-tests: New file.
52948         * tests/test-EOVERFLOW.c: New file.
52949
52950         * modules/EOVERFLOW: New file.
52951         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
52952
52953 2008-03-30  Bruno Haible  <bruno@clisp.org>
52954
52955         Fix bug introduced on 2007-06-10.
52956         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
52957         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
52958
52959 2008-03-30  Bruno Haible  <bruno@clisp.org>
52960
52961         Improve freadseek's efficiency after ungetc.
52962         * lib/freadseek.c: Include freadahead.h.
52963         (freadptrinc): New function, extracted from freadseek.
52964         (freadseek): Use it in a loop. Use freadahead to determine the number
52965         of loop iterations.
52966         * modules/freadseek (Depends-on): Add freadahead.
52967         (configure.ac): Require AC_C_INLINE.
52968
52969 2008-03-30  Bruno Haible  <bruno@clisp.org>
52970
52971         * lib/freadseek.c (freadseek): Don't ignore the return value of
52972         freadptr.
52973
52974 2008-03-29  Eric Blake  <ebb9@byu.net>
52975
52976         Add hex float support.
52977         * modules/strtod (Depends-on): Add c-ctype.
52978         (Link): Mention POW_LIB.
52979         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
52980         whitespace between 'e' and exponent.
52981         * tests/test-strtod.c (main): Enable hex float tests.
52982         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
52983         now provides.
52984
52985         Document various strtod bugs, with some fixes.
52986         * doc/posix-functions/strtod.texi (strtod): Document bugs with
52987         "-0x", "inf", "nan", and hex constants.
52988         * doc/posix-functions/atof.texi (atof): Likewise.
52989         * modules/stdlib (Makefile.am): Support strtod.
52990         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
52991         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
52992         detect additional strtod bugs.
52993         * lib/stdlib.in.h (rpl_strtod): Add declarations.
52994         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
52995         bool where appropriate.  Parse 'inf' and 'nan'.
52996         * tests/test-strtod.c: New file.
52997         * modules/strtod (Depends-on): Add stdbool, stdlib.
52998         (configure.ac): Turn on module indicator.
52999         * modules/strtod-tests: New module.
53000
53001 2008-03-29  Eric Blake  <ebb9@byu.net>
53002
53003         Fix ftell on mingw.
53004         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
53005         * modules/ftell-tests (Depends-on): Add binary-io.
53006         * modules/ftello-tests (Depends-on): Likewise.
53007         * tests/test-ftell.c (main): Enhance test to cover behavior after
53008         ungetc.  Enforce binary mode.
53009         * tests/test-ftello.c (main): Likewise.
53010
53011         Pass test-freadseek on cygwin.
53012         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
53013         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
53014         ungetc buffer.
53015
53016         * tests/test-fflush2.c (main): Fix typo.
53017
53018 2008-03-29  Bruno Haible  <bruno@clisp.org>
53019
53020         * tests/test-fflush2.c (main): Temporarily disable the contents of
53021         this test.
53022         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
53023         Reported by Eric Blake.
53024
53025 2008-03-28  Simon Josefsson  <simon@josefsson.org>
53026
53027         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
53028         (GC_SHA224_DIGEST_SIZE): Add.
53029
53030         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
53031         (gc_hash_digest_length): Likewise.
53032         (gc_hash_buffer): Likewise.
53033
53034 2008-03-25  Bruno Haible  <bruno@clisp.org>
53035
53036         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
53037         detail which gettext release to use.
53038         Reported by Simon Josefsson.
53039
53040 2008-03-26  Jim Meyering  <meyering@redhat.com>
53041
53042         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
53043         * modules/gnumakefile (clean-GNUmakefile): Also, use
53044         test ... && ... || : syntax rather than if-then ... fi.
53045
53046         gnumakefile: Don't double-quote-expand $(VPATH) value.
53047         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
53048
53049 2008-03-24  Eric Blake  <ebb9@byu.net>
53050
53051         Alter GNUmakefile to install into top directory.
53052         * modules/maintainer-makefile: Split, and add dependency...
53053         * modules/gnumakefile: to this new module.
53054         * build-aux/GNUmakefile: Move...
53055         * top/GNUmakefile: ...here.
53056         * build-aux/maint.mk: Move...
53057         * top/maint.mk: ...here.
53058         * MODULES.html.sh (Support for maintaining...): Document new
53059         module.
53060
53061 2008-03-23  Bruno Haible  <bruno@clisp.org>
53062
53063         * gnulib-tool: New options --vc-files, --no-vc-files.
53064         (func_usage): Document them.
53065         (vc_files): New variable.
53066         (func_import): Consider vc_files.
53067         (func_create_testdir): Set vc_files to empty.
53068         Suggested by Jim Meyering and Karl Berry.
53069
53070 2008-03-23  Bruno Haible  <bruno@clisp.org>
53071
53072         Fix regex compilation error on HP-UX 11.
53073         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
53074         * modules/regex (Files): Add m4/mbstate_t.m4.
53075         Reported by Ton Voon <ton.voon@altinity.com>.
53076
53077 2008-03-23  Bruno Haible  <bruno@clisp.org>
53078
53079         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
53080
53081 2008-03-23  Eric Blake  <ebb9@byu.net>
53082             Bruno Haible  <bruno@clisp.org>
53083
53084         Install files from top/ in the destination directory.
53085         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
53086         augmentation also for the files from top/.
53087         (func_import, func_create_testdir): Rewrite file names:
53088         top/filename -> filename.
53089
53090 2008-03-23  Bruno Haible  <bruno@clisp.org>
53091
53092         Tweak "gnulib --version" output.
53093         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
53094
53095 2008-03-23  Bruno Haible  <bruno@clisp.org>
53096
53097         Tweak "gnulib --version" output.
53098         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
53099         rather than contents of ChangeLog, when possible.
53100
53101 2008-03-21  Eric Blake  <ebb9@byu.net>
53102
53103         More --version tweaks.
53104         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
53105         date of last ChangeLog entry.
53106
53107 2008-03-21  Jim Meyering  <meyering@redhat.com>
53108
53109         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
53110
53111 2008-03-20  Eric Blake  <ebb9@byu.net>
53112
53113         VPATH fix.
53114         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
53115
53116 2008-03-20  Simon Josefsson  <simon@josefsson.org>
53117
53118         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
53119         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
53120
53121 2008-03-20  Eric Blake  <ebb9@byu.net>
53122
53123         Sync GNUmakefile with coreutils.
53124         * build-aux/GNUmakefile (have-Makefile): Rename...
53125         (_have-Makefile): ...to this, for namespace consideration.
53126         (GNUmakefile.cfg): Include, if present.
53127         (_autoreconf): Define a default.
53128         (_is-dist-target): New rule for rebuilds to pick up intra-release
53129         version.
53130         (maint-cfg.mk): Rename...
53131         (cfg.mk): ...to this.
53132
53133 2008-03-18  Jim Meyering  <meyering@redhat.com>
53134
53135         New script and module: mktempd
53136         * MODULES.html.sh (maint+release support): Add mktempd.
53137         * build-aux/mktempd: New file.
53138         * modules/mktempd: New file.
53139
53140 2008-03-15  Jim Meyering  <meyering@redhat.com>
53141
53142         Undo last change.
53143         * lib/sha1.c, lib/md5.c: 63 != ~63.
53144         Reported by Andreas Schwab.
53145
53146         sha1.c, md5.c: Hoist a redundant expression.
53147         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
53148         "ctx->buflen" only once, before calling *_process_block.
53149         * lib/md5.c (md5_process_bytes): Likewise.
53150
53151 2008-03-14  Eric Blake  <ebb9@byu.net>
53152
53153         Bump copyright year in files generated by gnulib-tool.
53154         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
53155         gnulib-tool, rather than hard-coding it.
53156
53157         Fix 'gnulib-tool --version' output to work with git.
53158         * gnulib-tool (func_gnulib_dir): New function, extracted from...
53159         (startup): ...here.
53160         (func_version): Use it to invoke git-version-gen, rather than
53161         relying on CVS keyword expansion.  Modernize wording.
53162         (cvsdatestamp, last_checkin_date, version): Kill unused
53163         variables.
53164
53165 2008-03-12  Jim Meyering  <meyering@redhat.com>
53166
53167         Recognize optional cast of the argument to free.
53168         * build-aux/useless-if-before-free: Update regexps.
53169
53170         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
53171
53172 2008-03-11  Bruno Haible  <bruno@clisp.org>
53173
53174         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
53175         by a single package.
53176         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
53177         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
53178         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
53179         Reported by Sam Steingold <sds@gnu.org>.
53180
53181 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53182
53183         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
53184         repositories.
53185
53186 2008-03-11  Bruno Haible  <bruno@clisp.org>
53187
53188         Avoid conflicts between local macro definitions.
53189         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
53190         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
53191
53192 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
53193             Bruno Haible  <bruno@clisp.org>
53194
53195         Make va_copy work with some version of xlc on AIX 5.1.
53196         * lib/stdarg.in.h: New file.
53197         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
53198         On AIX, use a <stdarg.h> file substitute.
53199         * modules/stdarg (Files): Add lib/stdarg.in.h.
53200         (Depends-on): Add include_next.
53201         (Makefile.am): Build a stdarg.h substitute if requested.
53202         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
53203
53204 2008-03-10  Bruno Haible  <bruno@clisp.org>
53205
53206         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
53207         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53208         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
53209
53210 2008-03-10  Bruno Haible  <bruno@clisp.org>
53211
53212         * modules/stdlib (Depends-on): Add include_next, remove
53213         absolute-header.
53214
53215 2008-03-09  Bruno Haible  <bruno@clisp.org>
53216
53217         * lib/freadahead.h (freadahead): Document more precisely.
53218         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
53219         the sum of both buffer sizes.
53220         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
53221         * NEWS: Document the change.
53222
53223 2008-03-09  Bruno Haible  <bruno@clisp.org>
53224
53225         Extend freadptr to return also the buffer size.
53226         * lib/freadptr.h (freadptr): Add sizep argument.
53227         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
53228         (freadptr): Add sizep argument. Determine buffer size like freadahead
53229         does.
53230         * tests/test-freadptr.c: Don't include freadahead.h.
53231         (main): Adapt for new calling convention of freadptr.
53232         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
53233         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
53234         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
53235         tests/test-freadptr2.sh.
53236         (Depends): Remove freadahead.
53237         (TESTS): Add test-freadptr2.sh.
53238         (check_PROGRAMS): Add test-freadptr2.
53239
53240 2008-03-09  Bruno Haible  <bruno@clisp.org>
53241
53242         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
53243         Report and solution by Simon Josefsson.
53244
53245 2008-03-06  Bruno Haible  <bruno@clisp.org>
53246
53247         Make fflush after ungetc work on BSD platforms.
53248         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
53249         * tests/test-fflush2.c: New file.
53250         * tests/test-fflush2.sh: New file.
53251         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
53252         tests/test-fflush2.c.
53253         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
53254         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
53255
53256 2008-03-06  Eric Blake  <ebb9@byu.net>
53257
53258         Likewise for ftello.
53259         * modules/ftello (Dependencies): Add extensions.
53260         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
53261
53262 2008-03-06  Bruno Haible  <bruno@clisp.org>
53263
53264         * modules/fseeko (Dependencies): Add extensions.
53265         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
53266         Needed on glibc systems.
53267
53268 2008-03-06  Bruno Haible  <bruno@clisp.org>
53269
53270         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
53271         email address.
53272         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53273
53274 2008-03-06  Bruno Haible  <bruno@clisp.org>
53275
53276         * users.txt: Add libgnupdf.
53277
53278 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
53279
53280         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
53281         (Header File Substitutes, Function Substitutes,
53282         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
53283         (Build robot for gnulib): Fix typo.
53284
53285 2008-03-06  Bruno Haible  <bruno@clisp.org>
53286
53287         * doc/gnulib-tool.texi (VCS Issues): Small updates.
53288         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53289
53290 2008-03-06  Bruno Haible  <bruno@clisp.org>
53291
53292         * doc/func.texi: New file, extracted from doc/gnulib.texi.
53293         * doc/gnulib.texi: Include it.
53294
53295 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53296
53297         * modules/func (License): Change license to unlimited; there was
53298         no LGPL parts in the module anyway.
53299
53300 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53301
53302         * modules/__func__: Renamed to modules/func.
53303         * modules/__func__-tests: Renamed to modules/func-tests.
53304         * tests/test-__func__.c: Renamed to tests/test-func.c.
53305         * m4/__func__.m4: Renamed to m4/func.m4.
53306         * doc/gnulib.texi (__func__): Section renamed to func.
53307         Suggested by Eric Blake <ebb9@byu.net>.
53308
53309 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53310
53311         * doc/gnulib.texi (__func__): Use C99 terminology when talking
53312         about __func__.  Make example self-contained.  Suggested by Eric
53313         Blake <ebb9@byu.net>.
53314
53315         * tests/test-__func__.c (main): Avoid extraneous () around __func.
53316         Suggested by Eric Blake <ebb9@byu.net>.
53317
53318 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53319
53320         * modules/__func__: New file.
53321         * modules/__func__-tests: New file.
53322         * tests/test-__func__.c: New file.
53323         * m4/__func__.m4: New file.
53324         * doc/gnulib.texi (__func__): Document __func__ module.
53325
53326 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53327
53328         * modules/byteswap (License): Re-license as LGPLv2+.
53329
53330 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53331
53332         * doc/Makefile: Add pdf target.
53333
53334 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53335
53336         * modules/inline (License): Use 'unlimited', since there are only
53337         *.m4 files in this module.
53338
53339 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
53340             Bruno Haible  <bruno@clisp.org>
53341
53342         Add support for HP C 7.1 on OpenVMS 8.3.
53343         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
53344
53345 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
53346
53347         Update VMS specifics.
53348         * lib/getopt.c [VMS]: Remove include of unixlib.h.
53349
53350 2008-03-02  Jim Meyering  <meyering@redhat.com>
53351
53352         Remove the last dependency on the "free" module.
53353         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
53354         Reported by Bob Proulx.
53355
53356         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
53357
53358         Remove useless "if" tests before free.  Deprecate "free" module.
53359         * doc/posix-functions/free.texi: Mention that this
53360         module is no longer useful.
53361         * modules/free (Notice): Say this module is obsolete.
53362         * modules/readutmp (Depends-on): Remove free.
53363         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
53364         * lib/putenv.c (putenv): Likewise.
53365         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
53366         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
53367         * tests/test-c-strcasestr.c (main): Likewise.
53368         * tests/test-c-strstr.c (main): Likewise.
53369         * tests/test-mbscasestr1.c (main): Likewise.
53370         * tests/test-mbscasestr2.c (main): Likewise.
53371         * tests/test-mbsstr1.c (main): Likewise.
53372         * tests/test-mbsstr2.c (main): Likewise.
53373         * tests/test-memmem.c (main): Likewise.
53374         * tests/test-strcasestr.c (main): Likewise.
53375         * tests/test-striconv.c (main): Likewise.
53376         * tests/test-striconveh.c (main): Likewise.
53377         * tests/test-striconveha.c (main): Likewise.
53378         * tests/test-strstr.c (main): Likewise.
53379
53380         * build-aux/git-version-gen: Adjust a comment and the Usage string.
53381
53382         bootstrap: sync from coreutils again
53383         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
53384
53385 2008-03-01  Jim Meyering  <meyering@redhat.com>
53386
53387         bootstrap: sync from coreutils
53388         * build-aux/bootstrap (update_po_files): Copy a .po file into place
53389         also when the target doesn't exist.
53390
53391 2008-03-01  Eric Blake  <ebb9@byu.net>
53392
53393         Fix bugs in last patch.
53394         * lib/memchr2.c (memchr2): Fix typo.
53395         * tests/test-memchr2.c: Test previous bug, and don't use GNU
53396         extension.
53397         Reported by Bruce Korb.
53398
53399         New module 'memchr2'.
53400         * modules/memchr2: New file.
53401         * modules/memchr2-tests: Likewise.
53402         * lib/memchr2.h: Likewise.
53403         * lib/memchr2.c: Likewise, based on memchr.c.
53404         * tests/test-memchr2.c: New test.
53405         * MODULES.html.sh (String handling): Add memchr2.
53406
53407 2008-02-29  Bruno Haible  <bruno@clisp.org>
53408
53409         * modules/freadseek-tests: New file.
53410         * tests/test-freadseek.sh: New file.
53411         * tests/test-freadseek.c: New file.
53412
53413         New module 'freadseek'.
53414         * modules/freadseek: New file.
53415         * lib/freadseek.h: New file.
53416         * lib/freadseek.c: New file.
53417         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
53418
53419 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
53420
53421         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
53422         wydawca.
53423
53424         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
53425         program_invocation_name and program_invocation_short_name are
53426         present.
53427
53428 2008-02-28  Bruno Haible  <bruno@clisp.org>
53429
53430         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
53431         * tests/test-freadptr.sh: Also test non-seekable stdin.
53432
53433 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
53434
53435         * build-aux/bootstrap (source_base, m4_base)
53436         (doc_base, tests_base): New variables.
53437         (gnulib_tool_options): Do not hardcode base directories, use
53438         the above variables instead.
53439
53440 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
53441
53442         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
53443
53444 2008-02-28  Bruno Haible  <bruno@clisp.org>
53445
53446         * modules/freadptr-tests: New file.
53447         * tests/test-freadptr.sh: New file.
53448         * tests/test-freadptr.c: New file.
53449
53450         New module 'freadptr'.
53451         * modules/freadptr: New file.
53452         * lib/freadptr.h: New file.
53453         * lib/freadptr.c: New file.
53454         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
53455
53456 2008-02-26  Karl Berry  <karl@freefriends.org>
53457
53458         Sync from Libtool:
53459         * libltdl/argz.c (argz_add, argz_count): New functions.
53460         * libltdl/argz.in.h: Declare them.
53461         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
53462
53463 2008-02-22  Bruno Haible  <bruno@clisp.org>
53464
53465         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
53466         is a pointer type.  Needed for HP-UX 10.
53467         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
53468         * doc/posix-functions/gmtime_r.texi: Likewise.
53469         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
53470
53471 2008-02-24  Bruno Haible  <bruno@clisp.org>
53472
53473         * modules/environ-tests: New file.
53474         * tests/test-environ.c: New file.
53475
53476         New module 'environ'.
53477         * modules/environ: New file.
53478         * lib/unistd.in.h (environ): New declaration.
53479         * m4/environ.m4: New file.
53480         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
53481         after use.
53482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
53483         HAVE_DECL_ENVIRON.
53484         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
53485         HAVE_DECL_ENVIRON.
53486         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
53487         wrong claim that 'environ' is missing on some systems.
53488         * modules/execute (Depends-on): Add environ.
53489         * lib/execute.c (environ): Remove fallback declaration.
53490         * modules/pipe (Depends-on): Add environ.
53491         * lib/pipe.c (environ): Remove fallback declaration.
53492         * modules/setenv (Depends-on): Add environ.
53493         * lib/setenv.c (environ): Remove fallback declaration.
53494         * modules/unsetenv (Depends-on): Add environ.
53495         * lib/unsetenv.c (environ): Remove fallback declaration.
53496         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
53497         m4/environ.m4.
53498         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
53499         (gl_PREREQ_UNSETENV): Likewise.
53500
53501 2008-02-24  Bruno Haible  <bruno@clisp.org>
53502
53503         * doc/posix-functions/environ.texi: Document the MacOS X problem.
53504
53505 2008-02-20  Bob Proulx  <bob@proulx.com>
53506
53507         Enable use of older two part flavor 'git describe'.
53508         * build-aux/git-version-gen: If using the older two part flavor of
53509         git version then recreate the third part now present in the
53510         newer three part flavor of git describe.
53511
53512 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
53513
53514         * lib/fts.c (fts_build): Typo correction to comment.
53515
53516 2008-02-17  Bruno Haible  <bruno@clisp.org>
53517
53518         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
53519         generating no-op conflicts.
53520
53521 2008-02-17  Bruno Haible  <bruno@clisp.org>
53522
53523         Speed up by 10%.
53524         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
53525         result_entries, rather than an index-based loop.
53526
53527 2008-02-17  Bruno Haible  <bruno@clisp.org>
53528
53529         Speed up by 25%.
53530         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
53531         'hashcode_cached'.
53532         (entry_create): New function.
53533         (entry_hashcode): Use the cached hashcode if possible.
53534         (read_changelog_file, try_split_merged_entry): Use entry_create.
53535
53536 2008-02-17  Bruno Haible  <bruno@clisp.org>
53537
53538         Speed up from O(n^2) to O(n) for long ChangeLog files.
53539         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
53540         (read_changelog_file): Change implementation of entries_reversed list
53541         to rbtreehash.
53542         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
53543
53544 2008-02-17  Bruno Haible  <bruno@clisp.org>
53545
53546         New option --split-merged-entry.
53547         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
53548         (find_paragraph_end, try_split_merged_entry): New functions.
53549         (long_options): Add option --split-merged-entry.
53550         (usage): Document option --split-merged-entry.
53551         (main): Implement option --split-merged-entry.
53552         Reported by Eric Blake.
53553
53554 2008-02-17  Bruno Haible  <bruno@clisp.org>
53555
53556         * lib/git-merge-changelog.c: Include c-strstr.h.
53557         (main): Support the "git pull --rebase" situation.
53558         * modules/git-merge-changelog (Depends-on): Add c-strstr.
53559         Reported by Eric Blake.
53560
53561 2008-02-16  Eric Blake  <ebb9@byu.net>
53562
53563         Avoid doubling \ in common case of "c-maybe" quoting style.
53564         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
53565         eliding outer quotes.
53566         * lib/quotearg.h: Document this.
53567         * tests/test-quotearg.c (result_strings, inputs, results_g)
53568         (flag_results, locale_results): Test it by adding a new string to
53569         each test group.
53570         (compare_strings): Test new string.
53571
53572 2008-02-13  Eric Blake  <ebb9@byu.net>
53573
53574         Avoid trigraph quoting in default output.
53575         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
53576         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
53577         unless explicitly requested.
53578         * tests/test-quotearg.c (flag_results, main): Add additional tests.
53579
53580 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
53581
53582         Don't rely on signed integer overflowing to negative value.
53583         * lib/getugroups.c (getugroups): Include <limits.h>.
53584         Instead, compare against INT_MAX, and increment only if the test passes.
53585
53586 2008-02-13  Jim Meyering  <meyering@redhat.com>
53587         and Eric Blake  <ebb9@byu.net>
53588
53589         Avoid shadowing warning and compile errors on Linux.
53590         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
53591         forwarding macros on Linux.
53592         (dcgettext): Define a stub, for Linux.
53593         (results_g, main): Avoid warnings.
53594
53595 2008-02-12  Eric Blake  <ebb9@byu.net>
53596
53597         Silence warning in last patch.
53598         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
53599
53600         Quotearg part 4: add tests, fix c-maybe colon quoting.
53601         * lib/quotearg.h: Improve documentation.
53602         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
53603         escapes when adding outer quotes.  When quoting trigraphs, use
53604         valid C notation.  When quoting NUL, omit extra characters if next
53605         character is not digit.  Alter prototype.
53606         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
53607         callers.
53608         * modules/quotearg-tests: New module.
53609         * tests/test-quotearg.c: New test.
53610
53611 2008-02-07  Eric Blake  <ebb9@byu.net>
53612
53613         Quotearg part 3: add flag to control outer quote elision.
53614         * lib/quotearg.h (c_maybe_quoting_style): New style.
53615         (enum quoting_flags): Better documentation of flags.
53616         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
53617         c-maybe style.
53618         (quotearg_buffer_restyled): Handle new flag to elide outer
53619         quotes.
53620
53621         Quotearg part 2: add flag that can control NUL elision.
53622         * lib/quotearg.h (set_quoting_flags): New prototype.
53623         * lib/quotearg.c (struct quoting_options): Add flag field.
53624         (set_quoting_flags): New function.
53625         (quotearg_buffer_restyled): Add flags parameter.
53626         (quotearg_alloc_mem): Set the flag if length cannot be returned.
53627         (quotearg_n_options): Set the flag, since length cannot be
53628         returned.
53629         (quoting_options_from_style): Default flags correctly.
53630
53631         Quotearg part 1: more wrappers, restore quotearg_char state.
53632         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
53633         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
53634         (quotearg_colon_mem): New wrappers.
53635         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
53636         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
53637         functions.
53638         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
53639         (quotearg_colon_mem): New functions.
53640
53641 2008-02-11  Bruno Haible  <bruno@clisp.org>
53642
53643         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
53644         library in the current directory: it does not work with parallel make.
53645         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53646
53647 2008-02-11  Bruno Haible  <bruno@clisp.org>
53648
53649         * .gitattributes: New file.
53650
53651 2008-02-11  Jim Meyering  <meyering@redhat.com>
53652
53653         useless-if-before-free: Fix reversed exit values.
53654         * build-aux/useless-if-before-free: Use correct values
53655         for EXIT_MATCH and EXIT_NO_MATCH.
53656
53657         * build-aux/useless-if-before-free: Close stdout carefully.
53658
53659 2008-02-10  Bruno Haible  <bruno@clisp.org>
53660
53661         New module 'git-merge-changelog'.
53662         * modules/git-merge-changelog: New file.
53663         * lib/git-merge-changelog.c: New file.
53664
53665 2008-02-10  Jim Meyering  <meyering@redhat.com>
53666
53667         useless-if-before-free: New option: --list (-l).
53668
53669         useless-if-before-free: Don't exit immediately upon open failure.
53670         * build-aux/useless-if-before-free: Exit 2 for errors.
53671         Upon failure to open a file, don't exit immediately.
53672         Rather, just warn and continue with any remaining files.
53673
53674 2008-02-10  Bruno Haible  <bruno@clisp.org>
53675
53676         New abstract list operation 'node_set_value'.
53677         * lib/gl_list.h (gl_list_node_set_value): New function.
53678         (struct gl_list_implementation): New field node_set_value.
53679         * lib/gl_list.c (gl_list_node_set_value): New function.
53680         * lib/gl_array_list.c (gl_array_node_set_value): New function.
53681         (gl_array_list_implementation): Update.
53682         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
53683         (gl_carray_list_implementation): Update.
53684         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
53685         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
53686         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
53687         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
53688         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53689         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53690         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53691         Update.
53692         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
53693         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
53694         (gl_sublist_list_implementation): Update.
53695
53696 2008-02-10  Bruno Haible  <bruno@clisp.org>
53697
53698         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
53699         Needed when ELEMENT is #defined to 'some_type *'.
53700
53701 2008-02-10  Jim Meyering  <meyering@redhat.com>
53702
53703         New script and module: useless-if-before-free
53704         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
53705         * build-aux/useless-if-before-free: New file.
53706         * modules/useless-if-before-free: New file.
53707
53708         * build-aux/gitlog-to-changelog: Use committer date, not author date.
53709
53710         xstrtol_error: Fix typo.
53711         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
53712         s/exit_failure/exit_status/.
53713
53714 2008-02-09  Jim Meyering  <meyering@redhat.com>
53715
53716         New script and module: gitlog-to-changelog
53717         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
53718         * modules/gitlog-to-changelog: New file.
53719         * build-aux/gitlog-to-changelog: New file.
53720
53721 2008-02-08  Jim Meyering  <meyering@redhat.com>
53722
53723         Avoid two "parameter unused" warnings.
53724         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
53725         Mark "st" as used.
53726
53727         Use "git COMMAND", not "git-COMMAND".
53728         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
53729         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
53730         * build-aux/git-version-gen: Use "git status", not "git-status".
53731
53732 2008-02-07  Bruno Haible  <bruno@clisp.org>
53733
53734         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
53735         Avoids a crash on Windows Vista.
53736         Reported by Adam Strzelecki <ono@java.pl> via
53737         Simon Josefsson <simon@josefsson.org>.
53738
53739 2008-02-06  Bruno Haible  <bruno@clisp.org>
53740
53741         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
53742         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
53743         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
53744         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
53745         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53746         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53747         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
53748         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
53749         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53750         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53751         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53752         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53753         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53754         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53755         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53756         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
53757         left-adjust flag.
53758         * tests/test-snprintf-posix.h (test_function): Likewise.
53759         * tests/test-sprintf-posix.h (test_function): Likewise.
53760         * tests/test-vasprintf-posix.c (test_function): Likewise.
53761         * doc/posix-functions/fprintf.texi: Update.
53762         * doc/posix-functions/printf.texi: Update.
53763         * doc/posix-functions/snprintf.texi: Update.
53764         * doc/posix-functions/sprintf.texi: Update.
53765         * doc/posix-functions/vfprintf.texi: Update.
53766         * doc/posix-functions/vprintf.texi: Update.
53767         * doc/posix-functions/vsnprintf.texi: Update.
53768         * doc/posix-functions/vsprintf.texi: Update.
53769         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53770
53771 2008-02-06  Bruno Haible  <bruno@clisp.org>
53772
53773         Fix bug introduced on 2008-01-26.
53774         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
53775
53776 2008-02-06  Bruno Haible  <bruno@clisp.org>
53777
53778         Fix bug introduced on 2007-06-10.
53779         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
53780         !NEED_PRINTF_FLAG_ZERO.
53781
53782 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
53783
53784         getloadavg: use libperfstat on AIX5
53785         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
53786
53787 2008-02-03  Bruno Haible  <bruno@clisp.org>
53788
53789         * lib/diffseq.h: Add comments about required #includes.
53790         Reported by Michael Biggs <gnulib@doubleplum.net>.
53791
53792 2008-02-01  Bruno Haible  <bruno@clisp.org>
53793
53794         * users.txt: Add gnuit.
53795
53796 2008-01-31  Bruno Haible  <bruno@clisp.org>
53797
53798         * lib/md4.c (set_uint32): Mark as inline.
53799         * lib/md5.c (set_uint32): Likewise.
53800         * lib/sha1.c (set_uint32): Likewise.
53801         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
53802         * m4/md5.m4 (gl_MD5): Likewise.
53803         * m4/sha1.m4 (gl_SHA1): Likewise.
53804
53805 2008-01-31  Jim Meyering  <meyering@redhat.com>
53806
53807         Use "sizeof VAR", rather than a literal "4".
53808         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
53809         * lib/md4.c (md4_read_ctx): Likewise.
53810         * lib/sha1.c (sha1_read_ctx): Likewise.
53811
53812 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53813
53814         * tests/test-sha1.c: New file, based on test-md5.c.
53815
53816         * modules/crypto/sha1-tests: New file.
53817
53818 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53819
53820         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
53821
53822 2008-01-31  Jim Meyering  <meyering@redhat.com>
53823
53824         Prefer "sizeof v" over the equivalent "4".
53825         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
53826         * lib/md5.c (set_uint32): Likewise.
53827         * lib/sha1.c (set_uint32): Likewise.
53828
53829 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53830
53831         * lib/sha1.c (set_uint32): Mark function as static.
53832
53833 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53834
53835         md2: clarify comments to say that alignment is not required.
53836         * lib/md2.h: Remove warning about alignment in comment.
53837         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
53838         never been required.
53839
53840 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53841
53842         md4: adapt alignment constraint fix from sha1.
53843         * lib/md4.c (set_uint32): New function, from sha1.c
53844         (md4_read_ctx): Use it.
53845         (md4_finish_ctx): Doc fix.
53846         * lib/md4.h: Doc fix.
53847
53848 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53849
53850         md5: adapt alignment constraint fix from sha1.
53851         * lib/md5.c (set_uint32): New function, from sha1.c
53852         (md5_read_ctx): Use it.
53853         (md5_finish_ctx): Doc fix.
53854         * lib/md5.h: Doc fix.
53855
53856 2008-01-30  Peter Palfrader  <weasel@debian.org>
53857
53858         sha1: remove the result buffer alignment constraint
53859         * lib/sha1.c (set_uint32): New function.
53860         (sha1_read_ctx): Rewrite to remove the result buffer alignment
53861         constraint.
53862         (sha1_finish_ctx): Remove comment warning about alignment constraint.
53863         * lib/sha1.h: Likewise.
53864
53865 2008-01-30  Andreas Schwab  <schwab@suse.de>
53866             Bruno Haible  <bruno@clisp.org>
53867
53868         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
53869         correct definition of LDBL_MIN_EXP.
53870
53871 2008-01-30  Karl Berry  <karl@gnu.org>
53872
53873         * config/srclist-update: try to preserve x bit on updates.
53874         * config/srclistvars.sh: update for karl.
53875
53876 2008-01-29  Jim Meyering  <meyering@redhat.com>
53877
53878         vasnprintf.c: Avoid warning about unused label
53879         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
53880         "overflow" label definition and associated code with the
53881         same cpp condition that guards the sole use of that label.
53882
53883 2008-01-26  Bruno Haible  <bruno@clisp.org>
53884
53885         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
53886         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
53887         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
53888         * lib/isnanl-nolibm.h (isnanl): Likewise.
53889         Reported by Paul Eggert <eggert@cs.ucla.edu>.
53890
53891 2008-01-26  Bruno Haible  <bruno@clisp.org>
53892
53893         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
53894         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
53895
53896 2008-01-26  Bruno Haible  <bruno@clisp.org>
53897
53898         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
53899         GCC >= 4.0 built-in.
53900         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
53901
53902 2008-01-26  Bruno Haible  <bruno@clisp.org>
53903
53904         Rename isnan, applicable to 'double' only, to isnand.
53905         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
53906         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
53907         (configure.ac): Update.
53908         (Include): Replace "isnan.h" with "isnand.h".
53909         * m4/isnand.m4: Renamed from m4/isnan.m4.
53910         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
53911         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
53912         instead of isnan.c.
53913         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
53914         instead of HAVE_ISNAN_IN_LIBC.
53915         (isnand): Renamed from isnan.
53916         * lib/isnand.c: New file.
53917         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
53918         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
53919         (Makefile.am): Update.
53920         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
53921         Include isnand.h instead of isnan.h.
53922         (main): Test isnand instead of isnan.
53923         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
53924         isnan-nolibm.
53925         * modules/frexp (Depends-on): Likewise.
53926         * modules/frexp-tests (Depends-on): Likewise.
53927         * modules/frexp-nolibm (Depends-on): Likewise.
53928         * modules/frexp-nolibm-tests (Depends-on): Likewise.
53929         * modules/isfinite (Depends-on): Likewise.
53930         * modules/round-tests (Depends-on): Likewise.
53931         * modules/signbit (Depends-on): Likewise.
53932         * modules/signbit-tests (Depends-on): Likewise.
53933         * modules/snprintf-posix (Depends-on): Likewise.
53934         * modules/sprintf-posix (Depends-on): Likewise.
53935         * modules/trunc-tests (Depends-on): Likewise.
53936         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53937         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53938         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53939         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53940         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53941         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53942         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53943         * modules/vasnprintf-posix (Depends-on): Likewise.
53944         * modules/vasprintf-posix (Depends-on): Likewise.
53945         * modules/vfprintf-posix (Depends-on): Likewise.
53946         * modules/vsnprintf-posix (Depends-on): Likewise.
53947         * modules/vsprintf-posix (Depends-on): Likewise.
53948         * lib/frexp.c: Include isnand.h instead of isnan.h.
53949         (ISNAN): Set to isnand instead of isnan.
53950         * lib/isfinite.c: Include isnand.h instead of isnan.h.
53951         (gl_isfinited): Use isnand instead of isnan.
53952         * lib/signbitd.c: Include isnand.h instead of isnan.h.
53953         (gl_signbitd): Use isnand instead of isnan.
53954         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
53955         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
53956         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
53957         (main): Use isnand instead of isnan.
53958         * tests/test-round1.c: Include isnand.h.
53959         (main): Use isnand instead of isnan.
53960         * tests/test-round2.c: Include isnand.h instead of isnan.h.
53961         (ISNAN): Set to isnand instead of isnan.
53962         * tests/test-trunc1.c: Include isnand.h.
53963         (main): Use isnand instead of isnan.
53964         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
53965         (equal): Use isnand instead of isnan.
53966         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
53967         isnand-nolibm.
53968         * NEWS: Mention the change.
53969
53970 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
53971             Bruno Haible  <bruno@clisp.org>
53972
53973         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
53974         the GCC builtins for signbits are present and set
53975         REPLACE_SIGNBIT_USING_GCC if so.
53976         * lib/math.in.h (signbit): Define using GCC builtins if
53977         REPLACE_SIGNBIT_USING_GCC is set.
53978         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
53979         REPLACE_SIGNBIT_USING_GCC.
53980         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
53981
53982 2008-01-25  Jim Meyering  <meyering@redhat.com>
53983
53984         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
53985         * lib/poll.c: Include <config.h>, not "config.h".
53986         * tests/test-getaddrinfo.c: Likewise.
53987
53988 2008-01-25  Simon Josefsson  <simon@josefsson.org>
53989
53990         * modules/sockets-tests: New file.
53991
53992 2008-01-24  Simon Josefsson  <simon@josefsson.org>
53993
53994         * modules/sockets: New module, can be used to call WSA_Startup and
53995         WSA_Cleanup when needed.
53996
53997         * lib/sockets.h, lib/sockets.c: New files.
53998
53999         * m4/sockets.m4: New file.
54000
54001         * tests/test-sockets.c: New file.
54002
54003 2008-01-19  Bruno Haible  <bruno@clisp.org>
54004
54005         * doc/posix-headers: Renamed from doc/headers.
54006         * doc/posix-functions: Renamed from doc/functions.
54007         * doc/gnulib.texi: Update.
54008
54009 2008-01-19  Bruno Haible  <bruno@clisp.org>
54010
54011         * doc/glibc-functions/strcasestr.texi: Include contents of
54012         doc/functions/strcasestr.texi, fixing the list of platforms.
54013         * doc/functions/strcasestr.texi: Remove file.
54014
54015 2008-01-19  Bruno Haible  <bruno@clisp.org>
54016
54017         * doc/glibc-functions/memmem.texi: Include contents of
54018         doc/functions/memmem.texi.
54019         * doc/functions/memmem.texi: Remove file.
54020
54021 2008-01-18  Bruno Haible  <bruno@clisp.org>
54022
54023         * doc/glibc-functions/*.texi: New files.
54024         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
54025         to use the new files.
54026
54027 2008-01-17  Bruno Haible  <bruno@clisp.org>
54028
54029         * tests/test-gethostname.c (main): Fix printf statement.
54030
54031 2008-01-17  Simon Josefsson  <simon@josefsson.org>
54032
54033         * modules/gethostname-tests: New file.
54034
54035         * tests/test-gethostname.c: New file.
54036
54037 2008-01-17  Simon Josefsson  <simon@josefsson.org>
54038
54039         * lib/gethostname.c: Include string.h unconditionally, strncpy is
54040         used by the UNAME case.  Reported by Bruno Haible
54041         <bruno@clisp.org>.
54042
54043 2008-01-17  Eric Blake  <ebb9@byu.net>
54044
54045         Convert c-strcasestr to be more efficient.
54046         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
54047         (Depends-on): Add c-strcase, remove malloca, strnlen.
54048         * tests/test-c-strcasestr.c (main): Enhance test.
54049         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
54050
54051 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
54052
54053         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
54054         Use it in creating po/Makevars.
54055
54056 2008-01-15  Simon Josefsson  <simon@josefsson.org>
54057
54058         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
54059         Applications that requires it should initialize libgcrypt
54060         manually.
54061
54062 2008-01-16  Simon Josefsson  <simon@josefsson.org>
54063
54064         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
54065
54066 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
54067
54068         Fix problem with getdate on mingw32 reported by Simon Josefsson
54069         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
54070         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
54071         tzname", when deciding whether to declare tzname.
54072         * lib/strftime.c (tzname): Likewise.
54073
54074 2008-01-15  Bruno Haible  <bruno@clisp.org>
54075
54076         Work around a MacOS X 10.5 bug in frexpl().
54077         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
54078         * doc/functions/frexpl.texi: Document the bug.
54079         Reported by Elias Pipping <pipping@gentoo.org>.
54080
54081 2008-01-14  Eric Blake  <ebb9@byu.net>
54082
54083         Touch up previous patch.
54084         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
54085         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
54086
54087         Convert strcasestr module to use Two-Way algorithm.
54088         * modules/strcasestr-simple: New module, based on the old
54089         strcasestr, but with Two-Way rather than KMP.
54090         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
54091         * lib/string.in.h (rpl_strcasestr): Declare.
54092         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
54093         performance.
54094         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
54095         * modules/string (Makefile.am): Support strcasestr.
54096         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
54097         * modules/strcasestr-tests (Depends-on): Check for alarm.
54098         * tests/test-strcasestr.c: Augment test.
54099         * lib/str-two-way.h: Clean up stray macro.
54100         * NEWS: Document new module.
54101         * MODULES.html.sh (string handling): Likewise.
54102         * doc/functions/strcasestr.texi: New file.
54103         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
54104         here, since it is not a POSIX function.
54105
54106 2008-01-14  Colin Watson  <cjwatson@debian.org>
54107             Bruno Haible  <bruno@clisp.org>
54108
54109         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
54110         works fine; if not, set REPLACE_STRSIGNAL.
54111         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
54112         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54113         REPLACE_STRSIGNAL.
54114         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
54115         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
54116         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
54117
54118 2008-01-14  Bruno Haible  <bruno@clisp.org>
54119
54120         * modules/strsignal (Include): Change to <string.h>.
54121
54122 2008-01-14  Colin Watson  <cjwatson@debian.org>
54123
54124         * modules/argp (Notice): Add a notice recommending to change
54125         XGETTEXT_OPTIONS.
54126         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
54127
54128 2008-01-13  Colin Watson  <cjwatson@debian.org>
54129
54130         * modules/strsignal-tests: New file.
54131         * tests/test-strsignal.c: New file.
54132
54133         * lib/strsignal.c: New file, from glibc with modifications.
54134         * lib/siglist.h: New file, from glibc with modifications.
54135         * lib/string.in.h (strsignal): New declaration.
54136         * m4/strsignal.m4: New file.
54137         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54138         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
54139         * modules/strsignal: New file.
54140         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
54141         HAVE_DECL_STRSIGNAL.
54142
54143 2008-01-13  Bruno Haible  <bruno@clisp.org>
54144
54145         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
54146         locale encoding is not ASCII. Needed for OpenBSD 4.0.
54147         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54148         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54149
54150 2008-01-13  Bruno Haible  <bruno@clisp.org>
54151
54152         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
54153         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
54154         * lib/argp.h (__attribute__): Likewise.
54155         * lib/c-stack.c (__attribute__): Likewise.
54156         * lib/error.h (__attribute__): Likewise.
54157         * lib/fts.c (__attribute__): Likewise.
54158         * lib/openat.h (__attribute__): Likewise.
54159         * lib/stdio.in.h (__attribute__): Likewise.
54160         * lib/string.in.h (__attribute__): Likewise.
54161         * lib/utimens.c (__attribute__): Likewise.
54162         * lib/vasnprintf.h (__attribute__): Likewise.
54163         * lib/xalloc.h (__attribute__): Likewise.
54164         * lib/xprintf.h (__attribute__): Likewise.
54165         * lib/xstrtol.h (__attribute__): Likewise.
54166         * lib/xvasprintf.h (__attribute__): Likewise.
54167
54168 2008-01-12  Bruno Haible  <bruno@clisp.org>
54169
54170         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
54171         * doc/glibc-headers/a.out.texi: New file.
54172         * doc/glibc-headers/aliases.texi: New file.
54173         * doc/glibc-headers/alloca.texi: New file.
54174         * doc/glibc-headers/ar.texi: New file.
54175         * doc/glibc-headers/argp.texi: New file.
54176         * doc/glibc-headers/argz.texi: New file.
54177         * doc/glibc-headers/byteswap.texi: New file.
54178         * doc/glibc-headers/crypt.texi: New file.
54179         * doc/glibc-headers/endian.texi: New file.
54180         * doc/glibc-headers/envz.texi: New file.
54181         * doc/glibc-headers/err.texi: New file.
54182         * doc/glibc-headers/error.texi: New file.
54183         * doc/glibc-headers/execinfo.texi: New file.
54184         * doc/glibc-headers/fpu_control.texi: New file.
54185         * doc/glibc-headers/fstab.texi: New file.
54186         * doc/glibc-headers/fts.texi: New file.
54187         * doc/glibc-headers/getopt.texi: New file.
54188         * doc/glibc-headers/ieee754.texi: New file.
54189         * doc/glibc-headers/ifaddrs.texi: New file.
54190         * doc/glibc-headers/libintl.texi: New file.
54191         * doc/glibc-headers/mcheck.texi: New file.
54192         * doc/glibc-headers/mntent.texi: New file.
54193         * doc/glibc-headers/obstack.texi: New file.
54194         * doc/glibc-headers/paths.texi: New file.
54195         * doc/glibc-headers/printf.texi: New file.
54196         * doc/glibc-headers/pty.texi: New file.
54197         * doc/glibc-headers/resolv.texi: New file.
54198         * doc/glibc-headers/shadow.texi: New file.
54199         * doc/glibc-headers/sysexits.texi: New file.
54200         * doc/glibc-headers/ttyent.texi: New file.
54201
54202 2008-01-12  Jim Meyering  <meyering@redhat.com>
54203
54204         announce-gen: emit Gnulib's git-based version string.
54205         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
54206         New option --gnulib-version=V, where V is expected to be
54207         the output of running git describe in the gnulib directory.
54208         (get_tool_versions): Request feedback on xdelta.  I suspect it's
54209         not useful, and plan to stop publishing an xdelta file with each
54210         coreutils release.
54211
54212         * build-aux/announce-gen: Also check for lzma-compressed files.
54213
54214 2008-01-11  Bruno Haible  <bruno@clisp.org>
54215
54216         * tests/test-memmem.c (main): Increase maximum allowed time.
54217         * tests/test-strstr.c (main): Likewise.
54218
54219 2008-01-11  Bruno Haible  <bruno@clisp.org>
54220
54221         * doc/functions/memmem.texi: Add more precisions about platforms.
54222         * doc/functions/strstr.texi: Likewise.
54223
54224 2008-01-10  Eric Blake  <ebb9@byu.net>
54225
54226         * m4/strstr.m4: Delete cruft from copy-n-paste.
54227         Reported by Bruno Haible.
54228
54229 2008-01-10  Bruno Haible  <bruno@clisp.org>
54230
54231         Make c-strstr rely on strstr.
54232         * lib/c-strstr.c: Don't include str-kmp.h.
54233         (c_strstr): Define in terms of strstr.
54234         * modules/c-strstr (Files): Remove lib/str-kmp.h.
54235         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
54236
54237 2008-01-10  Bruno Haible  <bruno@clisp.org>
54238
54239         * doc/gnulib.texi (String Functions in C Locale): New section.
54240         * doc/c-ctype.texi: New file.
54241         * doc/c-strcase.texi: New file.
54242         * doc/c-strcaseeq.texi: New file.
54243         * doc/c-strcasestr.texi: New file.
54244         * doc/c-strstr.texi: New file.
54245         * doc/c-strtod.texi: New file.
54246         * doc/c-strtold.texi: New file.
54247
54248 2008-01-10  Eric Blake  <ebb9@byu.net>
54249
54250         * lib/relocatable.h: Fix a comment.
54251
54252 2008-01-10  Eric Blake  <ebb9@byu.net>
54253
54254         Share two-way algorithm.
54255         * lib/str-two-way.h: New file, merged from...
54256         * lib/memmem.c: ...here...
54257         * lib/strstr.c: ...and here.
54258         * modules/memmem (Files): Use it.
54259         * modules/strstr (Files): Likewise.
54260
54261         Avoid quadratic strstr implementations.
54262         * lib/strstr.c: New file.
54263         * m4/strstr.m4: Likewise.
54264         * modules/strstr: Likewise.
54265         * modules/strstr-tests: Likewise.
54266         * tests/test-strstr.c: Likewise.
54267         * lib/string.in.h (rpl_strstr): Declare.
54268         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
54269         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
54270         * modules/string (Makefile.am): Likewise.
54271         * MODULES.html.sh (string handling): Mention new module.
54272         * doc/functions/strstr.texi (strstr): Document the bug.
54273
54274 2008-01-10  Bruno Haible  <bruno@clisp.org>
54275
54276         * lib/relocatable.h (relocate): State whether result is freshly
54277         allocated or not.
54278         * lib/relocatable.c (relocate): Return a freshly allocated string
54279         instead of a pointer to a privately held string.
54280         Reported by Sylvain Beucler <beuc@gnu.org>.
54281
54282 2008-01-10  Colin Watson  <cjwatson@debian.org>
54283
54284         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
54285         s/S_ISNLK/S_ISLNK/.
54286
54287 2008-01-09  Bruno Haible  <bruno@clisp.org>
54288
54289         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
54290         and other files.
54291         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
54292         if it's only a guess.
54293         * modules/memmem: Simplify by depending on memmem-simple.
54294
54295 2008-01-09  Bruno Haible  <bruno@clisp.org>
54296
54297         Work around OpenBSD 4.0 tdelete() bug.
54298         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
54299         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
54300         macros and don't redefine the enum values.
54301         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
54302         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
54303         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
54304
54305 2008-01-09  Bruno Haible  <bruno@clisp.org>
54306
54307         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
54308         (main): Don't perform the tests if setlocale did not install a UTF-8
54309         locale. Needed on OpenBSD 4.0.
54310         * modules/wcwidth-tests (Depends-on): Add localcharset.
54311
54312 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54313
54314         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
54315         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
54316         * NEWS: announce this.
54317         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
54318
54319 2008-01-09  Simon Josefsson  <simon@josefsson.org>
54320         and Eric Blake  <ebb9@byu.net>
54321
54322         Add memmem-simple module.
54323         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
54324         (gl_FUNC_MEMMEM): Separate performance from presence checks.
54325         * modules/memmem-simple: New file.
54326         * modules/memmem (Description): Tweak.
54327         * MODULES.html.sh (string handling): Mention new module.
54328         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
54329         addressed by memmem-simple.
54330         * NEWS: Document the difference.
54331
54332 2008-01-09  Eric Blake  <ebb9@byu.net>
54333
54334         Give gcc some memmem optimization hints.
54335         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
54336         (strcasestr): Declare as pure.
54337         * modules/memmem (Maintainer): Claim my implementation.
54338
54339 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54340
54341         Support AIX 6.1 and higher.
54342         * build-aux/config.libpath: Likewise.
54343         * build-aux/config.rpath: Likewise.
54344
54345 2008-01-08  Jim Meyering  <meyering@redhat.com>
54346             Bruno Haible  <bruno@clisp.org>
54347
54348         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
54349         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
54350         Reported by Peter Fales in
54351         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
54352
54353 2008-01-08  Bruno Haible  <bruno@clisp.org>
54354
54355         * modules/unictype/category-of (Depends-on): Add
54356         unictype/category-none.
54357         * modules/unictype/category-and-tests (Depends-on): Add
54358         unictype/category-{L,N,Lu,Nd}.
54359         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
54360         * modules/unictype/category-or-tests (Depends-on): Add
54361         unictype/category-{L,N}.
54362         * modules/unictype/category-name-tests (Depends-on): Add
54363         unictype/category-{Z,Nl}.
54364         Reported by Simon Josefsson.
54365
54366 2008-01-08  Bruno Haible  <bruno@clisp.org>
54367
54368         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
54369         convention better.
54370         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
54371         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
54372         Reported by Peter Miller <millerp@canb.auug.org.au>.
54373
54374 2008-01-08  Eric Blake  <ebb9@byu.net>
54375
54376         Rewrite memmem to guarantee linear complexity without malloc.
54377         * lib/memmem.c (memmem): Use Two-Way rather than
54378         Knuth-Morris-Pratt, to allow O(1) space usage.
54379         (critical_factorization, two_way_short_needle)
54380         (two_way_long_needle): New functions.
54381         (knuth_morris_pratt): Delete.
54382         * modules/memmem (Depends-on): No longer need malloca or stdbool.
54383         Add stdint.
54384         * tests/test-memmem.c (main): Add tests for periodic needle and
54385         sublinear performance.
54386         * doc/functions/memmem.texi (memmem): Document other deficiencies
54387         in cygwin and older glibc.
54388
54389 2008-01-08  Bruno Haible  <bruno@clisp.org>
54390
54391         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
54392         augmentation.
54393
54394 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
54395
54396         Add a configure time option: --disable-acl.
54397         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
54398         AC_ARG_ENABLE(acl).
54399
54400 2008-01-06  Simon Josefsson  <simon@josefsson.org>
54401
54402         * tests/test-localename.c: Don't include obsolete "setenv.h".
54403
54404         * modules/localename-tests (Depends-on): Need unsetenv.
54405
54406 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54407
54408         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
54409
54410 2008-01-06  Colin Watson  <cjwatson@debian.org>
54411
54412         * users.txt: Add man-db.
54413
54414 2008-01-07  Bruno Haible  <bruno@clisp.org>
54415
54416         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
54417         previous section name.
54418
54419 2008-01-07  Bruno Haible  <bruno@clisp.org>
54420
54421         * lib/progname.c (set_program_name): Don't strip off a leading
54422         "lt-" prefix outside a .libs directory.
54423         Suggested by Paul Eggert.
54424
54425 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
54426             Bruno Haible  <bruno@clisp.org>
54427
54428         Improve memory cleanup in 'relocatable' module.
54429         * lib/relocatable.h (compute_curr_prefix): Change return type to
54430         'char *'.
54431         * lib/relocatable.c (compute_curr_prefix): Change return type to
54432         'char *'. Free curr_installdir after use.
54433         (relocate): Free curr_prefix_better after use.
54434         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
54435
54436 2008-01-01  Bruno Haible  <bruno@clisp.org>
54437
54438         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
54439         failure on older glibc systems.
54440         Reported by Peter Fales <psfales@alcatel-lucent.com>.
54441
54442 2008-01-05  Eric Blake  <ebb9@byu.net>
54443
54444         Avoid quadratic system memmem.
54445         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
54446         Reported by Ralf Wildenhues.
54447
54448         Fix memmem test for mingw.
54449         * modules/memmem-tests (configure.ac): Check for alarm.
54450         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
54451         it.
54452         * doc/functions/memmem.texi: New file.
54453         * doc/gnulib.texi (Function Substitutes): Add memmem.
54454         Reported by Bruno Haible.
54455
54456 2008-01-04  Bruno Haible  <bruno@clisp.org>
54457
54458         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
54459         Require gl_HEADER_STRINGS_H_DEFAULTS, not
54460         gl_HEADER_STRING_H_DEFAULTS.
54461
54462 2008-01-04  Eric Blake  <ebb9@byu.net>
54463
54464         Shorten duration of memmem test.
54465         * tests/test-memmem.c (main): Use alarm to declare failure if test
54466         is taking too long.
54467         Reported by Ralf Wildenhues.
54468
54469 2007-12-21  Simon Josefsson  <simon@josefsson.org>
54470
54471         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
54472         string, needed by strerror.
54473
54474 2008-01-03  Colin Watson  <cjwatson@debian.org>
54475             Bruno Haible  <bruno@clisp.org>
54476
54477         * doc/gnulib-tool.texi (Localization): New section.
54478
54479 2008-01-02  Bruno Haible  <bruno@clisp.org>
54480
54481         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
54482         variables to 'unsigned char *' type.
54483         Reported by Paul Eggert.
54484
54485 2008-01-02  Jim Meyering  <jim@meyering.net>
54486
54487         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
54488
54489 2007-12-31  Jim Meyering  <jim@meyering.net>
54490
54491         Avoid use of private FTS type name.
54492         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
54493
54494 2007-12-30  Karl Berry  <karl@gnu.org>
54495
54496         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
54497         work around defect in Texinfo and/or the standalone Info browser.
54498
54499 2007-12-30  Bruno Haible  <bruno@clisp.org>
54500
54501         Unify 5 copies of the KMP code.
54502         * lib/str-kmp.h: New file.
54503         * lib/c-strcasestr.c: Include str-kmp.h.
54504         (knuth_morris_pratt): Remove function.
54505         (c_strcasestr): Update.
54506         * lib/c-strstr.c: Include str-kmp.h.
54507         (knuth_morris_pratt): Remove function.
54508         (c_strcasestr): Update.
54509         * lib/mbscasestr.c: Include str-kmp.h.
54510         (knuth_morris_pratt_unibyte): Remove function.
54511         * lib/mbsstr.c: Include str-kmp.h.
54512         (knuth_morris_pratt_unibyte): Remove function.
54513         * lib/strcasestr.c: Include str-kmp.h.
54514         (knuth_morris_pratt): Remove function.
54515         (strcasestr): Update.
54516         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
54517         * modules/c-strstr (Files): Likewise.
54518         * modules/mbscasestr (Files): Likewise.
54519         * modules/mbsstr (Files): Likewise.
54520         * modules/strcasestr (Files): Likewise.
54521         Suggested by Paul Eggert.
54522
54523 2007-12-30  Bruno Haible  <bruno@clisp.org>
54524
54525         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
54526         defined.
54527
54528 2007-12-30  Bruno Haible  <bruno@clisp.org>
54529
54530         * lib/xmalloca.h: Include xalloc.h.
54531         (xnmalloca): New macro.
54532
54533 2007-12-30  Bruno Haible  <bruno@clisp.org>
54534
54535         * lib/malloca.h (nmalloca): New macro.
54536         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
54537         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
54538         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
54539         knuth_morris_pratt_multibyte): Likewise.
54540         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
54541         knuth_morris_pratt_multibyte): Likewise.
54542         * lib/memmem.c (knuth_morris_pratt): Likewise.
54543         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
54544
54545 2007-12-25  Bruno Haible  <bruno@clisp.org>
54546
54547         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
54548         * lib/glob.c: Don't include openat.h.
54549         (link_exists2_p): Add back the code that deals with the
54550         !GLOB_ALTDIRFUNC case.
54551         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
54552         let it do the filename concatenation.
54553         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
54554         * modules/glob (Depends-on): Remove openat.
54555
54556 2007-12-31  Bruno Haible  <bruno@clisp.org>
54557
54558         * modules/dirfd (License): Change to LGPLv2+.
54559         Approved by Jim Meyering.
54560
54561 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
54562
54563         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
54564         when multiplying M by sizeof (size_t).
54565
54566 2007-12-10  Martin Lambers  <marlam@marlam.de>
54567
54568         Override getpagesize on mingw.
54569         * lib/getpagesize.c: New file.
54570         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
54571         * modules/getpagesize (Files): Add lib/getpagesize.c.
54572         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
54573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54574         REPLACE_GETPAGESIZE.
54575         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
54576
54577 2007-12-25  Bruno Haible  <bruno@clisp.org>
54578
54579         * modules/localcharset (Notice): New field.
54580         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
54581         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
54582
54583 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
54584             Bruno Haible  <bruno@clisp.org>
54585
54586         Avoid using the syntax symbol() in formatted documentation.
54587         * MODULES.html.sh (func_module): When replacing symbol() with a
54588         hyperlink, remove the parentheses. Show an error if some remain.
54589         Recognize and render the '...' syntax.
54590         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
54591         Rework. Add paragraph about GCC's inlining.
54592         * doc/alloca.texi: Likewise.
54593         * doc/error.texi: Remove parentheses from symbol reference.
54594         * doc/gnulib-intro.texi: Likewise.
54595         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
54596         * modules/fnmatch (Description): Reword to say "the ... function".
54597         * modules/full-read (Description): Likewise.
54598         * modules/full-write (Description): Likewise.
54599         * modules/safe-read (Description): Likewise.
54600         * modules/safe-write (Description): Likewise.
54601         * modules/strchrnul (Description): Likewise.
54602         * modules/trim (Description): Likewise.
54603         * modules/error (Description): Remove parentheses from symbol
54604         references.
54605         * modules/verror (Description): Likewise.
54606         Reported by Karl Berry.
54607
54608 2007-12-25  Bruno Haible  <bruno@clisp.org>
54609
54610         Fixup after 2007-10-16 commit.
54611         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
54612
54613 2007-12-24  Bruno Haible  <bruno@clisp.org>
54614
54615         Make --enable-relocatable work with DESTDIR.
54616         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
54617         to compute installdir from destprog.
54618         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
54619         also set the RELOC_DESTDIR variable.
54620         Reported by Левашев Иван <octagram@bluebottle.com>.
54621
54622 2007-12-24  Bruno Haible  <bruno@clisp.org>
54623
54624         Fix link error due to xalloc_die().
54625         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
54626         of xreadlink.
54627         * lib/relocwrapper.c: Update comments.
54628         * build-aux/install-reloc: Remove xreadlink.c from file list.
54629         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
54630         xreadlink.c.
54631         Reported by Левашев Иван <octagram@bluebottle.com>.
54632
54633 2007-12-24  Bruno Haible  <bruno@clisp.org>
54634
54635         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
54636         * lib/setenv.h: Remove file.
54637         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
54638         lib/setenv.h.
54639         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
54640         (Depends-on): Add stdlib.
54641         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
54642         gl_FUNC_UNSETENV.
54643         (Include): Replace setenv.h with <stdlib.h>.
54644         * modules/unsetenv: New file.
54645         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
54646         * lib/unsetenv.c: Include <stdlib.h> first.
54647         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
54648         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
54649         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
54650         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
54651         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
54652         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54653         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
54654         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54655         * doc/functions/unsetenv.texi: Update.
54656         * modules/xsetenv (Depends-on): Add unsetenv.
54657         * modules/getdate (Depends-on): Likewise.
54658         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
54659         * lib/xsetenv.c: Don't include setenv.h.
54660         * lib/getdate.y: Likewise.
54661         * lib/relocwrapper.c: Likewise.
54662         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
54663         (Depends-on): Add stdlib.
54664         * NEWS: Mention the changes.
54665         Reported by Левашев Иван <octagram@bluebottle.com>.
54666
54667 2007-12-23  Bruno Haible  <bruno@clisp.org>
54668
54669         * lib/memmem.c (memmem): Use lowercase variable names. Tab
54670         indentation.
54671
54672 2007-12-23  Bruno Haible  <bruno@clisp.org>
54673
54674         * lib/c-strcasestr.c: Add more comments.
54675         * lib/c-strstr.c: Likewise.
54676         * lib/mbscasestr.c: Likewise.
54677         * lib/mbsstr.c: Likewise.
54678         * lib/strcasestr.c: Likewise.
54679         * lib/memmem.c: Likewise.
54680
54681 2007-12-23  Bruno Haible  <bruno@clisp.org>
54682
54683         * tests/test-memmem.c: Include <string.h> first.
54684
54685 2007-12-22  Bruno Haible  <bruno@clisp.org>
54686
54687         * gnulib-tool (func_create_testdir): Change $auxdir while generating
54688         the contents of $testsbase.
54689         Reported by Ralf Wildenhues.
54690
54691 2007-12-22  Bruno Haible  <bruno@clisp.org>
54692
54693         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
54694         two variables local_ldadd_before, local_ldadd_last.
54695
54696 2007-12-20  Eric Blake  <ebb9@byu.net>
54697
54698         Work around circular library issue when cross-compiling.
54699         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
54700         that progname.o does not need to pull in rpl_memcmp.
54701
54702 2007-12-19  Eric Blake  <ebb9@byu.net>
54703
54704         Fix memmem to avoid O(n^2) worst-case complexity.
54705         * lib/memmem.c (knuth_morris_pratt): New function.
54706         (memmem): Use it if first few naive iterations fail.
54707         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
54708         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
54709         * modules/memchr (License): Likewise.
54710         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
54711         malloca.
54712         * tests/test-memmem.c: Rewrite, borrowing ideas from
54713         test-mbsstr1.c; the old version wouldn't even compile!
54714         * modules/memmem-tests: New file.
54715         * lib/string.in.h (rpl_memmem): Add declaration.
54716         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
54717         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
54718         REPLACE_MEMMEM.
54719
54720 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54721
54722         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
54723         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
54724         before any system include files, and undef after them all.  This
54725         should fix a problem on VMS reported by John E. Malmberg in
54726         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
54727
54728 2007-12-17  Eric Blake  <ebb9@byu.net>
54729
54730         Revert addition of verify, for BSD/OS.
54731         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
54732         can't handle large files, for the sake of obsolete platforms.
54733         * modules/fseeko (Depends-on): Remove verify.
54734         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
54735         * doc/functions/ftello.texi (ftello): Likewise.
54736         * doc/functions/fgetpos.texi (fgetpos): Likewise.
54737         Reported by Larry Jones.
54738
54739 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
54740
54741         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
54742         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
54743
54744 2007-12-17  Jim Meyering  <meyering@redhat.com>
54745
54746         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
54747         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
54748         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
54749         * modules/getcwd (Depends-on): Add openat.
54750         Reported by Petr Salinger.
54751
54752 2007-12-17  Bruno Haible  <bruno@clisp.org>
54753
54754         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
54755         avoid a segmentation fault of the configure test on x86_64 systems.
54756
54757 2007-12-15  Jim Meyering  <meyering@redhat.com>
54758
54759         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
54760
54761 2007-12-13  Eric Blake  <ebb9@byu.net>
54762
54763         Another fseek test.
54764         * tests/test-fseek.c (main): Also test ungetc handling.
54765         * tests/test-fseeko.c (main): Likewise.
54766         * modules/fseeko (Depends-on): Add verify.
54767         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
54768         large.
54769         Reported by Larry Jones.
54770
54771         Fix fseeko on mingw.
54772         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
54773         seek.
54774
54775         Beef up fseek tests.
54776         * tests/test-fseek.c (main): Also test eof handling.
54777         * tests/test-fseeko.c (main): Likewise.
54778         Reported by Larry Jones.
54779
54780 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
54781
54782         Fix fseeko on BSD-based platforms.
54783         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
54784         successful seek.
54785
54786 2007-12-12  Eric Blake  <ebb9@byu.net>
54787
54788         Allow circular dependency of separate libtests.a
54789         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
54790         when use_libtests.
54791
54792 2007-12-11  Eric Blake  <ebb9@byu.net>
54793
54794         Fix bug with -0.0L in previous patch.
54795         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
54796         * tests/test-isnan.c (main): Also test on zeroes.
54797         * tests/test-isnanf.c (main): Likewise.
54798         * tests/test-isnanl.h (main): Likewise.
54799
54800         Detect pseudo-denormals on x86 even when cross-compiling.
54801         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
54802         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
54803         invalid bit patterns that happen to satisfy ==.
54804
54805         Avoid link failures with separate libtests.a.
54806         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
54807         last, to satisfy circular dependencies.
54808
54809 2007-12-11  Eric Blake  <ebb9@byu.net>
54810         and Bruno Haible  <bruno@clisp.org>
54811
54812         Fix OpenBSD 4.0 <float.h> handling of long double.
54813         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
54814         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
54815         * doc/headers/float.texi (float.h): Document OpenBSD bug.
54816
54817 2007-12-11  Jim Meyering  <meyering@redhat.com>
54818
54819         * users.txt: Add libvirt.
54820
54821         Support versions of autoconf prior to 2.59c.
54822         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
54823         if it is not already defined.
54824
54825 2007-12-09  Bruno Haible  <bruno@clisp.org>
54826
54827         Let 'gnulib-tool --import' collect sources needed for the tests in
54828         tests/ rather than in lib/.
54829         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
54830         argument. If true, add rules to generate libtests.a, and put libtests.a
54831         into $(LDADD). Consider source files in subdirectories and set
54832         uses_subdirs.
54833         (func_emit_initmacro_start, func_emit_initmacro_end,
54834         func_emit_initmacro_done): Pass all arguments explicitly.
54835         (func_import): Determine two module lists main_modules,
54836         testsrelated_modules. Determine use_libtests. Determine two variables
54837         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
54838         instead of just sed_transform_lib_file. Determine two variables
54839         main_files and testsrelated_files. Compute 'files' as the union of
54840         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
54841         func_add_or_update. In the generated gnulib-comp.m4, collect the
54842         object files for tests/ in different variables than those for lib/.
54843         Substitute LIBTESTS_LIBDEPS.
54844         (func_create_testdir): Combine the uses_subdirs results from
54845         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
54846
54847 2007-12-09  Bruno Haible  <bruno@clisp.org>
54848
54849         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
54850         the build-aux directory.
54851
54852 2007-12-09  Bruno Haible  <bruno@clisp.org>
54853
54854         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
54855         introduced on 2006-09-09.
54856
54857 2007-12-07  Jim Meyering  <meyering@redhat.com>
54858
54859         Let these macros work also with autoconf-2.59.
54860         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
54861         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
54862         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54863
54864 2007-12-06  Jim Meyering  <meyering@redhat.com>
54865
54866         Avoid a configure-time syntax error in gl_FUNC_ACL.
54867         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
54868         function in each branch, before testing the cache variable.
54869
54870 2007-12-04  Eric Blake  <ebb9@byu.net>
54871
54872         Make scripts executable.
54873         * build-aux/config.guess: Add execute permissions.
54874         * build-aux/config.sub: Likewise.
54875         * build-aux/gendocs.sh: Likewise.
54876
54877         Fix frexp on mingw.
54878         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
54879         cross-compiling.
54880         * doc/functions/frexp.texi (frexp): Document the bug.
54881
54882         Make cygwin fseeko check more reliable.
54883         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
54884         version numbers, rather than unrelated feature check.
54885         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
54886         * doc/functions/ftello.texi (ftello): Likewise.
54887         Reported by Bruno Haible.
54888
54889         * m4/strerror.m4: Bump version number.
54890
54891 2007-12-03  Bruno Haible  <bruno@clisp.org>
54892
54893         * doc/functions/mprotect.texi: Mention the mingw problem.
54894
54895 2007-12-03  Eric Blake  <ebb9@byu.net>
54896
54897         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
54898         REPLACE_STRERROR is initialized before this macro.
54899
54900 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54901
54902         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
54903         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
54904         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
54905         put -lsec in even for programs other than 'ls'.  This fixes a problem
54906         for gettext reported by Bruno Haible in
54907         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
54908         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
54909         Add support for Solaris 10.  This isn't efficient, but should get the
54910         job done for now.
54911
54912 2007-12-03  James Youngman  <jay@gnu.org>
54913
54914         * doc/regexprops-generic.texi: change "an close-group" to "a
54915         close-group" and "illegal" to "not allowed".
54916
54917 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54918
54919         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
54920         pr_byname.h. Needed for the rare case when the maintainer has done
54921         "make maintainer-clean" in the source directory and then attempts a
54922         build outside the source directory.
54923         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
54924         scripts_byname.h.
54925
54926 2007-12-02  Martin Lambers <marlam@marlam.de>
54927             Bruno Haible  <bruno@clisp.org>
54928
54929         * lib/getpagesize.h: Remove file.
54930         * lib/unistd.in.h: Include declaration of getpagesize here.
54931         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
54932         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
54933         HAVE_SYS_PARAM_H.
54934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
54935         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54936         * modules/getpagesize (Files): Remove lib/getpagesize.h.
54937         (Depends-on): Add unistd.
54938         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54939         (Include): Use <unistd.h> instead of getpagesize.h.
54940         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
54941         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54942         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
54943         gl_GETPAGESIZE invocation, already handled by module dependency.
54944         * lib/pagealign_alloc.c: Don't include getpagesize.h.
54945
54946 2007-12-02  Bruno Haible  <bruno@clisp.org>
54947
54948         * modules/strings-tests: New file.
54949         * tests/test-strings.c: New file.
54950
54951         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
54952         * lib/strings.in.h: New file.
54953         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
54954         * m4/strings_h.m4: New file.
54955         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
54956         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
54957         * modules/strings: New file.
54958         * modules/string (Makefile.am): Update.
54959         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
54960         Reported by Karl Berry.
54961
54962 2007-12-01  Eric Blake  <ebb9@byu.net>
54963
54964         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
54965         accomodate fix in cygwin 1.5.25.
54966
54967 2007-12-01  Jim Meyering  <meyering@redhat.com>
54968
54969         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
54970         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
54971         that would inhibit utf8-optimization of a regexp containing line-
54972         or buffer-anchors, e.g., `^', `$'.
54973
54974 2007-11-30  Bruno Haible  <bruno@clisp.org>
54975
54976         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
54977         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
54978         glthread_recursive_lock_init.
54979         * lib/lock.c (glthread_recursive_lock_init)
54980         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
54981         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54982
54983 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
54984
54985         New function qset_acl, like set_acl but with syscall semantics.
54986         * lib/acl.h (qset_acl): New decl.
54987         * lib/acl.c (qset_acl): New function.
54988         (set_acl): Use new function.  Use more-consistent diagnostics.
54989
54990 2007-11-28  Jim Meyering  <meyering@redhat.com>
54991
54992         * modules/physmem (License): Change from GPL to LGPLv2+.
54993
54994 2007-11-26  Bruno Haible  <bruno@clisp.org>
54995
54996         * lib/vasnprintf.c (decode_long_double): Don't abort if the
54997         'long double' type has excess precision.
54998         Reported by Jim Meyering in
54999         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
55000
55001 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55002
55003         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
55004         Sync from <http://gnu.org/licenses>.
55005         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
55006         with license text from same location.
55007         * doc/maintain.texi, doc/standards.texi:  Sync from
55008         <http://savannah.gnu.org/projects/gnustandards>.
55009
55010 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
55011         and Jim Meyering  <meyering@redhat.com>
55012
55013         Adjust getdate' grammar to accept a slightly more regular language.
55014         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
55015         Before, the former was rejected.
55016         * lib/getdate.y (digits_to_date_time): New function, factored
55017         out of ...
55018         (number): ...here.  Just call digits_to_date_time.
55019         (hybrid): New non-terminal to handle an <unsigned number,
55020         signed relative offset> sequence consistently.
55021
55022 2007-11-18  Jim Meyering  <meyering@redhat.com>
55023
55024         Pull my changes from coreutils:
55025         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
55026         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
55027         use of $gnulib_tool_option_extras, so that it's separated from the
55028         preceding argument.
55029
55030         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
55031         * build-aux/bootstrap (cp_mark_as_generated): Create any required
55032         parent destination directories before copying a file into place.
55033
55034 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
55035
55036         bootstrap: work also with 4-argument variant of AC_INIT
55037         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
55038
55039 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55040
55041         Port test-getaddrinfo to Solaris.
55042         Problem reported by Bruno Haible in
55043         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
55044         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
55045         explanation of setting 'hints'.
55046         Don't reject an implementation merely because it returns EAI_SERVICE.
55047         (EAI_SERVICE): Define to 0 if not defined.
55048
55049 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
55050
55051         The license of gnu-make and posix-shell is now "GPLed build tool".
55052         * modules/gnu-make (License): Likewise.
55053         * modules/posix-shell (License): Likewise.
55054
55055         New module posix-shell, for determining a POSIX shell
55056         or perhaps something that is close enough to a POSIX shell.
55057         * m4/posix-shell.m4: New file.
55058         * modules/posix-shell: New file.
55059
55060         * MODULES.html.sh: Mention new module.
55061
55062         New module gnu-make, for determining whether we're using GNU Make.
55063         * m4/gnu-make.m4: New file.
55064         * modules/gnu-make: New file.
55065         * MODULES.html.sh: Mention new module.
55066
55067 2007-11-14  Jim Meyering  <meyering@redhat.com>
55068
55069         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
55070         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
55071         use this macro to create a function _definition_.
55072         Remove useless "#undef ARGMATCH_DIE".
55073
55074 2007-11-14  Bruno Haible  <bruno@clisp.org>
55075
55076         * lib/config.charset: Update for OpenBSD 4.1.
55077         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
55078
55079 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
55080
55081         Document 64-bit #if problems in stdint.texi.
55082         * doc/headers/stdint.texi (stdint.h): Mention problems with
55083         64-bit-#if, and how to work around them.
55084
55085         Don't insist on 'long long int' support in the preprocessor.  It
55086         breaks too many things.  For example, PRIdMAX still uses a 'long
55087         long int' format with the latest Sun compiler, even though
55088         HAVE_LONG_LONG_INT isn't defined due to that compiler's
55089         preprocessor problem.  This causes the latest coreutils to dump
55090         core on Solaris 10 sparc with the Sun C compiler.
55091         Instead, fix the 2007-10-16 problem in a different way, by evaluating
55092         the troublesome expressions at configure-time, not at #if-time.
55093         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
55094         preprocessor.
55095         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
55096         compile-time C checks, done at 'configure'-time.
55097         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
55098         * modules/inttypes (Makefile): Substitute the new symbols that
55099         gl_INTTYPES_H now generates.
55100         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
55101
55102 2007-11-12  Bruno Haible  <bruno@clisp.org>
55103
55104         Tests for Unicode character classification functions.
55105
55106         * modules/unictype/bidicategory-byname-tests: New file.
55107         * modules/unictype/bidicategory-name-tests: New file.
55108         * modules/unictype/bidicategory-of-tests: New file.
55109         * modules/unictype/bidicategory-test-tests: New file.
55110         * modules/unictype/block-list-tests: New file.
55111         * modules/unictype/block-of-tests: New file.
55112         * modules/unictype/block-test-tests: New file.
55113         * modules/unictype/category-C-tests: New file.
55114         * modules/unictype/category-Cc-tests: New file.
55115         * modules/unictype/category-Cf-tests: New file.
55116         * modules/unictype/category-Cn-tests: New file.
55117         * modules/unictype/category-Co-tests: New file.
55118         * modules/unictype/category-Cs-tests: New file.
55119         * modules/unictype/category-L-tests: New file.
55120         * modules/unictype/category-Ll-tests: New file.
55121         * modules/unictype/category-Lm-tests: New file.
55122         * modules/unictype/category-Lo-tests: New file.
55123         * modules/unictype/category-Lt-tests: New file.
55124         * modules/unictype/category-Lu-tests: New file.
55125         * modules/unictype/category-M-tests: New file.
55126         * modules/unictype/category-Mc-tests: New file.
55127         * modules/unictype/category-Me-tests: New file.
55128         * modules/unictype/category-Mn-tests: New file.
55129         * modules/unictype/category-N-tests: New file.
55130         * modules/unictype/category-Nd-tests: New file.
55131         * modules/unictype/category-Nl-tests: New file.
55132         * modules/unictype/category-No-tests: New file.
55133         * modules/unictype/category-P-tests: New file.
55134         * modules/unictype/category-Pc-tests: New file.
55135         * modules/unictype/category-Pd-tests: New file.
55136         * modules/unictype/category-Pe-tests: New file.
55137         * modules/unictype/category-Pf-tests: New file.
55138         * modules/unictype/category-Pi-tests: New file.
55139         * modules/unictype/category-Po-tests: New file.
55140         * modules/unictype/category-Ps-tests: New file.
55141         * modules/unictype/category-S-tests: New file.
55142         * modules/unictype/category-Sc-tests: New file.
55143         * modules/unictype/category-Sk-tests: New file.
55144         * modules/unictype/category-Sm-tests: New file.
55145         * modules/unictype/category-So-tests: New file.
55146         * modules/unictype/category-Z-tests: New file.
55147         * modules/unictype/category-Zl-tests: New file.
55148         * modules/unictype/category-Zp-tests: New file.
55149         * modules/unictype/category-Zs-tests: New file.
55150         * modules/unictype/category-and-not-tests: New file.
55151         * modules/unictype/category-and-tests: New file.
55152         * modules/unictype/category-byname-tests: New file.
55153         * modules/unictype/category-name-tests: New file.
55154         * modules/unictype/category-none-tests: New file.
55155         * modules/unictype/category-of-tests: New file.
55156         * modules/unictype/category-or-tests: New file.
55157         * modules/unictype/category-test-withtable-tests: New file.
55158         * modules/unictype/combining-class-tests: New file.
55159         * modules/unictype/ctype-alnum-tests: New file.
55160         * modules/unictype/ctype-alpha-tests: New file.
55161         * modules/unictype/ctype-blank-tests: New file.
55162         * modules/unictype/ctype-cntrl-tests: New file.
55163         * modules/unictype/ctype-digit-tests: New file.
55164         * modules/unictype/ctype-graph-tests: New file.
55165         * modules/unictype/ctype-lower-tests: New file.
55166         * modules/unictype/ctype-print-tests: New file.
55167         * modules/unictype/ctype-punct-tests: New file.
55168         * modules/unictype/ctype-space-tests: New file.
55169         * modules/unictype/ctype-upper-tests: New file.
55170         * modules/unictype/ctype-xdigit-tests: New file.
55171         * modules/unictype/decimal-digit-tests: New file.
55172         * modules/unictype/digit-tests: New file.
55173         * modules/unictype/mirror-tests: New file.
55174         * modules/unictype/numeric-tests: New file.
55175         * modules/unictype/property-alphabetic-tests: New file.
55176         * modules/unictype/property-ascii-hex-digit-tests: New file.
55177         * modules/unictype/property-bidi-arabic-digit-tests: New file.
55178         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
55179         * modules/unictype/property-bidi-block-separator-tests: New file.
55180         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
55181         * modules/unictype/property-bidi-common-separator-tests: New file.
55182         * modules/unictype/property-bidi-control-tests: New file.
55183         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
55184         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
55185         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
55186         * modules/unictype/property-bidi-european-digit-tests: New file.
55187         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
55188         * modules/unictype/property-bidi-left-to-right-tests: New file.
55189         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
55190         * modules/unictype/property-bidi-other-neutral-tests: New file.
55191         * modules/unictype/property-bidi-pdf-tests: New file.
55192         * modules/unictype/property-bidi-segment-separator-tests: New file.
55193         * modules/unictype/property-bidi-whitespace-tests: New file.
55194         * modules/unictype/property-byname-tests: New file.
55195         * modules/unictype/property-combining-tests: New file.
55196         * modules/unictype/property-composite-tests: New file.
55197         * modules/unictype/property-currency-symbol-tests: New file.
55198         * modules/unictype/property-dash-tests: New file.
55199         * modules/unictype/property-decimal-digit-tests: New file.
55200         * modules/unictype/property-default-ignorable-code-point-tests: New file.
55201         * modules/unictype/property-deprecated-tests: New file.
55202         * modules/unictype/property-diacritic-tests: New file.
55203         * modules/unictype/property-extender-tests: New file.
55204         * modules/unictype/property-format-control-tests: New file.
55205         * modules/unictype/property-grapheme-base-tests: New file.
55206         * modules/unictype/property-grapheme-extend-tests: New file.
55207         * modules/unictype/property-grapheme-link-tests: New file.
55208         * modules/unictype/property-hex-digit-tests: New file.
55209         * modules/unictype/property-hyphen-tests: New file.
55210         * modules/unictype/property-id-continue-tests: New file.
55211         * modules/unictype/property-id-start-tests: New file.
55212         * modules/unictype/property-ideographic-tests: New file.
55213         * modules/unictype/property-ids-binary-operator-tests: New file.
55214         * modules/unictype/property-ids-trinary-operator-tests: New file.
55215         * modules/unictype/property-ignorable-control-tests: New file.
55216         * modules/unictype/property-iso-control-tests: New file.
55217         * modules/unictype/property-join-control-tests: New file.
55218         * modules/unictype/property-left-of-pair-tests: New file.
55219         * modules/unictype/property-line-separator-tests: New file.
55220         * modules/unictype/property-logical-order-exception-tests: New file.
55221         * modules/unictype/property-lowercase-tests: New file.
55222         * modules/unictype/property-math-tests: New file.
55223         * modules/unictype/property-non-break-tests: New file.
55224         * modules/unictype/property-not-a-character-tests: New file.
55225         * modules/unictype/property-numeric-tests: New file.
55226         * modules/unictype/property-other-alphabetic-tests: New file.
55227         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
55228         * modules/unictype/property-other-grapheme-extend-tests: New file.
55229         * modules/unictype/property-other-id-continue-tests: New file.
55230         * modules/unictype/property-other-id-start-tests: New file.
55231         * modules/unictype/property-other-lowercase-tests: New file.
55232         * modules/unictype/property-other-math-tests: New file.
55233         * modules/unictype/property-other-uppercase-tests: New file.
55234         * modules/unictype/property-paired-punctuation-tests: New file.
55235         * modules/unictype/property-paragraph-separator-tests: New file.
55236         * modules/unictype/property-pattern-syntax-tests: New file.
55237         * modules/unictype/property-pattern-white-space-tests: New file.
55238         * modules/unictype/property-private-use-tests: New file.
55239         * modules/unictype/property-punctuation-tests: New file.
55240         * modules/unictype/property-quotation-mark-tests: New file.
55241         * modules/unictype/property-radical-tests: New file.
55242         * modules/unictype/property-sentence-terminal-tests: New file.
55243         * modules/unictype/property-soft-dotted-tests: New file.
55244         * modules/unictype/property-space-tests: New file.
55245         * modules/unictype/property-terminal-punctuation-tests: New file.
55246         * modules/unictype/property-test-tests: New file.
55247         * modules/unictype/property-titlecase-tests: New file.
55248         * modules/unictype/property-unassigned-code-value-tests: New file.
55249         * modules/unictype/property-unified-ideograph-tests: New file.
55250         * modules/unictype/property-uppercase-tests: New file.
55251         * modules/unictype/property-variation-selector-tests: New file.
55252         * modules/unictype/property-white-space-tests: New file.
55253         * modules/unictype/property-xid-continue-tests: New file.
55254         * modules/unictype/property-xid-start-tests: New file.
55255         * modules/unictype/property-zero-width-tests: New file.
55256         * modules/unictype/scripts-tests: New file.
55257         * modules/unictype/syntax-c-ident-tests: New file.
55258         * modules/unictype/syntax-c-whitespace-tests: New file.
55259         * modules/unictype/syntax-java-ident-tests: New file.
55260         * modules/unictype/syntax-java-whitespace-tests: New file.
55261         * tests/unictype/test-bidi_byname.c: New file.
55262         * tests/unictype/test-bidi_name.c: New file.
55263         * tests/unictype/test-bidi_of.c: New file.
55264         * tests/unictype/test-bidi_test.c: New file.
55265         * tests/unictype/test-block_list.c: New file.
55266         * tests/unictype/test-block_of.c: New file.
55267         * tests/unictype/test-block_test.c: New file.
55268         * tests/unictype/test-categ_and.c: New file.
55269         * tests/unictype/test-categ_and_not.c: New file.
55270         * tests/unictype/test-categ_byname.c: New file.
55271         * tests/unictype/test-categ_name.c: New file.
55272         * tests/unictype/test-categ_none.c: New file.
55273         * tests/unictype/test-categ_of.c: New file.
55274         * tests/unictype/test-categ_or.c: New file.
55275         * tests/unictype/test-categ_test_withtable.c: New file.
55276         * tests/unictype/test-combining.c: New file.
55277         * tests/unictype/test-decdigit.c: New file.
55278         * tests/unictype/test-digit.c: New file.
55279         * tests/unictype/test-mirror.c: New file.
55280         * tests/unictype/test-numeric.c: New file.
55281         * tests/unictype/test-pr_byname.c: New file.
55282         * tests/unictype/test-pr_test.c: New file.
55283         * tests/unictype/test-predicate-part1.h: New file.
55284         * tests/unictype/test-predicate-part2.h: New file.
55285         * tests/unictype/test-scripts.c: New file.
55286         * tests/unictype/test-sy_c_ident.c: New file.
55287         * tests/unictype/test-sy_java_ident.c: New file.
55288
55289         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
55290         for Unicode 5.0.0.
55291         * tests/unictype/test-categ_Cc.c: Likewise.
55292         * tests/unictype/test-categ_Cf.c: Likewise.
55293         * tests/unictype/test-categ_Cn.c: Likewise.
55294         * tests/unictype/test-categ_Co.c: Likewise.
55295         * tests/unictype/test-categ_Cs.c: Likewise.
55296         * tests/unictype/test-categ_L.c: Likewise.
55297         * tests/unictype/test-categ_Ll.c: Likewise.
55298         * tests/unictype/test-categ_Lm.c: Likewise.
55299         * tests/unictype/test-categ_Lo.c: Likewise.
55300         * tests/unictype/test-categ_Lt.c: Likewise.
55301         * tests/unictype/test-categ_Lu.c: Likewise.
55302         * tests/unictype/test-categ_M.c: Likewise.
55303         * tests/unictype/test-categ_Mc.c: Likewise.
55304         * tests/unictype/test-categ_Me.c: Likewise.
55305         * tests/unictype/test-categ_Mn.c: Likewise.
55306         * tests/unictype/test-categ_N.c: Likewise.
55307         * tests/unictype/test-categ_Nd.c: Likewise.
55308         * tests/unictype/test-categ_Nl.c: Likewise.
55309         * tests/unictype/test-categ_No.c: Likewise.
55310         * tests/unictype/test-categ_P.c: Likewise.
55311         * tests/unictype/test-categ_Pc.c: Likewise.
55312         * tests/unictype/test-categ_Pd.c: Likewise.
55313         * tests/unictype/test-categ_Pe.c: Likewise.
55314         * tests/unictype/test-categ_Pf.c: Likewise.
55315         * tests/unictype/test-categ_Pi.c: Likewise.
55316         * tests/unictype/test-categ_Po.c: Likewise.
55317         * tests/unictype/test-categ_Ps.c: Likewise.
55318         * tests/unictype/test-categ_S.c: Likewise.
55319         * tests/unictype/test-categ_Sc.c: Likewise.
55320         * tests/unictype/test-categ_Sk.c: Likewise.
55321         * tests/unictype/test-categ_Sm.c: Likewise.
55322         * tests/unictype/test-categ_So.c: Likewise.
55323         * tests/unictype/test-categ_Z.c: Likewise.
55324         * tests/unictype/test-categ_Zl.c: Likewise.
55325         * tests/unictype/test-categ_Zp.c: Likewise.
55326         * tests/unictype/test-categ_Zs.c: Likewise.
55327         * tests/unictype/test-ctype_alnum.c: Likewise.
55328         * tests/unictype/test-ctype_alpha.c: Likewise.
55329         * tests/unictype/test-ctype_blank.c: Likewise.
55330         * tests/unictype/test-ctype_cntrl.c: Likewise.
55331         * tests/unictype/test-ctype_digit.c: Likewise.
55332         * tests/unictype/test-ctype_graph.c: Likewise.
55333         * tests/unictype/test-ctype_lower.c: Likewise.
55334         * tests/unictype/test-ctype_print.c: Likewise.
55335         * tests/unictype/test-ctype_punct.c: Likewise.
55336         * tests/unictype/test-ctype_space.c: Likewise.
55337         * tests/unictype/test-ctype_upper.c: Likewise.
55338         * tests/unictype/test-ctype_xdigit.c: Likewise.
55339         * tests/unictype/test-decdigit.h: Likewise.
55340         * tests/unictype/test-digit.h: Likewise.
55341         * tests/unictype/test-numeric.h: Likewise.
55342         * tests/unictype/test-pr_alphabetic.c: Likewise.
55343         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
55344         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
55345         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
55346         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
55347         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
55348         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
55349         * tests/unictype/test-pr_bidi_control.c: Likewise.
55350         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
55351         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
55352         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
55353         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
55354         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
55355         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
55356         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
55357         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
55358         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
55359         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
55360         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
55361         * tests/unictype/test-pr_combining.c: Likewise.
55362         * tests/unictype/test-pr_composite.c: Likewise.
55363         * tests/unictype/test-pr_currency_symbol.c: Likewise.
55364         * tests/unictype/test-pr_dash.c: Likewise.
55365         * tests/unictype/test-pr_decimal_digit.c: Likewise.
55366         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
55367         * tests/unictype/test-pr_deprecated.c: Likewise.
55368         * tests/unictype/test-pr_diacritic.c: Likewise.
55369         * tests/unictype/test-pr_extender.c: Likewise.
55370         * tests/unictype/test-pr_format_control.c: Likewise.
55371         * tests/unictype/test-pr_grapheme_base.c: Likewise.
55372         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
55373         * tests/unictype/test-pr_grapheme_link.c: Likewise.
55374         * tests/unictype/test-pr_hex_digit.c: Likewise.
55375         * tests/unictype/test-pr_hyphen.c: Likewise.
55376         * tests/unictype/test-pr_id_continue.c: Likewise.
55377         * tests/unictype/test-pr_id_start.c: Likewise.
55378         * tests/unictype/test-pr_ideographic.c: Likewise.
55379         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
55380         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
55381         * tests/unictype/test-pr_ignorable_control.c: Likewise.
55382         * tests/unictype/test-pr_iso_control.c: Likewise.
55383         * tests/unictype/test-pr_join_control.c: Likewise.
55384         * tests/unictype/test-pr_left_of_pair.c: Likewise.
55385         * tests/unictype/test-pr_line_separator.c: Likewise.
55386         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
55387         * tests/unictype/test-pr_lowercase.c: Likewise.
55388         * tests/unictype/test-pr_math.c: Likewise.
55389         * tests/unictype/test-pr_non_break.c: Likewise.
55390         * tests/unictype/test-pr_not_a_character.c: Likewise.
55391         * tests/unictype/test-pr_numeric.c: Likewise.
55392         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
55393         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
55394         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
55395         * tests/unictype/test-pr_other_id_continue.c: Likewise.
55396         * tests/unictype/test-pr_other_id_start.c: Likewise.
55397         * tests/unictype/test-pr_other_lowercase.c: Likewise.
55398         * tests/unictype/test-pr_other_math.c: Likewise.
55399         * tests/unictype/test-pr_other_uppercase.c: Likewise.
55400         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
55401         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
55402         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
55403         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
55404         * tests/unictype/test-pr_private_use.c: Likewise.
55405         * tests/unictype/test-pr_punctuation.c: Likewise.
55406         * tests/unictype/test-pr_quotation_mark.c: Likewise.
55407         * tests/unictype/test-pr_radical.c: Likewise.
55408         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
55409         * tests/unictype/test-pr_soft_dotted.c: Likewise.
55410         * tests/unictype/test-pr_space.c: Likewise.
55411         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
55412         * tests/unictype/test-pr_titlecase.c: Likewise.
55413         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
55414         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
55415         * tests/unictype/test-pr_uppercase.c: Likewise.
55416         * tests/unictype/test-pr_variation_selector.c: Likewise.
55417         * tests/unictype/test-pr_white_space.c: Likewise.
55418         * tests/unictype/test-pr_xid_continue.c: Likewise.
55419         * tests/unictype/test-pr_xid_start.c: Likewise.
55420         * tests/unictype/test-pr_zero_width.c: Likewise.
55421         * tests/unictype/test-sy_c_whitespace.c: Likewise.
55422         * tests/unictype/test-sy_java_whitespace.c: Likewise.
55423
55424 2007-11-12  Bruno Haible  <bruno@clisp.org>
55425
55426         Unicode character classification functions.
55427         * lib/unictype.h: New file.
55428         * modules/unictype/base: New file.
55429         * modules/unictype/category-L: New file.
55430         * modules/unictype/category-Lu: New file.
55431         * modules/unictype/category-Ll: New file.
55432         * modules/unictype/category-Lt: New file.
55433         * modules/unictype/category-Lm: New file.
55434         * modules/unictype/category-Lo: New file.
55435         * modules/unictype/category-M: New file.
55436         * modules/unictype/category-Mn: New file.
55437         * modules/unictype/category-Mc: New file.
55438         * modules/unictype/category-Me: New file.
55439         * modules/unictype/category-N: New file.
55440         * modules/unictype/category-Nd: New file.
55441         * modules/unictype/category-Nl: New file.
55442         * modules/unictype/category-No: New file.
55443         * modules/unictype/category-P: New file.
55444         * modules/unictype/category-Pc: New file.
55445         * modules/unictype/category-Pd: New file.
55446         * modules/unictype/category-Ps: New file.
55447         * modules/unictype/category-Pe: New file.
55448         * modules/unictype/category-Pi: New file.
55449         * modules/unictype/category-Pf: New file.
55450         * modules/unictype/category-Po: New file.
55451         * modules/unictype/category-S: New file.
55452         * modules/unictype/category-Sm: New file.
55453         * modules/unictype/category-Sc: New file.
55454         * modules/unictype/category-Sk: New file.
55455         * modules/unictype/category-So: New file.
55456         * modules/unictype/category-Z: New file.
55457         * modules/unictype/category-Zs: New file.
55458         * modules/unictype/category-Zl: New file.
55459         * modules/unictype/category-Zp: New file.
55460         * modules/unictype/category-C: New file.
55461         * modules/unictype/category-Cc: New file.
55462         * modules/unictype/category-Cf: New file.
55463         * modules/unictype/category-Cs: New file.
55464         * modules/unictype/category-Co: New file.
55465         * modules/unictype/category-Cn: New file.
55466         * modules/unictype/category-or: New file.
55467         * modules/unictype/category-of: New file.
55468         * modules/unictype/category-test: New file.
55469         * modules/unictype/category-test-withtable: New file.
55470         * modules/unictype/category-byname: New file.
55471         * modules/unictype/category-none: New file.
55472         * modules/unictype/category-and: New file.
55473         * modules/unictype/category-and-not: New file.
55474         * modules/unictype/category-name: New file.
55475         * modules/unictype/combining-class: New file.
55476         * modules/unictype/category-all: New file.
55477         * modules/unictype/bidicategory-all: New file.
55478         * modules/unictype/bidicategory-byname: New file.
55479         * modules/unictype/bidicategory-name: New file.
55480         * modules/unictype/bidicategory-of: New file.
55481         * modules/unictype/bidicategory-test: New file.
55482         * modules/unictype/decimal-digit: New file.
55483         * modules/unictype/digit: New file.
55484         * modules/unictype/numeric: New file.
55485         * modules/unictype/mirror: New file.
55486         * modules/unictype/property-white-space: New file.
55487         * modules/unictype/property-alphabetic: New file.
55488         * modules/unictype/property-other-alphabetic: New file.
55489         * modules/unictype/property-not-a-character: New file.
55490         * modules/unictype/property-default-ignorable-code-point: New file.
55491         * modules/unictype/property-other-default-ignorable-code-point: New
55492         file.
55493         * modules/unictype/property-deprecated: New file.
55494         * modules/unictype/property-logical-order-exception: New file.
55495         * modules/unictype/property-variation-selector: New file.
55496         * modules/unictype/property-private-use: New file.
55497         * modules/unictype/property-unassigned-code-value: New file.
55498         * modules/unictype/property-uppercase: New file.
55499         * modules/unictype/property-other-uppercase: New file.
55500         * modules/unictype/property-lowercase: New file.
55501         * modules/unictype/property-other-lowercase: New file.
55502         * modules/unictype/property-titlecase: New file.
55503         * modules/unictype/property-soft-dotted: New file.
55504         * modules/unictype/property-id-start: New file.
55505         * modules/unictype/property-other-id-start: New file.
55506         * modules/unictype/property-id-continue: New file.
55507         * modules/unictype/property-other-id-continue: New file.
55508         * modules/unictype/property-xid-start: New file.
55509         * modules/unictype/property-xid-continue: New file.
55510         * modules/unictype/property-pattern-white-space: New file.
55511         * modules/unictype/property-pattern-syntax: New file.
55512         * modules/unictype/property-join-control: New file.
55513         * modules/unictype/property-grapheme-base: New file.
55514         * modules/unictype/property-grapheme-extend: New file.
55515         * modules/unictype/property-other-grapheme-extend: New file.
55516         * modules/unictype/property-grapheme-link: New file.
55517         * modules/unictype/property-bidi-control: New file.
55518         * modules/unictype/property-bidi-left-to-right: New file.
55519         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
55520         * modules/unictype/property-bidi-arabic-right-to-left: New file.
55521         * modules/unictype/property-bidi-european-digit: New file.
55522         * modules/unictype/property-bidi-eur-num-separator: New file.
55523         * modules/unictype/property-bidi-eur-num-terminator: New file.
55524         * modules/unictype/property-bidi-arabic-digit: New file.
55525         * modules/unictype/property-bidi-common-separator: New file.
55526         * modules/unictype/property-bidi-block-separator: New file.
55527         * modules/unictype/property-bidi-segment-separator: New file.
55528         * modules/unictype/property-bidi-whitespace: New file.
55529         * modules/unictype/property-bidi-non-spacing-mark: New file.
55530         * modules/unictype/property-bidi-boundary-neutral: New file.
55531         * modules/unictype/property-bidi-pdf: New file.
55532         * modules/unictype/property-bidi-embedding-or-override: New file.
55533         * modules/unictype/property-bidi-other-neutral: New file.
55534         * modules/unictype/property-hex-digit: New file.
55535         * modules/unictype/property-ascii-hex-digit: New file.
55536         * modules/unictype/property-ideographic: New file.
55537         * modules/unictype/property-unified-ideograph: New file.
55538         * modules/unictype/property-radical: New file.
55539         * modules/unictype/property-ids-binary-operator: New file.
55540         * modules/unictype/property-ids-trinary-operator: New file.
55541         * modules/unictype/property-zero-width: New file.
55542         * modules/unictype/property-space: New file.
55543         * modules/unictype/property-non-break: New file.
55544         * modules/unictype/property-iso-control: New file.
55545         * modules/unictype/property-format-control: New file.
55546         * modules/unictype/property-dash: New file.
55547         * modules/unictype/property-hyphen: New file.
55548         * modules/unictype/property-punctuation: New file.
55549         * modules/unictype/property-line-separator: New file.
55550         * modules/unictype/property-paragraph-separator: New file.
55551         * modules/unictype/property-quotation-mark: New file.
55552         * modules/unictype/property-sentence-terminal: New file.
55553         * modules/unictype/property-terminal-punctuation: New file.
55554         * modules/unictype/property-currency-symbol: New file.
55555         * modules/unictype/property-math: New file.
55556         * modules/unictype/property-other-math: New file.
55557         * modules/unictype/property-paired-punctuation: New file.
55558         * modules/unictype/property-left-of-pair: New file.
55559         * modules/unictype/property-combining: New file.
55560         * modules/unictype/property-composite: New file.
55561         * modules/unictype/property-decimal-digit: New file.
55562         * modules/unictype/property-numeric: New file.
55563         * modules/unictype/property-diacritic: New file.
55564         * modules/unictype/property-extender: New file.
55565         * modules/unictype/property-ignorable-control: New file.
55566         * modules/unictype/property-test: New file.
55567         * modules/unictype/property-byname: New file.
55568         * modules/unictype/property-all: New file.
55569         * modules/unictype/scripts: New file.
55570         * modules/unictype/scripts-all: New file.
55571         * modules/unictype/block-of: New file.
55572         * modules/unictype/block-test: New file.
55573         * modules/unictype/block-list: New file.
55574         * modules/unictype/block-all: New file.
55575         * modules/unictype/syntax-c-whitespace: New file.
55576         * modules/unictype/syntax-java-whitespace: New file.
55577         * modules/unictype/syntax-c-ident: New file.
55578         * modules/unictype/syntax-java-ident: New file.
55579         * modules/unictype/ctype-alnum: New file.
55580         * modules/unictype/ctype-alpha: New file.
55581         * modules/unictype/ctype-cntrl: New file.
55582         * modules/unictype/ctype-digit: New file.
55583         * modules/unictype/ctype-graph: New file.
55584         * modules/unictype/ctype-lower: New file.
55585         * modules/unictype/ctype-print: New file.
55586         * modules/unictype/ctype-punct: New file.
55587         * modules/unictype/ctype-space: New file.
55588         * modules/unictype/ctype-upper: New file.
55589         * modules/unictype/ctype-xdigit: New file.
55590         * modules/unictype/ctype-blank: New file.
55591         * lib/unictype/bidi_byname.c: New file.
55592         * lib/unictype/bidi_name.c: New file.
55593         * lib/unictype/bidi_of.c: New file.
55594         * lib/unictype/bidi_test.c: New file.
55595         * lib/unictype/bitmap.h: New file.
55596         * lib/unictype/block_test.c: New file.
55597         * lib/unictype/blocks.c: New file.
55598         * lib/unictype/categ_C.c: New file.
55599         * lib/unictype/categ_Cc.c: New file.
55600         * lib/unictype/categ_Cf.c: New file.
55601         * lib/unictype/categ_Cn.c: New file.
55602         * lib/unictype/categ_Co.c: New file.
55603         * lib/unictype/categ_Cs.c: New file.
55604         * lib/unictype/categ_L.c: New file.
55605         * lib/unictype/categ_Ll.c: New file.
55606         * lib/unictype/categ_Lm.c: New file.
55607         * lib/unictype/categ_Lo.c: New file.
55608         * lib/unictype/categ_Lt.c: New file.
55609         * lib/unictype/categ_Lu.c: New file.
55610         * lib/unictype/categ_M.c: New file.
55611         * lib/unictype/categ_Mc.c: New file.
55612         * lib/unictype/categ_Me.c: New file.
55613         * lib/unictype/categ_Mn.c: New file.
55614         * lib/unictype/categ_N.c: New file.
55615         * lib/unictype/categ_Nd.c: New file.
55616         * lib/unictype/categ_Nl.c: New file.
55617         * lib/unictype/categ_No.c: New file.
55618         * lib/unictype/categ_P.c: New file.
55619         * lib/unictype/categ_Pc.c: New file.
55620         * lib/unictype/categ_Pd.c: New file.
55621         * lib/unictype/categ_Pe.c: New file.
55622         * lib/unictype/categ_Pf.c: New file.
55623         * lib/unictype/categ_Pi.c: New file.
55624         * lib/unictype/categ_Po.c: New file.
55625         * lib/unictype/categ_Ps.c: New file.
55626         * lib/unictype/categ_S.c: New file.
55627         * lib/unictype/categ_Sc.c: New file.
55628         * lib/unictype/categ_Sk.c: New file.
55629         * lib/unictype/categ_Sm.c: New file.
55630         * lib/unictype/categ_So.c: New file.
55631         * lib/unictype/categ_Z.c: New file.
55632         * lib/unictype/categ_Zl.c: New file.
55633         * lib/unictype/categ_Zp.c: New file.
55634         * lib/unictype/categ_Zs.c: New file.
55635         * lib/unictype/categ_and.c: New file.
55636         * lib/unictype/categ_and_not.c: New file.
55637         * lib/unictype/categ_byname.c: New file.
55638         * lib/unictype/categ_name.c: New file.
55639         * lib/unictype/categ_none.c: New file.
55640         * lib/unictype/categ_of.c: New file.
55641         * lib/unictype/categ_or.c: New file.
55642         * lib/unictype/categ_test.c: New file.
55643         * lib/unictype/combining.c: New file.
55644         * lib/unictype/ctype_alnum.c: New file.
55645         * lib/unictype/ctype_alpha.c: New file.
55646         * lib/unictype/ctype_blank.c: New file.
55647         * lib/unictype/ctype_cntrl.c: New file.
55648         * lib/unictype/ctype_digit.c: New file.
55649         * lib/unictype/ctype_graph.c: New file.
55650         * lib/unictype/ctype_lower.c: New file.
55651         * lib/unictype/ctype_print.c: New file.
55652         * lib/unictype/ctype_punct.c: New file.
55653         * lib/unictype/ctype_space.c: New file.
55654         * lib/unictype/ctype_upper.c: New file.
55655         * lib/unictype/ctype_xdigit.c: New file.
55656         * lib/unictype/decdigit.c: New file.
55657         * lib/unictype/digit.c: New file.
55658         * lib/unictype/identsyntaxmap.h: New file.
55659         * lib/unictype/mirror.c: New file.
55660         * lib/unictype/numeric.c: New file.
55661         * lib/unictype/pr_alphabetic.c: New file.
55662         * lib/unictype/pr_ascii_hex_digit.c: New file.
55663         * lib/unictype/pr_bidi_arabic_digit.c: New file.
55664         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
55665         * lib/unictype/pr_bidi_block_separator.c: New file.
55666         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
55667         * lib/unictype/pr_bidi_common_separator.c: New file.
55668         * lib/unictype/pr_bidi_control.c: New file.
55669         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
55670         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
55671         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
55672         * lib/unictype/pr_bidi_european_digit.c: New file.
55673         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
55674         * lib/unictype/pr_bidi_left_to_right.c: New file.
55675         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
55676         * lib/unictype/pr_bidi_other_neutral.c: New file.
55677         * lib/unictype/pr_bidi_pdf.c: New file.
55678         * lib/unictype/pr_bidi_segment_separator.c: New file.
55679         * lib/unictype/pr_bidi_whitespace.c: New file.
55680         * lib/unictype/pr_byname.c: New file.
55681         * lib/unictype/pr_byname.gperf: New file.
55682         * lib/unictype/pr_combining.c: New file.
55683         * lib/unictype/pr_composite.c: New file.
55684         * lib/unictype/pr_currency_symbol.c: New file.
55685         * lib/unictype/pr_dash.c: New file.
55686         * lib/unictype/pr_decimal_digit.c: New file.
55687         * lib/unictype/pr_default_ignorable_code_point.c: New file.
55688         * lib/unictype/pr_deprecated.c: New file.
55689         * lib/unictype/pr_diacritic.c: New file.
55690         * lib/unictype/pr_extender.c: New file.
55691         * lib/unictype/pr_format_control.c: New file.
55692         * lib/unictype/pr_grapheme_base.c: New file.
55693         * lib/unictype/pr_grapheme_extend.c: New file.
55694         * lib/unictype/pr_grapheme_link.c: New file.
55695         * lib/unictype/pr_hex_digit.c: New file.
55696         * lib/unictype/pr_hyphen.c: New file.
55697         * lib/unictype/pr_id_continue.c: New file.
55698         * lib/unictype/pr_id_start.c: New file.
55699         * lib/unictype/pr_ideographic.c: New file.
55700         * lib/unictype/pr_ids_binary_operator.c: New file.
55701         * lib/unictype/pr_ids_trinary_operator.c: New file.
55702         * lib/unictype/pr_ignorable_control.c: New file.
55703         * lib/unictype/pr_iso_control.c: New file.
55704         * lib/unictype/pr_join_control.c: New file.
55705         * lib/unictype/pr_left_of_pair.c: New file.
55706         * lib/unictype/pr_line_separator.c: New file.
55707         * lib/unictype/pr_logical_order_exception.c: New file.
55708         * lib/unictype/pr_lowercase.c: New file.
55709         * lib/unictype/pr_math.c: New file.
55710         * lib/unictype/pr_non_break.c: New file.
55711         * lib/unictype/pr_not_a_character.c: New file.
55712         * lib/unictype/pr_numeric.c: New file.
55713         * lib/unictype/pr_other_alphabetic.c: New file.
55714         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
55715         * lib/unictype/pr_other_grapheme_extend.c: New file.
55716         * lib/unictype/pr_other_id_continue.c: New file.
55717         * lib/unictype/pr_other_id_start.c: New file.
55718         * lib/unictype/pr_other_lowercase.c: New file.
55719         * lib/unictype/pr_other_math.c: New file.
55720         * lib/unictype/pr_other_uppercase.c: New file.
55721         * lib/unictype/pr_paired_punctuation.c: New file.
55722         * lib/unictype/pr_paragraph_separator.c: New file.
55723         * lib/unictype/pr_pattern_syntax.c: New file.
55724         * lib/unictype/pr_pattern_white_space.c: New file.
55725         * lib/unictype/pr_private_use.c: New file.
55726         * lib/unictype/pr_punctuation.c: New file.
55727         * lib/unictype/pr_quotation_mark.c: New file.
55728         * lib/unictype/pr_radical.c: New file.
55729         * lib/unictype/pr_sentence_terminal.c: New file.
55730         * lib/unictype/pr_soft_dotted.c: New file.
55731         * lib/unictype/pr_space.c: New file.
55732         * lib/unictype/pr_terminal_punctuation.c: New file.
55733         * lib/unictype/pr_test.c: New file.
55734         * lib/unictype/pr_titlecase.c: New file.
55735         * lib/unictype/pr_unassigned_code_value.c: New file.
55736         * lib/unictype/pr_unified_ideograph.c: New file.
55737         * lib/unictype/pr_uppercase.c: New file.
55738         * lib/unictype/pr_variation_selector.c: New file.
55739         * lib/unictype/pr_white_space.c: New file.
55740         * lib/unictype/pr_xid_continue.c: New file.
55741         * lib/unictype/pr_xid_start.c: New file.
55742         * lib/unictype/pr_zero_width.c: New file.
55743         * lib/unictype/scripts.c: New file.
55744         * lib/unictype/sy_c_ident.c: New file.
55745         * lib/unictype/sy_c_whitespace.c: New file.
55746         * lib/unictype/sy_java_ident.c: New file.
55747         * lib/unictype/sy_java_whitespace.c: New file.
55748
55749         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
55750         Unicode 5.0.0.
55751         * lib/unictype/blocks.h: Likewise.
55752         * lib/unictype/categ_C.h: Likewise.
55753         * lib/unictype/categ_Cc.h: Likewise.
55754         * lib/unictype/categ_Cf.h: Likewise.
55755         * lib/unictype/categ_Cn.h: Likewise.
55756         * lib/unictype/categ_Co.h: Likewise.
55757         * lib/unictype/categ_Cs.h: Likewise.
55758         * lib/unictype/categ_L.h: Likewise.
55759         * lib/unictype/categ_Ll.h: Likewise.
55760         * lib/unictype/categ_Lm.h: Likewise.
55761         * lib/unictype/categ_Lo.h: Likewise.
55762         * lib/unictype/categ_Lt.h: Likewise.
55763         * lib/unictype/categ_Lu.h: Likewise.
55764         * lib/unictype/categ_M.h: Likewise.
55765         * lib/unictype/categ_Mc.h: Likewise.
55766         * lib/unictype/categ_Me.h: Likewise.
55767         * lib/unictype/categ_Mn.h: Likewise.
55768         * lib/unictype/categ_N.h: Likewise.
55769         * lib/unictype/categ_Nd.h: Likewise.
55770         * lib/unictype/categ_Nl.h: Likewise.
55771         * lib/unictype/categ_No.h: Likewise.
55772         * lib/unictype/categ_P.h: Likewise.
55773         * lib/unictype/categ_Pc.h: Likewise.
55774         * lib/unictype/categ_Pd.h: Likewise.
55775         * lib/unictype/categ_Pe.h: Likewise.
55776         * lib/unictype/categ_Pf.h: Likewise.
55777         * lib/unictype/categ_Pi.h: Likewise.
55778         * lib/unictype/categ_Po.h: Likewise.
55779         * lib/unictype/categ_Ps.h: Likewise.
55780         * lib/unictype/categ_S.h: Likewise.
55781         * lib/unictype/categ_Sc.h: Likewise.
55782         * lib/unictype/categ_Sk.h: Likewise.
55783         * lib/unictype/categ_Sm.h: Likewise.
55784         * lib/unictype/categ_So.h: Likewise.
55785         * lib/unictype/categ_Z.h: Likewise.
55786         * lib/unictype/categ_Zl.h: Likewise.
55787         * lib/unictype/categ_Zp.h: Likewise.
55788         * lib/unictype/categ_Zs.h: Likewise.
55789         * lib/unictype/categ_of.h: Likewise.
55790         * lib/unictype/combining.h: Likewise.
55791         * lib/unictype/ctype_alnum.h: Likewise.
55792         * lib/unictype/ctype_alpha.h: Likewise.
55793         * lib/unictype/ctype_blank.h: Likewise.
55794         * lib/unictype/ctype_cntrl.h: Likewise.
55795         * lib/unictype/ctype_digit.h: Likewise.
55796         * lib/unictype/ctype_graph.h: Likewise.
55797         * lib/unictype/ctype_lower.h: Likewise.
55798         * lib/unictype/ctype_print.h: Likewise.
55799         * lib/unictype/ctype_punct.h: Likewise.
55800         * lib/unictype/ctype_space.h: Likewise.
55801         * lib/unictype/ctype_upper.h: Likewise.
55802         * lib/unictype/ctype_xdigit.h: Likewise.
55803         * lib/unictype/decdigit.h: Likewise.
55804         * lib/unictype/digit.h: Likewise.
55805         * lib/unictype/mirror.h: Likewise.
55806         * lib/unictype/numeric.h: Likewise.
55807         * lib/unictype/pr_alphabetic.h: Likewise.
55808         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
55809         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
55810         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
55811         * lib/unictype/pr_bidi_block_separator.h: Likewise.
55812         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
55813         * lib/unictype/pr_bidi_common_separator.h: Likewise.
55814         * lib/unictype/pr_bidi_control.h: Likewise.
55815         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
55816         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
55817         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
55818         * lib/unictype/pr_bidi_european_digit.h: Likewise.
55819         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
55820         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
55821         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
55822         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
55823         * lib/unictype/pr_bidi_pdf.h: Likewise.
55824         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
55825         * lib/unictype/pr_bidi_whitespace.h: Likewise.
55826         * lib/unictype/pr_combining.h: Likewise.
55827         * lib/unictype/pr_composite.h: Likewise.
55828         * lib/unictype/pr_currency_symbol.h: Likewise.
55829         * lib/unictype/pr_dash.h: Likewise.
55830         * lib/unictype/pr_decimal_digit.h: Likewise.
55831         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
55832         * lib/unictype/pr_deprecated.h: Likewise.
55833         * lib/unictype/pr_diacritic.h: Likewise.
55834         * lib/unictype/pr_extender.h: Likewise.
55835         * lib/unictype/pr_format_control.h: Likewise.
55836         * lib/unictype/pr_grapheme_base.h: Likewise.
55837         * lib/unictype/pr_grapheme_extend.h: Likewise.
55838         * lib/unictype/pr_grapheme_link.h: Likewise.
55839         * lib/unictype/pr_hex_digit.h: Likewise.
55840         * lib/unictype/pr_hyphen.h: Likewise.
55841         * lib/unictype/pr_id_continue.h: Likewise.
55842         * lib/unictype/pr_id_start.h: Likewise.
55843         * lib/unictype/pr_ideographic.h: Likewise.
55844         * lib/unictype/pr_ids_binary_operator.h: Likewise.
55845         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
55846         * lib/unictype/pr_ignorable_control.h: Likewise.
55847         * lib/unictype/pr_iso_control.h: Likewise.
55848         * lib/unictype/pr_join_control.h: Likewise.
55849         * lib/unictype/pr_left_of_pair.h: Likewise.
55850         * lib/unictype/pr_line_separator.h: Likewise.
55851         * lib/unictype/pr_logical_order_exception.h: Likewise.
55852         * lib/unictype/pr_lowercase.h: Likewise.
55853         * lib/unictype/pr_math.h: Likewise.
55854         * lib/unictype/pr_non_break.h: Likewise.
55855         * lib/unictype/pr_not_a_character.h: Likewise.
55856         * lib/unictype/pr_numeric.h: Likewise.
55857         * lib/unictype/pr_other_alphabetic.h: Likewise.
55858         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
55859         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
55860         * lib/unictype/pr_other_id_continue.h: Likewise.
55861         * lib/unictype/pr_other_id_start.h: Likewise.
55862         * lib/unictype/pr_other_lowercase.h: Likewise.
55863         * lib/unictype/pr_other_math.h: Likewise.
55864         * lib/unictype/pr_other_uppercase.h: Likewise.
55865         * lib/unictype/pr_paired_punctuation.h: Likewise.
55866         * lib/unictype/pr_paragraph_separator.h: Likewise.
55867         * lib/unictype/pr_pattern_syntax.h: Likewise.
55868         * lib/unictype/pr_pattern_white_space.h: Likewise.
55869         * lib/unictype/pr_private_use.h: Likewise.
55870         * lib/unictype/pr_punctuation.h: Likewise.
55871         * lib/unictype/pr_quotation_mark.h: Likewise.
55872         * lib/unictype/pr_radical.h: Likewise.
55873         * lib/unictype/pr_sentence_terminal.h: Likewise.
55874         * lib/unictype/pr_soft_dotted.h: Likewise.
55875         * lib/unictype/pr_space.h: Likewise.
55876         * lib/unictype/pr_terminal_punctuation.h: Likewise.
55877         * lib/unictype/pr_titlecase.h: Likewise.
55878         * lib/unictype/pr_unassigned_code_value.h: Likewise.
55879         * lib/unictype/pr_unified_ideograph.h: Likewise.
55880         * lib/unictype/pr_uppercase.h: Likewise.
55881         * lib/unictype/pr_variation_selector.h: Likewise.
55882         * lib/unictype/pr_white_space.h: Likewise.
55883         * lib/unictype/pr_xid_continue.h: Likewise.
55884         * lib/unictype/pr_xid_start.h: Likewise.
55885         * lib/unictype/pr_zero_width.h: Likewise.
55886         * lib/unictype/scripts.h: Likewise.
55887         * lib/unictype/scripts_byname.gperf: Likewise.
55888         * lib/unictype/sy_c_ident.h: Likewise.
55889         * lib/unictype/sy_c_whitespace.h: Likewise.
55890         * lib/unictype/sy_java_ident.h: Likewise.
55891         * lib/unictype/sy_java_whitespace.h: Likewise.
55892
55893         * lib/unictype/Makefile: New file.
55894         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
55895         glibc.
55896         * lib/unictype/3level.h: New file, copied from glibc.
55897         * lib/unictype/3levelbit.h: New file.
55898
55899 2007-11-11  Bruno Haible  <bruno@clisp.org>
55900
55901         * modules/gperf: New file.
55902         * modules/iconv_open (Depends-on): Add it.
55903         (Makefile.am): Remove the GPERF definition.
55904
55905 2007-11-11  Bruno Haible  <bruno@clisp.org>
55906
55907         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
55908         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
55909
55910 2007-11-11  Bruno Haible  <bruno@clisp.org>
55911
55912         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
55913         (usage): Remove function.
55914
55915 2007-11-11  Bruno Haible  <bruno@clisp.org>
55916
55917         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
55918         gl_FUNC_CEILF_LIBS.
55919         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
55920         gl_FUNC_CEIL_LIBS.
55921         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
55922         gl_FUNC_CEILL_LIBS.
55923         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
55924         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
55925         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
55926
55927 2007-11-11  Bruno Haible  <bruno@clisp.org>
55928
55929         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
55930         roundf were declared but do not exist on functions.
55931         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
55932         roundl were declared but do not exist on functions.
55933         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
55934         HAVE_FLOORL_AND_CEILL, respectively.
55935         Needed for Sun C on Solaris 10.
55936
55937 2007-11-11  Bruno Haible  <bruno@clisp.org>
55938
55939         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
55940         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
55941         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
55942         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
55943         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
55944         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
55945         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
55946         HAVE_DECL_ROUNDF.
55947         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
55948         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
55949         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
55950         of HAVE_DECL_ROUND*.
55951         * modules/math (Makefile.am): Update.
55952
55953 2007-11-10  Bruno Haible  <bruno@clisp.org>
55954
55955         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
55956         ptrdiff_t as m4/intl.m4.
55957
55958 2007-11-10  Jim Meyering  <meyering@redhat.com>
55959
55960         Avoid link failure for the argmatch test.
55961         * tests/test-argmatch.c (usage): Define function to avoid a link
55962         failure: argmatch_die requires a usage function.
55963
55964 2007-11-09  Bruno Haible  <bruno@clisp.org>
55965
55966         * doc/functions/snprintf.texi: Mention BeOS deficiency.
55967         * doc/functions/vsnprintf.texi: Likewise.
55968         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
55969         with a size argument < 2.
55970
55971 2007-11-09  Bruno Haible  <bruno@clisp.org>
55972
55973         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
55974         buffer. Fixes an inefficiency introduced on 2007-11-03.
55975
55976 2007-11-09  Bruno Haible  <bruno@clisp.org>
55977
55978         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
55979         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
55980
55981 2007-11-08  Jim Meyering  <meyering@redhat.com>
55982
55983         Change cache variable name prefix "jm_" to "gl_" everywhere.
55984         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
55985         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
55986         * m4/uptime.m4: s/gl_/jm_/
55987
55988 2007-11-07  Bruno Haible  <bruno@clisp.org>
55989
55990         Update to GNU gettext 0.17.
55991         * m4/intl.m4: Update to GNU gettext 0.17.
55992         * m4/po.m4: Likewise.
55993         * modules/gettext (Files): Remove m4/ulonglong.m4.
55994         (configure.ac): Require gettext infrastructure from version 0.17.
55995
55996 2007-11-06  Bruno Haible  <bruno@clisp.org>
55997
55998         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
55999         symbolic values are not defined in a public header.
56000         * lib/freadable.c (freadable) [QNX]: Likewise.
56001         * lib/freadahead.c (freadahead) [QNX]: Likewise.
56002         * lib/freading.c (freading) [QNX]: Likewise.
56003         * lib/fseterr.c (fseterr) [QNX]: Likewise.
56004         * lib/fwritable.c (fwritable) [QNX]: Likewise.
56005         * lib/fwriting.c (fwriting) [QNX]: Likewise.
56006         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
56007         Reported by Alain Magloire.
56008
56009         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
56010
56011 2007-11-05  Bruno Haible  <bruno@clisp.org>
56012
56013         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
56014         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
56015         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
56016         Reported by Eric Blake.
56017
56018 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56019             Bruno Haible  <bruno@clisp.org>
56020
56021         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
56022         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
56023         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
56024         (malloc): Undefine also before including <stdlib.h>.
56025         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
56026         Needed on OSF/1 4.0.
56027
56028 2007-11-05  Jim Meyering  <meyering@redhat.com>
56029
56030         git-version-gen: sync from coreutils.
56031         * build-aux/git-version-gen: Add comments.
56032         Change the first '-' to '.' in the snapshot version string,
56033         e.g., 6.9-377-08144 -> 6.9.377-08144
56034         Remove first parameter.
56035         Don't declare a version "-dirty" merely because a time
56036         stamp has changed.
56037
56038 2007-11-04  Bruno Haible  <bruno@clisp.org>
56039
56040         * lib/lock.h: Protect all macro definitions containing an 'if'
56041         statement through a "do { ... } while (0)".
56042         * lib/tls.h: Likewise.
56043
56044 2007-11-04  Bruno Haible  <bruno@clisp.org>
56045
56046         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
56047
56048 2007-11-04  Bruno Haible  <bruno@clisp.org>
56049
56050         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
56051         * modules/fprintf-posix (Depends-on): Add nocrash.
56052         * modules/snprintf-posix (Depends-on): Likewise.
56053         * modules/sprintf-posix (Depends-on): Likewise.
56054         * modules/vasnprintf-posix (Depends-on): Likewise.
56055         * modules/vasprintf-posix (Depends-on): Likewise.
56056         * modules/vfprintf-posix (Depends-on): Likewise.
56057         * modules/vsnprintf-posix (Depends-on): Likewise.
56058         * modules/vsprintf-posix (Depends-on): Likewise.
56059         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56060         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56061         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56062         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56063         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56064         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56065         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56066
56067 2007-11-04  Bruno Haible  <bruno@clisp.org>
56068
56069         * modules/nocrash: New file.
56070         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
56071         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
56072
56073 2007-11-04  Bruno Haible  <bruno@clisp.org>
56074
56075         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
56076         precision handling.
56077         * tests/test-vasprintf-posix.c (test_function): Likewise.
56078         * tests/test-snprintf-posix.h (test_function): Likewise.
56079         * tests/test-sprintf-posix.h (test_function): Likewise.
56080
56081         Fix *printf behaviour for large precisions on mingw and BeOS.
56082         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
56083         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
56084         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
56085         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56086         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56087         gl_PRINTF_PRECISION and test its result. Invoke
56088         gl_PREREQ_VASNPRINTF_PRECISION.
56089         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56090         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56091         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56092         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56093         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56094         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56095         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56096         * doc/functions/fprintf.texi: Update.
56097         * doc/functions/printf.texi: Update.
56098         * doc/functions/snprintf.texi: Update.
56099         * doc/functions/sprintf.texi: Update.
56100         * doc/functions/vfprintf.texi: Update.
56101         * doc/functions/vprintf.texi: Update.
56102         * doc/functions/vsnprintf.texi: Update.
56103         * doc/functions/vsprintf.texi: Update.
56104
56105 2007-11-04  Bruno Haible  <bruno@clisp.org>
56106
56107         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
56108
56109 2007-11-04  Bruno Haible  <bruno@clisp.org>
56110
56111         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
56112         Reported by Sylvain Beucler <beuc@gnu.org>.
56113
56114 2007-11-03  Bruno Haible  <bruno@clisp.org>
56115
56116         * tests/test-fprintf-posix2.sh: New file.
56117         * tests/test-fprintf-posix2.c: New file.
56118         * modules/fprintf-posix-tests (Files): Add them.
56119         (TESTS): Add test-fprintf-posix2.sh.
56120         (configure.ac): Check for getrlimit and setrlimit.
56121         (check_PROGRAMS): Add test-fprintf-posix2.
56122
56123         * tests/test-printf-posix2.sh: New file.
56124         * tests/test-printf-posix2.c: New file.
56125         * modules/printf-posix-tests (Files): Add them.
56126         (TESTS): Add test-printf-posix2.sh.
56127         (configure.ac): Check for getrlimit and setrlimit.
56128         (check_PROGRAMS): Add test-printf-posix2.
56129
56130         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
56131         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
56132         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
56133         (decode_double): New function, copied from decode_long_double.
56134         (scale10_round_decimal_decoded): New function, extracted from
56135         scale10_round_decimal_long_double.
56136         (scale10_round_decimal_long_double): Use it.
56137         (scale10_round_decimal_double): New function.
56138         (floorlog10): New function.
56139         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
56140         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
56141         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56142         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56143         gl_PRINTF_ENOMEM and test its result. Invoke
56144         gl_PREREQ_VASNPRINTF_ENOMEM.
56145         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56146         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56147         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56148         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56149         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56150         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56151         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56152         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
56153         * modules/snprintf-posix (Depends-on): Likewise.
56154         * modules/sprintf-posix (Depends-on): Likewise.
56155         * modules/vasnprintf-posix (Depends-on): Likewise.
56156         * modules/vasprintf-posix (Depends-on): Likewise.
56157         * modules/vfprintf-posix (Depends-on): Likewise.
56158         * modules/vsnprintf-posix (Depends-on): Likewise.
56159         * modules/vsprintf-posix (Depends-on): Likewise.
56160         * doc/functions/fprintf.texi: Update.
56161         * doc/functions/printf.texi: Update.
56162         * doc/functions/snprintf.texi: Update.
56163         * doc/functions/sprintf.texi: Update.
56164         * doc/functions/vfprintf.texi: Update.
56165         * doc/functions/vprintf.texi: Update.
56166         * doc/functions/vsnprintf.texi: Update.
56167         * doc/functions/vsprintf.texi: Update.
56168
56169 2007-11-03  Bruno Haible  <bruno@clisp.org>
56170
56171         * modules/frexp-nolibm-tests: New file.
56172
56173         * modules/frexp-nolibm: New file.
56174         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
56175
56176 2007-11-03  Bruno Haible  <bruno@clisp.org>
56177
56178         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
56179         value is C99 compliant.
56180         Needed for OSF/1 5.1.
56181
56182 2007-11-03  Bruno Haible  <bruno@clisp.org>
56183
56184         Fix out-of-memory handling of vasnprintf.
56185         * lib/printf-parse.c: Include <errno.h>.
56186         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
56187         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
56188         is already set.
56189
56190 2007-11-02  Eric Blake  <ebb9@byu.net>
56191
56192         Fix tests on cygwin.
56193         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
56194
56195 2007-11-01  Bruno Haible  <bruno@clisp.org>
56196
56197         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
56198         warning.
56199         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
56200         needed for POSIX compatibility.
56201
56202 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
56203
56204         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
56205         for compatibility with GNU.
56206
56207 2007-11-01  Bruno Haible  <bruno@clisp.org>
56208
56209         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
56210         (putenv): Renamed from rpl_putenv. Change argument type from
56211         'const char *' to 'char *'.
56212         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
56213         of defining putenv in config.h, just set REPLACE_PUTENV.
56214         * modules/putenv (Depends-on): Add stdlib.
56215         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56216         (Include): Use <stdlib.h>.
56217         * lib/stdlib.in.h (putenv): New declaration.
56218         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
56219         REPLACE_PUTENV.
56220         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
56221         REPLACE_PUTENV.
56222         Needed for MacOS X 10.5.0.
56223         Reported by Peter O'Gorman <peter@pogma.com>.
56224
56225 2007-11-01  Jim Meyering  <meyering@redhat.com>
56226
56227         Treat an empty date string exactly like "0".
56228         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
56229         if the remaining date string (to be parsed) is empty, use "0".
56230         Reported by Mischa Molhoek and discussed in this thread:
56231         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
56232
56233 2007-10-31  Bruno Haible  <bruno@clisp.org>
56234
56235         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
56236         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
56237         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
56238         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
56239         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
56240         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
56241
56242 2007-10-31  Bruno Haible  <bruno@clisp.org>
56243
56244         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
56245         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
56246         (AC_TYPE_LONG_LONG_INT): Use it.
56247         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
56248         it as well.
56249         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
56250         to m4/longlong.m4.
56251         * modules/stdint (Files): Remove m4/ulonglong.m4.
56252         * modules/strtoull (Files): Use m4/longlong.m4 instead of
56253         m4/ulonglong.m4.
56254         * modules/strtoumax (Files): Likewise.
56255
56256 2007-10-30  Bruno Haible  <bruno@clisp.org>
56257
56258         * modules/xvasprintf-posix: New file.
56259         Suggested by Eric Blake.
56260
56261 2007-10-30  Bruno Haible  <bruno@clisp.org>
56262
56263         * modules/xprintf-posix-tests: New file.
56264         * tests/test-xprintf-posix.sh: New file.
56265         * tests/test-xprintf-posix.c: New file.
56266         * tests/test-xfprintf-posix.c: New file.
56267
56268         * modules/xprintf-posix: New file.
56269
56270 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56271
56272         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
56273         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
56274         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
56275
56276 2007-10-29  Bruno Haible  <bruno@clisp.org>
56277
56278         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
56279         contain the special marker '_cv_'.
56280         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
56281         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
56282         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
56283         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
56284         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
56285         Reported by Ralf Wildenhues.
56286
56287 2007-10-29  Bruno Haible  <bruno@clisp.org>
56288
56289         * gnulib-tool (func_import): When --lgpl is not specified, set
56290         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
56291         GPLv3.
56292         Reported by Simon Josefsson.
56293
56294 2007-10-28  Bruno Haible  <bruno@clisp.org>
56295
56296         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
56297         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
56298         HAVE_DECL_ISFINITE.
56299         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
56300         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
56301         HAVE_DECL_ISFINITE.
56302
56303 2007-10-28  Bruno Haible  <bruno@clisp.org>
56304
56305         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
56306         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
56307
56308 2007-10-28  Bruno Haible  <bruno@clisp.org>
56309
56310         Fix link errors with Sun C 5.0 on Solaris 10.
56311         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
56312         function is declared but not present in the compiler's libm.
56313         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
56314         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
56315         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
56316         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
56317         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
56318         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
56319         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
56320         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
56321         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
56322         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
56323         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
56324         HAVE_DECL_FLOORL.
56325
56326 2007-10-28  Bruno Haible  <bruno@clisp.org>
56327
56328         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
56329         gl_FUNC_FLOORL. Cache the result.
56330         (gl_FUNC_FLOORL): Use it.
56331         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
56332         gl_FUNC_CEILL. Cache the result.
56333         (gl_FUNC_CEILL): Use it.
56334
56335         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
56336         gl_FUNC_FLOOR. Cache the result.
56337         (gl_FUNC_FLOOR): Use it.
56338         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
56339         gl_FUNC_CEIL. Cache the result.
56340         (gl_FUNC_CEIL): Use it.
56341
56342         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
56343         gl_FUNC_FLOORF. Cache the result.
56344         (gl_FUNC_FLOORF): Use it.
56345         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
56346         gl_FUNC_CEILF. Cache the result.
56347         (gl_FUNC_CEILF): Use it.
56348
56349 2007-10-28  Bruno Haible  <bruno@clisp.org>
56350
56351         * gnulib-tool: Allow specifying the LGPL version number through
56352         --lgpl=2 or --lgpl=3.
56353         (func_usage): Document --lgpl with argument.
56354         Handle --lgpl=... arguments.
56355         (func_import): Recognize also gl_LGPL calls with an argument. When
56356         --lgpl=2 is used and the module's license is just LGPL, report an
56357         error. Set sed_transform_lib_file according to the lgpl variable. In
56358         the generated files, use --lgpl or gl_LGPL invocations with argument,
56359         if necessary.
56360         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
56361         an LGPv2+ license.
56362         * doc/gnulib-tool.texi (Modified imports): Update explanation of
56363         gl_LGPL macro.
56364
56365 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56366             Bruno Haible  <bruno@clisp.org>
56367
56368         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
56369         (u16_uctomb_aux): Likewise.
56370         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
56371         !HAVE_INLINE.
56372         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
56373
56374 2007-10-28  Bruno Haible  <bruno@clisp.org>
56375
56376         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
56377         Invoke AM_GETTEXT_OPTION if it exists.
56378         * modules/vasprintf: Likewise.
56379         * modules/verror: Likewise.
56380         * modules/xprintf: Likewise.
56381         * modules/xvasprintf: Likewise.
56382
56383 2007-10-27  Ben Pfaff  <blp@gnu.org>
56384
56385         * lib/math.in.h: Define isfinite macro and prototypes for
56386         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
56387         implementations.
56388         * m4/math_h.m4: New substitutions for isfinite module.
56389         * lib/isfinite.c: New file.
56390         * m4/isfinite.m4: New file.
56391         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
56392         * modules/isfinite: New file.
56393         * modules/isfinite-tests: New file.
56394         * tests/tests-isfinite.c: New file.
56395         * doc/functions/isfinite.texi: Mention isfinite module.
56396         * MODULES.html.sh: Mention new module.
56397
56398 2007-10-27  Ben Pfaff  <blp@gnu.org>
56399
56400         Ralf Wildenhues reported that Tru64 4.0D declares the round
56401         functions but does not have definitions.
56402         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
56403         cannot be found in any library, set the output variable to
56404         "missing" instead of "".
56405         * m4/round.m4: Also use our substitute if we cannot find round in
56406         any library, even if it is declared.
56407         * m4/roundf.m4: Likewise for roundf.
56408         * m4/roundl.m4: Likewise for roundl.
56409         * lib/math.in.h: Undefine roundf, round, roundl before defining
56410         their replacements, to allow for hypothetical systems where these
56411         may be defined as macros but not available in libraries.
56412
56413 2007-10-27  Bruno Haible  <bruno@clisp.org>
56414
56415         * doc/gnulib.texi: Invoke @firstparagraphindent.
56416         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
56417         changes in gnulib.
56418         (Source changes): New section.
56419
56420 2007-10-26  Bruno Haible  <bruno@clisp.org>
56421
56422         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
56423         borrowed from autoconf.
56424
56425 2007-10-26  Bruno Haible  <bruno@clisp.org>
56426
56427         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
56428         strerror returned the empty string. Needed on HP-UX 11.00.
56429
56430 2007-10-24  Micah Cowan  <micah@cowan.name>
56431
56432         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
56433         * build-aux/bootstrap: Remove support for now-unnecessary option,
56434         --cvs-user, and envvars CVS_USER, CVS_RSH.
56435
56436 2007-10-24  Jim Meyering  <meyering@redhat.com>
56437
56438         Avoid diagnostics from sha1sum when there is no cached checksum.
56439         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
56440         if the po.s1 file hasn't been created yet.
56441
56442         * build-aux/bootstrap: Sync from coreutils:
56443         2007-10-24  Jim Meyering  <meyering@redhat.com>
56444         Get gnulib from the git repository, not from an obsolete cvs one.
56445         * build-aux/bootstrap: Suggestion from Micah Cowan.
56446         2007-10-04  Jim Meyering  <jim@meyering.net>
56447         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
56448         (update_po_files): Work also when there are no .po files in po/.
56449
56450 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56451
56452         * README: Append ".git" to git and cg examples.
56453         Problem reported by Benoit Sigoure.
56454
56455 2007-10-23  Micah Cowan  <micah@cowan.name>
56456
56457         * users.txt: Add wget.
56458
56459 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56460
56461         Fix linking of some unistdio tests on FreeBSD.
56462         * modules/unistdio/u16-vsnprintf-tests
56463         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
56464         * modules/unistdio/u16-vsprintf-tests
56465         (test_u16_vsnprintf1_LDADD): Likewise.
56466         * modules/unistdio/u32-vsnprintf-tests
56467         (test_u32_vsnprintf1_LDADD): Likewise.
56468         * modules/unistdio/u32-vsprintf-tests
56469         (test_u32_vsprintf1_LDADD): Likewise.
56470         * modules/unistdio/u8-vsnprintf-tests
56471         (test_u8_vsnprintf1_LDADD): Likewise.
56472         * modules/unistdio/u8-vsprintf-tests
56473         (test_u8_vsprintf1_LDADD): Likewise.
56474         * modules/unistdio/ulc-vsnprintf-tests
56475         (test_ulc_vsnprintf1_LDADD): Likewise.
56476         * modules/unistdio/ulc-vsprintf-tests
56477         (test_ulc_vsprintf1_LDADD): Likewise.
56478
56479         Fix linking of some uniconv tests on FreeBSD.
56480         * modules/uniconv/u16-conv-from-enc-tests
56481         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
56482         * modules/uniconv/u16-conv-to-enc-tests
56483         (test_u16_conv_to_enc_LDADD): Likewise.
56484         * modules/uniconv/u16-strconv-from-enc-tests
56485         (test_u16_strconv_from_enc_LDADD): Likewise.
56486         * modules/uniconv/u16-strconv-to-enc-tests
56487         (test_u16_strconv_to_enc_LDADD): Likewise.
56488         * modules/uniconv/u32-conv-from-enc-tests
56489         (test_u32_conv_from_enc_LDADD): Likewise.
56490         * modules/uniconv/u32-conv-to-enc-tests
56491         (test_u32_conv_to_enc_LDADD): Likewise.
56492         * modules/uniconv/u32-strconv-from-enc-tests
56493         (test_u32_strconv_from_enc_LDADD): Likewise.
56494         * modules/uniconv/u32-strconv-to-enc-tests
56495         (test_u32_strconv_to_enc_LDADD): Likewise.
56496         * modules/uniconv/u8-conv-from-enc-tests
56497         (test_u8_conv_from_enc_LDADD): Likewise.
56498         * modules/uniconv/u8-conv-to-enc-tests
56499         (test_u8_conv_to_enc_LDADD): Likewise.
56500         * modules/uniconv/u8-strconv-from-enc-tests
56501         (test_u8_strconv_from_enc_LDADD): Likewise.
56502         * modules/uniconv/u8-strconv-to-enc-tests
56503         (test_u8_strconv_to_enc_LDADD): Likewise.
56504
56505 2007-10-22  Bruno Haible  <bruno@clisp.org>
56506
56507         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
56508         size.
56509
56510 2007-10-22  Eric Blake  <ebb9@byu.net>
56511
56512         Tweak x*printf documentation.
56513         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
56514         variable name and comments.
56515         Suggested by Bruno Haible.
56516
56517 2007-10-22  Bruno Haible  <bruno@clisp.org>
56518
56519         * lib/acl.c (copy_acl): Fix file name in comment.
56520
56521 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56522
56523         Fix Tru64 problem with stdbool.h.
56524         * lib/stdbool.in.h (false, true):
56525         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
56526         Don't declare as an enum in this situation; it runs afoul of Tru64.
56527         Problem reported by Steven M. Schweda in
56528         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
56529
56530 2007-10-22  Eric Blake  <ebb9@byu.net>
56531
56532         Also wrap vf?printf.
56533         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
56534         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
56535         (xvprintf, xvfprintf): New functions.
56536
56537 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56538
56539         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
56540         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
56541
56542         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
56543         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
56544
56545 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56546
56547         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
56548         by Bruno Haible.
56549
56550 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56551
56552         * lib/getloadavg.c
56553         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
56554         Undef `sys' after including sys/table.h, for Tru64 4.0D.
56555
56556         * tests/test-i-ring.c: Work for C89.
56557
56558 2007-10-22  Bruno Haible  <bruno@clisp.org>
56559
56560         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
56561         -1u, in preprocessor expression, so that we don't test for the bug
56562         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
56563         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
56564
56565 2007-10-22  Eric Blake  <ebb9@byu.net>
56566
56567         * tests/test-yesno.sh: Silence stderr during test.
56568
56569 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56570
56571         * modules/crypto/gc-camellia: New file.
56572
56573         * m4/gc-camellia.m4: New file.
56574
56575         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
56576
56577         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
56578
56579 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56580
56581         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
56582         --help to stdout.  Reported by sms@antinode.org (Steven
56583         M. Schweda).
56584
56585 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56586
56587         * users.txt: Fix link to libksba.
56588
56589 2007-10-21  Ben Pfaff  <blp@gnu.org>
56590
56591         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
56592         round.c roundf implementation that depends on floorf and ceilf to
56593         be tested unconditionally.
56594
56595 2007-10-21  Ben Pfaff  <blp@gnu.org>
56596
56597         * m4/check-libm-func.m4: Removed.
56598         * m4/check-math-lib.m4: New file.
56599         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
56600         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
56601         definition and lack of AC_LIBOBJ([roundf]).
56602         * m4/roundl.m4: Ditto, and similarly for roundl.
56603         * modules/round: Reference new m4 file.
56604         * modules/roundf: Ditto.
56605         * modules/roundl: Ditto.
56606         * tests/test-round2.c (main): Use ROUND instead of round.
56607         Bug report from Bruno Haible.
56608
56609 2007-10-21  Bruno Haible  <bruno@clisp.org>
56610
56611         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
56612         context.
56613
56614 2007-10-21  Bruno Haible  <bruno@clisp.org>
56615
56616         * tests/test-wcwidth.c (main): Allow negative result for some control
56617         characters.
56618
56619         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
56620         Needed on OSF/1 5.1.
56621
56622 2007-10-21  Bruno Haible  <bruno@clisp.org>
56623
56624         * tests/test-floorf1.c: Include isnanf.h.
56625         (main): Use isnanf() instead of isnan().
56626         * tests/test-ceilf1.c: Include isnanf.h.
56627         (main): Use isnanf() instead of isnan().
56628         * tests/test-truncf1.c: Include isnanf.h.
56629         (main): Use isnanf() instead of isnan().
56630         * tests/test-roundf1.c: Include isnanf.h.
56631         (main): Use isnanf() instead of isnan().
56632
56633 2007-10-21  Eric Blake  <ebb9@byu.net>
56634
56635         * users.txt: Update URL for m4.
56636
56637 2007-10-21  Bruno Haible  <bruno@clisp.org>
56638
56639         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
56640
56641 2007-10-21  Bruno Haible  <bruno@clisp.org>
56642
56643         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
56644         Git's management files if the CVS files are not present.
56645
56646 2007-10-20  Bruno Haible  <bruno@clisp.org>
56647
56648         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
56649         gcc-3.4.x.
56650
56651 2007-10-20  Ben Pfaff  <blp@gnu.org>
56652
56653         * lib/math.in.h: Declare round, roundf, roundl if we are providing
56654         implementations.
56655         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
56656         * lib/round.c: New file.
56657         * lib/roundf.c: New file.
56658         * lib/roundl.c: New file.
56659         * m4/round.m4: New file.
56660         * m4/roundf.m4: New file.
56661         * m4/roundl.m4: New file.
56662         * m4/check-libm-func-m4: New file.
56663         * modules/math: Replace round, roundf, roundl related @VARS@ in
56664         math.in.h.
56665         * modules/round: New file.
56666         * modules/round-tests: New file.
56667         * modules/roundf: New file.
56668         * modules/roundf-tests: New file.
56669         * modules/roundl: New file.
56670         * modules/roundl-tests: New file.
56671         * tests/test-round1.c: New file.
56672         * tests/test-round2.c: New file.
56673         * tests/test-roundf1.c: New file.
56674         * tests/test-roundf2.c: New file.
56675         * tests/test-roundl.c: New file.
56676         * doc/functions/round.texi: Mention round module.
56677         * doc/functions/roundf.texi: Mention roundf module.
56678         * doc/functions/roundl.texi: Mention roundl module.
56679         * MODULES.html.sh: Mention new modules.
56680         Thanks to Bruno Haible for suggestions.
56681
56682 2007-10-20  Jim Meyering  <meyering@redhat.com>
56683
56684         * lib/xprintf.c: Include <config.h> unconditionally.
56685
56686         Change xprintf's license to GPL.
56687         * modules/xprintf (License): s/LGPL/GPL/, since this module
56688         depends on modules (exit and exitfail) which are GPL.
56689         Suggestion from Bruno Haible.
56690
56691         xprintf fixes.
56692         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
56693         Use a clearer diagnostic.
56694         Patch from Bruno Haible.
56695
56696 2007-10-20  Bruno Haible  <bruno@clisp.org>
56697
56698         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
56699         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
56700         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56701
56702 2007-10-20  Bruno Haible  <bruno@clisp.org>
56703
56704         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
56705         precision in the comparison result > x - 1 or similar.
56706         * tests/test-ceilf2.c (correct_result_p): Likewise.
56707         * tests/test-truncf2.c (correct_result_p): Likewise.
56708         * tests/test-trunc2.c (correct_result_p): Likewise.
56709         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56710
56711 2007-10-20  Bruno Haible  <bruno@clisp.org>
56712
56713         * modules/ceil: New file.
56714         * m4/ceil.m4: New file.
56715         * doc/functions/ceil.texi: Mention the 'ceil' module.
56716
56717 2007-10-20  Bruno Haible  <bruno@clisp.org>
56718
56719         * modules/floor: New file.
56720         * m4/floor.m4: New file.
56721         * doc/functions/floor.texi: Mention the 'floor' module.
56722
56723 2007-10-20  Bruno Haible  <bruno@clisp.org>
56724
56725         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
56726         of %a.
56727         * modules/floorf-tests (Depends-on): Likewise.
56728         * modules/truncf-tests (Depends-on): Likewise.
56729         * modules/trunc-tests (Depends-on): Likewise.
56730         Reported by Ben Pfaff.
56731
56732 2007-10-19  Jim Meyering  <meyering@redhat.com>
56733
56734         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
56735         Don't bother testing specific errno values.  Just test ferror.
56736
56737         New module: xprintf
56738         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
56739
56740 2007-10-19  Bruno Haible  <bruno@clisp.org>
56741
56742         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
56743         syntax.
56744         * modules/javaexec (Makefile.am): Likewise.
56745         * modules/relocatable-prog (Makefile.am): Likewise.
56746         Suggested by Jim Meyering.
56747
56748 2007-10-18  Bruno Haible  <bruno@clisp.org>
56749
56750         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
56751         Reported by Jim Meyering.
56752
56753 2007-10-18  Eric Blake  <ebb9@byu.net>
56754
56755         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
56756
56757 2007-10-18  Bruno Haible  <bruno@clisp.org>
56758
56759         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
56760         the format string into writable memory. Needed in Fortify conditions.
56761
56762 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
56763             Bruno Haible  <bruno@clisp.org>
56764
56765         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
56766         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
56767         * modules/trim (Depends-on): Add mbchar.
56768         (configure.ac): Add gl_FUNC_MBRTOWC.
56769         (Makefile.am): Augment lib_SOURCES.
56770
56771 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56772
56773         Modify glob.c to use fstatat and dirfd, to simplify it.
56774         Suggested by Eric Blake.
56775         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
56776         Don't include <stdbool.h>; not used.
56777         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
56778         (link_exists_p): Simplify implementation, since we can now assume
56779         dirfd and fstatat.
56780         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
56781
56782 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56783
56784         * gnulib-tool (func_get_dependencies): Fix sed script to
56785         match only tests.
56786
56787 2007-10-17  Bruno Haible  <bruno@clisp.org>
56788
56789         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
56790         allow locale names without encoding suffix.
56791         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56792         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56793
56794 2007-10-16  Bruno Haible  <bruno@clisp.org>
56795
56796         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
56797         * lib/getgroups.c (getgroups): Likewise.
56798         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
56799
56800 2007-10-16  Bruno Haible  <bruno@clisp.org>
56801
56802         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
56803         * modules/malloc-posix (License): Likewise.
56804         * modules/realloc-posix (License): Likewise.
56805         * modules/calloc-posix (License): Likewise.
56806         * modules/intprops (License): Change from GPL to LGPL, with
56807         Paul Eggert's approval.
56808
56809 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56810
56811         Merge glibc changes into lib/glob.c.
56812
56813         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
56814         2007-10-15 04:59:03 UTC.  Here are the changes:
56815
56816         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
56817
56818         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
56819
56820         * lib/glob.c: Add some branch prediction throughout.
56821
56822         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
56823
56824         [BZ #5103]
56825         * lib/glob.c (glob): Recognize patterns starting \/.
56826
56827         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
56828
56829         [BZ #3996]
56830         * lib/glob.c (attribute_hidden): Define if not defined.
56831         (glob): Unescape dirname, filename or username when needed and not
56832         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
56833         is NULL.  Handle unescaped [ in pattern without closing ].
56834         Don't pass GLOB_CHECK down to recursive glob for directories.
56835         (__glob_pattern_type): New function.
56836         (__glob_pattern_p): Implement using __glob_pattern_type.
56837         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
56838         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
56839         Remove unreachable code.
56840
56841         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
56842
56843         * lib/glob.c (glob_in_dir): Add some comments and asserts to
56844         explain why there are no leaks.
56845
56846         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
56847
56848         [BZ #3253]
56849         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
56850         time, rather allocate increasingly bigger arrays of pointers, if
56851         possible with alloca, if too large with malloc.
56852
56853 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56854
56855         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
56856         Problem reported by H.Merijn Brand in
56857         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
56858         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
56859         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
56860
56861 2007-10-15  Bruno Haible  <bruno@clisp.org>
56862
56863         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
56864         with explicit rpl_ prefix.
56865         * lib/fopen.c (fopen): Likewise.
56866         * lib/freopen.c (freopen): Likewise.
56867         * lib/iconv.c (iconv): Likewise.
56868         * lib/iconv_close.c (iconv_close): Likewise.
56869
56870 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56871
56872         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
56873
56874 2007-10-15  Bruno Haible  <bruno@clisp.org>
56875
56876         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
56877         <stddef.h> instead of <stdlib.h> since we only need NULL.
56878         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56879
56880 2007-10-15  Bruno Haible  <bruno@clisp.org>
56881
56882         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
56883         Replace paragraph talking about LIBOBJS.
56884         Reported by Colin Watson <cjwatson@debian.org>.
56885
56886 2007-10-15  Bruno Haible  <bruno@clisp.org>
56887
56888         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
56889         <stdlib.h> before using NULL.
56890
56891 2007-10-15  Simon Josefsson  <simon@josefsson.org>
56892
56893         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
56894         Reported by Albert Chin <china@thewrittenword.com>.
56895
56896 2007-10-14  Bruno Haible  <bruno@clisp.org>
56897
56898         * modules/iconv_open-utf-tests: New file.
56899         * tests/test-iconv-utf.c: New file.
56900
56901         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
56902         * modules/iconv_open-utf: New file.
56903         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
56904         (iconv, iconv_close): New declarations.
56905         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
56906         be defined.
56907         (iconv_open): Add special handling of conversion between UTF-8 and
56908         UTF-{16,32}{BE,LE}.
56909         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
56910         * lib/iconv_close.c: New file.
56911         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
56912         gl_FUNC_ICONV_OPEN.
56913         (gl_FUNC_ICONV_OPEN): Use it.
56914         (gl_FUNC_ICONV_OPEN_UTF): New macro.
56915         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
56916         and REPLACE_ICONV_UTF.
56917         * modules/iconv_open (Depends-on): Add c-strcase.
56918         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
56919         ICONV_CONST.
56920         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
56921
56922 2007-10-13  Albert Chin  <china@thewrittenword.com>
56923             Bruno Haible  <bruno@clisp.org>
56924
56925         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
56926         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
56927
56928 2007-10-13  Bruno Haible  <bruno@clisp.org>
56929
56930         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
56931         defined, use the ISO C99 inline semantics.
56932         * lib/argp.h (ARGP_EI): Likewise.
56933
56934 2007-10-13  Bruno Haible  <bruno@clisp.org>
56935
56936         Handle 'inline' change in gcc 4.3.0.
56937         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
56938         argp_fmtstream_write, argp_fmtstream_set_lmargin,
56939         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
56940         argp_fmtstream_point): Disable 'extern' declaration if the function
56941         definition is going to be provided inline.
56942         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
56943         semantics, not the ISO C99 inline semantics.
56944         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
56945         'extern' declaration if the function definition is going to be provided
56946         inline.
56947         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
56948         the GNU C inline semantics, not the ISO C99 inline semantics. With
56949         GCC 4.2, avoid a warning.
56950
56951 2007-10-13  Bruno Haible  <bruno@clisp.org>
56952
56953         * lib/freading.h (freading): Enable the use of __freading for
56954         glibc >= 2.7.
56955         * lib/freading.c (freading): Likewise.
56956
56957 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56958
56959         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
56960         "warning: C99 inline functions are not supported; using GNU89".
56961
56962 2007-10-12  Bruno Haible  <bruno@clisp.org>
56963
56964         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
56965         of 2.
56966         * tests/test-ceilf2.c: New file.
56967         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
56968
56969         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
56970         * modules/ceilf-tests: Update.
56971
56972 2007-10-12  Bruno Haible  <bruno@clisp.org>
56973
56974         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
56975         of 2.
56976         * tests/test-floorf2.c: New file.
56977         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
56978
56979         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
56980         * modules/floorf-tests: Update.
56981
56982 2007-10-12  Bruno Haible  <bruno@clisp.org>
56983
56984         * tests/test-trunc2.c: New file.
56985         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
56986
56987         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
56988         * modules/trunc-tests: Update.
56989
56990 2007-10-12  Bruno Haible  <bruno@clisp.org>
56991
56992         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
56993         of 2.
56994         * tests/test-truncf2.c: New file.
56995         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
56996
56997         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
56998         * modules/truncf-tests: Update.
56999
57000 2007-10-11  Eric Blake  <ebb9@byu.net>
57001
57002         Don't claim strerror is broken on Interix.
57003         * doc/functions/strerror.texi (strerror): Known broken systems are
57004         now Solaris 8, and not Interix.
57005         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
57006         Interix on cross-compile.
57007         Reported by Martin Koeppe in
57008         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
57009
57010 2007-10-11  Bruno Haible  <bruno@clisp.org>
57011
57012         * modules/i-ring-tests: New file.
57013         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
57014         instead of assert.
57015
57016 2007-10-11  Bruno Haible  <bruno@clisp.org>
57017
57018         * modules/filenamecat-tests: New file.
57019         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
57020         * lib/filenamecat.c: Remove test code.
57021
57022 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57023
57024         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
57025
57026         * lib/strerror.c: Include <string.h> always, to test interface,
57027         and to remove the need for the dummy.
57028         Include intprops.h to compute width instead of doing it ourselves
57029         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
57030         (strerror): Define it to return NULL if there's no system strerror.
57031         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
57032         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
57033         ancient pre-strerror Unix systems well any more.  Saying "unknown
57034         system error" is enough.
57035         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
57036         simpler strerror.c implementation.
57037         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
57038         Simplify the tests to reflect the simpler strerror implementation.
57039         * modules/strerror (Depends-on): Add intprops.
57040
57041 2007-10-09  Eric Blake  <ebb9@byu.net>
57042
57043         Silence test-fpending.
57044         * modules/fpending-tests (Files): Add wrapper script.
57045         * tests/test-fpending.sh: New file.
57046
57047 2007-10-09  Bruno Haible  <bruno@clisp.org>
57048
57049         * MODULES.html.sh (func_module): Don't create a hyperlink for
57050         function names like 'printf_frexp'.
57051         (Misc): Add crc, memxor.
57052         (Characteristics of floating types): New section.
57053         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
57054         isnanf-nolibm, signbit, trunc, truncf, truncl.
57055         (Enhancements for ISO C 99 functions): New subsection Input/output.
57056         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
57057         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
57058         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
57059         (Compatibility checks for POSIX:2001 functions): Add clock-time.
57060         (Enhancements for POSIX:2001 functions): Add chdir-long.
57061         (File system functions): Add areadlink, chdir-safer, read-file.
57062         Remove cycle-check.
57063         (File system as inode set): New section.
57064         (Date and time): Add gethrxtime.
57065         (Multithreading): Add openmp.
57066         (Internationalization functions): Add localename.
57067         (Unicode string functions): Add unistr/u*-mbsnlen.
57068         (Support for maintaining and releasing projects): Add git-version-gen.
57069         (Lone files): Remove directories.
57070
57071 2007-10-08  Ben Pfaff  <blp@gnu.org>
57072
57073         * lib/xmalloca.h: Fix typo in comment.
57074
57075 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57076
57077         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
57078         when avoiding problems with integer overflow.  Use a portable test
57079         instead.
57080
57081 2007-10-08  Simon Josefsson  <simon@josefsson.org>
57082
57083         * modules/dummy (License): Change to LGPLv2+.
57084         * modules/float (License): Likewise
57085         * modules/realloc (License): Likewise
57086         * modules/stdlib (License): Likewise
57087
57088 2007-10-07  Bruno Haible  <bruno@clisp.org>
57089
57090         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
57091         * floor.c (TWO_MANT_DIG): Likewise.
57092         * ceil.c (TWO_MANT_DIG): Likewise.
57093         Reported by Ben Pfaff.
57094
57095 2007-10-07  Bruno Haible  <bruno@clisp.org>
57096
57097         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
57098         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
57099         * lib/frexp.c (FUNC): Likewise.
57100         * lib/printf-frexp.h (printf_frexp): Likewise.
57101         * lib/printf-frexpl.h (printf_frexpl): Likewise.
57102         * lib/printf-frexp.c (FUNC): Likewise.
57103         Suggested by Jim Meyering.
57104
57105 2007-10-07  Jim Meyering  <meyering@redhat.com>
57106
57107         Make xnanosleep's integer overflow test more robust.
57108         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
57109         so that gcc-4.3.0 doesn't optimize away this test for overflow.
57110
57111 2007-10-07  Bruno Haible  <bruno@clisp.org>
57112
57113         * NEWS: Mention the license change.
57114
57115         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
57116         abbreviations in the modules files.
57117
57118         Change copyright notice from GPLv2+ to GPLv3+.
57119         * README: Change copyright notice.
57120         * MODULES.html.sh: Likewise.
57121         * build-aux/bootstrap.conf: Likewise.
57122         * build-aux/config.libpath: Likewise.
57123         * build-aux/csharpcomp.sh.in: Likewise.
57124         * build-aux/csharpexec.sh.in: Likewise.
57125         * build-aux/install-reloc: Likewise.
57126         * build-aux/javacomp.sh.in: Likewise.
57127         * build-aux/javaexec.sh.in: Likewise.
57128         * build-aux/ldd.sh.in: Likewise.
57129         * build-aux/reloc-ldflags: Likewise.
57130         * build-aux/relocatable.sh.in: Likewise.
57131         * build-aux/x-to-1.in: Likewise.
57132         * check-module: Likewise.
57133         * config/srclistvars.sh: Likewise.
57134         * gnulib-tool: Likewise.
57135         * lib/acl-internal.h: Likewise.
57136         * lib/acl.c: Likewise.
57137         * lib/acl.h: Likewise.
57138         * lib/acl_entries.c: Likewise.
57139         * lib/areadlink-with-size.c: Likewise.
57140         * lib/areadlink.c: Likewise.
57141         * lib/areadlink.h: Likewise.
57142         * lib/argmatch.c: Likewise.
57143         * lib/argmatch.h: Likewise.
57144         * lib/argp-ba.c: Likewise.
57145         * lib/argp-eexst.c: Likewise.
57146         * lib/argp-fmtstream.c: Likewise.
57147         * lib/argp-fmtstream.h: Likewise.
57148         * lib/argp-fs-xinl.c: Likewise.
57149         * lib/argp-help.c: Likewise.
57150         * lib/argp-namefrob.h: Likewise.
57151         * lib/argp-parse.c: Likewise.
57152         * lib/argp-pin.c: Likewise.
57153         * lib/argp-pv.c: Likewise.
57154         * lib/argp-pvh.c: Likewise.
57155         * lib/argp-xinl.c: Likewise.
57156         * lib/argp.h: Likewise.
57157         * lib/at-func.c: Likewise.
57158         * lib/atanl.c: Likewise.
57159         * lib/backupfile.c: Likewise.
57160         * lib/backupfile.h: Likewise.
57161         * lib/basename.c: Likewise.
57162         * lib/binary-io.h: Likewise.
57163         * lib/byteswap.in.h: Likewise.
57164         * lib/c-stack.c: Likewise.
57165         * lib/c-stack.h: Likewise.
57166         * lib/c-strcasestr.c: Likewise.
57167         * lib/c-strcasestr.h: Likewise.
57168         * lib/c-strstr.c: Likewise.
57169         * lib/c-strstr.h: Likewise.
57170         * lib/c-strtod.c: Likewise.
57171         * lib/calloc.c: Likewise.
57172         * lib/canon-host.c: Likewise.
57173         * lib/canon-host.h: Likewise.
57174         * lib/canonicalize-lgpl.c: Likewise.
57175         * lib/canonicalize.c: Likewise.
57176         * lib/canonicalize.h: Likewise.
57177         * lib/ceil.c: Likewise.
57178         * lib/ceilf.c: Likewise.
57179         * lib/ceill.c: Likewise.
57180         * lib/chdir-long.c: Likewise.
57181         * lib/chdir-long.h: Likewise.
57182         * lib/chdir-safer.c: Likewise.
57183         * lib/chdir-safer.h: Likewise.
57184         * lib/chown.c: Likewise.
57185         * lib/classpath.c: Likewise.
57186         * lib/classpath.h: Likewise.
57187         * lib/clean-temp.c: Likewise.
57188         * lib/clean-temp.h: Likewise.
57189         * lib/cloexec.c: Likewise.
57190         * lib/close-stream.c: Likewise.
57191         * lib/closein.c: Likewise.
57192         * lib/closein.h: Likewise.
57193         * lib/closeout.c: Likewise.
57194         * lib/closeout.h: Likewise.
57195         * lib/concat-filename.c: Likewise.
57196         * lib/copy-file.c: Likewise.
57197         * lib/copy-file.h: Likewise.
57198         * lib/count-one-bits.h: Likewise.
57199         * lib/crc.c: Likewise.
57200         * lib/crc.h: Likewise.
57201         * lib/creat-safer.c: Likewise.
57202         * lib/csharpcomp.c: Likewise.
57203         * lib/csharpcomp.h: Likewise.
57204         * lib/csharpexec.c: Likewise.
57205         * lib/csharpexec.h: Likewise.
57206         * lib/cycle-check.c: Likewise.
57207         * lib/cycle-check.h: Likewise.
57208         * lib/diacrit.c: Likewise.
57209         * lib/diacrit.h: Likewise.
57210         * lib/diffseq.h: Likewise.
57211         * lib/dirchownmod.c: Likewise.
57212         * lib/dirent.in.h: Likewise.
57213         * lib/dirfd.c: Likewise.
57214         * lib/dirfd.h: Likewise.
57215         * lib/dirname.c: Likewise.
57216         * lib/dirname.h: Likewise.
57217         * lib/dummy.c: Likewise.
57218         * lib/dup-safer.c: Likewise.
57219         * lib/dup2.c: Likewise.
57220         * lib/eealloc.h: Likewise.
57221         * lib/error.c: Likewise.
57222         * lib/error.h: Likewise.
57223         * lib/euidaccess.c: Likewise.
57224         * lib/exclude.c: Likewise.
57225         * lib/exclude.h: Likewise.
57226         * lib/execute.c: Likewise.
57227         * lib/execute.h: Likewise.
57228         * lib/exitfail.c: Likewise.
57229         * lib/exitfail.h: Likewise.
57230         * lib/expl.c: Likewise.
57231         * lib/fatal-signal.c: Likewise.
57232         * lib/fatal-signal.h: Likewise.
57233         * lib/fbufmode.c: Likewise.
57234         * lib/fbufmode.h: Likewise.
57235         * lib/fchdir.c: Likewise.
57236         * lib/fchmodat.c: Likewise.
57237         * lib/fchownat.c: Likewise.
57238         * lib/fcntl--.h: Likewise.
57239         * lib/fcntl-safer.h: Likewise.
57240         * lib/fcntl.in.h: Likewise.
57241         * lib/fd-safer.c: Likewise.
57242         * lib/fflush.c: Likewise.
57243         * lib/file-has-acl.c: Likewise.
57244         * lib/file-set.c: Likewise.
57245         * lib/file-type.c: Likewise.
57246         * lib/file-type.h: Likewise.
57247         * lib/fileblocks.c: Likewise.
57248         * lib/filemode.c: Likewise.
57249         * lib/filemode.h: Likewise.
57250         * lib/filename.h: Likewise.
57251         * lib/filenamecat.c: Likewise.
57252         * lib/filenamecat.h: Likewise.
57253         * lib/findprog.c: Likewise.
57254         * lib/findprog.h: Likewise.
57255         * lib/float.in.h: Likewise.
57256         * lib/floor.c: Likewise.
57257         * lib/floorf.c: Likewise.
57258         * lib/floorl.c: Likewise.
57259         * lib/fopen-safer.c: Likewise.
57260         * lib/fopen.c: Likewise.
57261         * lib/fpending.c: Likewise.
57262         * lib/fpending.h: Likewise.
57263         * lib/fprintf.c: Likewise.
57264         * lib/fprintftime.h: Likewise.
57265         * lib/fpucw.h: Likewise.
57266         * lib/fpurge.c: Likewise.
57267         * lib/fpurge.h: Likewise.
57268         * lib/freadable.c: Likewise.
57269         * lib/freadable.h: Likewise.
57270         * lib/freadahead.c: Likewise.
57271         * lib/freadahead.h: Likewise.
57272         * lib/freading.c: Likewise.
57273         * lib/freading.h: Likewise.
57274         * lib/free.c: Likewise.
57275         * lib/freopen.c: Likewise.
57276         * lib/frexp.c: Likewise.
57277         * lib/frexpl.c: Likewise.
57278         * lib/fseek.c: Likewise.
57279         * lib/fseterr.c: Likewise.
57280         * lib/fseterr.h: Likewise.
57281         * lib/fstatat.c: Likewise.
57282         * lib/fstrcmp.c: Likewise.
57283         * lib/fstrcmp.h: Likewise.
57284         * lib/fsusage.c: Likewise.
57285         * lib/fsusage.h: Likewise.
57286         * lib/ftell.c: Likewise.
57287         * lib/ftello.c: Likewise.
57288         * lib/fts-cycle.c: Likewise.
57289         * lib/fts.c: Likewise.
57290         * lib/fts_.h: Likewise.
57291         * lib/full-read.c: Likewise.
57292         * lib/full-read.h: Likewise.
57293         * lib/full-write.c: Likewise.
57294         * lib/full-write.h: Likewise.
57295         * lib/fwritable.c: Likewise.
57296         * lib/fwritable.h: Likewise.
57297         * lib/fwriteerror.c: Likewise.
57298         * lib/fwriteerror.h: Likewise.
57299         * lib/fwriting.c: Likewise.
57300         * lib/fwriting.h: Likewise.
57301         * lib/gcd.c: Likewise.
57302         * lib/gcd.h: Likewise.
57303         * lib/getcwd.c: Likewise.
57304         * lib/getdate.h: Likewise.
57305         * lib/getdate.y: Likewise.
57306         * lib/getdomainname.c: Likewise.
57307         * lib/getdomainname.h: Likewise.
57308         * lib/getgroups.c: Likewise.
57309         * lib/gethostname.c: Likewise.
57310         * lib/gethrxtime.c: Likewise.
57311         * lib/gethrxtime.h: Likewise.
57312         * lib/getloadavg.c: Likewise.
57313         * lib/getndelim2.c: Likewise.
57314         * lib/getndelim2.h: Likewise.
57315         * lib/getnline.c: Likewise.
57316         * lib/getnline.h: Likewise.
57317         * lib/getopt.c: Likewise.
57318         * lib/getopt.in.h: Likewise.
57319         * lib/getopt1.c: Likewise.
57320         * lib/getopt_int.h: Likewise.
57321         * lib/getpagesize.h: Likewise.
57322         * lib/getsubopt.c: Likewise.
57323         * lib/gettime.c: Likewise.
57324         * lib/getugroups.c: Likewise.
57325         * lib/getugroups.h: Likewise.
57326         * lib/getusershell.c: Likewise.
57327         * lib/gl_anyavltree_list1.h: Likewise.
57328         * lib/gl_anyavltree_list2.h: Likewise.
57329         * lib/gl_anyhash_list1.h: Likewise.
57330         * lib/gl_anyhash_list2.h: Likewise.
57331         * lib/gl_anylinked_list1.h: Likewise.
57332         * lib/gl_anylinked_list2.h: Likewise.
57333         * lib/gl_anyrbtree_list1.h: Likewise.
57334         * lib/gl_anyrbtree_list2.h: Likewise.
57335         * lib/gl_anytree_list1.h: Likewise.
57336         * lib/gl_anytree_list2.h: Likewise.
57337         * lib/gl_anytree_oset.h: Likewise.
57338         * lib/gl_anytreehash_list1.h: Likewise.
57339         * lib/gl_anytreehash_list2.h: Likewise.
57340         * lib/gl_array_list.c: Likewise.
57341         * lib/gl_array_list.h: Likewise.
57342         * lib/gl_array_oset.c: Likewise.
57343         * lib/gl_array_oset.h: Likewise.
57344         * lib/gl_avltree_list.c: Likewise.
57345         * lib/gl_avltree_list.h: Likewise.
57346         * lib/gl_avltree_oset.c: Likewise.
57347         * lib/gl_avltree_oset.h: Likewise.
57348         * lib/gl_avltreehash_list.c: Likewise.
57349         * lib/gl_avltreehash_list.h: Likewise.
57350         * lib/gl_carray_list.c: Likewise.
57351         * lib/gl_carray_list.h: Likewise.
57352         * lib/gl_linked_list.c: Likewise.
57353         * lib/gl_linked_list.h: Likewise.
57354         * lib/gl_linkedhash_list.c: Likewise.
57355         * lib/gl_linkedhash_list.h: Likewise.
57356         * lib/gl_list.c: Likewise.
57357         * lib/gl_list.h: Likewise.
57358         * lib/gl_oset.c: Likewise.
57359         * lib/gl_oset.h: Likewise.
57360         * lib/gl_rbtree_list.c: Likewise.
57361         * lib/gl_rbtree_list.h: Likewise.
57362         * lib/gl_rbtree_oset.c: Likewise.
57363         * lib/gl_rbtree_oset.h: Likewise.
57364         * lib/gl_rbtreehash_list.c: Likewise.
57365         * lib/gl_rbtreehash_list.h: Likewise.
57366         * lib/gl_sublist.c: Likewise.
57367         * lib/gl_sublist.h: Likewise.
57368         * lib/group-member.c: Likewise.
57369         * lib/group-member.h: Likewise.
57370         * lib/hard-locale.c: Likewise.
57371         * lib/hard-locale.h: Likewise.
57372         * lib/hash-pjw.c: Likewise.
57373         * lib/hash-pjw.h: Likewise.
57374         * lib/hash-triple.c: Likewise.
57375         * lib/hash.c: Likewise.
57376         * lib/hash.h: Likewise.
57377         * lib/human.c: Likewise.
57378         * lib/human.h: Likewise.
57379         * lib/i-ring.c: Likewise.
57380         * lib/i-ring.h: Likewise.
57381         * lib/idcache.c: Likewise.
57382         * lib/imaxabs.c: Likewise.
57383         * lib/imaxdiv.c: Likewise.
57384         * lib/inet_pton.c: Likewise.
57385         * lib/inet_pton.h: Likewise.
57386         * lib/intprops.h: Likewise.
57387         * lib/inttostr.c: Likewise.
57388         * lib/inttostr.h: Likewise.
57389         * lib/inttypes.in.h: Likewise.
57390         * lib/isapipe.c: Likewise.
57391         * lib/isdir.c: Likewise.
57392         * lib/isnan.c: Likewise.
57393         * lib/isnan.h: Likewise.
57394         * lib/isnanf.c: Likewise.
57395         * lib/isnanf.h: Likewise.
57396         * lib/isnanl-nolibm.h: Likewise.
57397         * lib/isnanl.c: Likewise.
57398         * lib/isnanl.h: Likewise.
57399         * lib/javacomp.c: Likewise.
57400         * lib/javacomp.h: Likewise.
57401         * lib/javaexec.c: Likewise.
57402         * lib/javaexec.h: Likewise.
57403         * lib/javaversion.c: Likewise.
57404         * lib/javaversion.h: Likewise.
57405         * lib/javaversion.java: Likewise.
57406         * lib/lbrkprop.h: Likewise.
57407         * lib/lchmod.h: Likewise.
57408         * lib/lchown.c: Likewise.
57409         * lib/ldexpl.c: Likewise.
57410         * lib/linebreak.c: Likewise.
57411         * lib/linebreak.h: Likewise.
57412         * lib/linebuffer.c: Likewise.
57413         * lib/linebuffer.h: Likewise.
57414         * lib/locale.in.h: Likewise.
57415         * lib/logl.c: Likewise.
57416         * lib/long-options.c: Likewise.
57417         * lib/long-options.h: Likewise.
57418         * lib/lstat.c: Likewise.
57419         * lib/lstat.h: Likewise.
57420         * lib/math.in.h: Likewise.
57421         * lib/mbchar.c: Likewise.
57422         * lib/mbchar.h: Likewise.
57423         * lib/mbfile.h: Likewise.
57424         * lib/mbiter.h: Likewise.
57425         * lib/mbscasecmp.c: Likewise.
57426         * lib/mbscasestr.c: Likewise.
57427         * lib/mbschr.c: Likewise.
57428         * lib/mbscspn.c: Likewise.
57429         * lib/mbslen.c: Likewise.
57430         * lib/mbsncasecmp.c: Likewise.
57431         * lib/mbsnlen.c: Likewise.
57432         * lib/mbspbrk.c: Likewise.
57433         * lib/mbspcasecmp.c: Likewise.
57434         * lib/mbsrchr.c: Likewise.
57435         * lib/mbssep.c: Likewise.
57436         * lib/mbsspn.c: Likewise.
57437         * lib/mbsstr.c: Likewise.
57438         * lib/mbstok_r.c: Likewise.
57439         * lib/mbswidth.c: Likewise.
57440         * lib/mbswidth.h: Likewise.
57441         * lib/mbuiter.h: Likewise.
57442         * lib/memcasecmp.c: Likewise.
57443         * lib/memcasecmp.h: Likewise.
57444         * lib/memchr.c: Likewise.
57445         * lib/memcmp.c: Likewise.
57446         * lib/memcoll.c: Likewise.
57447         * lib/memcoll.h: Likewise.
57448         * lib/memcpy.c: Likewise.
57449         * lib/memrchr.c: Likewise.
57450         * lib/mkancesdirs.c: Likewise.
57451         * lib/mkdir-p.c: Likewise.
57452         * lib/mkdir-p.h: Likewise.
57453         * lib/mkdir.c: Likewise.
57454         * lib/mkdirat.c: Likewise.
57455         * lib/mkdtemp.c: Likewise.
57456         * lib/mkstemp-safer.c: Likewise.
57457         * lib/mkstemp.c: Likewise.
57458         * lib/modechange.c: Likewise.
57459         * lib/modechange.h: Likewise.
57460         * lib/mountlist.c: Likewise.
57461         * lib/mountlist.h: Likewise.
57462         * lib/mpsort.c: Likewise.
57463         * lib/nanosleep.c: Likewise.
57464         * lib/obstack.c: Likewise.
57465         * lib/obstack.h: Likewise.
57466         * lib/open-safer.c: Likewise.
57467         * lib/open.c: Likewise.
57468         * lib/openat-die.c: Likewise.
57469         * lib/openat-priv.h: Likewise.
57470         * lib/openat-proc.c: Likewise.
57471         * lib/openat.c: Likewise.
57472         * lib/openat.h: Likewise.
57473         * lib/pagealign_alloc.c: Likewise.
57474         * lib/pagealign_alloc.h: Likewise.
57475         * lib/physmem.c: Likewise.
57476         * lib/physmem.h: Likewise.
57477         * lib/pipe-safer.c: Likewise.
57478         * lib/pipe.c: Likewise.
57479         * lib/pipe.h: Likewise.
57480         * lib/posixtm.c: Likewise.
57481         * lib/posixtm.h: Likewise.
57482         * lib/posixver.c: Likewise.
57483         * lib/printf-frexp.c: Likewise.
57484         * lib/printf-frexp.h: Likewise.
57485         * lib/printf-frexpl.c: Likewise.
57486         * lib/printf-frexpl.h: Likewise.
57487         * lib/printf.c: Likewise.
57488         * lib/progname.c: Likewise.
57489         * lib/progname.h: Likewise.
57490         * lib/progreloc.c: Likewise.
57491         * lib/putenv.c: Likewise.
57492         * lib/quote.c: Likewise.
57493         * lib/quote.h: Likewise.
57494         * lib/quotearg.c: Likewise.
57495         * lib/quotearg.h: Likewise.
57496         * lib/raise.c: Likewise.
57497         * lib/readline.c: Likewise.
57498         * lib/readline.h: Likewise.
57499         * lib/readlink.c: Likewise.
57500         * lib/readtokens.c: Likewise.
57501         * lib/readtokens.h: Likewise.
57502         * lib/readtokens0.c: Likewise.
57503         * lib/readtokens0.h: Likewise.
57504         * lib/readutmp.c: Likewise.
57505         * lib/readutmp.h: Likewise.
57506         * lib/realloc.c: Likewise.
57507         * lib/relocwrapper.c: Likewise.
57508         * lib/rename-dest-slash.c: Likewise.
57509         * lib/rename.c: Likewise.
57510         * lib/rmdir.c: Likewise.
57511         * lib/rpmatch.c: Likewise.
57512         * lib/safe-read.c: Likewise.
57513         * lib/safe-read.h: Likewise.
57514         * lib/safe-write.c: Likewise.
57515         * lib/safe-write.h: Likewise.
57516         * lib/same-inode.h: Likewise.
57517         * lib/same.c: Likewise.
57518         * lib/same.h: Likewise.
57519         * lib/save-cwd.c: Likewise.
57520         * lib/save-cwd.h: Likewise.
57521         * lib/savedir.c: Likewise.
57522         * lib/savedir.h: Likewise.
57523         * lib/savewd.c: Likewise.
57524         * lib/savewd.h: Likewise.
57525         * lib/search.in.h: Likewise.
57526         * lib/setenv.c: Likewise.
57527         * lib/setenv.h: Likewise.
57528         * lib/settime.c: Likewise.
57529         * lib/sh-quote.c: Likewise.
57530         * lib/sh-quote.h: Likewise.
57531         * lib/sig2str.c: Likewise.
57532         * lib/sig2str.h: Likewise.
57533         * lib/signal.in.h: Likewise.
57534         * lib/signbitd.c: Likewise.
57535         * lib/signbitf.c: Likewise.
57536         * lib/signbitl.c: Likewise.
57537         * lib/sigprocmask.c: Likewise.
57538         * lib/sincosl.c: Likewise.
57539         * lib/sleep.c: Likewise.
57540         * lib/sprintf.c: Likewise.
57541         * lib/sqrtl.c: Likewise.
57542         * lib/stat-time.h: Likewise.
57543         * lib/stdio--.h: Likewise.
57544         * lib/stdio-safer.h: Likewise.
57545         * lib/stdlib--.h: Likewise.
57546         * lib/stdlib-safer.h: Likewise.
57547         * lib/stdlib.in.h: Likewise.
57548         * lib/stpcpy.c: Likewise.
57549         * lib/stpncpy.c: Likewise.
57550         * lib/strchrnul.c: Likewise.
57551         * lib/strcspn.c: Likewise.
57552         * lib/strerror.c: Likewise.
57553         * lib/strftime.c: Likewise.
57554         * lib/strftime.h: Likewise.
57555         * lib/striconveh.c: Likewise.
57556         * lib/striconveh.h: Likewise.
57557         * lib/striconveha.c: Likewise.
57558         * lib/striconveha.h: Likewise.
57559         * lib/stripslash.c: Likewise.
57560         * lib/strnlen1.c: Likewise.
57561         * lib/strnlen1.h: Likewise.
57562         * lib/strtod.c: Likewise.
57563         * lib/strtoimax.c: Likewise.
57564         * lib/strtok_r.c: Likewise.
57565         * lib/strtol.c: Likewise.
57566         * lib/strtoll.c: Likewise.
57567         * lib/strtoul.c: Likewise.
57568         * lib/strtoull.c: Likewise.
57569         * lib/sysexits.in.h: Likewise.
57570         * lib/tempname.c: Likewise.
57571         * lib/tempname.h: Likewise.
57572         * lib/timespec.h: Likewise.
57573         * lib/tls.c: Likewise.
57574         * lib/tls.h: Likewise.
57575         * lib/tmpdir.c: Likewise.
57576         * lib/tmpdir.h: Likewise.
57577         * lib/tmpfile-safer.c: Likewise.
57578         * lib/tmpfile.c: Likewise.
57579         * lib/trigl.c: Likewise.
57580         * lib/trigl.h: Likewise.
57581         * lib/trim.c: Likewise.
57582         * lib/trim.h: Likewise.
57583         * lib/trunc.c: Likewise.
57584         * lib/truncf.c: Likewise.
57585         * lib/truncl.c: Likewise.
57586         * lib/tsearch.c: Likewise.
57587         * lib/unicodeio.c: Likewise.
57588         * lib/unicodeio.h: Likewise.
57589         * lib/unistd--.h: Likewise.
57590         * lib/unistd-safer.h: Likewise.
57591         * lib/unistdio/ulc-fprintf.c: Likewise.
57592         * lib/unistdio/ulc-vfprintf.c: Likewise.
57593         * lib/unlinkdir.c: Likewise.
57594         * lib/unlinkdir.h: Likewise.
57595         * lib/unlocked-io.h: Likewise.
57596         * lib/unsetenv.c: Likewise.
57597         * lib/userspec.c: Likewise.
57598         * lib/utime.c: Likewise.
57599         * lib/utimecmp.c: Likewise.
57600         * lib/utimecmp.h: Likewise.
57601         * lib/utimens.c: Likewise.
57602         * lib/verify.h: Likewise.
57603         * lib/verror.c: Likewise.
57604         * lib/verror.h: Likewise.
57605         * lib/version-etc-fsf.c: Likewise.
57606         * lib/version-etc.c: Likewise.
57607         * lib/version-etc.h: Likewise.
57608         * lib/vfprintf.c: Likewise.
57609         * lib/vprintf.c: Likewise.
57610         * lib/vsprintf.c: Likewise.
57611         * lib/w32spawn.h: Likewise.
57612         * lib/wait-process.c: Likewise.
57613         * lib/wait-process.h: Likewise.
57614         * lib/wcwidth.c: Likewise.
57615         * lib/write-any-file.c: Likewise.
57616         * lib/xalloc-die.c: Likewise.
57617         * lib/xalloc.h: Likewise.
57618         * lib/xasprintf.c: Likewise.
57619         * lib/xgetcwd.c: Likewise.
57620         * lib/xgetcwd.h: Likewise.
57621         * lib/xgetdomainname.c: Likewise.
57622         * lib/xgetdomainname.h: Likewise.
57623         * lib/xgethostname.c: Likewise.
57624         * lib/xmalloc.c: Likewise.
57625         * lib/xmalloca.c: Likewise.
57626         * lib/xmalloca.h: Likewise.
57627         * lib/xmemcoll.c: Likewise.
57628         * lib/xnanosleep.c: Likewise.
57629         * lib/xreadlink.c: Likewise.
57630         * lib/xreadlink.h: Likewise.
57631         * lib/xsetenv.c: Likewise.
57632         * lib/xsetenv.h: Likewise.
57633         * lib/xstriconv.c: Likewise.
57634         * lib/xstriconv.h: Likewise.
57635         * lib/xstrndup.c: Likewise.
57636         * lib/xstrndup.h: Likewise.
57637         * lib/xstrtod.c: Likewise.
57638         * lib/xstrtod.h: Likewise.
57639         * lib/xstrtol-error.c: Likewise.
57640         * lib/xstrtol.c: Likewise.
57641         * lib/xstrtol.h: Likewise.
57642         * lib/xtime.h: Likewise.
57643         * lib/xvasprintf.c: Likewise.
57644         * lib/xvasprintf.h: Likewise.
57645         * lib/yesno.c: Likewise.
57646         * lib/yesno.h: Likewise.
57647         * posix-modules: Likewise.
57648         * tests/test-alloca-opt.c: Likewise.
57649         * tests/test-arcfour.c: Likewise.
57650         * tests/test-arctwo.c: Likewise.
57651         * tests/test-argmatch.c: Likewise.
57652         * tests/test-argp-2.sh: Likewise.
57653         * tests/test-argp.c: Likewise.
57654         * tests/test-arpa_inet.c: Likewise.
57655         * tests/test-array_list.c: Likewise.
57656         * tests/test-array_oset.c: Likewise.
57657         * tests/test-atexit.c: Likewise.
57658         * tests/test-avltree_list.c: Likewise.
57659         * tests/test-avltree_oset.c: Likewise.
57660         * tests/test-avltreehash_list.c: Likewise.
57661         * tests/test-base64.c: Likewise.
57662         * tests/test-binary-io.c: Likewise.
57663         * tests/test-byteswap.c: Likewise.
57664         * tests/test-c-ctype.c: Likewise.
57665         * tests/test-c-strcasecmp.c: Likewise.
57666         * tests/test-c-strcasestr.c: Likewise.
57667         * tests/test-c-strncasecmp.c: Likewise.
57668         * tests/test-c-strstr.c: Likewise.
57669         * tests/test-canonicalize-lgpl.c: Likewise.
57670         * tests/test-canonicalize.c: Likewise.
57671         * tests/test-carray_list.c: Likewise.
57672         * tests/test-ceilf.c: Likewise.
57673         * tests/test-ceill.c: Likewise.
57674         * tests/test-count-one-bits.c: Likewise.
57675         * tests/test-crc.c: Likewise.
57676         * tests/test-dirname.c: Likewise.
57677         * tests/test-fbufmode.c: Likewise.
57678         * tests/test-fcntl.c: Likewise.
57679         * tests/test-fflush.c: Likewise.
57680         * tests/test-floorf.c: Likewise.
57681         * tests/test-floorl.c: Likewise.
57682         * tests/test-fopen.c: Likewise.
57683         * tests/test-fprintf-posix.c: Likewise.
57684         * tests/test-fprintf-posix.h: Likewise.
57685         * tests/test-fpurge.c: Likewise.
57686         * tests/test-freadable.c: Likewise.
57687         * tests/test-freadahead.c: Likewise.
57688         * tests/test-freading.c: Likewise.
57689         * tests/test-freopen.c: Likewise.
57690         * tests/test-frexp.c: Likewise.
57691         * tests/test-frexpl.c: Likewise.
57692         * tests/test-fseek.c: Likewise.
57693         * tests/test-fseeko.c: Likewise.
57694         * tests/test-fseterr.c: Likewise.
57695         * tests/test-fstrcmp.c: Likewise.
57696         * tests/test-ftell.c: Likewise.
57697         * tests/test-ftello.c: Likewise.
57698         * tests/test-fwritable.c: Likewise.
57699         * tests/test-fwriting.c: Likewise.
57700         * tests/test-getaddrinfo.c: Likewise.
57701         * tests/test-getpass.c: Likewise.
57702         * tests/test-gettimeofday.c: Likewise.
57703         * tests/test-hmac-md5.c: Likewise.
57704         * tests/test-hmac-sha1.c: Likewise.
57705         * tests/test-iconv.c: Likewise.
57706         * tests/test-iconvme.c: Likewise.
57707         * tests/test-inttypes.c: Likewise.
57708         * tests/test-isnan.c: Likewise.
57709         * tests/test-isnanf.c: Likewise.
57710         * tests/test-isnanl-nolibm.c: Likewise.
57711         * tests/test-isnanl.c: Likewise.
57712         * tests/test-isnanl.h: Likewise.
57713         * tests/test-ldexpl.c: Likewise.
57714         * tests/test-linked_list.c: Likewise.
57715         * tests/test-linkedhash_list.c: Likewise.
57716         * tests/test-locale.c: Likewise.
57717         * tests/test-localename.c: Likewise.
57718         * tests/test-lock.c: Likewise.
57719         * tests/test-lseek.c: Likewise.
57720         * tests/test-malloca.c: Likewise.
57721         * tests/test-math.c: Likewise.
57722         * tests/test-mbscasecmp.c: Likewise.
57723         * tests/test-mbscasestr1.c: Likewise.
57724         * tests/test-mbscasestr2.c: Likewise.
57725         * tests/test-mbscasestr3.c: Likewise.
57726         * tests/test-mbscasestr4.c: Likewise.
57727         * tests/test-mbschr.c: Likewise.
57728         * tests/test-mbscspn.c: Likewise.
57729         * tests/test-mbsncasecmp.c: Likewise.
57730         * tests/test-mbspbrk.c: Likewise.
57731         * tests/test-mbspcasecmp.c: Likewise.
57732         * tests/test-mbsrchr.c: Likewise.
57733         * tests/test-mbsspn.c: Likewise.
57734         * tests/test-mbsstr1.c: Likewise.
57735         * tests/test-mbsstr2.c: Likewise.
57736         * tests/test-mbsstr3.c: Likewise.
57737         * tests/test-md5.c: Likewise.
57738         * tests/test-memmem.c: Likewise.
57739         * tests/test-netinet_in.c: Likewise.
57740         * tests/test-open.c: Likewise.
57741         * tests/test-printf-frexp.c: Likewise.
57742         * tests/test-printf-frexpl.c: Likewise.
57743         * tests/test-printf-posix.c: Likewise.
57744         * tests/test-printf-posix.h: Likewise.
57745         * tests/test-rbtree_list.c: Likewise.
57746         * tests/test-rbtree_oset.c: Likewise.
57747         * tests/test-rbtreehash_list.c: Likewise.
57748         * tests/test-read-file.c: Likewise.
57749         * tests/test-rijndael.c: Likewise.
57750         * tests/test-search.c: Likewise.
57751         * tests/test-signbit.c: Likewise.
57752         * tests/test-sleep.c: Likewise.
57753         * tests/test-snprintf-posix.c: Likewise.
57754         * tests/test-snprintf-posix.h: Likewise.
57755         * tests/test-snprintf.c: Likewise.
57756         * tests/test-sprintf-posix.c: Likewise.
57757         * tests/test-sprintf-posix.h: Likewise.
57758         * tests/test-stat-time.c: Likewise.
57759         * tests/test-stdbool.c: Likewise.
57760         * tests/test-stdint.c: Likewise.
57761         * tests/test-stdio.c: Likewise.
57762         * tests/test-stdlib.c: Likewise.
57763         * tests/test-stpncpy.c: Likewise.
57764         * tests/test-strcasestr.c: Likewise.
57765         * tests/test-striconv.c: Likewise.
57766         * tests/test-striconveh.c: Likewise.
57767         * tests/test-striconveha.c: Likewise.
57768         * tests/test-string.c: Likewise.
57769         * tests/test-sys_select.c: Likewise.
57770         * tests/test-sys_socket.c: Likewise.
57771         * tests/test-sys_stat.c: Likewise.
57772         * tests/test-sys_time.c: Likewise.
57773         * tests/test-sysexits.c: Likewise.
57774         * tests/test-time.c: Likewise.
57775         * tests/test-tls.c: Likewise.
57776         * tests/test-trunc.c: Likewise.
57777         * tests/test-truncf.c: Likewise.
57778         * tests/test-truncl.c: Likewise.
57779         * tests/test-unistd.c: Likewise.
57780         * tests/test-vasnprintf-posix.c: Likewise.
57781         * tests/test-vasnprintf-posix2.c: Likewise.
57782         * tests/test-vasnprintf.c: Likewise.
57783         * tests/test-vasprintf-posix.c: Likewise.
57784         * tests/test-vasprintf.c: Likewise.
57785         * tests/test-verify.c: Likewise.
57786         * tests/test-vfprintf-posix.c: Likewise.
57787         * tests/test-vprintf-posix.c: Likewise.
57788         * tests/test-vsnprintf-posix.c: Likewise.
57789         * tests/test-vsnprintf.c: Likewise.
57790         * tests/test-vsprintf-posix.c: Likewise.
57791         * tests/test-wchar.c: Likewise.
57792         * tests/test-wctype.c: Likewise.
57793         * tests/test-wcwidth.c: Likewise.
57794         * tests/test-xstrtol.c: Likewise.
57795         * tests/test-xvasprintf.c: Likewise.
57796         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
57797         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
57798         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57799         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57800         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57801         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
57802         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57803         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57804         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57805         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
57806         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57807         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57808         * tests/uniname/test-uninames.c: Likewise.
57809         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
57810         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
57811         * tests/unistdio/test-u16-printf1.h: Likewise.
57812         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
57813         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
57814         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
57815         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
57816         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
57817         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
57818         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
57819         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
57820         * tests/unistdio/test-u32-printf1.h: Likewise.
57821         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
57822         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
57823         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
57824         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
57825         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
57826         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
57827         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
57828         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
57829         * tests/unistdio/test-u8-printf1.h: Likewise.
57830         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
57831         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
57832         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
57833         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
57834         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
57835         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
57836         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
57837         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
57838         * tests/unistdio/test-ulc-printf1.h: Likewise.
57839         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
57840         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
57841         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
57842         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
57843         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
57844         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
57845         * tests/uniwidth/test-u16-strwidth.c: Likewise.
57846         * tests/uniwidth/test-u16-width.c: Likewise.
57847         * tests/uniwidth/test-u32-strwidth.c: Likewise.
57848         * tests/uniwidth/test-u32-width.c: Likewise.
57849         * tests/uniwidth/test-u8-strwidth.c: Likewise.
57850         * tests/uniwidth/test-u8-width.c: Likewise.
57851         * tests/uniwidth/test-uc_width.c: Likewise.
57852         * config/srclist-update: Likewise.
57853         (fixlicense): Update to GPLv3+.
57854
57855         Change copyright notice from LGPLv2.1+ to LGPLv3+.
57856         * tests/test-tsearch.c: Change copyright notice.
57857
57858         Change copyright notice from LGPLv2.0+ to LGPLv3+.
57859         * lib/c-strcaseeq.h: Change copyright notice.
57860         * lib/streq.h: Likewise.
57861         * lib/uniconv.h: Likewise.
57862         * lib/uniconv/u-conv-from-enc.h: Likewise.
57863         * lib/uniconv/u-conv-to-enc.h: Likewise.
57864         * lib/uniconv/u-strconv-from-enc.h: Likewise.
57865         * lib/uniconv/u-strconv-to-enc.h: Likewise.
57866         * lib/uniconv/u16-conv-from-enc.c: Likewise.
57867         * lib/uniconv/u16-conv-to-enc.c: Likewise.
57868         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
57869         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
57870         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
57871         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
57872         * lib/uniconv/u32-conv-from-enc.c: Likewise.
57873         * lib/uniconv/u32-conv-to-enc.c: Likewise.
57874         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
57875         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
57876         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
57877         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
57878         * lib/uniconv/u8-conv-from-enc.c: Likewise.
57879         * lib/uniconv/u8-conv-to-enc.c: Likewise.
57880         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
57881         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
57882         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
57883         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
57884         * lib/uniname.h: Likewise.
57885         * lib/uniname/uniname.c: Likewise.
57886         * lib/unistdio.h: Likewise.
57887         * lib/unistdio/u-asnprintf.h: Likewise.
57888         * lib/unistdio/u-asprintf.h: Likewise.
57889         * lib/unistdio/u-printf-args.c: Likewise.
57890         * lib/unistdio/u-printf-args.h: Likewise.
57891         * lib/unistdio/u-printf-parse.h: Likewise.
57892         * lib/unistdio/u-snprintf.h: Likewise.
57893         * lib/unistdio/u-sprintf.h: Likewise.
57894         * lib/unistdio/u-vasprintf.h: Likewise.
57895         * lib/unistdio/u-vsnprintf.h: Likewise.
57896         * lib/unistdio/u-vsprintf.h: Likewise.
57897         * lib/unistdio/u16-asnprintf.c: Likewise.
57898         * lib/unistdio/u16-asprintf.c: Likewise.
57899         * lib/unistdio/u16-printf-parse.c: Likewise.
57900         * lib/unistdio/u16-snprintf.c: Likewise.
57901         * lib/unistdio/u16-sprintf.c: Likewise.
57902         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
57903         * lib/unistdio/u16-u16-asprintf.c: Likewise.
57904         * lib/unistdio/u16-u16-snprintf.c: Likewise.
57905         * lib/unistdio/u16-u16-sprintf.c: Likewise.
57906         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
57907         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
57908         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
57909         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
57910         * lib/unistdio/u16-vasnprintf.c: Likewise.
57911         * lib/unistdio/u16-vasprintf.c: Likewise.
57912         * lib/unistdio/u16-vsnprintf.c: Likewise.
57913         * lib/unistdio/u16-vsprintf.c: Likewise.
57914         * lib/unistdio/u32-asnprintf.c: Likewise.
57915         * lib/unistdio/u32-asprintf.c: Likewise.
57916         * lib/unistdio/u32-printf-parse.c: Likewise.
57917         * lib/unistdio/u32-snprintf.c: Likewise.
57918         * lib/unistdio/u32-sprintf.c: Likewise.
57919         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
57920         * lib/unistdio/u32-u32-asprintf.c: Likewise.
57921         * lib/unistdio/u32-u32-snprintf.c: Likewise.
57922         * lib/unistdio/u32-u32-sprintf.c: Likewise.
57923         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
57924         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
57925         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
57926         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
57927         * lib/unistdio/u32-vasnprintf.c: Likewise.
57928         * lib/unistdio/u32-vasprintf.c: Likewise.
57929         * lib/unistdio/u32-vsnprintf.c: Likewise.
57930         * lib/unistdio/u32-vsprintf.c: Likewise.
57931         * lib/unistdio/u8-asnprintf.c: Likewise.
57932         * lib/unistdio/u8-asprintf.c: Likewise.
57933         * lib/unistdio/u8-printf-parse.c: Likewise.
57934         * lib/unistdio/u8-snprintf.c: Likewise.
57935         * lib/unistdio/u8-sprintf.c: Likewise.
57936         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
57937         * lib/unistdio/u8-u8-asprintf.c: Likewise.
57938         * lib/unistdio/u8-u8-snprintf.c: Likewise.
57939         * lib/unistdio/u8-u8-sprintf.c: Likewise.
57940         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
57941         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
57942         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
57943         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
57944         * lib/unistdio/u8-vasnprintf.c: Likewise.
57945         * lib/unistdio/u8-vasprintf.c: Likewise.
57946         * lib/unistdio/u8-vsnprintf.c: Likewise.
57947         * lib/unistdio/u8-vsprintf.c: Likewise.
57948         * lib/unistdio/ulc-asnprintf.c: Likewise.
57949         * lib/unistdio/ulc-asprintf.c: Likewise.
57950         * lib/unistdio/ulc-printf-parse.c: Likewise.
57951         * lib/unistdio/ulc-snprintf.c: Likewise.
57952         * lib/unistdio/ulc-sprintf.c: Likewise.
57953         * lib/unistdio/ulc-vasnprintf.c: Likewise.
57954         * lib/unistdio/ulc-vasprintf.c: Likewise.
57955         * lib/unistdio/ulc-vsnprintf.c: Likewise.
57956         * lib/unistdio/ulc-vsprintf.c: Likewise.
57957         * lib/unistr.h: Likewise.
57958         * lib/unistr/u-cpy-alloc.h: Likewise.
57959         * lib/unistr/u-cpy.h: Likewise.
57960         * lib/unistr/u-endswith.h: Likewise.
57961         * lib/unistr/u-move.h: Likewise.
57962         * lib/unistr/u-set.h: Likewise.
57963         * lib/unistr/u-startswith.h: Likewise.
57964         * lib/unistr/u-stpcpy.h: Likewise.
57965         * lib/unistr/u-stpncpy.h: Likewise.
57966         * lib/unistr/u-strcat.h: Likewise.
57967         * lib/unistr/u-strcpy.h: Likewise.
57968         * lib/unistr/u-strcspn.h: Likewise.
57969         * lib/unistr/u-strdup.h: Likewise.
57970         * lib/unistr/u-strlen.h: Likewise.
57971         * lib/unistr/u-strncat.h: Likewise.
57972         * lib/unistr/u-strncpy.h: Likewise.
57973         * lib/unistr/u-strnlen.h: Likewise.
57974         * lib/unistr/u-strpbrk.h: Likewise.
57975         * lib/unistr/u-strspn.h: Likewise.
57976         * lib/unistr/u-strstr.h: Likewise.
57977         * lib/unistr/u-strtok.h: Likewise.
57978         * lib/unistr/u16-check.c: Likewise.
57979         * lib/unistr/u16-chr.c: Likewise.
57980         * lib/unistr/u16-cmp.c: Likewise.
57981         * lib/unistr/u16-cpy-alloc.c: Likewise.
57982         * lib/unistr/u16-cpy.c: Likewise.
57983         * lib/unistr/u16-endswith.c: Likewise.
57984         * lib/unistr/u16-mblen.c: Likewise.
57985         * lib/unistr/u16-mbsnlen.c: Likewise.
57986         * lib/unistr/u16-mbtouc-aux.c: Likewise.
57987         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
57988         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
57989         * lib/unistr/u16-mbtouc.c: Likewise.
57990         * lib/unistr/u16-mbtoucr.c: Likewise.
57991         * lib/unistr/u16-move.c: Likewise.
57992         * lib/unistr/u16-next.c: Likewise.
57993         * lib/unistr/u16-prev.c: Likewise.
57994         * lib/unistr/u16-set.c: Likewise.
57995         * lib/unistr/u16-startswith.c: Likewise.
57996         * lib/unistr/u16-stpcpy.c: Likewise.
57997         * lib/unistr/u16-stpncpy.c: Likewise.
57998         * lib/unistr/u16-strcat.c: Likewise.
57999         * lib/unistr/u16-strchr.c: Likewise.
58000         * lib/unistr/u16-strcmp.c: Likewise.
58001         * lib/unistr/u16-strcpy.c: Likewise.
58002         * lib/unistr/u16-strcspn.c: Likewise.
58003         * lib/unistr/u16-strdup.c: Likewise.
58004         * lib/unistr/u16-strlen.c: Likewise.
58005         * lib/unistr/u16-strmblen.c: Likewise.
58006         * lib/unistr/u16-strmbtouc.c: Likewise.
58007         * lib/unistr/u16-strncat.c: Likewise.
58008         * lib/unistr/u16-strncmp.c: Likewise.
58009         * lib/unistr/u16-strncpy.c: Likewise.
58010         * lib/unistr/u16-strnlen.c: Likewise.
58011         * lib/unistr/u16-strpbrk.c: Likewise.
58012         * lib/unistr/u16-strrchr.c: Likewise.
58013         * lib/unistr/u16-strspn.c: Likewise.
58014         * lib/unistr/u16-strstr.c: Likewise.
58015         * lib/unistr/u16-strtok.c: Likewise.
58016         * lib/unistr/u16-to-u32.c: Likewise.
58017         * lib/unistr/u16-to-u8.c: Likewise.
58018         * lib/unistr/u16-uctomb-aux.c: Likewise.
58019         * lib/unistr/u16-uctomb.c: Likewise.
58020         * lib/unistr/u32-check.c: Likewise.
58021         * lib/unistr/u32-chr.c: Likewise.
58022         * lib/unistr/u32-cmp.c: Likewise.
58023         * lib/unistr/u32-cpy-alloc.c: Likewise.
58024         * lib/unistr/u32-cpy.c: Likewise.
58025         * lib/unistr/u32-endswith.c: Likewise.
58026         * lib/unistr/u32-mblen.c: Likewise.
58027         * lib/unistr/u32-mbsnlen.c: Likewise.
58028         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
58029         * lib/unistr/u32-mbtouc.c: Likewise.
58030         * lib/unistr/u32-mbtoucr.c: Likewise.
58031         * lib/unistr/u32-move.c: Likewise.
58032         * lib/unistr/u32-next.c: Likewise.
58033         * lib/unistr/u32-prev.c: Likewise.
58034         * lib/unistr/u32-set.c: Likewise.
58035         * lib/unistr/u32-startswith.c: Likewise.
58036         * lib/unistr/u32-stpcpy.c: Likewise.
58037         * lib/unistr/u32-stpncpy.c: Likewise.
58038         * lib/unistr/u32-strcat.c: Likewise.
58039         * lib/unistr/u32-strchr.c: Likewise.
58040         * lib/unistr/u32-strcmp.c: Likewise.
58041         * lib/unistr/u32-strcpy.c: Likewise.
58042         * lib/unistr/u32-strcspn.c: Likewise.
58043         * lib/unistr/u32-strdup.c: Likewise.
58044         * lib/unistr/u32-strlen.c: Likewise.
58045         * lib/unistr/u32-strmblen.c: Likewise.
58046         * lib/unistr/u32-strmbtouc.c: Likewise.
58047         * lib/unistr/u32-strncat.c: Likewise.
58048         * lib/unistr/u32-strncmp.c: Likewise.
58049         * lib/unistr/u32-strncpy.c: Likewise.
58050         * lib/unistr/u32-strnlen.c: Likewise.
58051         * lib/unistr/u32-strpbrk.c: Likewise.
58052         * lib/unistr/u32-strrchr.c: Likewise.
58053         * lib/unistr/u32-strspn.c: Likewise.
58054         * lib/unistr/u32-strstr.c: Likewise.
58055         * lib/unistr/u32-strtok.c: Likewise.
58056         * lib/unistr/u32-to-u16.c: Likewise.
58057         * lib/unistr/u32-to-u8.c: Likewise.
58058         * lib/unistr/u32-uctomb.c: Likewise.
58059         * lib/unistr/u8-check.c: Likewise.
58060         * lib/unistr/u8-chr.c: Likewise.
58061         * lib/unistr/u8-cmp.c: Likewise.
58062         * lib/unistr/u8-cpy-alloc.c: Likewise.
58063         * lib/unistr/u8-cpy.c: Likewise.
58064         * lib/unistr/u8-endswith.c: Likewise.
58065         * lib/unistr/u8-mblen.c: Likewise.
58066         * lib/unistr/u8-mbsnlen.c: Likewise.
58067         * lib/unistr/u8-mbtouc-aux.c: Likewise.
58068         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
58069         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
58070         * lib/unistr/u8-mbtouc.c: Likewise.
58071         * lib/unistr/u8-mbtoucr.c: Likewise.
58072         * lib/unistr/u8-move.c: Likewise.
58073         * lib/unistr/u8-next.c: Likewise.
58074         * lib/unistr/u8-prev.c: Likewise.
58075         * lib/unistr/u8-set.c: Likewise.
58076         * lib/unistr/u8-startswith.c: Likewise.
58077         * lib/unistr/u8-stpcpy.c: Likewise.
58078         * lib/unistr/u8-stpncpy.c: Likewise.
58079         * lib/unistr/u8-strcat.c: Likewise.
58080         * lib/unistr/u8-strchr.c: Likewise.
58081         * lib/unistr/u8-strcmp.c: Likewise.
58082         * lib/unistr/u8-strcpy.c: Likewise.
58083         * lib/unistr/u8-strcspn.c: Likewise.
58084         * lib/unistr/u8-strdup.c: Likewise.
58085         * lib/unistr/u8-strlen.c: Likewise.
58086         * lib/unistr/u8-strmblen.c: Likewise.
58087         * lib/unistr/u8-strmbtouc.c: Likewise.
58088         * lib/unistr/u8-strncat.c: Likewise.
58089         * lib/unistr/u8-strncmp.c: Likewise.
58090         * lib/unistr/u8-strncpy.c: Likewise.
58091         * lib/unistr/u8-strnlen.c: Likewise.
58092         * lib/unistr/u8-strpbrk.c: Likewise.
58093         * lib/unistr/u8-strrchr.c: Likewise.
58094         * lib/unistr/u8-strspn.c: Likewise.
58095         * lib/unistr/u8-strstr.c: Likewise.
58096         * lib/unistr/u8-strtok.c: Likewise.
58097         * lib/unistr/u8-to-u16.c: Likewise.
58098         * lib/unistr/u8-to-u32.c: Likewise.
58099         * lib/unistr/u8-uctomb-aux.c: Likewise.
58100         * lib/unistr/u8-uctomb.c: Likewise.
58101         * lib/unitypes.h: Likewise.
58102         * lib/uniwidth.h: Likewise.
58103         * lib/uniwidth/cjk.h: Likewise.
58104         * lib/uniwidth/u16-strwidth.c: Likewise.
58105         * lib/uniwidth/u16-width.c: Likewise.
58106         * lib/uniwidth/u32-strwidth.c: Likewise.
58107         * lib/uniwidth/u32-width.c: Likewise.
58108         * lib/uniwidth/u8-strwidth.c: Likewise.
58109         * lib/uniwidth/u8-width.c: Likewise.
58110         * lib/uniwidth/width.c: Likewise.
58111
58112 2007-10-07  Bruno Haible  <bruno@clisp.org>
58113
58114         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
58115         The file is still under LGPL (see modules/inttypes).
58116
58117 2007-10-06  Bruno Haible  <bruno@clisp.org>
58118
58119         * modules/trunc (Dependencies): Add 'extensions'.
58120         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
58121         Reported by Ben Pfaff <blp@gnu.org>.
58122
58123 2007-10-06  Bruno Haible  <bruno@clisp.org>
58124
58125         * modules/freopen-tests: New file.
58126         * tests/test-freopen.c: New file.
58127
58128         * modules/fopen-tests: New file.
58129         * tests/test-fopen.c: New file.
58130
58131         * modules/fopen: New file.
58132         * lib/fopen.c: New file.
58133         * m4/fopen.m4: New file.
58134         * modules/freopen: New file.
58135         * lib/freopen.c: New file.
58136         * m4/freopen.m4: New file.
58137         * lib/stdio.in.h (fopen, freopen): New declarations.
58138         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
58139         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
58140         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
58141         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
58142         * doc/functions/fopen.texi: Mention the 'fopen' module.
58143         * doc/functions/freopen.texi: Mention the 'freopen' module.
58144
58145 2007-10-06  Bruno Haible  <bruno@clisp.org>
58146
58147         * modules/open-tests: New file.
58148         * tests/test-open.c: New file.
58149
58150         * modules/open: New file.
58151         * lib/open.c: New file.
58152         * m4/open.m4: New file.
58153         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
58154         lib/open.c does.
58155         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
58156         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
58157         macros.
58158         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
58159         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
58160         REPLACE_OPEN.
58161         * doc/functions/open.texi: Mention the 'open' module.
58162
58163 2007-10-04  Bruno Haible  <bruno@clisp.org>
58164
58165         * modules/ceill-tests: New file.
58166         * tests/test-ceill.c: New file.
58167
58168         * modules/ceill: New file.
58169         * lib/ceill.c: Replace entire file.
58170         * m4/ceill.m4: New file.
58171         * lib/math.in.h (ceill): Replace declaration.
58172         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
58173         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
58174         * doc/functions/ceill.texi: Mention the 'ceill' module.
58175         * modules/mathl (Files): Remove lib/ceill.c.
58176         (Depends-on): Add ceill.
58177
58178 2007-10-04  Bruno Haible  <bruno@clisp.org>
58179
58180         * modules/ceilf-tests: New file.
58181         * tests/test-ceilf.c: New file.
58182
58183         * modules/ceilf: New file.
58184         * lib/ceil.c: New file.
58185         * lib/ceilf.c: New file.
58186         * m4/ceilf.m4: New file.
58187         * lib/math.in.h (ceilf): New declaration.
58188         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
58189         HAVE_DECL_CEILF.
58190         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
58191         HAVE_DECL_CEILF.
58192         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
58193
58194 2007-10-04  Bruno Haible  <bruno@clisp.org>
58195
58196         * modules/floorl-tests: New file.
58197         * tests/test-floorl.c: New file.
58198
58199         * modules/floorl: New file.
58200         * lib/floorl.c: Replace entire file.
58201         * m4/floorl.m4: New file.
58202         * lib/math.in.h (floorl): Replace declaration.
58203         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
58204         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
58205         * doc/functions/floorl.texi: Mention the 'floorl' module.
58206         * modules/mathl (Files): Remove lib/floorl.c.
58207         (Depends-on): Add floorl.
58208
58209 2007-10-04  Bruno Haible  <bruno@clisp.org>
58210
58211         * modules/floorf-tests: New file.
58212         * tests/test-floorf.c: New file.
58213
58214         * modules/floorf: New file.
58215         * lib/floor.c: New file.
58216         * lib/floorf.c: New file.
58217         * m4/floorf.m4: New file.
58218         * lib/math.in.h (floorf): New declaration.
58219         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
58220         HAVE_DECL_FLOORF.
58221         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
58222         HAVE_DECL_FLOORF.
58223         * doc/functions/floorf.texi: Mention the 'floorf' module.
58224
58225 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
58226             Bruno Haible  <bruno@clisp.org>
58227
58228         Advertise for the Git server instead of the CVS server.
58229         * doc/gnulib-intro.texi (Steady Development): Mention the Git
58230         repository instead of the CVS one.
58231         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
58232         about all VCS systems generically.
58233         * doc/gnulib.texi (Introduction): Capitalize `Git'.
58234
58235 2007-10-04  Bruno Haible  <bruno@clisp.org>
58236
58237         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
58238         means.
58239         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
58240
58241 2007-10-04  Bruno Haible  <bruno@clisp.org>
58242
58243         * modules/truncl-tests: New file.
58244         * tests/test-truncl.c: New file.
58245
58246         * modules/truncl: New file.
58247         * lib/truncl.c: New file.
58248         * m4/truncl.m4: New file.
58249         * lib/math.in.h (truncl): New declaration.
58250         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
58251         HAVE_DECL_TRUNCL.
58252         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
58253         HAVE_DECL_TRUNCL.
58254         * doc/functions/truncl.texi: Mention the 'truncl' module.
58255
58256 2007-10-04  Bruno Haible  <bruno@clisp.org>
58257
58258         * modules/truncf-tests: New file.
58259         * tests/test-truncf.c: New file.
58260
58261         * modules/truncf: New file.
58262         * lib/trunc.c: Make paramerizable through USE_* macros.
58263         * lib/truncf.c: New file.
58264         * m4/truncf.m4: New file.
58265         * lib/math.in.h (truncf): New declaration.
58266         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
58267         HAVE_DECL_TRUNCF.
58268         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
58269         HAVE_DECL_TRUNCF.
58270         * doc/functions/truncf.texi: Mention the 'truncf' module.
58271
58272 2007-10-03  Bruno Haible  <bruno@clisp.org>
58273
58274         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
58275         augmentation also for tests modules.
58276         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
58277         * modules/atexit-tests (Makefile.am): Likewise.
58278         * modules/binary-io-tests (Makefile.am): Likewise.
58279         * modules/c-strcase-tests (Makefile.am): Likewise.
58280         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
58281         * modules/canonicalize-tests (Makefile.am): Likewise.
58282         * modules/closein-tests (Makefile.am): Likewise.
58283         * modules/fprintf-posix-tests (Makefile.am): Likewise.
58284         * modules/freadahead-tests (Makefile.am): Likewise.
58285         * modules/fseek-tests (Makefile.am): Likewise.
58286         * modules/fseeko-tests (Makefile.am): Likewise.
58287         * modules/ftell-tests (Makefile.am): Likewise.
58288         * modules/ftello-tests (Makefile.am): Likewise.
58289         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
58290         * modules/isnanl-tests (Makefile.am): Likewise.
58291         * modules/lseek-tests (Makefile.am): Likewise.
58292         * modules/mbscasecmp-tests (Makefile.am): Likewise.
58293         * modules/mbscasestr-tests (Makefile.am): Likewise.
58294         * modules/mbschr-tests (Makefile.am): Likewise.
58295         * modules/mbscspn-tests (Makefile.am): Likewise.
58296         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
58297         * modules/mbspbrk-tests (Makefile.am): Likewise.
58298         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
58299         * modules/mbsrchr-tests (Makefile.am): Likewise.
58300         * modules/mbsspn-tests (Makefile.am): Likewise.
58301         * modules/mbsstr-tests (Makefile.am): Likewise.
58302         * modules/printf-posix-tests (Makefile.am): Likewise.
58303         * modules/snprintf-posix-tests (Makefile.am): Likewise.
58304         * modules/sprintf-posix-tests (Makefile.am): Likewise.
58305         * modules/tsearch-tests (Makefile.am): Likewise.
58306         * modules/uniname/uniname-tests (Makefile.am): Likewise.
58307         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
58308         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
58309         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
58310         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
58311         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
58312         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
58313         * modules/vprintf-posix-tests (Makefile.am): Likewise.
58314         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
58315         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
58316         * modules/xstrtoimax-tests (Makefile.am): Likewise.
58317         * modules/xstrtol-tests (Makefile.am): Likewise.
58318         * modules/xstrtoumax-tests (Makefile.am): Likewise.
58319         * modules/yesno-tests (Makefile.am): Likewise.
58320
58321 2007-10-03  Bruno Haible  <bruno@clisp.org>
58322
58323         * modules/trunc-tests: New file.
58324         * tests/test-trunc.c: New file.
58325
58326         * modules/trunc: New file.
58327         * lib/trunc.c: New file.
58328         * m4/trunc.m4: New file.
58329         * lib/math.in.h (trunc): New declaration.
58330         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
58331         HAVE_DECL_TRUNC.
58332         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
58333         HAVE_DECL_TRUNC.
58334         * doc/functions/trunc.texi: Mention the 'trunc' module.
58335
58336 2007-10-03  Bruno Haible  <bruno@clisp.org>
58337
58338         * tests/test-fpending.c: New file, mostly copied
58339         from coreutils/lib/t-fpending.c.
58340         * modules/fpending-tests: New file.
58341
58342 2007-10-03  Bruno Haible  <bruno@clisp.org>
58343
58344         Port the stdio extensions to QNX (untested).
58345         * lib/fseterr.c (fseterr): Add support for QNX.
58346         * lib/fbufmode.c (fbufmode): Likewise.
58347         * lib/freadable.c (freadable): Likewise.
58348         * lib/fwritable.c (fwritable): Likewise.
58349         * lib/freading.c (freading): Likewise.
58350         * lib/fwriting.c (fwriting): Likewise.
58351         * lib/freadahead.c (freadahed): Likewise.
58352         * lib/fpurge.c (fpurge): Likewise.
58353         * lib/fseeko.c (rpl_fseeko): Likewise.
58354
58355 2007-10-03  Bruno Haible  <bruno@clisp.org>
58356             Jim Meyering  <jim@meyering.net>
58357             Eric Blake  <ebb9@byu.net>
58358
58359         * doc/relocatable.texi: Use @command instead of @program.
58360
58361 2007-10-02  Jim Meyering  <jim@meyering.net>
58362
58363         Perform one more "_.h" -> ".in.h" substitution.
58364         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
58365         instead of unistd_.h here, too.
58366
58367 2007-10-01  Bruno Haible  <bruno@clisp.org>
58368
58369         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
58370         Needed for the alloca-opt module.
58371
58372 2007-09-30  Bruno Haible  <bruno@clisp.org>
58373
58374         * lib/alloca.in.h: Renamed from lib/alloca_.h.
58375         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
58376         alloca_.h.
58377         * lib/argz.in.h: Renamed from lib/argz_.h.
58378         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
58379         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
58380         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
58381         byteswap_.h.
58382         * lib/dirent.in.h: Renamed from lib/dirent_.h.
58383         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
58384         dirent_.h.
58385         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
58386         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
58387         fcntl_.h.
58388         * lib/float.in.h: Renamed from lib/float_.h.
58389         * modules/float (Files, Makefile.am): Use float.in.h instead of
58390         float_.h.
58391         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
58392         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
58393         fnmatch_.h.
58394         * lib/getopt.in.h: Renamed from lib/getopt_.h.
58395         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
58396         getopt_.h.
58397         * lib/glob.in.h: Renamed from lib/glob_.h.
58398         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
58399         * lib/iconv.in.h: Renamed from lib/iconv_.h.
58400         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
58401         iconv_.h.
58402         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
58403         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
58404         inttypes_.h.
58405         * lib/locale.in.h: Renamed from lib/locale_.h.
58406         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
58407         locale_.h.
58408         * lib/math.in.h: Renamed from lib/math_.h.
58409         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
58410         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
58411         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
58412         of netinet_in_.h. Add dependency.
58413         * lib/poll.in.h: Renamed from lib/poll_.h.
58414         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
58415         * lib/search.in.h: Renamed from lib/search_.h.
58416         * modules/search (Files, Makefile.am): Use search.in.h instead of
58417         search_.h.
58418         * lib/signal.in.h: Renamed from lib/signal_.h.
58419         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
58420         _signal.h.
58421         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
58422         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
58423         stdbool_.h.
58424         * lib/stdint.in.h: Renamed from lib/stdint_.h.
58425         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
58426         stdint_.h.
58427         * lib/stdio.in.h: Renamed from lib/stdio_.h.
58428         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
58429         stdio_.h.
58430         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
58431         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
58432         stdlib_.h.
58433         * lib/string.in.h: Renamed from lib/string_.h.
58434         * modules/string (Files, Makefile.am): Use string.in.h instead of
58435         string_.h.
58436         * doc/gnulib-tool.texi (Initial import): Update.
58437         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
58438         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
58439         of sys_select_.h. Add dependency.
58440         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
58441         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
58442         of sys_socket_.h.
58443         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
58444         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
58445         sys_stat_.h.
58446         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
58447         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
58448         sys_time_.h.
58449         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
58450         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
58451         sysexits_.h.
58452         * lib/time.in.h: Renamed from lib/time_.h.
58453         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
58454         * lib/unistd.in.h: Renamed from lib/unistd_.h.
58455         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
58456         unistd_.h.
58457         * lib/wchar.in.h: Renamed from lib/wchar_.h.
58458         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
58459         wchar_.h.
58460         * lib/wctype.in.h: Renamed from lib/wctype_.h.
58461         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
58462         wctype_.h.
58463         * build-aux/bootstrap (slurp): Update.
58464         * lib/.cppi-disable: Update.
58465
58466 2007-09-30  Bruno Haible  <bruno@clisp.org>
58467
58468         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
58469         Needed on BeOS.
58470
58471 2007-09-30  Bruno Haible  <bruno@clisp.org>
58472
58473         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
58474
58475 2007-09-29  Bruno Haible  <bruno@clisp.org>
58476
58477         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
58478
58479 2007-09-29  Bruno Haible  <bruno@clisp.org>
58480
58481         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
58482         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
58483         * build-aux/install-reloc: Compile also areadlink.c.
58484         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
58485
58486 2007-09-29  Bruno Haible  <bruno@clisp.org>
58487
58488         * gnulib-tool (func_emit_initmacro_done): Indentation.
58489
58490 2007-09-29  Bruno Haible  <bruno@clisp.org>
58491
58492         * README: Add CVS checkout update instructions.
58493         Info from Bob Proulx <bob@proulx.com>.
58494
58495 2007-09-28  Eric Blake  <ebb9@byu.net>
58496
58497         Provide move-if-change.
58498         * build-aux/move-if-change: New file, based on best practice
58499         rather than any canonical upstream location.
58500
58501 2007-09-28  Jim Meyering  <jim@meyering.net>
58502
58503         Fix canonicalize loop-detection corner case.
58504         Do not attempt to stat the symlink values stored via seen_triple.
58505         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
58506         on linux-2.6.18, (but not 2.6.22).
58507         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
58508         triple_compare.  The former compares dev,ino,filename, while the latter
58509         would actually stat dirname(filename) when dev and ino were equal.
58510         * lib/hash-triple.c: Install <string.h>.
58511         (STREQ): Define.
58512         (triple_compare_ino_str): New function.
58513         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
58514
58515 2007-09-28  Eric Blake  <ebb9@byu.net>
58516
58517         Enforce that AC_REPLACE_FUNCS files exist.
58518         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
58519         override check for typos.
58520
58521         Fix test-closein on Solaris 10.
58522         * tests/test-closein.c (main): Don't assume stdin can be inherited
58523         closed on all systems.
58524         * tests/test-closein.sh: Likewise.
58525         Reported by Piotr Tarnowski.
58526
58527 2007-09-28  Jim Meyering  <jim@meyering.net>
58528
58529         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
58530
58531 2007-09-27  Jim Meyering  <jim@meyering.net>
58532
58533         canonicalize: Avoid a false-positive cycle failure.
58534         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
58535         Sort.  Remove cycle-check.
58536         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
58537         not cycle-check.h.
58538         (seen_triple): New function.
58539         (canonicalize_filename_mode): Use it instead of cycle-check.
58540         * tests/test-canonicalize.c: Add a test for this bug.
58541         * tests/test-canonicalize.sh: Set up and run the test.
58542
58543         New module, file-set, from coreutils.
58544         * modules/file-set: Define it.
58545         * lib/file-set.c, lib/file-set.h: Implement.
58546
58547         New module, hash-triple, from coreutils.
58548         * modules/hash-triple: Define it.
58549         * lib/hash-triple.c, lib/hash-triple.h: Implement.
58550
58551 2007-09-25  Eric Blake  <ebb9@byu.net>
58552
58553         Fix strerror on Interix.
58554         * lib/string_.h (strerror): Declare replacement.
58555         * doc/functions/strerror.texi (strerror): Document the Interix
58556         shortcoming.
58557         * modules/string (Makefile.am): Support new hooks.
58558         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
58559         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
58560         gl_FUNC_STRERROR_SEPARATE.
58561         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
58562         * lib/strerror.c (rpl_strerror): Provide replacement.
58563         * modules/strerror (Depends-on): Add string.
58564         (configure.ac): Detect use of module.
58565         * tests/test-strerror.c: New file.
58566         * modules/strerror-tests: New test module.
58567         * modules/argp (Depends-on): Add strerror.
58568         * modules/error (Depends-on): Likewise.
58569         Reported by Martin Koeppe.
58570
58571 2007-09-24  Bruno Haible  <bruno@clisp.org>
58572
58573         * README: Update git instructions.
58574
58575 2007-09-24  Eric Blake  <ebb9@byu.net>
58576
58577         Revert fpending breakage from 2007-09-08.
58578         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
58579         __fpending.c.
58580
58581 2007-09-24  Jim Meyering  <jim@meyering.net>
58582
58583         filenamecat.c: Add a test.
58584         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
58585         showing how the function works when DIR is the empty string.
58586
58587 2007-09-21  Simon Josefsson  <simon@josefsson.org>
58588
58589         * tests/test-canonicalize.sh: Turn on executable bit.
58590
58591 2007-09-19  Eric Blake  <ebb9@byu.net>
58592
58593         * README: Update CVS instructions.
58594
58595 2007-09-18  Bruno Haible  <bruno@clisp.org>
58596
58597         * modules/areadlink: New file.
58598         * lib/areadlink.h (areadlink): New declaration.
58599         * lib/areadlink.c: New file, based on lib/xreadlink.c.
58600
58601 2007-09-17  Jim Meyering  <jim@meyering.net>
58602
58603         * lib/savewd.c (ESTALE) [!defined]: Define.
58604         Reported to be required on Interix by Martin Koeppe.
58605
58606 2007-09-17  Bruno Haible  <bruno@clisp.org>
58607
58608         * gnulib-tool (func_version): Use $version.
58609
58610 2007-09-16  Bruno Haible  <bruno@clisp.org>
58611
58612         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
58613         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
58614         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
58615         Reported by Greg Schafer <gschafer@zip.com.au>.
58616
58617 2007-09-15  Bruno Haible  <bruno@clisp.org>
58618
58619         * gnulib-tool (sed): Try a little harder to make bash understand the
58620         alias.
58621         Reported by Bruce Korb <bruce.korb@gmail.com>.
58622
58623 2007-09-13  Eric Blake  <ebb9@byu.net>
58624
58625         * ChangeLog: Remove conflict markers.
58626
58627 2007-09-13  Simon Josefsson  <simon@josefsson.org>
58628
58629         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
58630         Reported by Bruno Haible <bruno@clisp.org>.
58631
58632 2007-09-12  Bruno Haible  <bruno@clisp.org>
58633
58634         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
58635         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
58636         is not defined.
58637
58638 2007-09-12  Eric Blake  <ebb9@byu.net>
58639
58640         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
58641         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
58642         Autoconf definition.
58643         * modules/euidaccess (Depends-on): Add extensions, for
58644         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
58645         * modules/fnmatch (Depends-on): Likewise.
58646         * modules/getaddrinfo (Depends-on): Likewise.
58647         * modules/getdelim (Depends-on): Likewise.
58648         * modules/getline (Depends-on): Likewise.
58649         * modules/getsubopt (Depends-on): Likewise.
58650         * modules/gettext (Depends-on): Likewise.
58651         * modules/group-member (Depends-on): Likewise.
58652         * modules/mbchar (Depends-on): Likewise.
58653         * modules/memmem (Depends-on): Likewise.
58654         * modules/mempcpy (Depends-on): Likewise.
58655         * modules/memrchr (Depends-on): Likewise.
58656         * modules/pagealign_alloc (Depends-on): Likewise.
58657         * modules/readutmp (Depends-on): Likewise.
58658         * modules/stpcpy (Depends-on): Likewise.
58659         * modules/stpncpy (Depends-on): Likewise.
58660         * modules/strchrnul (Depends-on): Likewise.
58661         * modules/strndup (Depends-on): Likewise.
58662         * modules/strsep (Depends-on): Likewise.
58663         * modules/strverscmp (Depends-on): Likewise.
58664         * modules/vasprintf (Depends-on): Likewise.
58665         * modules/wcwidth (Depends-on): Likewise.
58666         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
58667         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
58668         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
58669         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
58670         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58671         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58672         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
58673         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58674         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
58675         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
58676         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58677         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58678         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58679         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
58680         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
58681         * m4/readutmp.m4 (gl_READUTMP): Likewise.
58682         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58683         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58684         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58685         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58686         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58687         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58688         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58689         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
58690         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
58691         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58692         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
58693         so that lock.m4 can be used in gettext without extensions module.
58694
58695 2007-09-11  Bruno Haible  <bruno@clisp.org>
58696
58697         * m4/isc-posix.m4: Remove file.
58698         Suggested by Eric Blake.
58699
58700 2007-09-11  Eric Blake  <ebb9@byu.net>
58701
58702         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
58703
58704 2007-09-10  Bruno Haible  <bruno@clisp.org>
58705
58706         * posix-modules: Fix typo in error message.
58707         Reported by Matt <mkraai@beckman.com>.
58708
58709 2007-09-09  Bruno Haible  <bruno@clisp.org>
58710
58711         * doc/functions/getdelim.texi: Update list of platforms lacking the
58712         function.
58713         * doc/functions/getline.texi: Likewise.
58714
58715 2007-09-09  Jim Meyering  <jim@meyering.net>
58716
58717         * lib/hash.c (hash_initialize): Detect calloc failure.
58718         Reported by Bruno Haible.
58719
58720 2007-09-09  Bruno Haible  <bruno@clisp.org>
58721
58722         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
58723         malloc or realloc fails.
58724
58725 2007-09-09  Bruno Haible  <bruno@clisp.org>
58726
58727         * modules/getcwd (Depends-on): Add malloc-posix.
58728         * modules/glob (Depends-on): Likewise.
58729         * modules/putenv (Depends-on): Likewise.
58730         * modules/strdup (Depends-on): Likewise.
58731         * modules/getdelim (Depends-on): Add realloc-posix.
58732         * modules/read-file (Depends-on): Likewise.
58733
58734 2007-09-09  Bruno Haible  <bruno@clisp.org>
58735
58736         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
58737         (gl_FUNC_MALLOC_POSIX): Require it.
58738         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
58739         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
58740         * modules/realloc (Files): Add m4/malloc.m4.
58741         * modules/calloc (Files): Likewise.
58742
58743 2007-09-09  Bruno Haible  <bruno@clisp.org>
58744
58745         * modules/malloc-posix: New file.
58746         * modules/malloc (Depends-on): Add malloc-posix.
58747         * lib/malloc.c: Include errno.h.
58748         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
58749         and a POSIX-compatible malloc into a single function. Set ENOMEM
58750         when returning NULL.
58751         * m4/malloc.m4: New file.
58752         * doc/functions/malloc.texi: Mention the malloc-posix module.
58753         * lib/stdlib_.h (malloc): New declaration.
58754         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58755         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
58756         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
58757         and HAVE_MALLOC_POSIX.
58758
58759 2007-09-09  Bruno Haible  <bruno@clisp.org>
58760
58761         * modules/realloc-posix: New file.
58762         * modules/realloc (Depends-on): Add realloc-posix.
58763         * lib/realloc.c: Include errno.h.
58764         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
58765         and a POSIX-compatible realloc into a single function. Set ENOMEM
58766         when returning NULL.
58767         * m4/realloc.m4: New file.
58768         * doc/functions/realloc.texi: Mention the realloc-posix module.
58769         * lib/stdlib_.h (realloc): New declaration.
58770         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58771         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
58772         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
58773         and HAVE_REALLOC_POSIX.
58774
58775 2007-09-09  Bruno Haible  <bruno@clisp.org>
58776
58777         * modules/calloc-posix: New file.
58778         * modules/calloc (Depends-on): Add calloc-posix.
58779         * lib/calloc.c: Include errno.h.
58780         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
58781         and a POSIX-compatible calloc into a single function. Set ENOMEM
58782         when returning NULL.
58783         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
58784         * doc/functions/calloc.texi: Mention the calloc-posix module.
58785         * lib/stdlib_.h (calloc): New declaration.
58786         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58787         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
58788         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
58789         and HAVE_CALLOC_POSIX.
58790
58791 2007-09-09  Bruno Haible  <bruno@clisp.org>
58792
58793         Allow for modules to show an arbitrary notice.
58794         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
58795         * gnulib-tool: New option --extract-notice.
58796         (func_usage): Document it.
58797         (sed_extract_prog): Update.
58798         (func_get_notice): New function.
58799         (func_modules_notice): New function.
58800         (func_import, func_create_testdir): Invoke it.
58801         Suggested by Jim Meyering.
58802
58803 2007-09-09  Bruno Haible  <bruno@clisp.org>
58804
58805         * gnulib-tool: New options --verbose, --quiet.
58806         (func_usage): Document them.
58807         (verbose): New variable.
58808         (func_execute_command): New function.
58809         (func_import): Don't show the module list and the file list if
58810         $verbose < 0.
58811         (func_create_testdir): Likewise. Use func_execute_command.
58812         (func_create_megatestdir): Use func_execute_command.
58813
58814 2007-09-08  Bruno Haible  <bruno@clisp.org>
58815
58816         * gnulib-tool (func_import): Prefer rsync over wget when available,
58817         for fetching the PO files.
58818
58819 2007-09-08  Bruno Haible  <bruno@clisp.org>
58820
58821         * posix-modules: New file. Portions copied from gnulib-tool.
58822         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
58823
58824 2007-09-08  Jim Meyering  <jim@meyering.net>
58825
58826         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
58827         * lib/fpending.h: Rename from __fpending.h.
58828         * lib/fpending.c: Rename from __fpending.c.
58829         Include "fpending.h", not "__fpending.h".
58830         * lib/__fpending.h, lib/__fpending.c: Remove files.
58831         * modules/fpending (Files): Reflect new file names.
58832         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
58833
58834 2007-09-08  Bruno Haible  <bruno@clisp.org>
58835
58836         * m4/inttypes-h.m4: Remove stub file.
58837
58838 2007-09-07  Simon Josefsson  <simon@josefsson.org>
58839
58840         * doc/headers/stdint.texi: Discuss #include_next issue.
58841
58842 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58843
58844         * build-aux/bootstrap: Remove obsolete comment about wget --help.
58845
58846 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58847
58848         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
58849         in variable name.
58850
58851 2007-09-03  Jim Meyering  <jim@meyering.net>
58852
58853         New module: git-version-gen.
58854         * modules/git-version-gen: New file.
58855
58856         Import changes from coreutils for bootstrap script.
58857
58858         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
58859
58860         bootstrap: uses rsync to download the .po files
58861         * build-aux/bootstrap (po_download_command_format): New global.
58862         (download_po_files): Use rsync.
58863         (update_po_files): Don't remove .po files after download,
58864         so future rsync runs can take advantage of the copies.
58865
58866         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
58867
58868         Solve the unnecessary-.po-file-regeneration problem once and for all.
58869         * build-aux/bootstrap (download_po_files): New function, renamed from
58870         get_translations.  Now, downloads, but doesn't update LINGUAS.
58871         (update_po_files): New function.
58872
58873         bootstrap: Ignore more.
58874         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
58875         uniwidth to e.g., lib/.gitignore.
58876         (slurp): Handle the sys_stat_.h -> sys mapping, too.
58877
58878         * build-aux/bootstrap: New setting: vc_ignore.
58879         (insert_sorted_if_absent): Create $file if absent.
58880         Adapt to new, possibly empty, list: $vc_ignore.
58881
58882         bootstrap: generate more ignorable names
58883         * build-aux/bootstrap (slurp): When generating ignorable names,
58884         also map .sin to .sed, .gperf to .c, and .y to .c.
58885
58886 2007-09-03  Jim Meyering  <jim@meyering.net>
58887
58888         * build-aux/git-version-gen: New file, from coreutils.  For details, see
58889         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
58890
58891 2007-09-02  Bruno Haible  <bruno@clisp.org>
58892
58893         Fix mis-recognition of 'mcs' on QNX 6.
58894         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
58895         output contains the string "Mono".
58896         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
58897         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
58898
58899 2007-09-01  Bruno Haible  <bruno@clisp.org>
58900
58901         Fix collision between uniwidth/* and linebreak modules.
58902         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
58903         u32_width): Remove declarations.
58904         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
58905         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
58906         streq3, streq2, streq1, streq0): Remove functions.
58907         (STREQ): Remove macro.
58908         (is_cjk_encoding): Remove function.
58909         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
58910         (uc_width, u8_width, u16_width, u32_width): Remove functions.
58911         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
58912         * NEWS: Document the change.
58913
58914 2007-09-01  Bruno Haible  <bruno@clisp.org>
58915
58916         * lib/streq.h: Add double-inclusion guard.
58917
58918 2007-09-01  Karl Berry  <karl@gnu.org>
58919
58920         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
58921
58922 2007-08-28  Jim Meyering  <jim@meyering.net>
58923
58924         Rename mreadlink_with_size to areadlink_with_size.
58925         * NEWS: Document the change.
58926         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
58927         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
58928         * lib/mreadlink.h: Rename this to...
58929         * lib/areadlink.h: ...this.
58930         * modules/mreadlink-with-size: Rename this to...
58931         * modules/areadlink-with-size: ...this.
58932         * lib/canonicalize.c: Reflect the renaming.
58933         * modules/canonicalize: Likewise.
58934
58935 2007-08-26  Bruno Haible  <bruno@clisp.org>
58936
58937         * gnulib-tool (func_import): When deciding which files to remove,
58938         consider also dangling symbolic links.
58939         Reported by Eric Blake.
58940
58941 2007-08-26  Bruno Haible  <bruno@clisp.org>
58942
58943         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
58944
58945 2007-08-23  Simon Josefsson  <simon@josefsson.org>
58946
58947         * lib/readline.c: Don't include getline.h, the prototype is now
58948         found in stdio.h.
58949
58950 2007-08-23  Jim Meyering  <jim@meyering.net>
58951
58952         Getdelim touchup.
58953         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
58954         around the funlockfile call, since funlockfile never sets errno.
58955         Don't set errno upon failed realloc.
58956
58957 2007-08-22  Eric Blake  <ebb9@byu.net>
58958
58959         Getline touchups.
58960         * lib/getdelim.c (getdelim): Revert regression that required *n to
58961         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
58962         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
58963         getdelim, rather than whether implementation is missing.
58964         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
58965         * lib/stdio_.h (getline): Also declare if replacement is
58966         required.
58967         * doc/functions/getdelim.texi: New file.
58968         * doc/functions/getline.texi: Likewise.
58969         * doc/gnulib.texi (Function Substitutes): Add new files.
58970         Reported by Bruno Haible.
58971
58972 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
58973
58974         * users.txt: Add Guile.
58975
58976 2007-08-22  Eric Blake  <ebb9@byu.net>
58977
58978         * tests/test-getdelim.c (main): Use remove, not unlink.
58979         * tests/test-getline.c (main): Likewise.
58980
58981         Move getline and getdelim into stdio.h, per POSIX 200x.
58982         * modules/getline (Files): Remove getline.h.
58983         (Depends-on): Add stdio.
58984         (configure.ac): Add module indicator.
58985         * modules/getdelim (Files): Remove getdelim.h.
58986         (Depends-on): Add stdio.
58987         (configure.ac): Add module indicator.
58988         * modules/stdio (Makefile.am): Work with new indicators.
58989         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
58990         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
58991         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58992         * lib/getdelim.h: Delete.
58993         * lib/getline.h: Delete.
58994         * lib/stdio_.h (getdelim, getline): Declare.
58995         * modules/getdelim-tests: New module.
58996         * modules/getline-tests: Likewise.
58997         * tests/test-getdelim.c: New file.
58998         * tests/test-getline.c: Likewise.
58999         * NEWS: Document the change.
59000         * lib/getline.c: Update choice of header.
59001         * lib/csharpcomp.c: Likewise.
59002         * lib/getpass.c: Likewise.
59003         * lib/javacomp.c: Likewise.
59004         * lib/javaversion.c: Likewise.
59005         * lib/yesno.c: Likewise.
59006         * lib/getdelim.c: Likewise.
59007         (getdelim): Set errno on failure, and avoid memory leak.
59008
59009 2007-08-19  Bruno Haible  <bruno@clisp.org>
59010
59011         * modules/closein (Depends-on): Add freadahead.
59012         * lib/closein.c: Include freadahead.h.
59013         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
59014         is zero.
59015
59016 2007-08-19  Bruno Haible  <bruno@clisp.org>
59017
59018         * modules/freadahead-tests: New file.
59019         * tests/test-freadahead.sh: New file.
59020         * tests/test-freadahead.c: New file.
59021
59022         * modules/freadahead: New file.
59023         * lib/freadahead.h: New file.
59024         * lib/freadahead.c: New file.
59025         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
59026         fbufmode, fpurge, freadable, fwritable.
59027
59028 2007-08-19  Eric Blake  <ebb9@byu.net>
59029
59030         Test yesno in combination with closein.
59031         * lib/yesno.c (yesno): Document use of stdin.
59032         * modules/yesno-tests (Files): New module.
59033         * tests/test-yesno.c (main): New file.
59034         * tests/test-yesno.sh: Likewise.
59035
59036 2007-08-19  Bruno Haible  <bruno@clisp.org>
59037
59038         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
59039         * lib/fseeko.c (rpl_fseeko): Likewise.
59040         * lib/fseterr.c (fseterr): Likewise.
59041
59042 2007-08-19  Bruno Haible  <bruno@clisp.org>
59043
59044         * tests/test-lseek.c (main): Disable a test for BeOS.
59045         * doc/functions/lseek.texi: Document the BeOS bug.
59046
59047 2007-08-19  Bruno Haible  <bruno@clisp.org>
59048             Eric Blake  <ebb9@byu.net>
59049
59050         * lib/lseek.c: Include <sys/stat.h>.
59051         (rpl_lseek): Add workaround code also for Unix platforms.
59052         Needed for BeOS.
59053         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
59054         * doc/functions/lseek.texi: Document BeOS definiency.
59055
59056 2007-08-18  Bruno Haible  <bruno@clisp.org>
59057
59058         * modules/fstrcmp-tests: New file.
59059         * tests/test-fstrcmp.c: New file.
59060
59061 2007-08-18  Bruno Haible  <bruno@clisp.org>
59062
59063         * modules/fstrcmp: New file, from GNU gettext with modifications.
59064         * lib/fstrcmp.h: New file, from GNU gettext.
59065         * lib/fstrcmp.c: New file, from GNU gettext.
59066         * MODULES.html.sh (String handling): Add fstrcmp.
59067
59068 2007-08-18  Bruno Haible  <bruno@clisp.org>
59069
59070         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
59071         'bool'.
59072         (diag, compareseq): Remove const from the ctxt argument.
59073         (USE_HEURISTIC): Undefine at the end.
59074
59075 2007-08-18  Jim Meyering  <jim@meyering.net>
59076
59077         New file: lib/idcache.h
59078         * NEWS: Mention the addition.
59079         * modules/idcache (Files): Add lib/idcache.h
59080         * lib/idcache.c: Include "idcache.h".
59081         Don't include <sys/types.h>.
59082         Add a FIXME comment.
59083         Move file-scoped "static" declarations to the top.
59084         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
59085
59086 2007-08-17  Bruno Haible  <bruno@clisp.org>
59087         and Paul Eggert  <eggert@cs.ucla.edu>
59088
59089         * MODULES.html.sh: Add diffseq.
59090         * modules/diffseq: New file.
59091         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
59092         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
59093
59094 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59095
59096         Import changes from coreutils for bootstrap script.
59097
59098         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
59099
59100         * build-aux/bootstrap (slurp): Work even in environments where
59101         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
59102         current code does not slurp files whose names start with ".", and
59103         this looks like it might be a troublesome area.
59104
59105         2007-07-11  Jim Meyering  <jim@meyering.net>
59106
59107         If there's a GPL vN copyright comment, require that N == 3.
59108
59109         2007-07-08  Jim Meyering  <jim@meyering.net>
59110
59111         Run the coreutils-specific code only if tests/Makefile.am.in exists.
59112         * build-aux/bootstrap (mam_template): Move definition out of loop.
59113
59114         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
59115
59116         * build-aux/bootstrap (symlink_to_dir): Rename function from
59117         symlink_to_gnulib.  Add a directory parameter.  Update all
59118         callers.
59119         (cp_mark_as_generated): Also check for -- and link to -- files in
59120         gl/.
59121
59122         2007-07-08  Jim Meyering  <jim@meyering.net>
59123
59124         Adapt to deeper hierarchy in gnulib.
59125         * build-aux/bootstrap (symlink_to_dir): If the destination
59126         directory doesn't exist, create it. This is required at least for
59127         "lib/uniwidth/cjk.h".
59128
59129         2007-05-15  Jim Meyering  <jim@meyering.net>
59130
59131         * build-aux/bootstrap: Now that generated Makefile.am files
59132         are no longer under version control, they must be created at
59133         bootstrap time.
59134
59135 2007-08-14  Ben Pfaff  <blp@gnu.org>
59136
59137         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
59138
59139 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59140
59141         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
59142         given the changes below.
59143         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
59144         even on hosts that have padding bits beyond the supported 64.
59145
59146 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59147
59148         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
59149         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
59150         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
59151         depends on it.
59152         (xstrtol_error): Remove.
59153         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
59154         but with a different signature.
59155         (ATTRIBUTE_NORETURN, __attribute__): New macros.
59156         * lib/xstrtol-error.c: Include exitfail.h.
59157         (xstrtol_fatal): New function, with a different signature from the
59158         old xstrtol_error, so that the caller need not worry about passing
59159         in an exit status, or about storage management of the option argument.
59160         (xstrtol_error): Now a static function.  Redo signature to
59161         implement xstrtol_fatal.  Output the correct number of hyphens in
59162         front of the option so that the caller need not worry about
59163         storage management.
59164         (N_): New macro.
59165         (_): Remove; not used now.
59166         * modules/xstrtol: Depend on getopt.
59167         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
59168         of old STRTOL_FATAL_ERROR macro.
59169         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
59170         of test program.
59171         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
59172         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
59173
59174 2007-08-08  Eric Blake  <ebb9@byu.net>
59175
59176         * lib/xstrtol-error.c: Add missing include.
59177
59178         Move xstrtol messages into gnulib domain, when --pobase is used.
59179         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
59180         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
59181         * modules/xstrtol (Files): Distribute new file.
59182         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
59183         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
59184         * tests/test-xstrtol.c: ...into new file.
59185         * tests/test-xstrtoul.c: Also test xstrtoul.
59186         * tests/test-xstrtoimax.c: Also test xstrtoimax.
59187         * tests/test-xstrtoumax.c: Also test xstrtoumax.
59188         * tests/test-xstrtol.sh: Drive the tests.
59189         * tests/test-xstrtoimax.sh: Likewise.
59190         * tests/test-xstrtoumax.sh: Likewise.
59191         * modules/xstrtol-tests: New module.
59192         * modules/xstrtoimax-tests: Likewise.
59193         * modules/xstrtoumax-tests: Likewise.
59194
59195 2007-08-08  Jim Meyering  <jim@meyering.net>
59196
59197         New function: mfile_name_concat.
59198         * lib/filenamecat.c (mfile_name_concat): New function, just like
59199         file_name_concat, but return NULL upon failure rather than exiting
59200         with a diagnostic.
59201         * lib/filenamecat.h: Declare it.
59202
59203 2007-08-07  Bruno Haible  <bruno@clisp.org>
59204
59205         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
59206         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
59207         warning from gcc.
59208         Reported by Eric Blake.
59209
59210 2007-08-07  Simon Josefsson  <simon@josefsson.org>
59211
59212         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
59213         * modules/crypto/arcfour (License): Likewise.
59214         * modules/crypto/des-tests (License): Likewise.
59215         * modules/crypto/gc-arctwo-tests (License): Likewise.
59216         * modules/crypto/gc-des-tests (License): Likewise.
59217         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
59218         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
59219         * modules/crypto/gc-md2-tests (License): Likewise.
59220         * modules/crypto/gc-md4-tests (License): Likewise.
59221         * modules/crypto/gc-md5-tests (License): Likewise.
59222         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
59223         * modules/crypto/gc-rijndael-tests (License): Likewise.
59224         * modules/crypto/gc-sha1-tests (License): Likewise.
59225         * modules/crypto/gc-tests (License): Likewise.
59226         * modules/crypto/hmac-md5 (License): Likewise.
59227         * modules/crypto/hmac-sha1 (License): Likewise.
59228         * modules/crypto/md2-tests (License): Likewise.
59229         * modules/crypto/md4-tests (License): Likewise.
59230         * modules/crypto/md5 (License): Likewise.
59231         * modules/crypto/rijndael (License): Likewise.
59232         * modules/crypto/sha1 (License): Likewise.
59233         * modules/memxor (License): Likewise.
59234
59235 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59236         and Bruno Haible  <bruno@clisp.org>
59237
59238         * NEWS: Describe interface changes to human, xstrtol.
59239         * lib/human.h: Include <xstrtol.h>.
59240         (human_options): Return enum strtol_error, not int.  Remove
59241         bool arg; take int * instead.
59242         * lib/human.c: Don't include "gettext.h".
59243         (_): Remove; no longer used.
59244         Don't include <xstrtol.h>, since human.h does it.
59245         (human_options): Adjust to abovementioned interface changes.
59246         Do not report error to stderr; that's now the caller's
59247         responsibility.
59248         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
59249         interface change.
59250         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
59251         Str, Argument_type_string.  All uses changed.  Put " argument"
59252         in diagnostics to make them clearer.  Change wording of suffix
59253         message for clarity.
59254         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
59255         Argument_type_string.
59256         (STRTOL_FATAL_WARN): Remove; no longer used.
59257         * modules/human (Depends-on): Remove gettext-h.
59258
59259 2007-08-06  Simon Josefsson  <simon@josefsson.org>
59260
59261         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
59262
59263 2007-07-31  Bruno Haible  <bruno@clisp.org>
59264
59265         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
59266         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
59267         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
59268
59269 2007-07-31  Bruno Haible  <bruno@clisp.org>
59270
59271         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
59272         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
59273
59274 2007-07-30  Bruno Haible  <bruno@clisp.org>
59275
59276         * modules/base64 (License): Use the synonymous term "LGPLv2+".
59277         * modules/c-ctype (License): Likewise.
59278         * modules/c-strcase (License): Likewise.
59279         * modules/check-version (License): Likewise.
59280         * modules/iconv (License): Likewise.
59281         * modules/iconv_open (License): Likewise.
59282         * modules/read-file (License): Likewise.
59283         * modules/striconv (License): Likewise.
59284         * modules/strverscmp (License): Likewise.
59285         * modules/vasprintf (License): Likewise.
59286         * modules/crypto/des (License): Likewise.
59287         * modules/crypto/gc (License): Likewise.
59288         * modules/crypto/gc-arcfour (License): Likewise.
59289         * modules/crypto/gc-arctwo (License): Likewise.
59290         * modules/crypto/gc-des (License): Likewise.
59291         * modules/crypto/gc-hmac-md5 (License): Likewise.
59292         * modules/crypto/gc-hmac-sha1 (License): Likewise.
59293         * modules/crypto/gc-md2 (License): Likewise.
59294         * modules/crypto/gc-md4 (License): Likewise.
59295         * modules/crypto/gc-md5 (License): Likewise.
59296         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
59297         * modules/crypto/gc-random (License): Likewise.
59298         * modules/crypto/gc-rijndael (License): Likewise.
59299         * modules/crypto/gc-sha1 (License): Likewise.
59300         * modules/crypto/md2 (License): Likewise.
59301         * modules/crypto/md4 (License): Likewise.
59302
59303 2007-07-30  Jim Meyering  <jim@meyering.net>
59304
59305         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
59306         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
59307         it has valid stat data.  This bug would cause du not to count the
59308         sizes of inaccessible directories.
59309         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
59310         in <http://bugzilla.redhat.com/250077>.
59311
59312 2007-07-25  Peter O'Gorman  <peter@pogma.com>
59313             Bruno Haible  <bruno@clisp.org>
59314
59315         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
59316         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
59317         #include_next, gives a diagnostic about it, but reports no error in
59318         the exit code.
59319         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
59320
59321 2007-07-24  Ben Pfaff  <blp@gnu.org>
59322
59323         Improve name: "count-one-bits" is better than "popcount".
59324         * MODULES.html.sh: Update name.
59325         * lib/popcount.h: Renamed lib/count-one-bits.h.
59326         (popcount): Renamed count_one_bits.
59327         (popcountl): Renamed count_one_bits_l.
59328         (popcountll): Renamed count_one_bits_ll.
59329         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
59330         * modules/popcount: Renamed module/count-one-bits.
59331         * modules/popcount-tests: Renamed module/count-one-bits-tests.
59332         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
59333
59334 2007-07-23  Ben Pfaff  <blp@gnu.org>
59335
59336         * lib/popcount.h (popcount32): Reduce size of constants, to allow
59337         better code generation, and add U to large constants to avoid
59338         warnings, in non-GCC case.
59339         Suggested by Bruno Haible.
59340
59341 2007-07-23  Ben Pfaff  <blp@gnu.org>
59342
59343         * lib/popcount.h: Use verify_true instead of if...abort.
59344         * modules/popcount: Depend on verify module.
59345         Suggested by Jim Meyering.
59346
59347 2007-07-23  Bruno Haible  <bruno@clisp.org>
59348
59349         * gnulib-tool (func_import): Create a .cvsignore file also when the
59350         directory is not yet in CVS but the toplevel directory is. When
59351         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
59352         Reported by Karl Berry.
59353
59354 2007-07-22  Ben Pfaff  <blp@gnu.org>
59355
59356         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
59357         case.
59358         Suggested by Eric Blake.
59359
59360 2007-07-22  Ben Pfaff  <blp@gnu.org>
59361
59362         New module: popcount.
59363         * MODULES.html.sh: Add popcount.
59364         * modules/popcount: New file.
59365         * modules/popcount-tests: New file.
59366         * tests/test-popcount.c: New file.
59367         * lib/popcount.h: New file.
59368         * m4/popcount.m4: New file.
59369
59370 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59371
59372         * build-aux/announce-gen: Update to GPLv3.
59373
59374         * build-aux/config.guess: Update from config.
59375
59376 2007-07-21  Bruno Haible  <bruno@clisp.org>
59377
59378         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
59379         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
59380
59381 2007-07-20  Jim Meyering  <jim@meyering.net>
59382
59383         * check-module: Diagnose a self-dependency.
59384
59385 2007-07-19  Bruno Haible  <bruno@clisp.org>
59386
59387         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
59388         empty.
59389         Reported by Eric Blake.
59390
59391 2007-07-18  Bruno Haible  <bruno@clisp.org>
59392
59393         * gnulib-tool: New options --po-base, --po-domain.
59394         (func_usage): Document them.
59395         (pobase, po_domain): New variables.
59396         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
59397         DEFAULT_TEXT_DOMAIN.
59398         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
59399         (func_import): Consider pobase and po_domain. Create a po/ directory.
59400         (func_create_testdir): Set pobase and po_domain to empty.
59401         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
59402         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
59403
59404 2007-07-18  Bruno Haible  <bruno@clisp.org>
59405
59406         * gnulib-tool (func_get_automake_snippet): Synthesize also an
59407         EXTRA_DIST augmentation for files in build-aux/.
59408
59409 2007-07-16  Bruno Haible  <bruno@clisp.org>
59410
59411         * modules/lseek (License): Use the synonymous term "LGPLv2+".
59412         * modules/getdelim (License): Likewise.
59413
59414 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59415
59416         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
59417         * modules/d-type (License): Likewise.
59418         * modules/extensions (License): Likewise.
59419         * modules/fnmatch (License): Likewise.
59420         * modules/fseeko (License): Likewise.
59421         * modules/getaddrinfo (License): Likewise.
59422         * modules/getline (License): Likewise.
59423         * modules/getlogin_r (License): Likewise.
59424         * modules/getpass (License): Likewise.
59425         * modules/gettimeofday (License): Likewise.
59426         * modules/glob (License): Likewise.
59427         * modules/inet_ntop (License): Likewise.
59428         * modules/malloc (License): Likewise.
59429         * modules/malloca (License): Likewise.
59430         * modules/memmem (License): Likewise.
59431         * modules/mempcpy (License): Likewise.
59432         * modules/memset (License): Likewise.
59433         * modules/minmax (License): Likewise.
59434         * modules/mktime (License): Likewise.
59435         * modules/netinet_in (License): Likewise.
59436         * modules/pathmax (License): Likewise.
59437         * modules/poll (License): Likewise.
59438         * modules/regex (License): Likewise.
59439         * modules/snprintf (License): Likewise.
59440         * modules/stdbool (License): Likewise.
59441         * modules/stdint (License): Likewise.
59442         * modules/stdio (License): Likewise.
59443         * modules/strcase (License): Likewise.
59444         * modules/strcasestr (License): Likewise.
59445         * modules/strdup (License): Likewise.
59446         * modules/string (License): Likewise.
59447         * modules/strndup (License): Likewise.
59448         * modules/strnlen (License): Likewise.
59449         * modules/strpbrk (License): Likewise.
59450         * modules/strptime (License): Likewise.
59451         * modules/strsep (License): Likewise.
59452         * modules/sys_select (License): Likewise.
59453         * modules/sys_socket (License): Likewise.
59454         * modules/sys_stat (License): Likewise.
59455         * modules/sys_time (License): Likewise.
59456         * modules/time (License): Likewise.
59457         * modules/time_r (License): Likewise.
59458         * modules/timegm (License): Likewise.
59459         * modules/unistd (License): Likewise.
59460         * modules/vsnprintf (License): Likewise.
59461         * modules/wctype (License): Likewise.
59462
59463 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59464
59465         * modules/argz (License): LGPLv2+.
59466
59467 2007-07-15  Karl Berry  <karl@gnu.org>
59468
59469         * doc/gnulib.texi: revise node structure per new fdl.texi.
59470
59471 2007-07-14  Bruno Haible  <bruno@clisp.org>
59472
59473         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
59474         the output file.
59475         * lib/uniname/uninames.h: Regenerated.
59476
59477 2007-07-14  Karl Berry  <karl@gnu.org>
59478
59479         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
59480         omitting sectioning and index commands.
59481
59482 2007-07-13  Bruno Haible  <bruno@clisp.org>
59483
59484         New gnulib-tool option --more-symlinks.
59485         * gnulib-tool (func_usage): Document --more-symlinks.
59486         (do_copyrights): New variable.
59487         Recognize option --more-symlinks.
59488         (func_import): Don't add a copyright notice transform to
59489         sed_transform_lib_file if do_copyrights is empty.
59490
59491 2007-07-13  Bruno Haible  <bruno@clisp.org>
59492
59493         * lib/vasnprintf.c (decimal_point_char): Define also if
59494         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
59495         && !NEED_PRINTF_DIRECTIVE_A.
59496         Reported by Clemens Koller <clemens.koller@anagramm.de> via
59497         Gary V. Vaughan <gary@gnu.org>.
59498
59499 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
59500
59501         * lib/inttypes_.h: Undo previous change, since it was fixed
59502         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
59503
59504 2007-07-13  Bruno Haible  <bruno@clisp.org>
59505
59506         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
59507         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
59508
59509 2007-07-13  Jim Meyering  <jim@meyering.net>
59510
59511         df: Don't fail for Tru64's "file-on-file mount".
59512         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
59513         so we fall through and use statfs instead.  Details here:
59514         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
59515         Reported by Albert Chin.
59516
59517 2007-07-13  Bruno Haible  <bruno@clisp.org>
59518
59519         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
59520         * modules/configmake (License): Likewise.
59521         * modules/gettext (License): Likewise.
59522         * modules/gettext-h (License): Likewise.
59523         * modules/include_next (License): Likewise.
59524         * modules/link-warning (License): Likewise.
59525         * modules/localcharset (License): Likewise.
59526         * modules/localename (License): Likewise.
59527         * modules/lock (License): Likewise.
59528         * modules/relocatable-lib-lgpl (License): Likewise.
59529         * modules/size_max (License): Likewise.
59530         * modules/vasnprintf (License): Likewise.
59531         * modules/wchar (License): Likewise.
59532         * modules/xsize (License): Likewise.
59533
59534 2007-07-13  Bruno Haible  <bruno@clisp.org>
59535
59536         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
59537         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
59538
59539 2007-07-12  Bruno Haible  <bruno@clisp.org>
59540
59541         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
59542         in the modules files.
59543
59544 2007-07-11  Karl Berry  <karl@gnu.org>
59545
59546         * MODULES.html.sh (func_module): use
59547          sed -e '\|^'"${includefile}"'$|d'
59548          instead of /.../d, to avoid errors on $includefile's containing /.
59549
59550 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59551
59552         * gnulib-tool (func_import): Avoid duplication of --avoid
59553         statements
59554         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
59555         names to `_' in variable names.
59556
59557 2007-07-10  Eric Blake  <ebb9@byu.net>
59558
59559         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
59560         * NEWS: Document this change.
59561
59562 2007-07-08  Bruno Haible  <bruno@clisp.org>
59563
59564         Update to Unicode 5.0.
59565         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
59566         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
59567         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
59568         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
59569         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
59570         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
59571         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
59572         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
59573         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
59574         U+10A3F, U+1D242..U+1D244.
59575         (nonspacing_table_ind): Update.
59576         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
59577         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
59578
59579 2007-07-08  Bruno Haible  <bruno@clisp.org>
59580
59581         Update to Unicode 5.0.
59582         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
59583         code transform. Extend the name index field of unicode_name_to_code and
59584         unicode_code_to_name from 16 to 24 bits.
59585         * lib/uniname/uniname.c (unicode_character_name,
59586         unicode_name_character): Add the range 0x12xxx to the code transform.
59587         * lib/uniname/uninames.h: Regenerated.
59588         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
59589
59590 2007-07-07  Bruno Haible  <bruno@clisp.org>
59591
59592         * modules/wcwidth-tests: New file.
59593         * tests/test-wcwidth.c: New file.
59594
59595         Work around MacOS X wcwidth() bug.
59596         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
59597         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
59598         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
59599         original wcwidth in non-UTF-8 locales.
59600         * modules/wcwidth (Depends-on): Add localcharset, streq,
59601         uniwidth/width.
59602         * doc/functions/wcwidth.texi: Update.
59603
59604 2007-07-07  Bruno Haible  <bruno@clisp.org>
59605
59606         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
59607         (wcwidth): New declaration.
59608         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
59609         macros.
59610         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
59611         here. Prepare for creating <wchar.h> unconditionally.
59612         * modules/wchar (Depends-on): Add link-warning.
59613         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
59614         REPLACE_WCWIDTH, and GL_LINK_WARNING.
59615         * lib/wcwidth.h: Remove file.
59616         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
59617         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
59618         * modules/wcwidth (Files): Remove lib/wcwidth.h.
59619         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
59620         (Include): Replace wcwidth.h with <wchar.h>.
59621         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
59622         * lib/mbchar.h: Don't include wcwidth.h.
59623         * lib/mbswidth.c: Likewise.
59624         * NEWS: Mention the change.
59625
59626 2007-07-07  Bruno Haible  <bruno@clisp.org>
59627
59628         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
59629         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
59630         definition with an external declaration.
59631         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
59632         defined as a function. Remove AC_C_INLINE requirement.
59633         * modules/wcwidth (Files): Add lib/wcwidth.c.
59634         (Makefile.am): Remove redundant statement.
59635
59636 2007-07-07  Bruno Haible  <bruno@clisp.org>
59637
59638         * MODULES.html.sh (Unicode string functions): Add the new modules.
59639
59640         * tests/uniwidth/test-u32-strwidth.c: New file.
59641         * modules/uniwidth/u32-strwidth-tests: New file.
59642
59643         * lib/uniwidth/u32-strwidth.c: New file.
59644         * modules/uniwidth/u32-strwidth: New file.
59645
59646         * tests/uniwidth/test-u16-strwidth.c: New file.
59647         * modules/uniwidth/u16-strwidth-tests: New file.
59648
59649         * lib/uniwidth/u16-strwidth.c: New file.
59650         * modules/uniwidth/u16-strwidth: New file.
59651
59652         * tests/uniwidth/test-u8-strwidth.c: New file.
59653         * modules/uniwidth/u8-strwidth-tests: New file.
59654
59655         * lib/uniwidth/u8-strwidth.c: New file.
59656         * modules/uniwidth/u8-strwidth: New file.
59657
59658         * tests/uniwidth/test-u32-width.c: New file.
59659         * modules/uniwidth/u32-width-tests: New file.
59660
59661         * lib/uniwidth/u32-width.c: New file.
59662         * modules/uniwidth/u32-width: New file.
59663
59664         * tests/uniwidth/test-u16-width.c: New file.
59665         * modules/uniwidth/u16-width-tests: New file.
59666
59667         * lib/uniwidth/u16-width.c: New file.
59668         * modules/uniwidth/u16-width: New file.
59669
59670         * tests/uniwidth/test-u8-width.c: New file.
59671         * modules/uniwidth/u8-width-tests: New file.
59672
59673         * lib/uniwidth/u8-width.c: New file.
59674         * modules/uniwidth/u8-width: New file.
59675
59676         * tests/uniwidth/test-uc_width.c: New file.
59677         * modules/uniwidth/width-tests: New file.
59678
59679         * lib/uniwidth/width.c: New file, from GNU libiconv.
59680         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
59681         * modules/uniwidth/width: New file.
59682
59683         * lib/uniwidth.h: New file, from GNU libiconv.
59684         * modules/uniwidth/base: New file.
59685
59686 2007-07-07  Bruno Haible  <bruno@clisp.org>
59687
59688         * lib/uniname.h: New file, from GNU gettext.
59689         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
59690         * lib/uniname/uninames.h: New file, from GNU gettext.
59691         * lib/uniname/uniname.c: New file, from GNU gettext.
59692         * tests/uniname/test-uninames.sh: New file.
59693         * tests/uniname/test-uninames.c: New file, from GNU gettext.
59694         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
59695         * modules/uniname/base: New file.
59696         * modules/uniname/uniname: New file.
59697         * modules/uniname/uniname-tests: New file.
59698         * MODULES.html.sh (Unicode string functions): Add the new modules.
59699
59700 2007-07-06  Bruno Haible  <bruno@clisp.org>
59701
59702         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
59703
59704 2007-07-06  Bruno Haible  <bruno@clisp.org>
59705
59706         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
59707         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
59708         includes <cygwin/sys_time.h> which includes <sys/select.h> which
59709         include <sys/time.h>.
59710         Reported by Eric Blake.
59711
59712 2007-07-06  Eric Blake  <ebb9@byu.net>
59713
59714         Fix testing canonicalize on cygwin.
59715         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59716         Revert patch from 2007-06-19.
59717         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
59718         canonicalize module is also in use.
59719         * tests/test-canonicalize.c: New file.
59720         * tests/test-canonicalize.sh: Likewise.
59721         * modules/canonicalize-tests: Likewise.
59722
59723 2007-07-06  Jim Meyering  <jim@meyering.net>
59724
59725         * lib/getugroups.c (getugroups): Detect getgrent failure.
59726         Adjust comment to reflect reality: this function may return -1.
59727
59728 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
59729
59730         * build-aux/bootstrap (TP_URL,get_translations): Update to use
59731         the new TP address.
59732         (usage): Fix typo
59733         (gnulib_mk): New variable.
59734
59735 2007-07-05  Jim Meyering  <jim@meyering.net>
59736
59737         Don't let endgrent clobber errno, no matter how improbable.
59738         * lib/getugroups.c (getugroups): Save and restore errno around
59739         endgrent call.
59740
59741         Close the group DB even when failing with 2^31 or more members.
59742         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
59743
59744 2007-07-04  Jim Meyering  <jim@meyering.net>
59745
59746         * lib/getugroups.h: New file.
59747         * lib/getugroups.c: Include "getugroups.h".
59748         Remove uses of "register" keyword.
59749         Move local variable, "cp", down into scope where used.
59750         Give "username" parameter the "const" attribute.
59751         * modules/getugroups (Files): Add lib/getugroups.h
59752
59753 2007-07-04  Karl Berry  <karl@gnu.org>
59754
59755         * MODULES.html.sh (func_all_modules): Complete rename of
59756         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
59757
59758 2007-07-02  Bruno Haible  <bruno@clisp.org>
59759
59760         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
59761         mode, when inttypes.h comes from gnulib.
59762         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59763
59764 2007-07-02  Simon Josefsson  <simon@josefsson.org>
59765
59766         * NEWS: Mention lgpl module name change.
59767
59768         * modules/lgpl-2.1: Renamed from lgpl.
59769
59770         * NEWS: Mention gpl module name change.
59771
59772         * modules/gpl-3.0: New file, based on gpl-2.0.
59773
59774         * modules/gpl-2.0: Renamed from gpl.
59775
59776         * modules/gpl: Fix filename, doc/gpl.texi is now found at
59777         doc/gpl-2.0.texi.
59778
59779 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59780
59781         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
59782         #define __STDC_LIMIT_MACROS temporarily while including
59783         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
59784         Problem reported by Joel E. Denny in
59785         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
59786
59787 2007-07-01  Bruno Haible  <bruno@clisp.org>
59788
59789         * lib/unistdio.h: New file.
59790         * lib/unistdio/u-asnprintf.h: New file.
59791         * lib/unistdio/u-asprintf.h: New file.
59792         * lib/unistdio/u-printf-args.c: New file.
59793         * lib/unistdio/u-printf-args.h: New file.
59794         * lib/unistdio/u-printf-parse.h: New file.
59795         * lib/unistdio/u-snprintf.h: New file.
59796         * lib/unistdio/u-sprintf.h: New file.
59797         * lib/unistdio/u-vasprintf.h: New file.
59798         * lib/unistdio/u-vsnprintf.h: New file.
59799         * lib/unistdio/u-vsprintf.h: New file.
59800         * lib/unistdio/ulc-asnprintf.c: New file.
59801         * lib/unistdio/ulc-asprintf.c: New file.
59802         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
59803         * lib/unistdio/ulc-printf-parse.c: New file.
59804         * lib/unistdio/ulc-snprintf.c: New file.
59805         * lib/unistdio/ulc-sprintf.c: New file.
59806         * lib/unistdio/ulc-vasnprintf.c: New file.
59807         * lib/unistdio/ulc-vasprintf.c: New file.
59808         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
59809         * lib/unistdio/ulc-vsnprintf.c: New file.
59810         * lib/unistdio/ulc-vsprintf.c: New file.
59811         * lib/unistdio/u8-asnprintf.c: New file.
59812         * lib/unistdio/u8-asprintf.c: New file.
59813         * lib/unistdio/u8-printf-parse.c: New file.
59814         * lib/unistdio/u8-snprintf.c: New file.
59815         * lib/unistdio/u8-sprintf.c: New file.
59816         * lib/unistdio/u8-vasnprintf.c: New file.
59817         * lib/unistdio/u8-vasprintf.c: New file.
59818         * lib/unistdio/u8-vsnprintf.c: New file.
59819         * lib/unistdio/u8-vsprintf.c: New file.
59820         * lib/unistdio/u8-u8-asnprintf.c: New file.
59821         * lib/unistdio/u8-u8-asprintf.c: New file.
59822         * lib/unistdio/u8-u8-snprintf.c: New file.
59823         * lib/unistdio/u8-u8-sprintf.c: New file.
59824         * lib/unistdio/u8-u8-vasnprintf.c: New file.
59825         * lib/unistdio/u8-u8-vasprintf.c: New file.
59826         * lib/unistdio/u8-u8-vsnprintf.c: New file.
59827         * lib/unistdio/u8-u8-vsprintf.c: New file.
59828         * lib/unistdio/u16-asnprintf.c: New file.
59829         * lib/unistdio/u16-asprintf.c: New file.
59830         * lib/unistdio/u16-printf-parse.c: New file.
59831         * lib/unistdio/u16-snprintf.c: New file.
59832         * lib/unistdio/u16-sprintf.c: New file.
59833         * lib/unistdio/u16-vasnprintf.c: New file.
59834         * lib/unistdio/u16-vasprintf.c: New file.
59835         * lib/unistdio/u16-vsnprintf.c: New file.
59836         * lib/unistdio/u16-vsprintf.c: New file.
59837         * lib/unistdio/u16-u16-asnprintf.c: New file.
59838         * lib/unistdio/u16-u16-asprintf.c: New file.
59839         * lib/unistdio/u16-u16-snprintf.c: New file.
59840         * lib/unistdio/u16-u16-sprintf.c: New file.
59841         * lib/unistdio/u16-u16-vasnprintf.c: New file.
59842         * lib/unistdio/u16-u16-vasprintf.c: New file.
59843         * lib/unistdio/u16-u16-vsnprintf.c: New file.
59844         * lib/unistdio/u16-u16-vsprintf.c: New file.
59845         * lib/unistdio/u32-asnprintf.c: New file.
59846         * lib/unistdio/u32-asprintf.c: New file.
59847         * lib/unistdio/u32-printf-parse.c: New file.
59848         * lib/unistdio/u32-snprintf.c: New file.
59849         * lib/unistdio/u32-sprintf.c: New file.
59850         * lib/unistdio/u32-vasnprintf.c: New file.
59851         * lib/unistdio/u32-vasprintf.c: New file.
59852         * lib/unistdio/u32-vsnprintf.c: New file.
59853         * lib/unistdio/u32-vsprintf.c: New file.
59854         * lib/unistdio/u32-u32-asnprintf.c: New file.
59855         * lib/unistdio/u32-u32-asprintf.c: New file.
59856         * lib/unistdio/u32-u32-snprintf.c: New file.
59857         * lib/unistdio/u32-u32-sprintf.c: New file.
59858         * lib/unistdio/u32-u32-vasnprintf.c: New file.
59859         * lib/unistdio/u32-u32-vasprintf.c: New file.
59860         * lib/unistdio/u32-u32-vsnprintf.c: New file.
59861         * lib/unistdio/u32-u32-vsprintf.c: New file.
59862         * tests/unistdio/test-ulc-asnprintf1.c: New file.
59863         * tests/unistdio/test-ulc-asnprintf1.h: New file.
59864         * tests/unistdio/test-ulc-printf1.h: New file.
59865         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
59866         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
59867         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
59868         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
59869         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
59870         * tests/unistdio/test-ulc-vasprintf1.c: New file.
59871         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
59872         * tests/unistdio/test-ulc-vsprintf1.c: New file.
59873         * tests/unistdio/test-u8-asnprintf1.c: New file.
59874         * tests/unistdio/test-u8-asnprintf1.h: New file.
59875         * tests/unistdio/test-u8-printf1.h: New file.
59876         * tests/unistdio/test-u8-vasnprintf1.c: New file.
59877         * tests/unistdio/test-u8-vasnprintf2.c: New file.
59878         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
59879         * tests/unistdio/test-u8-vasnprintf3.c: New file.
59880         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
59881         * tests/unistdio/test-u8-vasprintf1.c: New file.
59882         * tests/unistdio/test-u8-vsnprintf1.c: New file.
59883         * tests/unistdio/test-u8-vsprintf1.c: New file.
59884         * tests/unistdio/test-u16-asnprintf1.c: New file.
59885         * tests/unistdio/test-u16-asnprintf1.h: New file.
59886         * tests/unistdio/test-u16-printf1.h: New file.
59887         * tests/unistdio/test-u16-vasnprintf1.c: New file.
59888         * tests/unistdio/test-u16-vasnprintf2.c: New file.
59889         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
59890         * tests/unistdio/test-u16-vasnprintf3.c: New file.
59891         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
59892         * tests/unistdio/test-u16-vasprintf1.c: New file.
59893         * tests/unistdio/test-u16-vsnprintf1.c: New file.
59894         * tests/unistdio/test-u16-vsprintf1.c: New file.
59895         * tests/unistdio/test-u32-asnprintf1.c: New file.
59896         * tests/unistdio/test-u32-asnprintf1.h: New file.
59897         * tests/unistdio/test-u32-printf1.h: New file.
59898         * tests/unistdio/test-u32-vasnprintf1.c: New file.
59899         * tests/unistdio/test-u32-vasnprintf2.c: New file.
59900         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
59901         * tests/unistdio/test-u32-vasnprintf3.c: New file.
59902         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
59903         * tests/unistdio/test-u32-vasprintf1.c: New file.
59904         * tests/unistdio/test-u32-vsnprintf1.c: New file.
59905         * tests/unistdio/test-u32-vsprintf1.c: New file.
59906         * modules/unistdio/base: New file.
59907         * modules/unistdio/u-printf-args: New file.
59908         * modules/unistdio/ulc-asnprintf: New file.
59909         * modules/unistdio/ulc-asprintf: New file.
59910         * modules/unistdio/ulc-fprintf: New file.
59911         * modules/unistdio/ulc-printf-parse: New file.
59912         * modules/unistdio/ulc-snprintf: New file.
59913         * modules/unistdio/ulc-sprintf: New file.
59914         * modules/unistdio/ulc-vasnprintf: New file.
59915         * modules/unistdio/ulc-vasprintf: New file.
59916         * modules/unistdio/ulc-vfprintf: New file.
59917         * modules/unistdio/ulc-vsnprintf: New file.
59918         * modules/unistdio/ulc-vsprintf: New file.
59919         * modules/unistdio/u8-asnprintf: New file.
59920         * modules/unistdio/u8-asprintf: New file.
59921         * modules/unistdio/u8-printf-parse: New file.
59922         * modules/unistdio/u8-snprintf: New file.
59923         * modules/unistdio/u8-sprintf: New file.
59924         * modules/unistdio/u8-vasnprintf: New file.
59925         * modules/unistdio/u8-vasprintf: New file.
59926         * modules/unistdio/u8-vsnprintf: New file.
59927         * modules/unistdio/u8-vsprintf: New file.
59928         * modules/unistdio/u8-u8-asnprintf: New file.
59929         * modules/unistdio/u8-u8-asprintf: New file.
59930         * modules/unistdio/u8-u8-snprintf: New file.
59931         * modules/unistdio/u8-u8-sprintf: New file.
59932         * modules/unistdio/u8-u8-vasnprintf: New file.
59933         * modules/unistdio/u8-u8-vasprintf: New file.
59934         * modules/unistdio/u8-u8-vsnprintf: New file.
59935         * modules/unistdio/u8-u8-vsprintf: New file.
59936         * modules/unistdio/u16-asnprintf: New file.
59937         * modules/unistdio/u16-asprintf: New file.
59938         * modules/unistdio/u16-printf-parse: New file.
59939         * modules/unistdio/u16-snprintf: New file.
59940         * modules/unistdio/u16-sprintf: New file.
59941         * modules/unistdio/u16-vasnprintf: New file.
59942         * modules/unistdio/u16-vasprintf: New file.
59943         * modules/unistdio/u16-vsnprintf: New file.
59944         * modules/unistdio/u16-vsprintf: New file.
59945         * modules/unistdio/u16-u16-asnprintf: New file.
59946         * modules/unistdio/u16-u16-asprintf: New file.
59947         * modules/unistdio/u16-u16-snprintf: New file.
59948         * modules/unistdio/u16-u16-sprintf: New file.
59949         * modules/unistdio/u16-u16-vasnprintf: New file.
59950         * modules/unistdio/u16-u16-vasprintf: New file.
59951         * modules/unistdio/u16-u16-vsnprintf: New file.
59952         * modules/unistdio/u16-u16-vsprintf: New file.
59953         * modules/unistdio/u32-asnprintf: New file.
59954         * modules/unistdio/u32-asprintf: New file.
59955         * modules/unistdio/u32-printf-parse: New file.
59956         * modules/unistdio/u32-snprintf: New file.
59957         * modules/unistdio/u32-sprintf: New file.
59958         * modules/unistdio/u32-vasnprintf: New file.
59959         * modules/unistdio/u32-vasprintf: New file.
59960         * modules/unistdio/u32-vsnprintf: New file.
59961         * modules/unistdio/u32-vsprintf: New file.
59962         * modules/unistdio/u32-u32-asnprintf: New file.
59963         * modules/unistdio/u32-u32-asprintf: New file.
59964         * modules/unistdio/u32-u32-snprintf: New file.
59965         * modules/unistdio/u32-u32-sprintf: New file.
59966         * modules/unistdio/u32-u32-vasnprintf: New file.
59967         * modules/unistdio/u32-u32-vasprintf: New file.
59968         * modules/unistdio/u32-u32-vsnprintf: New file.
59969         * modules/unistdio/u32-u32-vsprintf: New file.
59970         * modules/unistdio/ulc-asnprintf-tests: New file.
59971         * modules/unistdio/ulc-vasnprintf-tests: New file.
59972         * modules/unistdio/ulc-vasprintf-tests: New file.
59973         * modules/unistdio/ulc-vsnprintf-tests: New file.
59974         * modules/unistdio/ulc-vsprintf-tests: New file.
59975         * modules/unistdio/u8-asnprintf-tests: New file.
59976         * modules/unistdio/u8-vasnprintf-tests: New file.
59977         * modules/unistdio/u8-vasprintf-tests: New file.
59978         * modules/unistdio/u8-vsnprintf-tests: New file.
59979         * modules/unistdio/u8-vsprintf-tests: New file.
59980         * modules/unistdio/u16-asnprintf-tests: New file.
59981         * modules/unistdio/u16-vasnprintf-tests: New file.
59982         * modules/unistdio/u16-vasprintf-tests: New file.
59983         * modules/unistdio/u16-vsnprintf-tests: New file.
59984         * modules/unistdio/u16-vsprintf-tests: New file.
59985         * modules/unistdio/u32-asnprintf-tests: New file.
59986         * modules/unistdio/u32-vasnprintf-tests: New file.
59987         * modules/unistdio/u32-vasprintf-tests: New file.
59988         * modules/unistdio/u32-vsnprintf-tests: New file.
59989         * modules/unistdio/u32-vsprintf-tests: New file.
59990         * MODULES.html.sh (Unicode string functions): Add the new modules.
59991
59992 2007-07-01  Bruno Haible  <bruno@clisp.org>
59993
59994         * lib/sprintf.c (sprintf): Limit the available length estimation,
59995         to avoid address wraparound.
59996         * lib/vsprintf.c (vsprintf): Likewise.
59997         * modules/sprintf-posix (Dependencies): Add stdint.
59998         * modules/vsprintf-posix (Dependencies): Likewise.
59999
60000 2007-07-01  Bruno Haible  <bruno@clisp.org>
60001
60002         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
60003         Windows PATH as well. Conservative double-quoting. Comments.
60004
60005 2007-07-01  Bruno Haible  <bruno@clisp.org>
60006             Eric Blake  <ebb9@byu.net>
60007             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60008
60009         * gnulib-tool (self_abspathname): Fix algorithm to cope with
60010         empty components in $PATH, denoting '.'.
60011
60012 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60013
60014         * gnulib-tool: Fix indentation.
60015         (func_create_megatestdir): Likewise.
60016         Report by Bruno Haible.
60017
60018 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60019
60020         Sync from Automake.
60021         * build-aux/gnupload: Fix shell portability issues with for loops.
60022         Report by Karl Berry.
60023
60024 2007-06-29  Simon Josefsson  <simon@josefsson.org>
60025
60026         * build-aux/maint.mk (POURL): Use translationproject.org.
60027
60028 2007-06-27  Simon Josefsson  <simon@josefsson.org>
60029             Bruno Haible  <bruno@clisp.org>
60030
60031         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
60032         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
60033         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
60034         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
60035         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
60036
60037 2007-06-27  Bruno Haible  <bruno@clisp.org>
60038
60039         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
60040         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
60041
60042 2007-06-26  Karl Berry  <karl@gnu.org>
60043
60044         * MODULES.html.sh: remove xreadlink-with-size.
60045
60046 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
60047
60048         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
60049         method that I hope also handles the double-include problem noted
60050         by Bruno Haible in
60051         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
60052
60053 2007-06-23  Bruno Haible  <bruno@clisp.org>
60054
60055         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60056         Don't let the 'mostlyclean' target fail if the last subdirectory could
60057         not be removed.
60058         Reported by Karl Berry.
60059
60060 2007-06-23  Bruno Haible  <bruno@clisp.org>
60061
60062         * gnulib-tool (echo): Add a speedier workaround for ksh.
60063         * tests/test-echo.sh: Likewise.
60064
60065 2007-06-23  Bruno Haible  <bruno@clisp.org>
60066
60067         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
60068         * tests/test-echo.sh: Likewise.
60069
60070 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60071
60072         * gnulib-tool (IFS): Initialize early, so we don't set it to
60073         empty later.
60074         (self_abspathname): Rewrite algorithm to set it, reindent.
60075         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
60076         (func_create_megatestdir): Merge some sed scripts.
60077
60078 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
60079
60080         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
60081         exposed by Sun Studio 11 cc on Solaris 8.
60082
60083 2007-06-22  Bruno Haible  <bruno@clisp.org>
60084
60085         * gnulib-tool (echo): Ensure the echo primitive does not interpret
60086         backslashes.
60087         * tests/test-echo.sh: New file.
60088
60089 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60090
60091         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
60092         simplify `sed_replace_build_aux' scripts, they are portable but
60093         echoing them with `echo' is not.
60094         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
60095
60096 2007-06-21  Karl Berry  <karl@gnu.org>
60097
60098         * config/srclist.txt: guess we can't handle the licenses via
60099         srclist at the moment.
60100
60101 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
60102
60103         * MODULES.html.sh: Add include_next.
60104         * modules/include_next: New file.
60105
60106 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
60107
60108         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
60109         INCLUDE_NEXT.
60110         (gl_CHECK_NEXT_HEADERS): New macro.
60111         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
60112         the obsolescent gl_ABSOLUTE_HEADER.
60113         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
60114         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
60115         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
60116         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
60117         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
60118         * m4/math_h.m4 (gl_MATH_H): Likewise.
60119         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
60120         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
60121         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
60122         * m4/stdint.m4 (gl_STDINT_H): Likewise.
60123         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
60124         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
60125         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
60126         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60127         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60128         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
60129         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
60130         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
60131         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
60132         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
60133         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
60134         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
60135         * m4/inttypes.m4 (gl_INTTYPES_H): Define
60136         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
60137         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
60138         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
60139         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
60140         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
60141         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
60142         * lib/float_.h: Likewise.
60143         * lib/inttypes_.h: Likewise.
60144         * lib/math_.h: Likewise.
60145         * lib/search_.h: Likewise.
60146         * lib/signal_.h: Likewise.
60147         * lib/stdint_.h: Likewise.
60148         * lib/stdio_.h: Likewise.
60149         * lib/stdlib_.h: Likewise.
60150         * lib/string_.h: Likewise.
60151         * lib/sys_stat_.h: Likewise.
60152         * lib/sys_time_.h: Likewise.
60153         * lib/time_.h: Likewise.
60154         * lib/unistd_.h: Likewise.
60155         * lib/wchar_.h: Likewise.
60156         * lib/wctype_.h: Likewise.
60157         * lib/dirent_.h: Likewise.
60158         * lib/iconv_.h: Likewise.
60159         * lib/locale_.h: Likewise.
60160         * lib/netinet_in_.h: Likewise.
60161         * lib/sys_select_.h: Likewise.
60162         * lib/sys_socket_.h: Likewise.
60163         * lib/sysexits_.h: Likewise.
60164         * modules/fcntl (Depends-on): Depend on include_next, not
60165         absolute_header.
60166         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
60167         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
60168         * modules/fchdir: Likewise.
60169         * modules/float: Likewise.
60170         * modules/iconv_open: Likewise.
60171         * modules/inttypes: Likewise.
60172         * modules/locale: Likewise.
60173         * modules/math: Likewise.
60174         * modules/netinet_in: Likewise.
60175         * modules/search: Likewise.
60176         * modules/signal: Likewise.
60177         * modules/stdint: Likewise.
60178         * modules/stdio: Likewise.
60179         * modules/stdlib: Likewise.
60180         * modules/string: Likewise.
60181         * modules/sys_select: Likewise.
60182         * modules/sys_socket: Likewise.
60183         * modules/sys_stat: Likewise.
60184         * modules/sys_time: Likewise.
60185         * modules/sysexits: Likewise.
60186         * modules/time: Likewise.
60187         * modules/unistd: Likewise.
60188         * modules/wchar: Likewise.
60189         * modules/wctype: Likewise.
60190         * modules/sys_stat: Change maintainer to "all".
60191         * modules/unistd: Likewise.
60192
60193 2007-06-20  Karl Berry  <karl@gnu.org>
60194
60195         * config/srclist.txt: track www changes in license files.
60196
60197 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
60198
60199         * build-aux/bootstrap: Remove stray dot.
60200         Make sure build_aux settings are honored when linking
60201         gnulib_extra_files.
60202
60203 2007-06-19  Eric Blake  <ebb9@byu.net>
60204
60205         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
60206         Allow compilation on cygwin.
60207
60208 2007-06-19  Jim Meyering  <jim@meyering.net>
60209
60210         xreadlink-with-size: Remove module.  No longer used.
60211         Ex-callers now use xreadlink or mreadlink-with-size.
60212         * modules/xreadlink-with-size: Remove module.
60213         * lib/xreadlink-with-size.c: Remove file.
60214         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
60215         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
60216         just before the function definition *is* accurate.
60217
60218         Eliminate one way canonicalize_filename_mode could exit.
60219         * lib/canonicalize.c (canonicalize_filename_mode):
60220         Use mreadlink_with_size, not xreadlink_with_size.
60221
60222 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
60223
60224         Detect porting problems to FreeBSD/arm, which has time_t wider than
60225         long int.  Original problem reported for GNU diff by Xin Li in
60226         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
60227         * modules/getdate (Depends-on): Add intprops, verify.
60228         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
60229         is an integer type no wider than long int.
60230
60231 2007-06-18  Jim Meyering  <jim@meyering.net>
60232
60233         New module: mreadlink-with-size.
60234         * MODULES.html.sh: Add mreadlink-with-size.
60235         * modules/mreadlink-with-size: New module
60236         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
60237         not xreadlink-with-size.
60238         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
60239
60240 2007-06-16  Bruno Haible  <bruno@clisp.org>
60241
60242         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
60243         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
60244         Reported by Gary V. Vaughan <gary@gnu.org>.
60245
60246 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
60247
60248         Revamp lchown so that it lives in unistd.h where it belongs.
60249         * lib/lchown.h: Remove.
60250         * lib/dirchownmod.c: Don't include lib/lchown.h.
60251         * lib/fchownat.c: Likewise.
60252         * lib/openat.c: Likewise.
60253         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
60254         does not follow symlinks.
60255         (EOPNOTSUPP): Define if not defined.
60256         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
60257         is defined to 0.
60258         (lchown): New decl.
60259         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
60260         Do not check for lchown decl.
60261         Set REPLACE_LCHOWN.
60262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
60263         REPLACE_LCHOWN.
60264         * modules/chown: Make it clear it follows symlinks.
60265         * modules/lchown: Make it clear it doesn't follow symlinks.
60266         (Files): Remove lib/lchown.h
60267         (Depends-on): Add unistd.
60268         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
60269         (Include): Include <unistd.h>, not "lchown.h".
60270         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
60271         REPLACE_LCHOWN.
60272
60273 2007-06-15  Jim Meyering  <jim@meyering.net>
60274
60275         Change license (GPL to LGPL) of fsusage and dependents.
60276         * modules/fsusage (License): Change to LGPL.
60277         * modules/full-read (License): Likewise.
60278         * modules/full-write (License): Likewise.
60279         * modules/safe-read (License): Likewise.
60280         * modules/safe-write (License): Likewise.
60281
60282 2007-06-14  Ben Pfaff  <blp@gnu.org>
60283
60284         Missing part of allocsa -> malloca transition.
60285         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
60286         gl_MALLOCA.
60287
60288 2007-06-12  Bruno Haible  <bruno@clisp.org>
60289
60290         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
60291         to ia64, x86_64, i386.
60292         Reported by Eric Blake.
60293
60294 2007-06-12  Bruno Haible  <bruno@clisp.org>
60295
60296         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
60297         cross-compiling to x86_64.
60298
60299 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
60300
60301         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
60302         glitch reported by Ralf Wildenhues in
60303         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
60304
60305         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
60306         Vin Shelton.
60307
60308 2007-06-11  Bruno Haible  <bruno@clisp.org>
60309
60310         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
60311         replacement string.
60312         Reported by Eric Blake.
60313
60314 2007-06-10  Bruno Haible  <bruno@clisp.org>
60315
60316         Prepare vasnprintf code for use with Unicode strings.
60317         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
60318         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
60319         TYPE_U32_STRING.
60320         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
60321         a_u32_string variants.
60322         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
60323         * lib/printf-args.c: Don't include config.h and the specification
60324         header if PRINTF_FETCHARGS is already defined.
60325         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
60326         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
60327         TYPE_U16_STRING, TYPE_U32_STRING.
60328         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
60329         u16_directive, u16_directives, u32_directive, u32_directives): New
60330         types.
60331         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
60332         New declarations.
60333         * lib/printf-parse.c: Don't include config.h and the specification
60334         header if PRINTF_PARSE is already defined. Eliminate the set of
60335         parameters for WIDE_CHAR_VERSION; the user of this file must provide
60336         them now. Include c-ctype.h.
60337         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
60338         directive and CHAR_T_ONLY_ASCII.
60339         * lib/vasnprintf.c: Don't include config.h and the specification header
60340         if VASNPRINTF is already defined.
60341         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
60342         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
60343         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
60344         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
60345         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
60346         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
60347         code accordingly.
60348         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
60349         pad_ourselves also in this case, with the 'c' and 's' directives, and
60350         with a different notion of "width".
60351         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
60352
60353 2007-06-10  Bruno Haible  <bruno@clisp.org>
60354
60355         * modules/unistr/u32-mbsnlen: New file.
60356         * lib/unistr/u32-mbsnlen.c: New file.
60357
60358         * modules/unistr/u16-mbsnlen: New file.
60359         * lib/unistr/u16-mbsnlen.c: New file.
60360
60361         * modules/unistr/u8-mbsnlen: New file.
60362         * lib/unistr/u8-mbsnlen.c: New file.
60363
60364         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
60365         declarations.
60366
60367 2007-06-10  Bruno Haible  <bruno@clisp.org>
60368
60369         * lib/string_.h (mbsnlen): New declaration.
60370         * lib/mbsnlen.c: New file.
60371         * m4/mbsnlen.m4: New file.
60372         * modules/mbsnlen: New file.
60373         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
60374         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
60375         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
60376
60377 2007-06-10  Bruno Haible  <bruno@clisp.org>
60378
60379         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
60380
60381 2007-06-10  Bruno Haible  <bruno@clisp.org>
60382
60383         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
60384         * lib/mbuiter.h: Likewise.
60385
60386 2007-06-10  Bruno Haible  <bruno@clisp.org>
60387
60388         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
60389         declaration.
60390
60391 2007-06-10  Karl Berry  <karl@gnu.org>
60392
60393         * config/srclist.txt: remove gettext entries, Bruno prefers
60394         to update individually.
60395
60396 2007-06-10  Bruno Haible  <bruno@clisp.org>
60397
60398         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
60399         'maxlen'. Ensure only length + width bytes are allocated, not
60400         length + 1 + width.
60401
60402 2007-06-09  Bruno Haible  <bruno@clisp.org>
60403
60404         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
60405         (CHAR_T): Remove macro.
60406         (VASNPRINTF): Update.
60407
60408 2007-06-09  Bruno Haible  <bruno@clisp.org>
60409
60410         * MODULES.html.sh (Unicode string functions): Add the new modules.
60411
60412         * modules/uniconv/u32-conv-to-enc: New file.
60413         * lib/uniconv/u32-conv-to-enc.c: New file.
60414         * modules/uniconv/u32-conv-to-enc-tests: New file.
60415         * tests/uniconv/test-u32-conv-to-enc.c: New file.
60416
60417         * modules/uniconv/u16-conv-to-enc: New file.
60418         * lib/uniconv/u16-conv-to-enc.c: New file.
60419         * lib/uniconv/u-conv-to-enc.h: New file.
60420         * modules/uniconv/u16-conv-to-enc-tests: New file.
60421         * tests/uniconv/test-u16-conv-to-enc.c: New file.
60422
60423         * modules/uniconv/u8-conv-to-enc: New file.
60424         * lib/uniconv/u8-conv-to-enc.c: New file.
60425         * modules/uniconv/u8-conv-to-enc-tests: New file.
60426         * tests/uniconv/test-u8-conv-to-enc.c: New file.
60427
60428         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
60429         u32_conv_to_encoding): New declarations.
60430
60431 2007-06-09  Bruno Haible  <bruno@clisp.org>
60432
60433         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
60434
60435 2007-06-09  Bruno Haible  <bruno@clisp.org>
60436
60437         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
60438         * modules/malloca: Renamed from modules/allocsa, updated.
60439         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
60440         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
60441         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
60442         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
60443         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
60444         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
60445         * modules/xmalloca: Renamed from modules/xallocsa, updated.
60446         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
60447         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
60448         * modules/c-strcasestr (Depends-on): Update.
60449         * lib/c-strcasestr.c: Update.
60450         * modules/c-strstr (Depends-on): Update.
60451         * lib/c-strstr.c: Update.
60452         * modules/canonicalize-lgpl (Depends-on): Update.
60453         * lib/canonicalize-lgpl.c: Update.
60454         * modules/clean-temp (Depends-on): Update.
60455         * lib/clean-temp.c: Update.
60456         * modules/csharpcomp (Depends-on): Update.
60457         * lib/csharpcomp.c: Update.
60458         * modules/csharpexec (Depends-on): Update.
60459         * lib/csharpexec.c: Update.
60460         * modules/javacomp (Depends-on): Update.
60461         * lib/javacomp.c: Update.
60462         * modules/javaexec (Depends-on): Update.
60463         * lib/javaexec.c: Update.
60464         * modules/mbscasestr (Depends-on): Update.
60465         * lib/mbscasestr.c: Update.
60466         * modules/mbsstr (Depends-on): Update.
60467         * lib/mbsstr.c: Update.
60468         * modules/setenv (Depends-on): Update.
60469         * lib/setenv.c: Update.
60470         * modules/strcasestr (Depends-on): Update.
60471         * lib/strcasestr.c: Update.
60472         * modules/striconveha (Depends-on): Update.
60473         * lib/striconveha.c: Update.
60474         * modules/relocatable-prog-wrapper (Files): Update.
60475         * lib/relocwrapper.c: Update.
60476         * build-aux/install-reloc: Update.
60477         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
60478
60479 2007-06-08  Bruno Haible  <bruno@clisp.org>
60480
60481         Port to uClibc.
60482         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
60483         * lib/fpurge.c (fpurge): Likewise.
60484         * lib/freading.c (freading): Likewise.
60485         * lib/fseeko.c (rpl_fseeko): Likewise.
60486         * lib/fseterr.c (fseterr): Likewise.
60487         * lib/fwriting.c (fwriting): Likewise.
60488         * tests/test-fflush.c (main): Avoid a failure on uClibc.
60489
60490 2007-06-08  Bruno Haible  <bruno@clisp.org>
60491
60492         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
60493         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
60494         * modules/gettext (Files): Add m4/intlmacosx.m4.
60495
60496 2007-06-07  Bruno Haible  <bruno@clisp.org>
60497
60498         * modules/localename-tests: New file.
60499         * tests/test-localename.c: New file.
60500
60501         New module 'localename'.
60502         * lib/localename.h: New file.
60503         * lib/localename.c: New file, from GNU gettext.
60504         * m4/localename.m4: New file.
60505         * modules/localename: New file.
60506
60507 2007-06-07  Bruno Haible  <bruno@clisp.org>
60508
60509         Work around the lack of <wchar.h> on some builds of uClibc.
60510         * doc/headers/wchar.texi: Update.
60511         * lib/wchar_.h: Include <wchar.h> only if it exists.
60512         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
60513         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
60514         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
60515         doesn't exist.
60516         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
60517         * modules/mbfile (Depends-on): Add wchar.
60518         * modules/mbiter (Depends-on): Likewise.
60519         * modules/mbuiter (Depends-on): Likewise.
60520         Reported by Simon Josefsson.
60521
60522 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
60523
60524         Work around problem reported by Steven M. Schweda in
60525         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
60526         Tru64 5.1B with the Compaq compiler environment installed declares
60527         an 'isblank' function but does not define it in the C library.
60528         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
60529         * lib/regex_internal.h (isblank): Likewise.
60530         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
60531         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60532
60533 2007-06-05  Bruno Haible  <bruno@clisp.org>
60534
60535         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
60536         ia64.
60537         * modules/printf-safe: New file.
60538         * modules/fprintf-posix (Depends-on): Add printf-safe.
60539         * modules/printf-posix (Depends-on): Likewise.
60540         * modules/snprintf-posix (Depends-on): Likewise.
60541         * modules/sprintf-posix (Depends-on): Likewise.
60542         * modules/vasnprintf-posix (Depends-on): Likewise.
60543         * modules/vasprintf-posix (Depends-on): Likewise.
60544         * modules/vfprintf-posix (Depends-on): Likewise.
60545         * modules/vprintf-posix (Depends-on): Likewise.
60546         * modules/vsnprintf-posix (Depends-on): Likewise.
60547         * modules/vsprintf-posix (Depends-on): Likewise.
60548         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
60549         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
60550         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
60551         "no" on i386, x86_64, ia64.
60552         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
60553         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60554         on i386, x86_64, ia64.
60555         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
60556         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60557         on i386, x86_64, ia64.
60558         * tests/test-vasnprintf-posix.c: Include float.h.
60559         (LDBL80_WORDS): New macro.
60560         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60561         on i386, x86_64, ia64.
60562         * tests/test-vasprintf-posix.c: Include float.h.
60563         (LDBL80_WORDS): New macro.
60564         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60565         on i386, x86_64, ia64.
60566         * tests/test-snprintf-posix.c: Include float.h.
60567         * tests/test-sprintf-posix.c: Likewise.
60568         * tests/test-vsnprintf-posix.c: Likewise.
60569         * tests/test-vsprintf-posix.c: Likewise.
60570
60571 2007-06-05  Bruno Haible  <bruno@clisp.org>
60572
60573         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
60574         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
60575         non-IEEE numbers on i386, x86_64, ia64.
60576         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
60577         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
60578         * tests/test-isnanl.h: Include float.h.
60579         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
60580
60581 2007-06-05  Bruno Haible  <bruno@clisp.org>
60582
60583         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
60584         also the %a / %A. Handle the %a / %A code before this extra handling.
60585
60586 2007-06-05  Bruno Haible  <bruno@clisp.org>
60587
60588         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
60589         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
60590
60591 2007-06-05  Bruno Haible  <bruno@clisp.org>
60592
60593         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
60594         typo in variable name.
60595
60596 2007-06-05  Eric Blake  <ebb9@byu.net>
60597
60598         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
60599         Reported by Simon Josefsson.
60600
60601 2007-06-04  Bruno Haible  <bruno@clisp.org>
60602
60603         Avoid test failures on some PowerPC platforms.
60604         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
60605         Define differently for PowerPC.
60606         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
60607         Reported by Gary V. Vaughan <gary@gnu.org>.
60608
60609 2007-06-02  Bruno Haible  <bruno@clisp.org>
60610
60611         Fix test-stdint failure on FreeBSD/ia64.
60612         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
60613         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
60614         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
60615         * doc/headers/stdint.texi: Update.
60616
60617 2007-06-01  Bruno Haible  <bruno@clisp.org>
60618
60619         * tests/test-binary-io.c (main): Pass a third argument to open().
60620         Reported by Gary V. Vaughan <gary@gnu.org>.
60621
60622 2007-06-01  Bruno Haible  <bruno@clisp.org>
60623
60624         * doc/functions/frexpl.texi: Update for mingw.
60625
60626 2007-06-01  Bruno Haible  <bruno@clisp.org>
60627
60628         * tests/test-lseek.c (main): Disable test of errno for invalid third
60629         argument.
60630         * doc/functions/lseek.texi: Update.
60631         Reported by Gary V. Vaughan <gary@gnu.org>.
60632
60633 2007-05-28  Bruno Haible  <bruno@clisp.org>
60634
60635         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
60636
60637 2007-05-31  Eric Blake  <ebb9@byu.net>
60638
60639         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
60640         cross compiling.
60641
60642 2007-05-30  Eric Blake  <ebb9@byu.net>
60643         and Bruno Haible  <bruno@clisp.org>
60644
60645         Work around mingw test failures exposed by m4-1.4.9b.
60646         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
60647         * tests/test-unistd.c: Disable uid_t and git_t tests for the
60648         moment.
60649
60650 2007-05-30  Bruno Haible  <bruno@clisp.org>
60651
60652         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
60653         assuming that they are closed. Needed on HP-UX 11.
60654
60655 2007-05-29  Bruno Haible  <bruno@clisp.org>
60656
60657         Fix a problem with #include_next.
60658         * lib/dirent_.h: Split the double-inclusion guard.
60659         * lib/fcntl_.h: Likewise.
60660         * lib/float_.h: Likewise.
60661         * lib/iconv_.h: Likewise.
60662         * lib/inttypes_.h: Likewise.
60663         * lib/locale_.h: Likewise.
60664         * lib/math_.h: Likewise.
60665         * lib/netinet_in_.h: Likewise.
60666         * lib/search_.h: Likewise.
60667         * lib/signal_.h: Likewise.
60668         * lib/stdint_.h: Likewise.
60669         * lib/stdio_.h: Likewise.
60670         * lib/stdlib_.h: Likewise.
60671         * lib/string_.h: Likewise.
60672         * lib/sys_select_.h: Likewise.
60673         * lib/sys_socket_.h: Likewise.
60674         * lib/sys_stat_.h: Likewise.
60675         * lib/sys_time_.h: Likewise.
60676         * lib/sysexits_.h: Likewise.
60677         * lib/time_.h: Likewise.
60678         * lib/unistd_.h: Likewise.
60679         * lib/wchar_.h: Likewise.
60680         * lib/wctype_.h: Likewise.
60681
60682 2007-05-29  Bruno Haible  <bruno@clisp.org>
60683
60684         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
60685         for the moment.
60686
60687 2007-05-29  Bruno Haible  <bruno@clisp.org>
60688
60689         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
60690         invocation.
60691         Reported by Eric Blake.
60692
60693 2007-05-29  Bruno Haible  <bruno@clisp.org>
60694
60695         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
60696         compiling case.
60697
60698 2007-05-29  Eric Blake  <ebb9@byu.net>
60699             Bruno Haible  <bruno@clisp.org>
60700
60701         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
60702         cross compiles.
60703
60704 2007-05-28  Eric Blake  <ebb9@byu.net>
60705
60706         * modules/closein-tests (test_closein_LDADD): Support test on
60707         cygwin with libtool.
60708
60709 2007-05-28  Bruno Haible  <bruno@clisp.org>
60710
60711         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
60712         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
60713         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
60714         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
60715         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
60716         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
60717         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
60718         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
60719         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
60720
60721 2007-05-28  Eric Blake  <ebb9@byu.net>
60722
60723         Unconditionally include <config.h> in unit tests.
60724         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
60725         * tests/test-allocsa.c, tests/test-arcfour.c,
60726         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
60727         tests/test-array_list.c, tests/test-array_oset.c,
60728         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
60729         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
60730         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
60731         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
60732         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
60733         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
60734         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
60735         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
60736         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
60737         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
60738         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
60739         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
60740         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
60741         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
60742         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
60743         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
60744         test-md5.c, test-memmem.c, test-printf-posix.c,
60745         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
60746         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
60747         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
60748         test-strcasestr.c, test-striconv.c, test-striconveh.c,
60749         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
60750         test-vasnprintf-posix2.c, test-vasnprintf.c,
60751         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
60752         test-vfprintf-posix.c, test-vprintf-posix.c,
60753         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
60754         test-xvasprintf.c: Likewise.
60755
60756 2007-05-28  Bruno Haible  <bruno@clisp.org>
60757
60758         * gnulib-tool (func_import): Remember the --with-tests command-line
60759         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
60760         Reported by Eric Blake.
60761
60762 2007-05-28  Bruno Haible  <bruno@clisp.org>
60763
60764         * modules/ftell-tests: New file.
60765         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
60766         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
60767
60768         * lib/ftell.c: New file.
60769         * modules/ftell: New file.
60770         * m4/ftell.m4: New file.
60771         * doc/functions/ftell.texi: Update.
60772         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
60773         REPLACE_FTELL.
60774         * lib/stdio_.h (rpl_ftell): New declaration.
60775         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
60776         REPLACE_FTELL.
60777
60778 2007-05-28  Eric Blake  <ebb9@byu.net>
60779
60780         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
60781
60782 2007-05-28  Bruno Haible  <bruno@clisp.org>
60783
60784         * modules/fseek-tests: New file.
60785         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
60786         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
60787
60788         * lib/fseek.c: New file.
60789         * modules/fseek: New file.
60790         * m4/fseek.m4: New file.
60791         * doc/functions/fseek.texi: Update.
60792         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
60793         REPLACE_FSEEK.
60794         * lib/stdio_.h (rpl_fseek): New declaration.
60795         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
60796         REPLACE_FSEEK.
60797
60798 2007-05-28  Bruno Haible  <bruno@clisp.org>
60799
60800         * lib/stdio_.h (fflush): More comments.
60801
60802 2007-05-28  Bruno Haible  <bruno@clisp.org>
60803
60804         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
60805         runtime test.
60806
60807 2007-05-28  Eric Blake  <ebb9@byu.net>
60808
60809         Improve lseek module.
60810         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
60811         * lib/unistd_.h (lseek): Scale back link warning message.
60812         * tests/test-lseek.c: Beef up test.
60813         * tests/test-lseek.sh: Exercise more facets of lseek.
60814         Reported by Bruno Haible.
60815
60816 2007-05-28  Bruno Haible  <bruno@clisp.org>
60817
60818         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
60819         to define.
60820
60821 2007-05-27  Bruno Haible  <bruno@clisp.org>
60822
60823         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
60824
60825 2007-05-27  Bruno Haible  <bruno@clisp.org>
60826
60827         * modules/openmp: New file.
60828         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
60829         Noah Misch.
60830
60831 2007-05-26  Bruno Haible  <bruno@clisp.org>
60832
60833         * modules/chdir-long (Depends-on): Add fchdir.
60834         * modules/chdir-safer (Depends-on): Likewise.
60835         * modules/fts (Depends-on): Likewise.
60836         * modules/fts-lgpl (Depends-on): Likewise.
60837         * modules/openat (Depends-on): Likewise.
60838         * modules/savewd (Depends-on): Likewise.
60839
60840 2007-05-24  Eric Blake  <ebb9@byu.net>
60841
60842         Fix lseek on mingw.
60843         * modules/lseek: New module.
60844         * m4/lseek.m4: New file.
60845         * lib/lseek.c: New file.
60846         * modules/lseek-tests: New file.
60847         * tests/test-lseek.c: New file.
60848         * tests/test-lseek.sh: New file.
60849         * MODULES.html.sh: Document lseek module.
60850         * modules/fflush (Depends-on): Add lseek, fseeko.
60851         * modules/fseeko (Depends-on): Likewise.
60852         * modules/ftello (Depends-on): Likewise.
60853         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
60854         broken.
60855         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
60856         broken.
60857         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
60858         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
60859         * lib/ftello.c (rpl_ftello): Likewise.
60860         * tests/test-fseeko.c (main): Test this.
60861         * tests/test-fseeko.sh: Likewise.
60862         * tests/test-ftello.c (main): Likewise.
60863         * tests/test-ftello.sh: Likewise.
60864         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
60865         implies replacing fseek.
60866         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
60867         HAVE_FTELLO.
60868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
60869         * modules/unistd (Makefile.am): Likewise.
60870         * lib/unistd_.h (lseek): Declare a replacement.
60871         * doc/functions/lseek.texi (lseek): Document this fix.
60872         * doc/functions/fseek.texi (fseek): Likewise.
60873         * doc/functions/ftell.texi (ftell): Likewise.
60874
60875 2007-05-24  Bruno Haible  <bruno@clisp.org>
60876
60877         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
60878         in the printed representation of a NaN.
60879         * tests/test-vasprintf-posix.c (test_function): Likewise.
60880         * tests/test-snprintf-posix.h (test_function): Likewise.
60881         * tests/test-sprintf-posix.h (test_function): Likewise.
60882         Reported by Eric Blake.
60883
60884 2007-05-23  Eric Blake  <ebb9@byu.net>
60885
60886         Fix fseeko/ftello on cygwin 1.5.24.
60887         * doc/functions/fseeko.texi (fseeko): Document the fix.
60888         * doc/functions/ftello.texi (ftello): Document the fix.
60889         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
60890         * doc/functions/stdout.text (stdout): New file.
60891         * doc/functions/stderr.text (stderr): New file.
60892         * doc/gnulib.texi (Function Substitutes): Use new files.
60893         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
60894         prior to 1.7.0.
60895         * tests/test-ftello.c (main): Likewise for ftello.
60896         * tests/test-fseeko.sh: New file.
60897         * tests/test-ftello.sh: New file.
60898         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
60899         with seekable stdin.
60900         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
60901         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
60902         (gl_REPLACE_FSEEKO): New macro.
60903         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
60904         * modules/fseeko (Files): Distribute fseeko.c.
60905         * modules/ftello (Files): Distribute ftello.c.
60906         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
60907         mode.
60908         * lib/ftello.c (rpl_ftello): New file.
60909         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
60910         fseeko, ftello.
60911         (gl_STDIN_LARGE_OFFSET): New macro.
60912         * modules/stdio (Makefile.am): Perform the replacement.
60913         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
60914
60915 2007-05-23  Bruno Haible  <bruno@clisp.org>
60916
60917         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
60918         GNULIB_POSIXCHECK is defined.
60919
60920 2007-05-21  Bruno Haible  <bruno@clisp.org>
60921
60922         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
60923         Check also the output for NaN arguments. When cross-compiling, guess
60924         no on IRIX.
60925         * lib/vasnprintf.c: Update comments.
60926         * tests/test-vasnprintf-posix.c (strisnan): New function.
60927         (test_function): Use it.
60928         * tests/test-vasprintf-posix.c (strisnan): New function.
60929         (test_function): Use it.
60930         * tests/test-snprintf-posix.h (strisnan): New function.
60931         (test_function): Use it.
60932         * tests/test-sprintf-posix.h (strisnan): New function.
60933         (test_function): Use it.
60934         Reported by Eric Blake.
60935
60936 2007-05-20  Bruno Haible  <bruno@clisp.org>
60937
60938         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
60939         numbers that fails on BeOS.
60940         * doc/functions/frexpl.texi: Update.
60941
60942 2007-05-20  Jim Meyering  <jim@meyering.net>
60943
60944         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
60945         forced upon us by glibc-2.6.
60946
60947 2007-05-20  Bruno Haible  <bruno@clisp.org>
60948
60949         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
60950         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
60951         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
60952         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
60953         NEED_PRINTF_INFINITE.
60954         (is_infinitel): New function.
60955         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
60956         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
60957         gl_PREREQ_VASNPRINTF_INFINITE.
60958         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
60959         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60960         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
60961         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
60962         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
60963         gl_PREREQ_VASNPRINTF_INFINITE.
60964         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60965         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60966         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60967         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60968         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60969         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60970         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60971         * doc/functions/fprintf.texi: Update.
60972         * doc/functions/printf.texi: Update.
60973         * doc/functions/snprintf.texi: Update.
60974         * doc/functions/sprintf.texi: Update.
60975         * doc/functions/vfprintf.texi: Update.
60976         * doc/functions/vprintf.texi: Update.
60977         * doc/functions/vsnprintf.texi: Update.
60978         * doc/functions/vsprintf.texi: Update.
60979
60980 2007-05-20  Bruno Haible  <bruno@clisp.org>
60981
60982         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
60983         was not found in libc.
60984         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
60985
60986 2007-05-20  Bruno Haible  <bruno@clisp.org>
60987
60988         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60989         printed as "-nan" instead of "nan".
60990         * tests/test-vasprintf-posix.c (test_function): Likewise.
60991         * tests/test-snprintf-posix.h (test_function): Likewise.
60992         * tests/test-sprintf-posix.h (test_function): Likewise.
60993         Needed for HP-UX 11.
60994
60995 2007-05-20  Jim Meyering  <jim@meyering.net>
60996
60997         Fix buggy test for the fchownat-deref bug.
60998         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
60999         symlink required for the run-test.  Without it, this test would
61000         always declare that fchownat doesn't work, and client code would
61001         unnecessarily use the replacement function with fixed libc.
61002         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
61003         Reported by Greg Schafer.
61004
61005 2007-05-19  Bruno Haible  <bruno@clisp.org>
61006
61007         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
61008         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
61009         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
61010         Needed for IRIX 6.5 and Solaris 2.5.1.
61011
61012 2007-05-19  Bruno Haible  <bruno@clisp.org>
61013
61014         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
61015         (test_function): Skip tests involving -0.0 on platforms where
61016         -0.0 = 0.0.
61017         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
61018         (test_function): Skip tests involving -0.0 on platforms where
61019         -0.0 = 0.0.
61020         * tests/test-snprintf-posix.h (have_minus_zero): New function.
61021         (test_function): Skip tests involving -0.0 on platforms where
61022         -0.0 = 0.0.
61023         * tests/test-sprintf-posix.h (have_minus_zero): New function.
61024         (test_function): Skip tests involving -0.0 on platforms where
61025         -0.0 = 0.0.
61026         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
61027         tests.
61028         * tests/test-printf-posix.h (test_function): Likewise.
61029         * tests/test-printf-posix.output: Remove all -0.0 related results.
61030         Needed for IRIX 6.5.
61031
61032 2007-05-19  Bruno Haible  <bruno@clisp.org>
61033
61034         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
61035         printed as "nan0x7fffffff" instead of "nan".
61036         * tests/test-vasprintf-posix.c (test_function): Likewise.
61037         * tests/test-snprintf-posix.h (test_function): Likewise.
61038         * tests/test-sprintf-posix.h (test_function): Likewise.
61039         * tests/test-fprintf-posix.h (NaN): Remove macro.
61040         (test_function): Remove all NaN related tests.
61041         * tests/test-printf-posix.h (NaN): Remove macro.
61042         (test_function): Remove all NaN related tests.
61043         * tests/test-printf-posix.output: Remove all NaN related results.
61044         Needed for IRIX 6.5.
61045
61046 2007-05-19  Bruno Haible  <bruno@clisp.org>
61047
61048         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
61049         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
61050
61051 2007-05-19  Bruno Haible  <bruno@clisp.org>
61052
61053         * lib/float_.h: New file.
61054         * m4/float_h.m4: New file.
61055         * modules/float: New file.
61056         * modules/isnanl (Dependencies): Add float.
61057         * modules/isnanl-nolibm (Dependencies): Likewise.
61058         * modules/mathl (Dependencies): Likewise.
61059         * modules/printf-frexpl (Dependencies): Likewise.
61060         * modules/signbit (Dependencies): Likewise.
61061         * modules/vasnprintf (Dependencies): Likewise.
61062         * doc/headers/float.texi: Update.
61063
61064 2007-05-19  Jim Meyering  <jim@meyering.net>
61065
61066         * lib/utimens.c (gl_futimens): Rename from futimens,
61067         now that glibc-2.6 declares futimens.
61068         * lib/utimens.h: Likewise.
61069
61070 2007-05-19  Bruno Haible  <bruno@clisp.org>
61071
61072         Avoid test failures on mingw.
61073         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
61074         * tests/test-printf-posix.sh: Likewise.
61075         * tests/test-vfprintf-posix.sh: Likewise.
61076         * tests/test-vprintf-posix.sh: Likewise.
61077
61078 2007-05-19  Bruno Haible  <bruno@clisp.org>
61079
61080         Fix *printf result for NaN, Inf, -0.0 on mingw.
61081         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
61082         * lib/vasnprintf.c: Include math.h and isnan.h.
61083         (is_infinite_or_zero): New function.
61084         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
61085         values in the %f, %F, %e, %E, %g, %G directives.
61086         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
61087         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61088         gl_PRINTF_INFINITE and test its result. Invoke
61089         gl_PREREQ_VASNPRINTF_INFINITE.
61090         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61091         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61092         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61093         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61094         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61095         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61096         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61097         * doc/functions/fprintf.texi: Update.
61098         * doc/functions/printf.texi: Update.
61099         * doc/functions/snprintf.texi: Update.
61100         * doc/functions/sprintf.texi: Update.
61101         * doc/functions/vfprintf.texi: Update.
61102         * doc/functions/vprintf.texi: Update.
61103         * doc/functions/vsnprintf.texi: Update.
61104         * doc/functions/vsprintf.texi: Update.
61105
61106 2007-05-19  Bruno Haible  <bruno@clisp.org>
61107
61108         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
61109         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
61110         Instead of multiplying with 10^k, set extra_zeroes to k.
61111         (scale10_round_long_double): Remove function.
61112
61113 2007-05-18  Bruno Haible  <bruno@clisp.org>
61114
61115         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
61116         introduced on 2007-05-06.
61117
61118 2007-05-18  Bruno Haible  <bruno@clisp.org>
61119
61120         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
61121         %g directives.
61122         * tests/test-vasprintf-posix.c (test_function): Likewise.
61123         * tests/test-snprintf-posix.h (test_function): Likewise.
61124         * tests/test-sprintf-posix.h (test_function): Likewise.
61125
61126 2007-05-18  Bruno Haible  <bruno@clisp.org>
61127
61128         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
61129         (strmatch): New function.
61130         (test_function): Test the %f directive on numbers of various exponents.
61131         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
61132         (strmatch): New function.
61133         (test_function): Test the %f directive on numbers of various exponents.
61134         * tests/test-snprintf-posix.h (strmatch): New function.
61135         (test_function): Test the %f directive on numbers of various exponents.
61136         * tests/test-sprintf-posix.h (strmatch): New function.
61137         (test_function): Test the %f directive on numbers of various exponents.
61138         * tests/test-snprintf-posix.c (SIZEOF): New macro.
61139         * tests/test-sprintf-posix.c (SIZEOF): New macro.
61140         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
61141         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
61142
61143 2007-05-18  Bruno Haible  <bruno@clisp.org>
61144
61145         Add support for 'long double' number output.
61146         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
61147         * lib/vasnprintf.c: Include math.h and float+.h.
61148         (mp_limb_t): New type.
61149         (GMP_LIMB_BITS): New macro.
61150         (mp_twolimb_t): New type.
61151         (GMP_TWOLIMB_BITS): New macro.
61152         (mpn_t): New type.
61153         (multiply, divide, convert_to_decimal, decode_long_double,
61154         scale10_round_long_double, scale10_round_decimal_long_double,
61155         floorlog10l): New functions.
61156         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
61157         for the %f, %F, %e, %E, %g, %G directives.
61158         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
61159         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61160         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
61161         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
61162         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61163         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61164         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61165         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61166         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61167         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61168         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61169         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
61170         * modules/snprintf-posix (Depends-on): Likewise.
61171         * modules/sprintf-posix (Depends-on): Likewise.
61172         * modules/vasnprintf-posix (Depends-on): Likewise.
61173         * modules/vasprintf-posix (Depends-on): Likewise.
61174         * modules/vfprintf-posix (Depends-on): Likewise.
61175         * modules/vsnprintf-posix (Depends-on): Likewise.
61176         * modules/vsprintf-posix (Depends-on): Likewise.
61177         * modules/vasnprintf (Files): Add lib/float+.h.
61178         * doc/functions/fprintf.texi: Update.
61179         * doc/functions/printf.texi: Update.
61180         * doc/functions/snprintf.texi: Update.
61181         * doc/functions/sprintf.texi: Update.
61182         * doc/functions/vfprintf.texi: Update.
61183         * doc/functions/vprintf.texi: Update.
61184         * doc/functions/vsnprintf.texi: Update.
61185         * doc/functions/vsprintf.texi: Update.
61186
61187 2007-05-18  Bruno Haible  <bruno@clisp.org>
61188
61189         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
61190
61191 2007-05-18  Bruno Haible  <bruno@clisp.org>
61192
61193         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
61194         for printing 64-bit integers. Needed for mingw.
61195
61196 2007-05-18  Bruno Haible  <bruno@clisp.org>
61197
61198         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61199         gl_FUNC_FREXPL_WORKS.
61200         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
61201
61202 2007-05-18  Bruno Haible  <bruno@clisp.org>
61203
61204         * modules/frexpl-nolibm-tests: New file.
61205
61206         * modules/frexpl-nolibm: New file.
61207         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
61208
61209 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
61210
61211         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
61212         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
61213         GCC 4.2, which otherwise issues a lot of warnings.
61214         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
61215         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
61216         Likewise.
61217         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
61218         * modules/iconv_open (iconv.h): Likewise.
61219         * modules/locale (locale.h): Likewise.
61220         * modules/netinet_in (netinet/in.h): Likewise.
61221         * modules/sys_select (sys_select.h): Likewise.
61222         * modules/sys_socket (sys/socket.h): Likewise.
61223         * modules/sys_stat (sys/stat.h): Likewise.
61224         * modules/sysexits (sysexits.h): Likewise.
61225         * modules/unistd (unistd.h): Likewise.
61226
61227 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61228
61229         * modules/closein-tests (Makefile.am): Distribute
61230         `test-closein.sh'.
61231
61232 2007-05-17  Bruno Haible  <bruno@clisp.org>
61233
61234         * tests/test-printf-posix.output: Renamed from
61235         tests/test-fprintf-posix.out.
61236         * modules/fprintf-posix-tests: Update.
61237         * modules/printf-posix-tests: Update.
61238         * modules/vfprintf-posix-tests: Update.
61239         * modules/vprintf-posix-tests: Update.
61240         * tests/test-fprintf-posix.sh: Update.
61241         * tests/test-printf-posix.sh: Update.
61242         * tests/test-vfprintf-posix.sh: Update.
61243         * tests/test-vprintf-posix.sh: Update.
61244         Reported by Ralf Wildenhues.
61245
61246 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
61247
61248         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
61249         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
61250         GCC 4.2, which otherwise issues a lot of warnings.
61251         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
61252         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
61253         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
61254         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
61255         it should no longer be needed.
61256         * lib/string_.h: Likewise.
61257         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
61258         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
61259         * modules/inttypes (inttypes.h): Likewise.
61260         * modules/math (math.h): Likewise.
61261         * modules/search (search.h): Likewise.
61262         * modules/signal (signal.h): Likewise.
61263         * modules/stdint (stdint.h): Likewise.
61264         * modules/stdio (stdio.h): Likewise.
61265         * modules/stdlib (stdlib.h): Likewise.
61266         * modules/string (string.h): Likewise.
61267         * modules/sys_time (sys/time.h): Likewise.
61268         * modules/time (time.h): Likewise.
61269         * modules/wchar (wchar.h): Likewise.
61270         * modules/wctype (wtype.h): Likewise.
61271
61272 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61273
61274         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
61275
61276 2007-05-13  Bruno Haible  <bruno@clisp.org>
61277
61278         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
61279         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61280         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
61281         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61282         (gl_PREREQ_STRTOK_R): Don't require it here.
61283
61284 2007-05-13  Bruno Haible  <bruno@clisp.org>
61285
61286         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
61287         when used in C++ mode.
61288
61289 2007-05-12  Bruno Haible  <bruno@clisp.org>
61290
61291         * lib/linebuffer.h: Tweak doc.
61292         * lib/linebuffer.c: Likewise.
61293
61294 2007-05-12  James Youngman  <jay@gnu.org>
61295
61296         * lib/linebuffer.c (readlinebuffer_delim): New function,
61297         like readlinebuffer, but use a caller-specified delimiter.
61298         (readlinebuffer): Just call readlinebuffer_delim with '\n'
61299         as the delimiter.
61300         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
61301
61302 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61303
61304         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
61305         * modules/openat (Files): Remove openat-die.c.
61306         (Depends-on): Add openat-die.
61307         * modules/openat-die: New module.
61308
61309 2007-05-06  Bruno Haible  <bruno@clisp.org>
61310
61311         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
61312         Update with info about Cygwin.
61313         * doc/functions/fprintf.texi: Update.
61314         * doc/functions/printf.texi: Update.
61315         * doc/functions/snprintf.texi: Update.
61316         * doc/functions/sprintf.texi: Update.
61317         * doc/functions/vfprintf.texi: Update.
61318         * doc/functions/vprintf.texi: Update.
61319         * doc/functions/vsnprintf.texi: Update.
61320         * doc/functions/vsprintf.texi: Update.
61321         Reported by Eric Blake.
61322
61323 2007-05-06  Bruno Haible  <bruno@clisp.org>
61324
61325         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
61326         padding ourselves for the floating-point directives.
61327         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
61328         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
61329         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61330         gl_PRINTF_FLAG_ZERO and test its result. Invoke
61331         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
61332         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61333         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
61334         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61335         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61336         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61337         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61338         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61339         * tests/test-snprintf-posix.h (test_function): Also check the width
61340         and some flags in the %f directive.
61341         * tests/test-sprintf-posix.h (test_function): Likewise.
61342         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61343         * tests/test-vasprintf-posix.c (test_function): Likewise.
61344         * doc/functions/fprintf.texi: Update.
61345         * doc/functions/printf.texi: Update.
61346         * doc/functions/snprintf.texi: Update.
61347         * doc/functions/sprintf.texi: Update.
61348         * doc/functions/vfprintf.texi: Update.
61349         * doc/functions/vprintf.texi: Update.
61350         * doc/functions/vsnprintf.texi: Update.
61351         * doc/functions/vsprintf.texi: Update.
61352
61353 2007-05-06  Bruno Haible  <bruno@clisp.org>
61354
61355         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
61356         pass the ' flag character to sprintf or snprintf.
61357         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
61358         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
61359         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61360         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
61361         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
61362         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61363         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
61364         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61365         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61366         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61367         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61368         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61369         * tests/test-snprintf-posix.h (test_function): Also check the grouping
61370         flag.
61371         * tests/test-sprintf-posix.h (test_function): Likewise.
61372         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61373         * tests/test-vasprintf-posix.c (test_function): Likewise.
61374         * doc/functions/fprintf.texi: Update.
61375         * doc/functions/printf.texi: Update.
61376         * doc/functions/snprintf.texi: Update.
61377         * doc/functions/sprintf.texi: Update.
61378         * doc/functions/vfprintf.texi: Update.
61379         * doc/functions/vprintf.texi: Update.
61380         * doc/functions/vsnprintf.texi: Update.
61381         * doc/functions/vsprintf.texi: Update.
61382
61383 2007-05-01  Bruno Haible  <bruno@clisp.org>
61384
61385         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
61386
61387 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
61388
61389         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
61390         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
61391
61392 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61393
61394         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
61395         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
61396         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
61397
61398 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
61399
61400         * lib/argp-help.c (struct hol_entry): New member `ord'.
61401         (HOL_ENTRY_PTRCMP): Use ord for comparison
61402         (hol_sort): Initialize ord.
61403
61404 2007-05-01  Bruno Haible  <bruno@clisp.org>
61405
61406         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
61407         Reported by Eric Blake.
61408         * doc/gnulib.texi (Function Substitutes): Update.
61409
61410 2007-05-01  Bruno Haible  <bruno@clisp.org>
61411
61412         * doc/functions.texi: Remove file, now redundant through
61413         doc/functions/*.texi.
61414
61415 2007-05-01  Bruno Haible  <bruno@clisp.org>
61416
61417         * modules/argp (Depends-on): Add sleep.
61418
61419 2007-05-01  Bruno Haible  <bruno@clisp.org>
61420
61421         * modules/sleep-tests: New file.
61422         * tests/test-sleep.c: New file.
61423
61424         * modules/sleep: New file.
61425         * lib/sleep.c: New file.
61426         * m4/sleep.m4: New file.
61427         * lib/unistd_.h (sleep): New declaration.
61428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
61429         HAVE_SLEEP.
61430         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
61431         * doc/functions/sleep.texi: Document the sleep module.
61432
61433 2007-05-01  Bruno Haible  <bruno@clisp.org>
61434
61435         * lib/sigprocmask.h: Remove file.
61436         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
61437         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
61438         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
61439         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
61440         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
61441         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
61442         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
61443         HAVE_SIGSET_T as a shell variable.
61444         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
61445         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
61446         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
61447         (Depends-on): Add signal. Remove verify.
61448         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
61449         (Include): Mention <signal.h> instead of sigprocmask.h.
61450         * NEWS: Mention the change.
61451         * lib/fatal-signal.c: Don't include sigprocmask.h.
61452
61453 2007-05-01  Bruno Haible  <bruno@clisp.org>
61454
61455         * modules/signal: New file.
61456         * lib/signal_.h: New file.
61457         * m4/signal_h.m4: New file.
61458
61459 2007-05-01  Bruno Haible  <bruno@clisp.org>
61460
61461         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
61462         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
61463         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
61464         HAVE_WCTYPE_CTMP_BUG into wctype.h.
61465
61466 2007-05-01  Bruno Haible  <bruno@clisp.org>
61467
61468         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
61469         configure time.
61470         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
61471         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
61472         * modules/sys_stat (Makefile.am): Substitute their values into
61473         sys/stat.h.
61474
61475 2007-05-01  Bruno Haible  <bruno@clisp.org>
61476
61477         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
61478         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
61479         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
61480
61481 2007-05-01  Bruno Haible  <bruno@clisp.org>
61482
61483         * doc/header/assert.texi: Undo last change: don't mention the gnulib
61484         'assert' module here.
61485
61486 2007-05-01  Bruno Haible  <bruno@clisp.org>
61487
61488         * doc/functions/*.texi: New files.
61489         * doc/functions/google-ranking.txt: New file.
61490         * doc/gnulib.texi (Function Substitutes): New chapter.
61491         (ctime, inet_ntoa): Remove sections.
61492         * doc/ctime.texi: Remove file.
61493         * doc/inet_ntoa.texi: Remove file.
61494         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
61495         dependencies.
61496         (%.info): New rule, specifying a --reference-limit.
61497
61498 2007-05-01  Bruno Haible  <bruno@clisp.org>
61499
61500         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
61501
61502 2007-05-01  Bruno Haible  <bruno@clisp.org>
61503
61504         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
61505         the portability of 'mkdir' to mingw systems.
61506
61507 2007-05-01  Bruno Haible  <bruno@clisp.org>
61508
61509         * doc/headers/google-ranking.txt: New file.
61510
61511 2007-04-30  Eric Blake  <ebb9@byu.net>
61512
61513         Prefer fseeko to fseek.
61514         * modules/getpass (Depends-on): Add fseeko.
61515         * lib/getpass.c (getpass): Use fseeko, not fseek.
61516
61517 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
61518
61519         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
61520         assumes the sorting is stable, while most qsort implementations
61521         are not.  Use argument addresses to ensure they never compare as
61522         equal.
61523
61524         * tests/test-argp-2.sh (usage-indent test): Fix output
61525         (func_compare): Restore diff options
61526         * tests/test-argp.c: Restore #include "progname.h"
61527
61528 2007-04-29  Bruno Haible  <bruno@clisp.org>
61529
61530         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
61531         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61532         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
61533         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61534         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
61535         (configure.ac): Define CHECK_SNPRINTF_POSIX.
61536         (TESTS, check_PROGRAMS): Add test-snprintf.
61537         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
61538         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
61539         (TESTS, check_PROGRAMS): Add test-vsnprintf.
61540         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
61541         assertions that fail on HP-UX, OSF/1, or IRIX.
61542         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
61543
61544 2007-04-29  Bruno Haible  <bruno@clisp.org>
61545
61546         * MODULES.html.sh (posix_functions): Remove 'contents'.
61547
61548 2007-04-29  Karl Berry  <karl@gnu.org>
61549
61550         * config/srclist.txt (gendocs_template_min): new entry.
61551
61552 2007-04-29  Bruno Haible  <bruno@clisp.org>
61553
61554         Work around fpurge bug on BSD systems.
61555         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
61556         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
61557         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
61558         fpurge to rpl_fpurge if the system already has this function.
61559         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
61560         the case where the system already has this function. Correct invariants
61561         on BSD systems.
61562         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
61563         BSD systems.
61564
61565 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61566
61567         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
61568         proposed by Sven Verdoolaege.
61569
61570         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
61571         options.
61572         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
61573         (usage and help tests): Update
61574
61575 2007-04-29  Bruno Haible  <bruno@clisp.org>
61576
61577         * tests/test-fflush.c (main): Use a file of size 17, not 10.
61578         Print more information in case of failure. Disable a test on BeOS.
61579
61580 2007-04-29  Bruno Haible  <bruno@clisp.org>
61581
61582         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
61583         This helps debugging on systems on which no gdb is available.
61584
61585 2007-04-29  Bruno Haible  <bruno@clisp.org>
61586
61587         * lib/freading.h: Improve comments.
61588         * lib/fwriting.h: Likewise.
61589         * tests/test-freading.c (main): Don't check freading immediately after
61590         repositioning. Needed for glibc.
61591
61592 2007-04-29  Bruno Haible  <bruno@clisp.org>
61593
61594         * lib/freading.c (freading): Trivial simplification.
61595
61596 2007-04-28  Bruno Haible  <bruno@clisp.org>
61597
61598         * tests/test-fwriting.c (main): Also test the interaction between
61599         fflush and fwriting.
61600         * modules/fwriting-tests (Depends-on): Add fflush.
61601
61602         * tests/test-freading.c (main): Also test the interaction between
61603         fflush and freading.
61604         * modules/freading-tests (Depends-on): Add fflush.
61605
61606 2007-04-28  Bruno Haible  <bruno@clisp.org>
61607
61608         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
61609         fseeko and ftello.
61610         Suggested by Eric Blake.
61611
61612 2007-04-28  Jim Meyering  <jim@meyering.net>
61613
61614         Avoid false-negative in gl_STDINT_H's C99 conformance test.
61615         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
61616         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
61617
61618 2007-04-27  Eric Blake  <ebb9@byu.net>
61619
61620         * doc/headers/assert.texi (assert.h): Document assert module use.
61621
61622 2007-04-27  Bruno Haible  <bruno@clisp.org>
61623
61624         * doc/headers/*.texi: New files.
61625         * doc/gnulib.texi (Header File Substitutes): New chapter.
61626         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
61627         dependencies.
61628         (standards.info ,standards.html, standards.dvi): Update dependencies.
61629         (mostlyclean, clean): New targets.
61630
61631 2007-04-27  Bruno Haible  <bruno@clisp.org>
61632
61633         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
61634         * modules/sysexits (Files, Makefile.am): Update.
61635
61636         * lib/sys_socket_.h: Renamed from lib/socket_.h.
61637         * modules/sys_socket (Files, Makefile.am): Update.
61638
61639         * lib/sys_stat_.h: Renamed from lib/stat_.h.
61640         * modules/sys_stat (Files, Makefile.am): Update.
61641
61642 2007-04-27  Eric Blake  <ebb9@byu.net>
61643
61644         * lib/freading.h: Improve comments.
61645         * lib/fwriting.h: Likewise.
61646         * lib/fflush.c: Likewise.
61647
61648         Fix closein for mingw.
61649         * modules/closein-tests: Add tests for closein.
61650         * tests/test-closein.c: New file.
61651         * tests/test-closein.sh: Likewise.
61652         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
61653         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
61654
61655 2007-04-27  Bruno Haible  <bruno@clisp.org>
61656
61657         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
61658         version is < 6.
61659         * lib/math_.h [__DECC]: Likewise.
61660         * lib/stdio_.h [__DECC]: Likewise.
61661         * lib/stdlib_.h [__DECC]: Likewise.
61662         * lib/string_.h [__DECC]: Likewise.
61663         * lib/time_.h [__DECC]: Likewise.
61664         * lib/wchar_.h [__DECC]: Likewise.
61665         * lib/wctype_.h [__DECC]: Likewise.
61666
61667 2007-04-27  Bruno Haible  <bruno@clisp.org>
61668
61669         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
61670
61671 2007-04-27  Bruno Haible  <bruno@clisp.org>
61672
61673         * lib/fflush.c: Add comments.
61674         * modules/fpurge-tests (Depends-on): Add fflush.
61675         * modules/freadable-tests (Depends-on): Likewise.
61676         * modules/fwritable-tests (Depends-on): Likewise.
61677
61678 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
61679
61680         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
61681         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
61682         Report by Bruno Haible <bruno@clisp.org>.
61683
61684 2007-04-26  Eric Blake  <ebb9@byu.net>
61685
61686         Fix fflush on mingw.
61687         * modules/fflush (Depends-on): Add freading.
61688         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
61689         but unread data.
61690
61691 2007-04-26  Eric Blake  <ebb9@byu.net>
61692         and Bruno Haible  <bruno@clisp.org>
61693
61694         Implement freading and fwriting.
61695         * lib/freading.c: New file.
61696         * lib/freading.h: Likewise.
61697         * m4/freading.m4: Likewise.
61698         * modules/freading: Likewise.
61699         * modules/freading-tests: Likewise.
61700         * tests/test-freading.c: Likewise.
61701         * lib/fwriting.c: New file.
61702         * lib/fwriting.h: Likewise.
61703         * m4/fwriting.m4: Likewise.
61704         * modules/fwriting: Likewise.
61705         * modules/fwriting-tests: Likewise.
61706         * tests/test-fwriting.c: Likewise.
61707         * MODULES.html.sh (File stream based Input/Output): Mention them.
61708
61709 2007-04-26  Bruno Haible  <bruno@clisp.org>
61710
61711         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
61712         'long' when we assume it.
61713         Suggested by Eric Blake.
61714
61715 2007-04-26  Bruno Haible  <bruno@clisp.org>
61716
61717         Ensure fseeko, ftello are declared on glibc systems.
61718         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
61719         * modules/fseeko (configure.ac-early): Likewise.
61720         * modules/ftello (configure.ac-early): Likewise.
61721         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
61722         AC_FUNC_FSEEKO for this.
61723         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
61724         (gl_CHECK_FSEEKO): Remove macro.
61725
61726 2007-04-26  Bruno Haible  <bruno@clisp.org>
61727
61728         * tests/test-fflush.c (main): Also check the ftell result after
61729         fflush and fseek/fseeko.
61730         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
61731         file descriptor position cache in the stream.
61732         * lib/fseeko.c (rpl_fseeko): Likewise.
61733
61734 2007-04-26  Bruno Haible  <bruno@clisp.org>
61735
61736         * modules/fflush-tests (Depends-on): Add fseeko.
61737
61738 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
61739             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61740
61741         * lib/argz_.h: ensure error_t definition is obtained in same
61742         mechanism system argz.h would have.
61743         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
61744         argz facilities are known bad.  Err on the side of caution if
61745         cross-compiling.
61746
61747 2007-04-25  Eric Blake  <ebb9@byu.net>
61748
61749         * lib/fpurge.c (includes): Use stdlib.h for free.
61750         * tests/test-fflush.c (main): Also test fflush-fseeko.
61751
61752 2007-04-25  Bruno Haible  <bruno@clisp.org>
61753
61754         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
61755         * lib/fseeko.c: New file.
61756         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
61757         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
61758         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
61759         gl_FUNC_FSEEKO.
61760         (gl_FUNC_FSEEKO): Invoke it.
61761         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
61762         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
61763         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
61764
61765 2007-04-25  Bruno Haible  <bruno@clisp.org>
61766
61767         * modules/fflush (Depends-on): Add ftello.
61768
61769 2007-04-25  Bruno Haible  <bruno@clisp.org>
61770
61771         * modules/ftello-tests: New file.
61772         * tests/test-ftello.c: New file.
61773
61774         * modules/ftello: New file.
61775         * m4/ftello.m4: New file.
61776         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
61777         HAVE_FTELLO.
61778         * lib/stdio_.h (ftello): New declaration.
61779         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
61780         HAVE_FTELLO.
61781
61782 2007-04-25  Bruno Haible  <bruno@clisp.org>
61783
61784         * modules/fseeko-tests: New file.
61785         * tests/test-fseeko.c: New file.
61786
61787         * modules/fseeko: New file.
61788         * m4/fseeko.m4: New file.
61789         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
61790         HAVE_FSEEKO.
61791         * lib/stdio_.h (fseeko): New declaration.
61792         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
61793         HAVE_FSEEKO.
61794
61795 2007-04-25  Bruno Haible  <bruno@clisp.org>
61796
61797         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
61798
61799 2007-04-25  Bruno Haible  <bruno@clisp.org>
61800
61801         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
61802         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
61803         * tests/test-unistd.c: Likewise.
61804         * tests/test-fcntl.c: Likewise.
61805
61806 2007-04-23  Eric Blake  <ebb9@byu.net>
61807
61808         * lib/fflush.c: Fix missing include.
61809         Reported by Bruno Haible.
61810
61811 2007-04-23  Bruno Haible  <bruno@clisp.org>
61812
61813         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
61814         Reported by Eric Blake.
61815
61816 2007-04-23  Bruno Haible  <bruno@clisp.org>
61817
61818         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
61819
61820 2007-04-23  Bruno Haible  <bruno@clisp.org>
61821
61822         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
61823
61824 2007-04-23  Bruno Haible  <bruno@clisp.org>
61825
61826         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
61827         Needed on HP-UX 11.
61828
61829 2007-04-16  Eric Blake  <ebb9@byu.net>
61830
61831         Make fflush rely on fpurge.
61832         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
61833         open coding all variants.
61834         * modules/fflush (Depends-on): Add fpurge and unistd.
61835         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
61836         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
61837
61838         Fix --with-tests compilation on cygwin.
61839         * modules/argmatch-tests (Makefile.am): List gnulib library first
61840         in LDADD.
61841         * modules/argp-tests (Makefile.am): Likewise.
61842         * modules/array-list-tests (Makefile.am): Likewise.
61843         * modules/array-oset-tests (Makefile.am): Likewise.
61844         * modules/avltree-list-tests (Makefile.am): Likewise.
61845         * modules/avltree-oset-tests (Makefile.am): Likewise.
61846         * modules/avltreehash-list-tests (Makefile.am): Likewise.
61847         * modules/carray-list-tests (Makefile.am): Likewise.
61848         * modules/dirname-tests (Makefile.am): Likewise.
61849         * modules/frexp-tests (Makefile.am): Likewise.
61850         * modules/isnanl-tests (Makefile.am): Likewise.
61851         * modules/linked-list-tests (Makefile.am): Likewise.
61852         * modules/linkedhash-list-tests (Makefile.am): Likewise.
61853         * modules/lock-tests (Makefile.am): Likewise.
61854         * modules/rbtree-list-tests (Makefile.am): Likewise.
61855         * modules/rbtree-oset-tests (Makefile.am): Likewise.
61856         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
61857         * modules/tls-tests (Makefile.am): Likewise.
61858         * modules/tsearch-tests (Makefile.am): Likewise.
61859         * modules/xvasprintf-tests (Makefile.am): Likewise.
61860
61861         Fix fpurge for cygwin.
61862         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
61863         value.
61864         * modules/fpurge-tests (Depends-on): Clean up trash.
61865
61866 2007-04-16  Simon Josefsson  <simon@josefsson.org>
61867
61868         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
61869
61870         * m4/autobuild.m4: Re-indent.
61871
61872 2007-04-13  Bruno Haible  <bruno@clisp.org>
61873
61874         * modules/fpurge-tests: New file.
61875         * tests/test-fpurge.c: New file.
61876
61877         * modules/fpurge: New file.
61878         * lib/fpurge.h: New file.
61879         * lib/fpurge.c: New file.
61880         * m4/fpurge.m4: New file.
61881
61882 2007-04-13  Bruno Haible  <bruno@clisp.org>
61883
61884         * modules/fbufmode-tests: New file.
61885         * tests/test-fbufmode.c: New file.
61886
61887         * modules/fbufmode: New file.
61888         * lib/fbufmode.h: New file.
61889         * lib/fbufmode.c: New file.
61890         * m4/fbufmode.m4: New file.
61891
61892 2007-04-13  Bruno Haible  <bruno@clisp.org>
61893
61894         * modules/fwritable-tests: New file.
61895         * tests/test-fwritable.c: New file.
61896
61897         * modules/fwritable: New file.
61898         * lib/fwritable.h: New file.
61899         * lib/fwritable.c: New file.
61900         * m4/fwritable.m4: New file.
61901
61902 2007-04-13  Bruno Haible  <bruno@clisp.org>
61903
61904         * modules/freadable-tests: New file.
61905         * tests/test-freadable.c: New file.
61906
61907         * modules/freadable: New file.
61908         * lib/freadable.h: New file.
61909         * lib/freadable.c: New file.
61910         * m4/freadable.m4: New file.
61911
61912 2007-04-13  Bruno Haible  <bruno@clisp.org>
61913
61914         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
61915         MOSTLYCLEANFILES.
61916
61917 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61918
61919         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
61920         gzip bootstrap.conf to avoid dragging in i18n machinery.
61921         (gnulib_tool_option): Use it.
61922
61923 2007-04-13  Bruno Haible  <bruno@clisp.org>
61924
61925         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
61926         %F directives.
61927         * tests/test-vasprintf-posix.c (test_function): Likewise.
61928         * tests/test-snprintf-posix.h (test_function): Likewise.
61929         * tests/test-sprintf-posix.h (test_function): Likewise.
61930         * tests/test-fprintf-posix.h (test_function): Likewise.
61931         * tests/test-printf-posix.h (test_function): Likewise.
61932         * tests/test-fprintf-posix.out: Likewise.
61933
61934 2007-04-13  Bruno Haible  <bruno@clisp.org>
61935
61936         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
61937         * modules/tls-tests (configure.ac): Likewise.
61938         Reported by Arto C. Nirkko <anirkko@insel.ch>.
61939
61940 2007-04-13  Bruno Haible  <bruno@clisp.org>
61941
61942         * lib/tls.c (glthread_tls_get): Fix return type.
61943         Patch by Arto C. Nirkko <anirkko@insel.ch>.
61944
61945 2007-04-12  Eric Blake  <ebb9@byu.net>
61946
61947         * modules/gettime (Depends-on): Remove gettime.
61948         Reported by Dmitry V. Levin.
61949
61950 2007-04-12  Bruno Haible  <bruno@clisp.org>
61951
61952         * modules/fflush (Include): Mention <stdio.h>.
61953         * modules/strtoimax (Include): Mention <inttypes.h>.
61954         * modules/strtoumax (Include): Likewise.
61955
61956 2007-04-12  Eric Blake  <ebb9@byu.net>
61957
61958         * .cvsignore: New file.
61959         * .gitignore: Likewise.
61960
61961 2007-04-12  Bruno Haible  <bruno@clisp.org>
61962
61963         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
61964         not before, since $(LDADD) often contains libgnu.a.
61965         * modules/striconv-tests (test_striconv_LDADD): Likewise.
61966         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
61967         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
61968         Needed on Cygwin.
61969
61970 2007-04-12  Eric Blake  <ebb9@byu.net>
61971
61972         Work around glibc's failure to flush stdin on fclose.
61973         * lib/closein.c (close_stdin): Flush stdin before closing.
61974
61975         Work around glibc's failure to reset seekable stdin on exit.
61976         * modules/closein: New module.
61977         * lib/closein.c: New file.
61978         * lib/closein.h: Likewise.
61979         * m4/closein.m4: Likewise.
61980         * MODULES.html.sh (File stream based Input/Output): Document it.
61981
61982 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61983
61984         * gnulib-tool: Rename generated 'autobuild' script to
61985         'do-autobuild' in --create-megatestdir output.
61986
61987         * doc/gnulib.texi (Build robot for gnulib): Fix.
61988
61989 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61990
61991         * modules/sysexits (Depends-on): Add absolute-header.
61992
61993 2007-04-12  Eric Blake  <ebb9@byu.net>
61994
61995         No need to preserve errno on success.
61996         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
61997         Reported by Bruno Haible.
61998
61999 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62000
62001         * MODULES.html.sh (Support for maintaining and releasing
62002         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
62003
62004 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62005
62006         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
62007
62008 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62009
62010         * modules/autobuild: New module.
62011
62012         * m4/autobuild.m4: New file.
62013
62014 2007-04-11  Bruno Haible  <bruno@clisp.org>
62015
62016         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
62017         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
62018         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
62019         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
62020         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62021         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62022         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62023         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62024         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62025         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62026         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
62027         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62028         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62029         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
62030         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62031         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62032         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
62033         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62034         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62035         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
62036         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62037         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62038         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
62039         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62040         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62041         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
62042         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62043         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62044         Reported by Eric Blake.
62045
62046 2007-04-11  Bruno Haible  <bruno@clisp.org>
62047
62048         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
62049
62050 2007-04-10  Bruno Haible  <bruno@clisp.org>
62051
62052         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
62053         for NaN and Infinity. Needed on FreeBSD 6.1.
62054         * tests/test-vasnprintf-posix.c (test_function): Undo last change
62055         regarding results for "%010a" of Infinity and NaN.
62056         * tests/test-vasprintf-posix.c (test_function): Likewise.
62057         * tests/test-snprintf-posix.h (test_function): Likewise.
62058         * tests/test-sprintf-posix.h (test_function): Likewise.
62059         * tests/test-fprintf-posix.h (test_function): Likewise.
62060         * tests/test-printf-posix.h (test_function): Likewise.
62061         * tests/test-fprintf-posix.out: Likewise.
62062
62063 2007-04-10  Bruno Haible  <bruno@clisp.org>
62064
62065         * modules/locale-tests: New file.
62066         * tests/test-locale.c: New file.
62067
62068         * modules/locale: New file.
62069         * lib/locale_.h: New file.
62070         * m4/locale_h.m4: New file.
62071
62072 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
62073             Bruno Haible  <bruno@clisp.org>
62074
62075         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
62076         be determined, test for availability of the copysignf, copysign,
62077         copysignl functions.
62078         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
62079         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
62080         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
62081
62082 2007-04-09  Eric Blake  <ebb9@byu.net>
62083
62084         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
62085         * modules/stdio (Makefile.am): Support fflush.
62086         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
62087         * modules/fflush: New file.
62088         * lib/fflush.c: Likewise.
62089         * m4/fflush.m4: Likewise.
62090         * modules/fflush-tests: New test.
62091         * tests/test-fflush.c: Likewise.
62092         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
62093
62094 2007-04-06  Bruno Haible  <bruno@clisp.org>
62095
62096         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
62097         (VASNPRINTF): Use signbit for faster determination whether to print a
62098         minus sign.
62099         * modules/vasnprintf (Files): Remove lib/float+.h.
62100         * modules/fprintf-posix (Depends-on): Add signbit.
62101         * modules/snprintf-posix (Depends-on): Likewise.
62102         * modules/sprintf-posix (Depends-on): Likewise.
62103         * modules/vasnprintf-posix (Depends-on): Likewise.
62104         * modules/vasprintf-posix (Depends-on): Likewise.
62105         * modules/vfprintf-posix (Depends-on): Likewise.
62106         * modules/vsnprintf-posix (Depends-on): Likewise.
62107         * modules/vsprintf-posix (Depends-on): Likewise.
62108
62109 2007-04-06  Bruno Haible  <bruno@clisp.org>
62110
62111         * tests/test-frexp.c (main): Test also the sign bit of zero results.
62112         * tests/test-frexpl.c (main): Likewise.
62113         * tests/test-ldexpl.c (main): Likewise.
62114         * modules/frexp-tests (Depends-on): Add signbit.
62115         * modules/frexpl-tests (Depdends-on): Likewise.
62116         * modules/ldexpl-tests (Depdends-on): Likewise.
62117
62118 2007-04-06  Bruno Haible  <bruno@clisp.org>
62119
62120         * modules/signbit-tests: New file.
62121         * tests/test-signbit.c: New file.
62122
62123         * modules/signbit: New file.
62124         * lib/signbitf.c: New file.
62125         * lib/signbitd.c: New file.
62126         * lib/signbitl.c: New file.
62127         * m4/signbit.m4: New file.
62128         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
62129         (signbit): New macro.
62130         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
62131         REPLACE_SIGNBIT.
62132         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
62133         REPLACE_FREXPL into math.h.
62134
62135 2007-04-06  Bruno Haible  <bruno@clisp.org>
62136
62137         * modules/isnanf-nolibm-tests: New file.
62138         * tests/test-isnanf.c: New file.
62139
62140         * modules/isnanf-nolibm: New file.
62141         * lib/isnanf.h: New file.
62142         * lib/isnanf.c: New file.
62143         * lib/isnan.c: Consider the USE_FLOAT macro.
62144         * m4/isnanf.m4: New file.
62145
62146 2007-04-06  Bruno Haible  <bruno@clisp.org>
62147
62148         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
62149         (Link): New section.
62150
62151         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
62152
62153 2007-04-06  Bruno Haible  <bruno@clisp.org>
62154
62155         Assume the 'long double' type.
62156         * m4/longdouble.m4: Remove file.
62157         * config/srclist.txt: Don't mention longdouble.m4.
62158         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
62159         * lib/float+.h: Likewise.
62160         * lib/frexp.c: Likewise.
62161         * lib/printf-args.h: Likewise.
62162         * lib/printf-args.c: Likewise.
62163         * lib/printf-frexp.c: Likewise.
62164         * lib/printf-parse.c: Likewise.
62165         * lib/vasnprintf.c: Likewise.
62166         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
62167         * m4/intl.m4: Likewise.
62168         * m4/isnanl.m4: Likewise.
62169         * m4/printf.m4: Likewise.
62170         * m4/printf-frexpl.m4: Likewise.
62171         * m4/vasnprintf.m4: Likewise.
62172         * modules/allocsa (Files): Remove m4/longdouble.m4.
62173         * modules/gettext (Files): Likewise.
62174         * modules/relocatable-prog-wrapper (Files): Likewise.
62175         * modules/vasnprintf (Files): Likewise.
62176         * modules/isnanl (Files): Likewise.
62177         (Include): Simplify.
62178         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
62179         (Include): Simplify.
62180         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
62181         (Include): Simplify.
62182         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
62183         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62184         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
62185         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62186         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
62187         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62188         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
62189         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62190         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
62191         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62192         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
62193         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62194         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
62195         * tests/test-isnanl.c: Likewise.
62196         * tests/test-snprintf-posix.h: Likewise.
62197         * tests/test-sprintf-posix.h: Likewise.
62198         * tests/test-vasnprintf-posix.c: Likewise.
62199         * tests/test-vasnprintf-posix2.c: Likewise.
62200         * tests/test-vasprintf-posix.c: Likewise.
62201
62202 2007-04-06  Bruno Haible  <bruno@clisp.org>
62203
62204         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
62205         * lib/math_.h [__DECC]: Include the overridden include file through
62206         #include_next, outside the double-inclusion guard.
62207         * lib/stdio_.h [__DECC]: Likewise.
62208         * lib/stdlib_.h [__DECC]: Likewise.
62209         * lib/string_.h [__DECC]: Likewise.
62210         * lib/time_.h [__DECC]: Likewise.
62211         * lib/wchar_.h [__DECC]: Likewise.
62212         * lib/wctype_.h [__DECC]: Likewise.
62213         * lib/inttypes_.h [__DECC]: Likewise.
62214         Reported by Albert Chin <china@thewrittenword.com> in
62215         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
62216
62217 2007-04-04  Eric Blake  <ebb9@byu.net>
62218
62219         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
62220         1.5.x.
62221
62222 2007-04-04  Bruno Haible  <bruno@clisp.org>
62223
62224         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
62225         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
62226
62227 2007-04-04  Bruno Haible  <bruno@clisp.org>
62228
62229         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
62230         results for "%010a" of Infinity and NaN.
62231         * tests/test-vasprintf-posix.c (test_function): Likewise.
62232         * tests/test-snprintf-posix.h (test_function): Likewise.
62233         * tests/test-sprintf-posix.h (test_function): Likewise.
62234         * tests/test-fprintf-posix.h (test_function): Remove these tests.
62235         * tests/test-printf-posix.h (test_function): Likewise.
62236         * tests/test-fprintf-posix.out: Update.
62237         Needed for FreeBSD 6.1.
62238
62239 2007-04-04  Bruno Haible  <bruno@clisp.org>
62240
62241         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
62242         directly used by the gnulib modules nor by gnulib-tool.
62243
62244 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
62245
62246         * DEPENDENCIES: Give overall description of version dependency
62247         desirability.  Use more-typical names for apps.
62248         Add shell, coreutils, diffutils, grep, tar, gzip.
62249
62250 2007-04-04  Simon Josefsson  <simon@josefsson.org>
62251
62252         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
62253
62254 2007-04-04  Karl Berry  <karl@gnu.org>
62255
62256         * MODULES.html.sh (func_module): missing '.
62257
62258 2007-04-03  Bruno Haible  <bruno@clisp.org>
62259
62260         * modules/argmatch-tests (Makefile.am): New variable
62261         test_argmatch_LDADD.
62262         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
62263         * modules/array-list-tests (Makefile.am): New variable
62264         test_array_list_LDADD.
62265         * modules/array-oset-tests (Makefile.am): New variable
62266         test_array_oset_LDADD.
62267         * modules/avltree-list-tests (Makefile.am): New variable
62268         test_avltree_list_LDADD.
62269         * modules/avltree-oset-tests (Makefile.am): New variable
62270         test_avltree_oset_LDADD.
62271         * modules/avltreehash-list-tests (Makefile.am): New variable
62272         test_avltreehash_list_LDADD.
62273         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
62274         test_canonicalize_lgpl_LDADD.
62275         * modules/carray-list-tests (Makefile.am): New variable
62276         test_carray_list_LDADD.
62277         * modules/dirname-tests (Makefile.am): New variable
62278         test_dirname_LDADD.
62279         * modules/linked-list-tests (Makefile.am): New variable
62280         test_linked_list_LDADD.
62281         * modules/linkedhash-list-tests (Makefile.am): New variable
62282         test_linkedhash_list_LDADD.
62283         * modules/rbtree-list-tests (Makefile.am): New variable
62284         test_rbtree_list_LDADD.
62285         * modules/rbtree-oset-tests (Makefile.am): New variable
62286         test_rbtree_oset_LDADD.
62287         * modules/rbtreehash-list-tests (Makefile.am): New variable
62288         test_rbtreehash_list_LDADD.
62289         * modules/xvasprintf-tests (Makefile.am): New variable
62290         test_xvasprintf_LDADD.
62291         Reported by Eric Blake.
62292
62293 2007-04-03  Eric Blake  <ebb9@byu.net>
62294
62295         * DEPENDENCIES: Weaken m4 requirements.
62296
62297 2007-04-03  Bruno Haible  <bruno@clisp.org>
62298
62299         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
62300         * modules/isnanl-tests (configure.ac): Likewise.
62301
62302 2007-04-03  Ben Pfaff  <blp@gnu.org>
62303
62304         * modules/iconv_open: Add $(srcdir)/ to source directory
62305         references in Makefile fragments that call gperf, to fix VPATH
62306         builds.
62307
62308 2007-04-03  Bruno Haible  <bruno@clisp.org>
62309
62310         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
62311         * lib/ldexpl.c: Undo last change.
62312
62313 2007-04-03  Bruno Haible  <bruno@clisp.org>
62314
62315         * modules/printf-frexpl (Depends-on): Undo last change.
62316         (Files): Add m4/ldexpl.m4.
62317
62318 2007-04-03  Bruno Haible  <bruno@clisp.org>
62319
62320         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
62321         * modules/isnanl (Link): New section.
62322
62323         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
62324         * modules/frexp (Link): New section.
62325
62326         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
62327         * modules/frexpl (Link): New section.
62328
62329         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
62330         * modules/ldexpl (Link): New section.
62331
62332 2007-04-03  Bruno Haible  <bruno@clisp.org>
62333
62334         * modules/TEMPLATE-EXTENDED: New file.
62335         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
62336
62337 2007-04-03  Bruno Haible  <bruno@clisp.org>
62338
62339         * DEPENDENCIES: New file.
62340         Suggested by Simon Josefsson.
62341
62342 2007-04-03  Bruno Haible  <bruno@clisp.org>
62343
62344         * doc/gnulib.texi: Escape @.
62345
62346 2007-04-03  James Youngman  <jay@gnu.org>
62347         and Paul Eggert  <eggert@cs.ucla.edu>
62348
62349         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
62350         birthtime on all systems that have birthtime, not just those which
62351         use st_birthtimensec rather than st_birthtim.  Putting zero in
62352         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
62353         that the birth time is not available for files on an NFS mount.
62354
62355 2007-04-03  Simon Josefsson  <simon@josefsson.org>
62356
62357         * modules/memxor: Move back from crypto/, suggested by Bruno.
62358         * modules/crypto/hmac-sha1: Fix memxor dependency.
62359
62360         * modules/crypto/gc: Moved from ../.
62361
62362 2007-04-02  Eric Blake  <ebb9@byu.net>
62363
62364         * lib/ldexpl.c (includes): Avoid libm.
62365
62366         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
62367
62368 2007-04-02  Bruno Haible  <bruno@clisp.org>
62369
62370         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
62371         on IRIX.
62372
62373 2007-04-02  Bruno Haible  <bruno@clisp.org>
62374
62375         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
62376         x86 or x86_64 platforms running MacOS X.
62377         Reported by Ryan Schmidt <@ryandesign.com>.
62378
62379 2007-04-02  Bruno Haible  <bruno@clisp.org>
62380
62381         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
62382         i386.
62383
62384 2007-04-01  Simon Josefsson  <simon@josefsson.org>
62385
62386         * modules/crypto/arcfour: Moved from ../.
62387         * modules/crypto/arcfour-tests: Moved from ../.
62388         * modules/crypto/arctwo: Moved from ../.
62389         * modules/crypto/arctwo-tests: Moved from ../.
62390         * modules/crypto/des: Moved from ../.
62391         * modules/crypto/des-tests: Moved from ../.
62392         * modules/crypto/gc-arcfour: Moved from ../.
62393         * modules/crypto/gc-arcfour-tests: Moved from ../.
62394         * modules/crypto/gc-arctwo: Moved from ../.
62395         * modules/crypto/gc-arctwo-tests: Moved from ../.
62396         * modules/crypto/gc-des: Moved from ../.
62397         * modules/crypto/gc-des-tests: Moved from ../.
62398         * modules/crypto/gc-hmac-md5: Moved from ../.
62399         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
62400         * modules/crypto/gc-hmac-sha1: Moved from ../.
62401         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
62402         * modules/crypto/gc-md2: Moved from ../.
62403         * modules/crypto/gc-md2-tests: Moved from ../.
62404         * modules/crypto/gc-md4: Moved from ../.
62405         * modules/crypto/gc-md4-tests: Moved from ../.
62406         * modules/crypto/gc-md5: Moved from ../.
62407         * modules/crypto/gc-md5-tests: Moved from ../.
62408         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
62409         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
62410         * modules/crypto/gc-random: Moved from ../.
62411         * modules/crypto/gc-rijndael: Moved from ../.
62412         * modules/crypto/gc-rijndael-tests: Moved from ../.
62413         * modules/crypto/gc-sha1: Moved from ../.
62414         * modules/crypto/gc-sha1-tests: Moved from ../.
62415         * modules/crypto/gc-tests: Moved from ../.
62416         * modules/crypto/hmac-md5: Moved from ../.
62417         * modules/crypto/hmac-md5-tests: Moved from ../.
62418         * modules/crypto/hmac-sha1: Moved from ../.
62419         * modules/crypto/hmac-sha1-tests: Moved from ../.
62420         * modules/crypto/md2: Moved from ../.
62421         * modules/crypto/md2-tests: Moved from ../.
62422         * modules/crypto/md4: Moved from ../.
62423         * modules/crypto/md4-tests: Moved from ../.
62424         * modules/crypto/md5: Moved from ../.
62425         * modules/crypto/md5-tests: Moved from ../.
62426         * modules/crypto/memxor: Moved from ../.
62427         * modules/crypto/rijndael: Moved from ../.
62428         * modules/crypto/rijndael-tests: Moved from ../.
62429         * modules/crypto/sha1: Moved from ../.
62430
62431 2007-03-30  James Youngman  <jay@gnu.org>
62432
62433         * tests/test-stat-time.c (prepare_test): use chmod() rather than
62434         rename() to change the ctime of a file (because ctime is unaffected
62435         by rename on jfs2 on AIX 5.1).
62436         (main): Start by doing cleanup, in case a previous run failed leaving
62437         test files behind.
62438
62439 2007-03-31  Bruno Haible  <bruno@clisp.org>
62440
62441         Support old proprietary implementations of iconv.
62442         * modules/iconv_open: New file.
62443         * lib/iconv_.h: New file.
62444         * m4/iconv_h.m4: New file.
62445         * lib/iconv_open.c: New file.
62446         * lib/iconv_open-aix.gperf: New file.
62447         * lib/iconv_open-hpux.gperf: New file.
62448         * lib/iconv_open-irix.gperf: New file.
62449         * lib/iconv_open-osf.gperf: New file.
62450         * m4/iconv_open.m4: New file.
62451         * modules/linebreak (Depends-on): Add iconv_open.
62452         * modules/striconv (Depends-on): Likewise.
62453         * modules/striconveh (Depends-on): Likewise.
62454         * modules/unicodeio (Depends-on): Likewise.
62455         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
62456         (iconv_t)(-1).
62457         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
62458         conversion if cd is (iconv_t)(-1).
62459         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
62460         is not possible.
62461
62462 2007-03-31  Bruno Haible  <bruno@clisp.org>
62463
62464         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
62465         work on Solaris either. Protect also second use of "autodetect_jp".
62466
62467 2007-03-31  Bruno Haible  <bruno@clisp.org>
62468
62469         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
62470         the function is not present.
62471
62472 2007-03-31  Bruno Haible  <bruno@clisp.org>
62473
62474         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
62475         the function is not present.
62476
62477 2007-03-31  Bruno Haible  <bruno@clisp.org>
62478
62479         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
62480         a bug in HP-UX iconv_open().
62481
62482 2007-03-31  Bruno Haible  <bruno@clisp.org>
62483
62484         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
62485         (Mathematics <math.h>): New section, add fpieee.
62486         (Input/output <stdio.h>): Add fseterr.
62487         (Mathematics <math.h>): New section, add printf-frexp.
62488         (Container data structures): Add sublist.
62489         (Core language properties): Add fpucw, inline.
62490         (Functions for greatest-width integer types <inttypes.h>): Add
62491         imaxabs, imaxdiv, inttypes.
62492         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
62493         isnanl-nolibm, ldexp.
62494         (Mathematics <math.h>): New section, add printf-frexpl.
62495         (Support for systems lacking POSIX:2001): Add fprintf-posix,
62496         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
62497         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
62498         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
62499         (Unicode string functions): Add unistr/u*-mbtoucr.
62500         (Java): Add javacomp-script, javaexec-script.
62501         (C#): Add csharpcomp-script, csharpexec-script.
62502         (Support for building libraries and executables): Add havelib,
62503         relocatable-*.
62504         (Support for maintaining and releasing projects): Renamed from
62505         'Support for maintaining and release projects'. Add announce-gen.
62506
62507 2007-03-31  Bruno Haible  <bruno@clisp.org>
62508
62509         * README: Talk primarily about git.
62510         (git and CVS): Renamed from CVS.
62511         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
62512         gnulib is available through git.
62513         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
62514
62515 2007-03-30  Bruno Haible  <bruno@clisp.org>
62516
62517         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
62518         * lib/poll_.h: Likewise.
62519         * lib/stat_.h: Likewise.
62520         * lib/sys_time_.h: Likewise.
62521         * lib/sysexit_.h: Likewise.
62522         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
62523         * lib/stdbool_.h: Likewise.
62524         * lib/byteswap_.h: Add double-inclusion guard.
62525
62526 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
62527
62528         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
62529
62530 2007-03-30  Karl Berry  <karl@gnu.org>
62531
62532         * config/srclist-update: double space after USA in the license
62533         substitution, since that's how it's usually (?) written.
62534
62535 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
62536
62537         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
62538         reported by Bruno Haible.
62539
62540 2007-03-29  Bruno Haible  <bruno@clisp.org>
62541
62542         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
62543         a bug in AIX iconv().
62544
62545 2007-03-29  Bruno Haible  <bruno@clisp.org>
62546
62547         * modules/ldexpl-tests: New file.
62548         * tests/test-ldexpl.c: New file.
62549
62550 2007-03-29  Bruno Haible  <bruno@clisp.org>
62551
62552         * lib/ldexpl.c: Include fpucw.h.
62553         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
62554         multiplication.
62555         * modules/ldexpl (Depends-on): Add fpucw.
62556
62557 2007-03-29  Bruno Haible  <bruno@clisp.org>
62558
62559         * modules/ldexpl: New file.
62560         * m4/ldexpl.m4: New file.
62561         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
62562         set.
62563         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
62564         REPLACE_LDEXPL.
62565         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
62566         REPLACE_LDEXPL.
62567         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
62568         gl_FUNC_LDEXPL_WORKS.
62569         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
62570         * modules/mathl (Files): Remove lib/ldexpl.c.
62571         (Depends-on): Add ldexpl.
62572
62573 2007-03-29  Bruno Haible  <bruno@clisp.org>
62574
62575         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
62576
62577 2007-03-29  Bruno Haible  <bruno@clisp.org>
62578
62579         * tests/test-striconveh.c (main): Don't assume that a direct conversion
62580         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
62581         and possibly also HP-UX.
62582         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
62583         work on AIX, IRIX, HP-UX, OSF/1.
62584         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
62585         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
62586         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
62587         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
62588         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
62589         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
62590
62591 2007-03-29  Bruno Haible  <bruno@clisp.org>
62592
62593         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
62594
62595 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62596
62597         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
62598         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
62599
62600 2007-03-29  Eric Blake  <ebb9@byu.net>
62601
62602         * lib/acl-internal.h: Remove redundant include.
62603         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
62604         Cygwin when a file is locked.
62605
62606 2007-03-29  Bruno Haible  <bruno@clisp.org>
62607
62608         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
62609         file.
62610         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
62611
62612 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62613
62614         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
62615         try to remove a parent directory if the child couldn't be removed
62616         (except for the first rmdir, which could fail because the child
62617         doesn't exist).  Problem reported by Jeff Blaine in
62618         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
62619
62620 2007-03-28  Bruno Haible  <bruno@clisp.org>
62621
62622         * lib/striconveh.c (utf8conv_carefully): New function.
62623         (mem_cd_iconveh_internal): Invoke it.
62624
62625 2007-03-28  Bruno Haible  <bruno@clisp.org>
62626
62627         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
62628         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
62629         input.
62630         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
62631         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
62632         unistr/u8-uctomb.
62633
62634 2007-03-28  Bruno Haible  <bruno@clisp.org>
62635
62636         * modules/unistr/u8-mbtoucr: New file.
62637         * lib/unistr/u8-mbtoucr.c: New file.
62638         * modules/unistr/u16-mbtoucr: New file.
62639         * lib/unistr/u16-mbtoucr.c: New file.
62640         * modules/unistr/u16-mbtoucr: New file.
62641         * lib/unistr/u16-mbtoucr.c: New file.
62642         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
62643
62644 2007-03-27  Simon Josefsson  <simon@josefsson.org>
62645             Bruno Haible  <bruno@clisp.org>
62646
62647         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
62648         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
62649         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
62650
62651         * m4/stdio_h.m4: Add stubs for vasprintf too.
62652
62653         * modules/stdio: Support vasprintf in sed command.
62654
62655         * modules/vasprintf: Depend on stdio for prototypes.  Remove
62656         vasprintf.h.  Add stdio module indicator.
62657
62658         * lib/stdio_.h: Declare asprintf and vasprintf, based on
62659         vasprintf.h.
62660
62661         * lib/vasprintf.h: File removed.
62662
62663         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
62664         * lib/vasprintf.c: Ditto.
62665         * lib/xvasprintf.c: Ditto.
62666         * tests/test-vasprintf-posix.c: Ditto.
62667         * tests/test-vasprintf.c: Ditto.
62668
62669 2007-03-27  Bruno Haible  <bruno@clisp.org>
62670
62671         Make vasnprintf multithread-safe.
62672         * lib/vasnprintf.c (decimal_point_char): New function.
62673         (VASNPRINTF): Use it.
62674         Suggested by Simon Josefsson.
62675
62676 2007-03-27  Eric Blake  <ebb9@byu.net>
62677
62678         Support sub-second birthtime on cygwin.
62679         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
62680         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
62681         (get_stat_birthtime): Also work with st_birthtim.
62682
62683 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
62684
62685         * lib/stat-time.h (USE_BIRTHTIME): Remove.
62686         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
62687         (get_stat_birthtime_ns): Do not try to use "spare" fields.
62688         (get_stat_birthtime_ns): Simplify compile-time tests.
62689         (get_stat_birthtime): Change the API to look like
62690         get_stat_mtime etc., except return a negative tv_nsec on error.
62691         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
62692         Don't check for "spare" fields.
62693         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
62694         or for struct stat.st_birthtime, as these tests aren't used.
62695         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
62696
62697 2007-03-27  Bruno Haible  <bruno@clisp.org>
62698
62699         * lib/stat-time.h: Include <sys/stat.h>.
62700
62701 2007-03-27  James Youngman  <jay@gnu.org>
62702
62703         * lib/stat-time.h (get_stat_birthtime): New function for
62704           retrieving st_birthtime as provided by UFS2 (hence *BSD).
62705         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
62706           and its variants.
62707         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
62708         * modules/stat-time-test: New file.
62709         * tests/test-stat-time.c: New test, devised by Bruno Haible.
62710
62711 2007-03-26  Bruno Haible  <bruno@clisp.org>
62712
62713         Better support of signalling NaNs.
62714         * lib/atanl.c: Include isnanl.h.
62715         (atanl): Perform test for NaN at the beginning of the function and
62716         through a call to isnanl.
62717         * lib/cosl.c: Include isnanl.h.
62718         (cosl): Perform test for NaN at the beginning of the function and
62719         through a call to isnanl.
62720         * lib/ldexpl.c: Include isnanl.h.
62721         (ldexpl): Perform test for NaN through a call to isnanl.
62722         * lib/logl.c: Include isnanl.h.
62723         (logl): Perform test for NaN at the beginning of the function and
62724         through a call to isnanl.
62725         * lib/sinl.c: Include isnanl.h.
62726         (sinl): Perform test for NaN at the beginning of the function and
62727         through a call to isnanl.
62728         * lib/sqrtl.c: Include isnanl.h.
62729         (sqrtl): Perform test for NaN at the beginning of the function and
62730         through a call to isnanl.
62731         * lib/tanl.c: Include isnanl.h.
62732         (tanl): Perform test for NaN at the beginning of the function and
62733         through a call to isnanl.
62734         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
62735         * modules/mathl (Depends-on): Add isnanl.
62736
62737 2007-03-26  Eric Blake  <ebb9@byu.net>
62738
62739         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
62740         regression in logic sense of previous patch.
62741
62742 2007-03-26  Bruno Haible  <bruno@clisp.org>
62743
62744         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
62745         unportable shell command "if ! ...".
62746         Reported by Ralf Wildenhues.
62747
62748 2007-03-25  Bruno Haible  <bruno@clisp.org>
62749
62750         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
62751         <sysexits.h> file, and only add EX_CONFIG.
62752         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
62753         absolute file name and whether it is sufficient. Substitute also
62754         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
62755         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
62756         ABSOLUTE_SYSEXITS_H into sysexits.h.
62757
62758 2007-03-25  Bruno Haible  <bruno@clisp.org>
62759
62760         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
62761         hints is NULL.
62762
62763 2007-03-25  Bruno Haible  <bruno@clisp.org>
62764
62765         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
62766         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
62767
62768 2007-03-25  Bruno Haible  <bruno@clisp.org>
62769
62770         * lib/vasnprintf.c: Include langinfo.h.
62771         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
62772         multithread-safe.
62773         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
62774         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
62775         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62776         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62777         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62778         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62779         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62780         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
62781         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62782         Reported by Simon Josefsson.
62783
62784 2007-03-25  Bruno Haible  <bruno@clisp.org>
62785
62786         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
62787         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
62788         * modules/vasnprintf (Depends-on): Add stdint.
62789
62790 2007-03-25  Bruno Haible  <bruno@clisp.org>
62791
62792         * modules/fpieee: New file.
62793         * m4/fpieee.m4: New file.
62794         * modules/isnan-nolibm (Depends-on): Add fpieee.
62795         * modules/isnanl-nolibm (Depends-on): Add fpieee.
62796         * modules/isnanl (Depends-on): Add fpieee.
62797
62798 2007-03-25  Bruno Haible  <bruno@clisp.org>
62799
62800         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
62801
62802 2007-03-25  Bruno Haible  <bruno@clisp.org>
62803
62804         Avoid test failures on IRIX 6.5.
62805         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
62806         (main): Use it.
62807         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
62808         macros.
62809         (main): Use them.
62810
62811 2007-03-25  Bruno Haible  <bruno@clisp.org>
62812
62813         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
62814         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
62815         exists but doesn't work.
62816         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
62817         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
62818         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
62819         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
62820         math.h.
62821
62822 2007-03-25  Bruno Haible  <bruno@clisp.org>
62823
62824         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
62825         returns inf. Needed on IRIX 6.5.
62826
62827 2007-03-25  Bruno Haible  <bruno@clisp.org>
62828
62829         * tests/test-frexpl.c: Include isnanl-nolibm.h.
62830         (main): Use isnanl instead of x != x idiom.
62831         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
62832
62833         * tests/test-frexp.c: Include isnan.h.
62834         (main): Use isnan instead of x != x idiom.
62835         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
62836
62837 2007-03-25  Bruno Haible  <bruno@clisp.org>
62838
62839         * tests/test-frexp.c (NaN): New function/macro.
62840         (main): Use it instead of 0.0 / 0.0.
62841         * tests/test-isnan.c (NaN): New function/macro.
62842         (main): Use it instead of 0.0 / 0.0.
62843         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
62844         (test_function): Use it instead of 0.0 / 0.0.
62845         * tests/test-vasprintf-posix.c (NaN): New function/macro.
62846         (test_function): Use it instead of 0.0 / 0.0.
62847         * tests/test-snprintf-posix.h (NaN): New function/macro.
62848         (test_function): Use it instead of 0.0 / 0.0.
62849         * tests/test-sprintf-posix.h (NaN): New function/macro.
62850         (test_function): Use it instead of 0.0 / 0.0.
62851         * tests/test-fprintf-posix.h (NaN): New function/macro.
62852         (test_function): Use it instead of 0.0 / 0.0.
62853         * tests/test-printf-posix.h (NaN): New function/macro.
62854         (test_function): Use it instead of 0.0 / 0.0.
62855
62856         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
62857
62858 2007-03-25  Bruno Haible  <bruno@clisp.org>
62859
62860         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
62861
62862 2007-03-25  Bruno Haible  <bruno@clisp.org>
62863
62864         * lib/regexec.c (merge_state_with_log): Make static.
62865
62866 2007-03-25  Bruno Haible  <bruno@clisp.org>
62867
62868         * lib/trigl.c (kernel_rem_pio2): Make static.
62869
62870 2007-03-25  Bruno Haible  <bruno@clisp.org>
62871
62872         * lib/sincosl.c (sincosl_table): Make static.
62873
62874 2007-03-25  Bruno Haible  <bruno@clisp.org>
62875
62876         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
62877         if the compiler does not support C99.
62878
62879 2007-03-25  Bruno Haible  <bruno@clisp.org>
62880
62881         * modules/time (Makefile.am): Ensure all rule action lines start with a
62882         tab.
62883
62884 2007-03-24  Bruno Haible  <bruno@clisp.org>
62885
62886         * modules/tsearch-tests: New file.
62887         * tests/test-tsearch.sh: New file.
62888         * tests/test-tsearch.c: New file, mostly copied from glibc.
62889
62890         * modules/search-tests: New file.
62891         * tests/test-search.c: New file.
62892
62893         * modules/search: New file.
62894         * lib/search_.h: New file, incorporating lib/tsearch.h.
62895         * m4/search_h.m4: New file.
62896         * lib/tsearch.h: Remove file.
62897         * lib/tsearch.c: Include search.h instead of tsearch.h.
62898         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
62899         HAVE_TSEARCH.
62900         * modules/tsearch (Files): Remove lib/tsearch.h.
62901         (Depends-on): Add search.
62902         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
62903         (Include): Change tsearch.h into search.h.
62904
62905 2007-03-24  Bruno Haible  <bruno@clisp.org>
62906
62907         * modules/fpucw: New file.
62908         * lib/fpucw.h: New file.
62909         * lib/frexp.c: Include fpucw.h.
62910         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62911         (FUNC): Use them.
62912         * lib/printf-frexp.c: Include fpucw.h.
62913         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62914         (FUNC): Use them.
62915         * lib/vasnprintf.c: Include fpucw.h.
62916         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
62917         'long double' calculations.
62918         * tests/test-frexpl.c: Include fpucw.h.
62919         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62920         * tests/test-printf-frexpl.c: Include fpucw.h.
62921         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62922         * modules/frexpl (Depends-on): Add fpucw.
62923         * modules/printf-frexpl (Depends-on): Likewise.
62924         * modules/fprintf-posix (Depends-on): Likewise.
62925         * modules/snprintf-posix (Depends-on): Likewise.
62926         * modules/sprintf-posix (Depends-on): Likewise.
62927         * modules/vasnprintf-posix (Depends-on): Likewise.
62928         * modules/vasprintf-posix (Depends-on): Likewise.
62929         * modules/vfprintf-posix (Depends-on): Likewise.
62930         * modules/vsnprintf-posix (Depends-on): Likewise.
62931         * modules/vsprintf-posix (Depends-on): Likewise.
62932         * modules/frexpl-tests (Depends-on): Likewise.
62933         * modules/printf-frexpl-tests (Depends-on): Likewise.
62934
62935 2007-03-24  Bruno Haible  <bruno@clisp.org>
62936
62937         * lib/float+.h: New file.
62938         * lib/isnan.c: Include float+.h.
62939         (SIZE): New macro.
62940         (FUNC): Compare only SIZE bytes of the value.
62941         * lib/vasnprintf.c: Include float+.h.
62942         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
62943         SIZEOF_LDBL or SIZEOF_DBL bytes.
62944         * modules/isnan-nolibm (Files): Add lib/float+.h.
62945         * modules/isnanl-nolibm (Files): Add lib/float+.h.
62946         * modules/isnanl (Files): Add lib/float+.h.
62947         * modules/vasnprintf (Files): Add lib/float+.h.
62948
62949 2007-03-24  Bruno Haible  <bruno@clisp.org>
62950
62951         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
62952         include isnanl-nolibm.h.
62953
62954 2007-03-24  Bruno Haible  <bruno@clisp.org>
62955
62956         * tests/test-read-file.c (main): Don't produce spurious output for
62957         expected situations. Make the test fail if it encountered unexpected
62958         results.
62959
62960 2007-03-24  Bruno Haible  <bruno@clisp.org>
62961
62962         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
62963         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
62964
62965 2007-03-24  Bruno Haible  <bruno@clisp.org>
62966
62967         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
62968
62969 2007-03-24  Bruno Haible  <bruno@clisp.org>
62970
62971         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
62972         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
62973
62974         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
62975         * modules/utf8-ucs4: Turn into a symbolic link to module
62976         unistr/u8-mbtouc.
62977
62978         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
62979         utf8-ucs4-unsafe.
62980         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
62981         unistr/u8-mbtouc-unsafe.
62982
62983         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
62984         * modules/utf16-ucs4: Turn into a symbolic link to module
62985         unistr/u16-mbtouc.
62986
62987         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
62988         utf16-ucs4-unsafe.
62989         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
62990         unistr/u16-mbtouc-unsafe.
62991
62992         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
62993         * modules/ucs4-utf8: Turn into a symbolic link to module
62994         unistr/u8-ubtomb.
62995
62996         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
62997         * modules/ucs4-utf16: Turn into a symbolic link to module
62998         unistr/u16-ubtomb.
62999
63000 2007-03-24  Bruno Haible  <bruno@clisp.org>
63001
63002         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
63003         Enable the function only if HAVE_INLINE.
63004         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
63005         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
63006         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
63007         Enable the function only if HAVE_INLINE.
63008         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
63009         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
63010         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
63011         Enable the function only if HAVE_INLINE.
63012         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
63013         Enable the function only if HAVE_INLINE.
63014         * modules/utf8-ucs4: Update.
63015         * modules/utf8-ucs4-unsafe: Update.
63016         * modules/utf16-ucs4: Update.
63017         * modules/utf16-ucs4-unsafe: Update.
63018         * modules/ucs4-utf8: Update.
63019         * modules/ucs4-utf16: Update.
63020
63021 2007-03-24  Bruno Haible  <bruno@clisp.org>
63022
63023         * lib/utf8-ucs4.h: Remove file.
63024         * lib/utf8-ucs4-unsafe.h: Remove file.
63025         * lib/utf16-ucs4.h: Remove file.
63026         * lib/utf16-ucs4-unsafe.h: Remove file.
63027         * lib/ucs4-utf8.h: Remove file.
63028         * lib/ucs4-utf16.h: Remove file.
63029         * lib/unistr.h: Include their previous contents.
63030         * m4/utf-ucs4.m4: Remove file.
63031         * m4/ucs4-utf.m4: Remove file.
63032         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
63033         (Depends-on): Add unistr/base.
63034         (configure.ac): Remove gl_UTF_UCS4.
63035         (Makefile.am): Update.
63036         (Include): Change to unistr.h.
63037         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
63038         (Depends-on): Add unistr/base.
63039         (configure.ac): Remove gl_UTF_UCS4.
63040         (Makefile.am): Update.
63041         (Include): Change to unistr.h.
63042         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
63043         (Depends-on): Add unistr/base.
63044         (configure.ac): Remove gl_UTF_UCS4.
63045         (Makefile.am): Update.
63046         (Include): Change to unistr.h.
63047         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
63048         (Depends-on): Add unistr/base.
63049         (configure.ac): Remove gl_UTF_UCS4.
63050         (Makefile.am): Update.
63051         (Include): Change to unistr.h.
63052         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
63053         (Depends-on): Add unistr/base.
63054         (configure.ac): Remove gl_UCS4_UTF.
63055         (Makefile.am): Update.
63056         (Include): Change to unistr.h.
63057         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
63058         (Depends-on): Add unistr/base.
63059         (configure.ac): Remove gl_UCS4_UTF.
63060         (Makefile.am): Update.
63061         (Include): Change to unistr.h.
63062         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
63063         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
63064         utf8-ucs4-unsafe.h.
63065         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
63066         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
63067         utf16-ucs4-unsafe.h.
63068         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
63069         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
63070         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
63071         * lib/unistr/u8-strchr.c: Likewise.
63072         * lib/unistr/u8-strrchr.c: Likewise.
63073         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
63074         * lib/unistr/u16-strchr.c: Likewise.
63075         * lib/unistr/u16-strrchr.c: Likewise.
63076         * lib/striconveh.c: Update.
63077         * lib/linebreak.c: Update.
63078
63079 2007-03-24  Bruno Haible  <bruno@clisp.org>
63080
63081         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
63082         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
63083
63084 2007-03-22  Bruno Haible  <bruno@clisp.org>
63085
63086         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
63087
63088 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
63089
63090         * MODULES.html.sh (File system functions): New module write-any-file.
63091         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
63092         * m4/write-any-file.m4: New files.
63093
63094 2007-03-23  Eric Blake  <ebb9@byu.net>
63095
63096         * gnulib-tool: Rearrange space-tab sequences, since some editors
63097         like to eat them.
63098
63099 2007-03-23  Eric Blake  <ebb9@byu.net>
63100
63101         * lib/version-etc.c (version_etc_va): Update license wording to
63102         be more concise.  Recommended by Richard Stallman.
63103
63104 2007-03-22  Bruno Haible  <bruno@clisp.org>
63105
63106         * lib/poll.c (MSG_PEEK): New fallback definition.
63107
63108 2007-03-22  Bruno Haible  <bruno@clisp.org>
63109
63110         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
63111         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
63112         (main): Update.
63113         Fixes a compilation error on BeOS.
63114
63115 2007-03-22  Bruno Haible  <bruno@clisp.org>
63116
63117         * modules/frexpl-tests: New file.
63118         * tests/test-frexpl.c: New file.
63119
63120         * modules/frexpl: New file.
63121         * m4/frexpl.m4: New file.
63122         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
63123         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
63124         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
63125         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
63126         (Depends-on): Add frexpl. Remove isnanl-nolibm.
63127         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
63128
63129 2007-03-22  Bruno Haible  <bruno@clisp.org>
63130
63131         * lib/frexpl.c: Share code with lib/frexp.c.
63132         * modules/mathl (Files): Add lib/frexp.c.
63133         (Depends-on): Add isnanl-nolibm.
63134
63135 2007-03-22  Bruno Haible  <bruno@clisp.org>
63136
63137         * modules/printf-frexp (Files): Add m4/frexp.m4.
63138         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
63139         only if the found frexp function actually works.
63140
63141 2007-03-22  Bruno Haible  <bruno@clisp.org>
63142
63143         * lib/frexp.c: Remove older implementation that uses divisions.
63144
63145 2007-03-21  Bruno Haible  <bruno@clisp.org>
63146
63147         * modules/frexp-tests: New file.
63148         * tests/test-frexp.c: New file.
63149
63150         * modules/frexp: New file.
63151         * lib/frexp.c: New file.
63152         * m4/frexp.m4: New file.
63153         * lib/math_.h (frexp): New declaration.
63154         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
63155         REPLACE_FREXP.
63156         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
63157
63158 2007-03-21  Bruno Haible  <bruno@clisp.org>
63159
63160         * modules/isnanl-tests: New file.
63161         * tests/test-isnanl.c: New file.
63162
63163         * modules/isnanl: New file.
63164         * lib/isnanl.h: New file.
63165         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
63166         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
63167         gl_FUNC_ISNANL_WORKS.
63168         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
63169         New macros.
63170
63171 2007-03-21  Bruno Haible  <bruno@clisp.org>
63172
63173         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
63174         lib/isnanl.h.
63175         (Include): Update.
63176         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
63177         * lib/vasnprintf.c: Update.
63178         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
63179         tests/test-isnanl.h, remove tests/test-isnanl.c.
63180         (Makefile.am): Update.
63181         * tests/test-isnanl-nolibm.c: New file.
63182         * tests/test-isnanl.h: New file.
63183         * tests/test-isnanl.c: Remove file.
63184
63185 2007-03-21  Jim Meyering  <jim@meyering.net>
63186
63187         When trying to open ".", treat ESTALE like EACCES.
63188         * lib/savewd.c (savewd_save): Resort to forking not just upon
63189         failure with EACCES, but also when errno is ESTALE.
63190
63191 2007-03-20  Bruno Haible  <bruno@clisp.org>
63192
63193         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
63194         Needed on AIX 5.1. Reported by Matthew Woehlke.
63195
63196 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63197
63198         Suggestions by Bruno Haible:
63199         * lib/acl-internal.h: Include "gettext.h" rather than rolling
63200         our own.
63201         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
63202         * modules/acl (Depends-on): Add gettext.
63203
63204 2007-03-19  Bruno Haible  <bruno@clisp.org>
63205
63206         * modules/iconvme: Remove file.
63207         * lib/iconvme.h: Remove file.
63208         * lib/iconvme.c: Remove file.
63209         * m4/iconvme.m4: Remove file.
63210
63211 2007-03-19  Bruno Haible  <bruno@clisp.org>
63212
63213         * doc/relocatable-maint.texi: Break long shell script line.
63214         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
63215
63216 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63217
63218         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
63219         handle file_has_acl.
63220         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
63221         * lib/acl.c: Move header inclusions and related macro defns into
63222         lib/acl-internal.h.
63223         (S_ISLNK): Remove defn, since that's now done for us.
63224         (file_has_acl): Move to lib/file-has-acl.c.
63225         Call acl_trivial if available.  This is the crucial part of the fix.
63226         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
63227         shared within the library.  Rewrite a bit, partly to make it compatible
63228         with the GNU coding style.
63229         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
63230         Remove unnecessary double-quotes.
63231         Don't test for acl_to_text; the build will catch that.
63232         Replace acl_entries if it doesn't exist and it is needed.
63233         Check for -lsec and acl_trivial (as used on Solaris 10).
63234         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
63235         lib/file-has-acl.c.
63236         (Depends-on): Add sys_stat, for S_ISLNK.
63237
63238 2007-03-19  Ben Pfaff  <blp@gnu.org>
63239
63240         * doc/gnulib.texi: Fix typos.
63241         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
63242
63243 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63244
63245         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
63246         If size is zero here, buf must be zero.
63247
63248 2007-03-19  Simon Josefsson  <simon@josefsson.org>
63249
63250         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
63251         <bruno@clisp.org>.
63252
63253 2007-03-18  Bruno Haible  <bruno@clisp.org>
63254
63255         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
63256         Suggested by Eric Blake.
63257
63258 2007-03-18  Ben Pfaff  <blp@gnu.org>
63259
63260         * doc/relocatable.texi: Recommend using as prefix a directory
63261         that does not exist and will never be created.  Based on
63262         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
63263         and others.
63264
63265 2007-03-17  Bruno Haible  <bruno@clisp.org>
63266
63267         * lib/fchownat.c: Include lchown.h.
63268
63269 2007-03-17  Bruno Haible  <bruno@clisp.org>
63270
63271         Fix endless loop when the given allocated size was > INT_MAX.
63272         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
63273         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
63274         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
63275         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
63276         * lib/sprintf.c (sprintf): Likewise.
63277
63278 2007-03-17  Bruno Haible  <bruno@clisp.org>
63279
63280         * tests/test-argp-2.sh (func_compare): Output a context diff.
63281
63282 2007-03-17  Bruno Haible  <bruno@clisp.org>
63283
63284         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
63285         locale's decimal-point character.
63286
63287 2007-03-17  Bruno Haible  <bruno@clisp.org>
63288
63289         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
63290         before comparing it. Needed because on some platforms (e.g. x86) a
63291         'long double' occupies less bytes than sizeof (long double).
63292
63293 2007-03-17  Bruno Haible  <bruno@clisp.org>
63294
63295         * tests/test-crc.c (main): Make printf statements 64-bit clean.
63296         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
63297         * tests/test-getaddrinfo.c (simple): Likewise.
63298         * tests/test-read-file.c (main): Likewise.
63299
63300 2007-03-17  Bruno Haible  <bruno@clisp.org>
63301
63302         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
63303
63304 2007-03-17  Bruno Haible  <bruno@clisp.org>
63305
63306         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
63307         unused variable.
63308
63309 2007-03-17  Bruno Haible  <bruno@clisp.org>
63310
63311         * tests/test-c-strcasecmp.c: Include c-strcase.h.
63312         * tests/test-c-strncasecmp.c: Likewise.
63313
63314 2007-03-17  Bruno Haible  <bruno@clisp.org>
63315
63316         * modules/stdlib (Depends-on): Add unistd.
63317         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
63318         Needed for MacOS X 10.3.
63319
63320 2007-03-17  Bruno Haible  <bruno@clisp.org>
63321
63322         * lib/unistr/u-strdup.h: Include <stdlib.h>.
63323
63324 2007-03-17  Bruno Haible  <bruno@clisp.org>
63325
63326         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
63327
63328 2007-03-17  Bruno Haible  <bruno@clisp.org>
63329
63330         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
63331         to reflect files copied from gnulib (with or without modifications).
63332         Suggested by Jim Meyering.
63333
63334 2007-03-17  Eric Blake  <ebb9@byu.net>
63335
63336         * NEWS: Document stdlib change from 2007-02-18.
63337
63338 2007-03-17  Jim Meyering  <jim@meyering.net>
63339
63340         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
63341         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
63342         someone uses a name containing shell meta-characters.
63343         Reported by Alfred M. Szmidt.
63344
63345         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
63346
63347 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
63348
63349         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
63350         and copy gettext configuration files only if configure.ac contains
63351         a use of AM_GNU_GETTEXT_VERSION.
63352
63353 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
63354
63355         * build-aux/bootstrap (gnulib_name): New variable.
63356         (gnulib_tool_options): Use it.
63357
63358 2007-03-13  Simon Josefsson  <simon@josefsson.org>
63359
63360         * tests/test-des.c: Use new namespace.
63361
63362 2007-03-15  Bruno Haible  <bruno@clisp.org>
63363
63364         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
63365         Reported by James Youngman <jay@gnu.org>.
63366
63367 2007-03-15  Bruno Haible  <bruno@clisp.org>
63368
63369         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
63370         declared prototype. Needed with cc on OSF/1 5.1.
63371
63372 2007-03-15  Bruno Haible  <bruno@clisp.org>
63373
63374         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
63375         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
63376         (struct gl_list_implementation): Add dispose_fn argument to the
63377         'create_empty', 'create' methods.
63378         (struct gl_list_impl_base): Add field 'dispose_fn'.
63379         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
63380         argument.
63381         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
63382         dispose_fn argument.
63383         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
63384         dispose_fn on the dropped values.
63385         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
63386         dispose_fn argument.
63387         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
63388         dropped values.
63389         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
63390         (gl_tree_remove_node): Call dispose_fn on the dropped value.
63391         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
63392         (gl_tree_remove_node): Call dispose_fn on the dropped value.
63393         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
63394         argument.
63395         (gl_tree_list_free): Call dispose_fn on the dropped values.
63396         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
63397         the dropped values.
63398         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
63399         Add dispose_fn argument.
63400         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
63401         Call dispose_fn on the dropped values.
63402         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
63403         Add dispose_fn argument.
63404         (gl_sublist_create): Initialize the 'dispose_fn' field.
63405         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
63406         * tests/test-array_list.c (main): Update.
63407         * tests/test-carray_list.c (main): Update.
63408         * tests/test-avltree_list.c (main): Update.
63409         * tests/test-rbtree_list.c (main): Update.
63410         * tests/test-avltreehash_list.c (main): Update.
63411         * tests/test-rbtreehash_list.c (main): Update.
63412         * tests/test-linked_list.c (main): Update.
63413         * tests/test-linkedhash_list.c (main): Update.
63414         * tests/test-array_oset.c (main): Update.
63415
63416 2007-03-15  Bruno Haible  <bruno@clisp.org>
63417
63418         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
63419         (gl_oset_create_empty): Add dispose_fn argument.
63420         (struct gl_oset_implementation): Add dispose_fn argument to
63421         'create_empty' method.
63422         (struct gl_oset_impl_base): Add dispose_fn field.
63423         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
63424         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
63425         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
63426         values.
63427         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
63428         (gl_tree_oset_free): Call dispose_fn on the dropped values.
63429         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
63430         dropped value.
63431         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
63432         dropped value.
63433         * tests/test-array_oset.c (main): Update.
63434         * tests/test-avltree_oset.c (main): Update.
63435         * tests/test-rbtree_oset.c (main): Update.
63436         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
63437
63438 2007-03-13  Bruno Haible  <bruno@clisp.org>
63439
63440         * tests/test-stdbool.c (i): Update after last patch.
63441
63442 2007-03-12  Bruno Haible  <bruno@clisp.org>
63443
63444         * lib/quotearg.c: Include <wctype.h> early, before the definition of
63445         the iswprint macro. Needed on Solaris 2.5.1.
63446
63447 2007-03-12  Bruno Haible  <bruno@clisp.org>
63448
63449         * tests/test-printf-frexp.c (main): Declare x as volatile.
63450
63451 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63452
63453         * doc/gnulib.texi (Build robot for gnulib): New section.
63454
63455 2007-03-12  Jim Meyering  <jim@meyering.net>
63456
63457         * build-aux/bootstrap: New file.
63458         * build-aux/bootstrap.conf: New file, from coreutils.
63459
63460 2007-03-11  Bruno Haible  <bruno@clisp.org>
63461
63462         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
63463
63464 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63465
63466         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
63467         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
63468         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
63469
63470 2007-03-11  Bruno Haible  <bruno@clisp.org>
63471
63472         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
63473         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
63474
63475 2007-03-11  Bruno Haible  <bruno@clisp.org>
63476
63477         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
63478         formula. Needed for SunPRO C 5.0.
63479
63480 2007-03-11  Bruno Haible  <bruno@clisp.org>
63481
63482         * modules/long-options (Depends-on): Add getopt.
63483
63484 2007-03-11  Bruno Haible  <bruno@clisp.org>
63485
63486         * modules/modechange (Depends-on): Add stdbool.
63487
63488 2007-03-11  Bruno Haible  <bruno@clisp.org>
63489
63490         * modules/i-ring (Depends-on): Add stdbool.
63491
63492 2007-03-11  Bruno Haible  <bruno@clisp.org>
63493
63494         * modules/gc-des (Depends-on): Add stdbool.
63495
63496 2007-03-11  Bruno Haible  <bruno@clisp.org>
63497
63498         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
63499
63500 2007-03-11  Bruno Haible  <bruno@clisp.org>
63501
63502         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
63503
63504 2007-03-11  Bruno Haible  <bruno@clisp.org>
63505
63506         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
63507
63508 2007-03-11  Bruno Haible  <bruno@clisp.org>
63509
63510         * lib/vasnprintf.c (sprintf): Undefine.
63511
63512 2007-03-11  Bruno Haible  <bruno@clisp.org>
63513
63514         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
63515         initializers in SunPRO C and Compaq C compilers.
63516
63517 2007-03-11  Bruno Haible  <bruno@clisp.org>
63518
63519         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
63520         decrementing code ANSI C compliant.
63521
63522 2007-03-11  Bruno Haible  <bruno@clisp.org>
63523
63524         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
63525         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
63526
63527 2007-03-11  Bruno Haible  <bruno@clisp.org>
63528
63529         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
63530         <stdbool.h> substitute doesn't pass.
63531
63532 2007-03-11  Bruno Haible  <bruno@clisp.org>
63533
63534         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
63535
63536 2007-03-11  Bruno Haible  <bruno@clisp.org>
63537
63538         * gnulib-tool (func_create_megatestdir): Create also an autobuild
63539         script, for submission to autobuild.josefsson.org.
63540
63541 2007-03-10  Bruno Haible  <bruno@clisp.org>
63542
63543         * modules/canonicalize-lgpl-tests: New file.
63544         * tests/test-canonicalize-lgpl.sh: New file.
63545         * tests/test-canonicalize-lgpl.c: New file.
63546
63547         * modules/c-strcase-tests: New file.
63548         * tests/test-c-strcase.sh: New file.
63549         * tests/test-c-strcasecmp.c: New file.
63550         * tests/test-c-strncasecmp.c: New file.
63551
63552         * modules/atexit-tests: New file.
63553         * tests/test-atexit.sh: New file.
63554         * tests/test-atexit.c: New file.
63555
63556 2007-03-10  Bruno Haible  <bruno@clisp.org>
63557
63558         * tests/test-binary-io.sh: Use temporary filenames that are not so
63559         likely to clash with those of other tests (in a parallel make).
63560         * tests/test-binary-io.c: Likewise.
63561
63562 2007-03-10  Bruno Haible  <bruno@clisp.org>
63563
63564         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
63565         fallback; use #error instead.
63566         Suggested by Simon Josefsson.
63567
63568 2007-03-10  Bruno Haible  <bruno@clisp.org>
63569
63570         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
63571         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
63572         first and the last.
63573
63574 2007-03-10  Bruno Haible  <bruno@clisp.org>
63575
63576         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
63577
63578 2007-03-10  Bruno Haible  <bruno@clisp.org>
63579
63580         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
63581         "make distcheck".
63582         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
63583         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
63584         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
63585
63586 2007-03-10  Bruno Haible  <bruno@clisp.org>
63587
63588         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
63589         variable.
63590         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
63591         variable.
63592
63593 2007-03-09  Eric Blake  <ebb9@byu.net>
63594         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
63595
63596         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
63597         types are not being provided by gnulib.
63598         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
63599         types are supported.
63600
63601 2007-03-10  Bruno Haible  <bruno@clisp.org>
63602
63603         * lib/stdio_.h (__attribute__): New macro.
63604         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
63605         vsprintf): Specify __attribute__ __format__ for GCC.
63606         Suggested by Eric Blake.
63607
63608 2007-03-09  Bruno Haible  <bruno@clisp.org>
63609
63610         * modules/printf-posix-tests: New file.
63611         * tests/test-printf-posix.sh: New file.
63612         * tests/test-printf-posix.c: New file.
63613
63614         * modules/printf-posix: New file.
63615         * lib/printf.c: New file.
63616         * m4/printf-posix-rpl.m4: New file.
63617         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
63618         REPLACE_PRINTF.
63619         * lib/stdio_.h (printf): New declaration.
63620         (format, __format__, ____printf____, ____scanf____, ____strftime____,
63621         ____strfmon____): New macros.
63622         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
63623         REPLACE_PRINTF.
63624
63625 2007-03-09  Bruno Haible  <bruno@clisp.org>
63626
63627         * tests/test-vasnprintf-posix2.sh: New file.
63628         * tests/test-vasnprintf-posix2.c: New file.
63629         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
63630         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
63631         (Makefile.am): Activate test-vasnprintf-posix2.sh.
63632
63633         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
63634         a locale dependent decimal point, rather than always '.'.
63635
63636 2007-03-09  Eric Blake  <ebb9@byu.net>
63637
63638         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
63639         spite of platforms like Tandem/NSK that define it to -1.
63640
63641 2007-03-08  Bruno Haible  <bruno@clisp.org>
63642
63643         * modules/vprintf-posix-tests: New file.
63644         * tests/test-vprintf-posix.sh: New file.
63645         * tests/test-vprintf-posix.c: New file.
63646         * tests/test-printf-posix.h: New file.
63647
63648         * modules/vprintf-posix: New file.
63649         * lib/vprintf.c: New file.
63650         * m4/vprintf-posix.m4: New file.
63651         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
63652         REPLACE_VPRINTF.
63653         * lib/stdio_.h (vprintf): New declaration.
63654         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
63655         REPLACE_VPRINTF.
63656
63657 2007-03-08  Bruno Haible  <bruno@clisp.org>
63658
63659         * modules/fprintf-posix-tests: New file.
63660         * tests/test-fprintf-posix.sh: New file.
63661         * tests/test-fprintf-posix.c: New file.
63662
63663         * modules/fprintf-posix: New file.
63664         * lib/fprintf.c: New file.
63665         * m4/fprintf-posix.m4: New file.
63666         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
63667         REPLACE_FPRINTF.
63668         * lib/stdio_.h (fprintf): New declaration.
63669         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
63670         REPLACE_FPRINTF.
63671
63672 2007-03-08  Bruno Haible  <bruno@clisp.org>
63673
63674         * modules/vfprintf-posix-tests: New file.
63675         * tests/test-vfprintf-posix.sh: New file.
63676         * tests/test-vfprintf-posix.c: New file.
63677         * tests/test-fprintf-posix.h: New file.
63678         * tests/test-fprintf-posix.out: New file.
63679
63680         * modules/vfprintf-posix: New file.
63681         * lib/vfprintf.c: New file.
63682         * m4/vfprintf-posix.m4: New file.
63683         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
63684         REPLACE_VFPRINTF.
63685         * lib/stdio_.h (vfprintf): New declaration.
63686         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
63687         REPLACE_VFPRINTF.
63688
63689 2007-03-08  Bruno Haible  <bruno@clisp.org>
63690
63691         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
63692
63693 2007-03-08  Bruno Haible  <bruno@clisp.org>
63694
63695         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
63696         instead of 'expr' invocations.
63697         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63698         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63699         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63700         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63701         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63702         Suggested by Paul Eggert.
63703
63704 2007-03-08  Bruno Haible  <bruno@clisp.org>
63705
63706         * modules/fseterr-tests: New file.
63707         * tests/test-fseterr.c: New file.
63708
63709         * modules/fseterr: New file.
63710         * lib/fseterr.h: New file.
63711         * lib/fseterr.c: New file.
63712
63713 2007-03-08  Bruno Haible  <bruno@clisp.org>
63714
63715         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
63716         * lib/getopt_.h: Likewise.
63717         * lib/mbswidth.h: Likewise.
63718         * lib/setenv.h: Likewise.
63719         * lib/vasnprintf.h: Likewise.
63720         * lib/vasprintf.h: Likewise.
63721         * lib/verror.h: Likewise.
63722         * lib/xsetenv.h: Likewise.
63723         * lib/xvasprintf.h: Likewise.
63724
63725 2007-03-08  Jim Meyering  <jim@meyering.net>
63726
63727         * users.txt: Add parted.
63728
63729         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
63730
63731 2007-03-07  Bruno Haible  <bruno@clisp.org>
63732
63733         * m4/printf.m4: Make the shell script snippets copy&pastable.
63734
63735 2007-03-02  Bruno Haible  <bruno@clisp.org>
63736
63737         * lib/netinet_in_.h: New file.
63738         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
63739         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
63740         * modules/netinet_in (Files): Add lib/netinet_in_.h.
63741         (Depends-on): Add absolute-header.
63742         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
63743         into netinet/in.h.
63744
63745 2007-03-03  Bruno Haible  <bruno@clisp.org>
63746
63747         * lib/sys_select_.h: New file.
63748         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
63749         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
63750         * modules/sys_select (Files): Add lib/sys_select_.h.
63751         (Depends-on): Add absolute-header.
63752         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
63753         into sys/select.h.
63754
63755 2007-03-02  Bruno Haible  <bruno@clisp.org>
63756
63757         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
63758         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
63759         values.
63760         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
63761         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
63762         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
63763         * modules/sys_socket (Depends-on): Add absolute-header.
63764         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
63765         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
63766         (Include): Remove requirement of inclusion of <sys/types.h>.
63767
63768 2007-03-02  Bruno Haible  <bruno@clisp.org>
63769
63770         * lib/byteswap_.h (bswap_32): Fix formula.
63771
63772 2007-03-06  Bruno Haible  <bruno@clisp.org>
63773
63774         * modules/sprintf-posix-tests: New file.
63775         * tests/test-sprintf-posix.c: New file.
63776
63777         * modules/sprintf-posix: New file.
63778         * lib/sprintf.c: New file.
63779         * m4/sprintf-posix.m4: New file.
63780         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
63781         REPLACE_SPRINTF.
63782         * lib/stdio_.h (sprintf): New declaration.
63783         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
63784         REPLACE_SPRINTF.
63785
63786 2007-03-06  Bruno Haible  <bruno@clisp.org>
63787
63788         * modules/vsprintf-posix-tests: New file.
63789         * tests/test-vsprintf-posix.c: New file.
63790         * tests/test-sprintf-posix.h: New file.
63791
63792         * modules/vsprintf-posix: New file.
63793         * lib/vsprintf.c: New file.
63794         * m4/vsprintf-posix.m4: New file.
63795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
63796         REPLACE_VSPRINTF.
63797         * lib/stdio_.h (vsprintf): New declaration.
63798         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
63799         REPLACE_VSPRINTF.
63800
63801 2007-03-06  Bruno Haible  <bruno@clisp.org>
63802
63803         * modules/vsnprintf (Depend-on): Remove minmax.
63804
63805 2007-03-06  Bruno Haible  <bruno@clisp.org>
63806
63807         * modules/snprintf-posix-tests: New file.
63808         * tests/test-snprintf-posix.c: New file.
63809
63810         * modules/snprintf-posix: New file.
63811         * m4/snprintf-posix.m4: New file.
63812         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
63813         gl_FUNC_SNPRINTF.
63814         (gl_FUNC_SNPRINTF): Invoke it.
63815         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
63816         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
63817         is set.
63818         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
63819
63820 2007-03-06  Bruno Haible  <bruno@clisp.org>
63821
63822         * modules/vsnprintf-posix-tests: New file.
63823         * tests/test-vsnprintf-posix.c: New file.
63824         * tests/test-snprintf-posix.h: New file.
63825
63826         * modules/vsnprintf-posix: New file.
63827         * m4/vsnprintf-posix.m4: New file.
63828         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
63829         gl_FUNC_VSNPRINTF.
63830         (gl_FUNC_VSNPRINTF): Invoke it.
63831         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
63832         * lib/stdio_.h (vsnprintf): Define as a replacement if
63833         REPLACE_VSNPRINTF is set.
63834         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
63835
63836 2007-03-06  Bruno Haible  <bruno@clisp.org>
63837
63838         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
63839         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
63840
63841 2007-03-06  Bruno Haible  <bruno@clisp.org>
63842
63843         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
63844         (asinl): Declare also if HAVE_DECL_ASINL is set.
63845         (atanl): Declare also if HAVE_DECL_ATANL is set.
63846         (ceill): Declare also if HAVE_DECL_CEILL is set.
63847         (cosl): Declare also if HAVE_DECL_COSL is set.
63848         (expl): Declare also if HAVE_DECL_EXPL is set.
63849         (floorl): Declare also if HAVE_DECL_FLOORL is set.
63850         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
63851         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
63852         (logl): Declare also if HAVE_DECL_LOGL is set.
63853         (sinl): Declare also if HAVE_DECL_SINL is set.
63854         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
63855         (tanl): Declare also if HAVE_DECL_TANL is set.
63856         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
63857         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
63858         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
63859         declaration of frexpl, ldexpl.
63860         * modules/printf-frexpl (Depends-on): Add math.
63861         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
63862
63863 2007-03-05  Bruno Haible  <bruno@clisp.org>
63864
63865         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
63866         frexpl and ldexpl are declared.
63867         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
63868
63869 2007-03-05  Bruno Haible  <bruno@clisp.org>
63870
63871         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
63872         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
63873
63874 2007-03-05  Bruno Haible  <bruno@clisp.org>
63875
63876         * lib/stdio_.h: Include <stddef.h>.
63877
63878 2007-03-05  Bruno Haible  <bruno@clisp.org>
63879
63880         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
63881
63882 2007-03-05  Bruno Haible  <bruno@clisp.org>
63883
63884         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
63885         NetBSD 4, from Ralf Wildenhues.
63886
63887 2007-03-04  Bruno Haible  <bruno@clisp.org>
63888
63889         * lib/vasprintf.h: Update #if logic for the case when the functions
63890         exist but are overridden.
63891
63892 2007-03-04  Bruno Haible  <bruno@clisp.org>
63893
63894         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
63895         implementations: glibc-2.4 and MacOS X 10.3.
63896         * tests/test-vasnprintf-posix.c (test_function): Test also the case
63897         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
63898         * tests/test-vasprintf-posix.c (test_function): Likewise.
63899
63900 2007-03-04  Bruno Haible  <bruno@clisp.org>
63901
63902         * modules/vasprintf-posix-tests: New file.
63903         * tests/test-vasprintf-posix.c: New file.
63904
63905         * modules/vasprintf-posix: New file.
63906         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
63907         defined.
63908         * m4/vasprintf-posix.m4: New file.
63909         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
63910         gl_FUNC_VASPRINTF.
63911         (gl_FUNC_VASPRINTF): Invoke it.
63912         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
63913         here.
63914         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
63915
63916 2007-03-04  Bruno Haible  <bruno@clisp.org>
63917
63918         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
63919         REPLACE_GETTIMEOFDAY.
63920         * modules/sys_time (Makefile.am): Likewise.
63921         * m4/sys_time_h.m4: Likewise.
63922         * m4/gettimeofday.m4: Likewise.
63923
63924 2007-03-04  Bruno Haible  <bruno@clisp.org>
63925
63926         * modules/vasnprintf-posix-tests: New file.
63927         * tests/test-vasnprintf-posix.c: New file.
63928
63929         * modules/vasnprintf-posix: New file.
63930         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
63931         printf-frexpl.h.
63932         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
63933         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
63934         REPLACE_VASNPRINTF is defined.
63935         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
63936         gl_FUNC_VASNPRINTF.
63937         (gl_FUNC_VASNPRINTF): Invoke it.
63938         * m4/vasnprintf-posix.m4: New file.
63939         * m4/printf.m4: New file.
63940
63941 2007-03-04  Bruno Haible  <bruno@clisp.org>
63942
63943         Compile progreloc.c only if --enable-relocatable is specified.
63944         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
63945         if --enable-relocatable was specified.
63946         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
63947         lib_SOURCES.
63948
63949 2007-03-04  Jim Meyering  <jim@meyering.net>
63950
63951         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
63952         Use it consistently, rather than enumerating errno constants.
63953
63954 2007-03-04  Bruno Haible  <bruno@clisp.org>
63955
63956         * modules/xvasprintf-tests: New file.
63957         * tests/test-xvasprintf.c: New file.
63958
63959         * modules/vasprintf-tests: New file.
63960         * tests/test-vasprintf.c: New file.
63961
63962         * modules/vasnprintf-tests: New file.
63963         * tests/test-vasnprintf.c: New file.
63964
63965         * modules/vsnprintf-tests: New file.
63966         * tests/test-vsnprintf.c: New file.
63967
63968         * modules/snprintf-tests: New file.
63969         * tests/test-snprintf.c: New file.
63970
63971 2007-03-04  Bruno Haible  <bruno@clisp.org>
63972
63973         Compile relocatable.c only if --enable-relocatable is specified.
63974         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
63975         gl_RELOCATABLE_LIBRARY.
63976         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
63977         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
63978         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
63979         gl_RELOCATABLE_LIBRARY.
63980         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
63981         (Makefile.am): Remove lib_SOURCES.
63982         * modules/relocatable-lib-lgpl (configure.ac): Invoke
63983         gl_RELOCATABLE_LIBRARY.
63984         (Makefile.am): Remove lib_SOURCES.
63985         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
63986         always.
63987         * modules/relocatable-prog-wrapper (configure.ac): Invoke
63988         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
63989
63990 2007-03-04  Bruno Haible  <bruno@clisp.org>
63991
63992         * modules/argmatch-tests: New file.
63993         * tests/test-argmatch.c: New file.
63994
63995         * tests/test-allocsa.c (main): Halve the number of loop runs.
63996
63997         * modules/alloca-opt-tests: New file.
63998         * tests/test-alloca-opt.c: New file.
63999
64000 2007-03-04  Jim Meyering  <jim@meyering.net>
64001
64002         Work around difference between Linux ACLs and Solaris 10 ZFS.
64003         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
64004         for EINVAL.
64005
64006 2007-03-03  Bruno Haible  <bruno@clisp.org>
64007
64008         * modules/relocatable-prog (Depends-on): Add back progreloc's
64009         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
64010
64011 2007-03-03  Bruno Haible  <bruno@clisp.org>
64012
64013         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
64014         * modules/relocatable-lib: New file.
64015
64016 2007-03-03  Bruno Haible  <bruno@clisp.org>
64017
64018         * modules/relocatable-prog: Renamed from modules/relocatable.
64019         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
64020
64021 2007-03-03  Bruno Haible  <bruno@clisp.org>
64022
64023         * modules/relocatable-script (Files): Add doc/relocatable.texi,
64024         m4/relocatable-lib.m4.
64025         (Depends-on): Remove 'relocatable'.
64026         (configure.ac): Add gl_RELOCATABLE_NOP.
64027
64028 2007-03-03  Bruno Haible  <bruno@clisp.org>
64029
64030         * modules/relocatable-prog-wrapper: New file.
64031         * modules/relocatable (Depends-on): Add it. Remove all other
64032         dependencies except progname.
64033         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
64034
64035         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
64036         (gl_FUNC_STRERROR): Nop.
64037         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
64038
64039         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
64040         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
64041
64042         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
64043         (gl_FUNC_READLINK): Update.
64044
64045         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
64046
64047 2007-03-03  Bruno Haible  <bruno@clisp.org>
64048
64049         * lib/xreadlink.c: Include <unistd.h> unconditionally.
64050         * modules/xreadlink (Depends-on): Add unistd.
64051         * modules/xreadlink-with-size (Depends-on): Likewise.
64052
64053 2007-03-03  Bruno Haible  <bruno@clisp.org>
64054
64055         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
64056         extracted from gt_FUNC_SETENV.
64057         (gt_FUNC_SETENV): Remove macro.
64058         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
64059         remove gt_FUNC_SETENV.
64060
64061 2007-03-03  Bruno Haible  <bruno@clisp.org>
64062
64063         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
64064         ENABLE_RELOCATABLE here.
64065         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
64066
64067 2007-03-03  Bruno Haible  <bruno@clisp.org>
64068
64069         * modules/rbtreehash-list-tests (Depends-on): Add progname.
64070         * tests/test-rbtreehash_list.c: Include progname.h.
64071         (main): Call set_program_name.
64072
64073         * modules/rbtree-oset-tests (Depends-on): Add progname.
64074         * tests/test-rbtree_oset.c: Include progname.h.
64075         (main): Call set_program_name.
64076
64077         * modules/rbtree-list-tests (Depends-on): Add progname.
64078         * tests/test-rbtree_list.c: Include progname.h.
64079         (main): Call set_program_name.
64080
64081         * modules/linked-list-tests (Depends-on): Add progname.
64082         * tests/test-linked_list.c: Include progname.h.
64083         (main): Call set_program_name.
64084
64085 2007-03-03  Bruno Haible  <bruno@clisp.org>
64086
64087         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
64088         All uses of __restrict changed to _Restrict_.
64089         * lib/glob_.h (__restrict): Remove macro.
64090
64091 2007-03-02  Bruno Haible  <bruno@clisp.org>
64092
64093         * modules/gettext (configure.ac): Require gettext infrastructure
64094         from version 0.16.1.
64095
64096 2007-03-02  Bruno Haible  <bruno@clisp.org>
64097
64098         * modules/linkedhash-list-tests (Depends-on): Add progname.
64099         * tests/test-linkedhash_list.c: Include progname.h.
64100         (main): Call set_program_name.
64101
64102         * modules/carray-list-tests (Depends-on): Add progname.
64103         * tests/test-carray_list.c: Include progname.h.
64104         (main): Call set_program_name.
64105
64106         * modules/avltreehash-list-tests (Depends-on): Add progname.
64107         * tests/test-avltreehash_list.c: Include progname.h.
64108         (main): Call set_program_name.
64109
64110         * modules/avltree-oset-tests (Depends-on): Add progname.
64111         * tests/test-avltree_oset.c: Include progname.h.
64112         (main): Call set_program_name.
64113
64114         * modules/avltree-list-tests (Depends-on): Add progname.
64115         * tests/test-avltree_list.c: Include progname.h.
64116         (main): Call set_program_name.
64117
64118         * modules/array-oset-tests (Depends-on): Add progname.
64119         * tests/test-array_oset.c: Include progname.h.
64120         (main): Call set_program_name.
64121
64122         * modules/array-list-tests (Depends-on): Add progname.
64123         * tests/test-array_list.c: Include progname.h.
64124         (main): Call set_program_name.
64125
64126         * modules/argp-tests (Depends-on): Add progname.
64127         * tests/test-argp.c: Include argp.h first. Include progname.h.
64128         (main): Call set_program_name.
64129
64130 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
64131
64132         * doc/gnulib-tool.texi (Initial import): Reword description of
64133         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
64134         limited effect even if defined after the first system include.
64135
64136 2007-03-01  Bruno Haible  <bruno@clisp.org>
64137
64138         * build-aux/config.libpath: Update to libtool-1.5.22.
64139         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
64140
64141 2007-03-01  Bruno Haible  <bruno@clisp.org>
64142
64143         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
64144         foo_CFLAGS.
64145         Reported by Ralf Wildenhues.
64146
64147 2007-03-01  Bruno Haible  <bruno@clisp.org>
64148
64149         * build-aux/install-reloc: Remove object files left over by some
64150         compilers.
64151         Reported by Ralf Wildenhues.
64152
64153 2007-03-01  Bruno Haible  <bruno@clisp.org>
64154
64155         * build-aux/install-reloc: Break long lines.
64156
64157 2007-03-01  Bruno Haible  <bruno@clisp.org>
64158
64159         * doc/relocatable.texi: Document that it may not work on OpenBSD.
64160         Reported by Ralf Wildenhues.
64161
64162 2007-03-01  Bruno Haible  <bruno@clisp.org>
64163
64164         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
64165         include ordering constraints.
64166
64167 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64168
64169         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
64170         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
64171         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
64172         as another example.
64173         * lib/time_.h: Fix misspelling.
64174         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64175         Require gl_HEADER_TIME_H_DEFAULTS.
64176         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
64177         * m4/time_r.m4 (gl_TIME_R): Likewise.
64178         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
64179
64180 2007-03-01  Bruno Haible  <bruno@clisp.org>
64181
64182         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
64183         * m4/utimens.m4 (gl_UTIMENS): Likewise.
64184
64185 2007-03-01  Jim Meyering  <jim@meyering.net>
64186
64187         * modules/xreadlink (Maintainer): Add my name.
64188         * modules/xreadlink-with-size (Depends-on): Alphabetize.
64189
64190 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
64191             Bruno Haible  <bruno@clisp.org>
64192
64193         * build-aux/install-reloc: Compile also c-ctype.c.
64194         * build-aux/relocatable.sh.in: New file.
64195         * doc/relocatable.texi: New file.
64196         * doc/relocatable-maint.texi: New file.
64197         * doc/gnulib.texi: Include relocatable-maint.texi.
64198         * lib/progreloc.c: Include unistd.h unconditionally.
64199         * lib/relocwrapper.c: Include unistd.h unconditionally.
64200         Include c-ctype.h.
64201         (add_dotbin): Use c_tolower.
64202         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
64203         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
64204         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
64205         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
64206         to m4/relocatable-lib.m4.
64207         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
64208         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
64209         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
64210         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
64211         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
64212         * modules/relocatable: New file.
64213         * modules/relocatable-lib: New file.
64214         * modules/relocatable-script: New file.
64215
64216 2007-02-28  Bruno Haible  <bruno@clisp.org>
64217
64218         Import --enable-relocatable infrastructure.
64219         * build-aux/config.libpath: New file, from GNU gettext.
64220         * build-aux/install-reloc: New file, from GNU gettext.
64221         * build-aux/reloc-ldflags: New file, from GNU gettext.
64222         * lib/relocatable.h: New file, from GNU gettext.
64223         * lib/relocatable.c: New file, from GNU gettext.
64224         * lib/relocwrapper.c: New file, from GNU gettext.
64225         * m4/relocatable.m4: New file, from GNU gettext.
64226
64227 2007-02-28  Bruno Haible  <bruno@clisp.org>
64228
64229         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
64230
64231         * modules/xreadlink: New file, from GNU gettext with modifications.
64232         * lib/xreadlink.c: New file, from GNU gettext.
64233         * lib/xreadlink.h: Add comments.
64234         (xreadlink): New declaration.
64235
64236         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
64237         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
64238         lib/xreadlink-with-size.c.
64239         (configure.ac): Remove gl_XREADLINK invocation.
64240         (Makefile.am): Augment lib_SOURCES.
64241         * m4/xreadlink.m4: Remove file.
64242         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
64243         (xreadlink_with_size): Renamed from xreadink.
64244         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
64245         * modules/canonicalize (Depends-on): Replace xreadlink with
64246         xreadlink-with-size.
64247         * lib/canonicalize.c (canonicalize_filename_mode): Update.
64248
64249 2007-02-25  Jim Meyering  <jim@meyering.net>
64250
64251         * build-aux/announce-gen: When complaining about excess arguments,
64252         list them.
64253
64254 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
64255
64256         * README: Document signed integer overflow situation more
64257         accurately.
64258
64259 2007-02-25  Bruno Haible  <bruno@clisp.org>
64260
64261         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
64262         'a' or 'A' conversion.
64263
64264 2007-02-25  Bruno Haible  <bruno@clisp.org>
64265
64266         * modules/filename: Renamed from modules/pathname.
64267         (Files): Replace lib/pathname.h with lib/filename.h. Replace
64268         lib/concatpath.c with lib/concat-filename.c.
64269         (Makefile.am): Update.
64270         (Include): Replace pathname.h with filename.h.
64271         * lib/filename.h: Renamed from lib/pathname.h.
64272         (concatenated_filename): Renamed from concatenated_pathname.
64273         * lib/concat-filename.c: Renamed from lib/concatpath.c.
64274         (concatenated_filename): Renamed from concatenated_pathname.
64275         * lib/findprog.c: Include filename.h instead of pathname.h.
64276         (find_in_path): Update.
64277         * lib/javacomp.c: Include filename.h instead of pathname.h.
64278         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
64279         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
64280         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
64281         is_oldgcj_14_13_usable, is_javac_usable): Update.
64282         * lib/javaexec.c: Include filename.h instead of pathname.h.
64283         (execute_java_class): Update.
64284         * modules/findprog: Update.
64285         * modules/javacomp: Update.
64286         * modules/javaexec: Update.
64287         * MODULES.html.sh (File system functions): Add 'filename', remove
64288         'pathname'.
64289
64290 2007-02-25  Bruno Haible  <bruno@clisp.org>
64291
64292         * modules/printf-frexpl-tests: New file.
64293         * tests/test-printf-frexpl.c: New file.
64294
64295         * modules/printf-frexpl: New file.
64296         * lib/printf-frexpl.h: New file.
64297         * lib/printf-frexpl.c: New file.
64298         * m4/printf-frexpl.m4: New file.
64299
64300 2007-02-25  Bruno Haible  <bruno@clisp.org>
64301
64302         * modules/printf-frexp-tests: New file.
64303         * tests/test-printf-frexp.c: New file.
64304
64305         * modules/printf-frexp: New file.
64306         * lib/printf-frexp.h: New file.
64307         * lib/printf-frexp.c: New file.
64308         * m4/printf-frexp.m4: New file.
64309
64310 2007-02-25  Bruno Haible  <bruno@clisp.org>
64311
64312         Assume automake >= 1.10 for the tests.
64313         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
64314         * modules/arctwo-tests: Likewise.
64315         * modules/argp-tests: Likewise.
64316         * modules/avltree-list-tests: Likewise.
64317         * modules/avltree-oset-tests: Likewise.
64318         * modules/avltreehash-list-tests: Likewise.
64319         * modules/carray-list-tests: Likewise.
64320         * modules/crc-tests: Likewise.
64321         * modules/des-tests: Likewise.
64322         * modules/gc-arcfour-tests: Likewise.
64323         * modules/gc-arctwo-tests: Likewise.
64324         * modules/gc-des-tests: Likewise.
64325         * modules/gc-hmac-md5-tests: Likewise.
64326         * modules/gc-hmac-sha1-tests: Likewise.
64327         * modules/gc-md2-tests: Likewise.
64328         * modules/gc-md4-tests: Likewise.
64329         * modules/gc-md5-tests: Likewise.
64330         * modules/gc-pbkdf2-sha1-tests: Likewise.
64331         * modules/gc-rijndael-tests: Likewise.
64332         * modules/gc-sha1-tests: Likewise.
64333         * modules/gc-tests: Likewise.
64334         * modules/getaddrinfo-tests: Likewise.
64335         * modules/hmac-md5-tests: Likewise.
64336         * modules/hmac-sha1-tests: Likewise.
64337         * modules/linked-list-tests: Likewise.
64338         * modules/linkedhash-list-tests: Likewise.
64339         * modules/lock-tests: Likewise.
64340         * modules/md2-tests: Likewise.
64341         * modules/md4-tests: Likewise.
64342         * modules/md5-tests: Likewise.
64343         * modules/rbtree-list-tests: Likewise.
64344         * modules/rbtree-oset-tests: Likewise.
64345         * modules/rbtreehash-list-tests: Likewise.
64346         * modules/read-file-tests: Likewise.
64347         * modules/rijndael-tests: Likewise.
64348         * modules/stdint-tests: Likewise.
64349         * modules/tls-tests: Likewise.
64350
64351 2007-02-24  Bruno Haible  <bruno@clisp.org>
64352
64353         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
64354         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
64355         function; instead check whether isnan with a double argument links.
64356         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
64357         function; instead check whether isnan with a 'long double' argument
64358         links.
64359         Reported by Eric Blake <ebb9@byu.net>.
64360
64361 2007-02-24  Bruno Haible  <bruno@clisp.org>
64362
64363         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
64364         defined.
64365         * lib/isnanl.c: Remove all code. Just include isnan.c.
64366         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
64367
64368 2007-02-25  Jim Meyering  <jim@meyering.net>
64369
64370         Avoid conflicting types for 'unsetenv' on FreeBSD.
64371         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
64372         conflicting with FreeBSD's (5.0 and 6.1) function declaration
64373         in stdlib.h.
64374
64375 2007-02-24  Bruno Haible  <bruno@clisp.org>
64376
64377         * modules/isnanl-nolibm-tests: New file.
64378         * tests/test-isnanl.c: New file.
64379
64380         * modules/isnanl-nolibm: New file.
64381         * lib/isnanl.h: New file.
64382         * lib/isnanl.c: New file.
64383         * m4/isnanl.m4: New file.
64384
64385 2007-02-24  Bruno Haible  <bruno@clisp.org>
64386
64387         * modules/isnan-nolibm-tests: New file.
64388         * tests/test-isnan.c: New file.
64389
64390         * modules/isnan-nolibm: New file.
64391         * lib/isnan.h: New file.
64392         * lib/isnan.c: New file.
64393         * m4/isnan.m4: New file.
64394
64395 2007-02-24  Bruno Haible  <bruno@clisp.org>
64396
64397         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
64398         assume that an exponent fits in 20 bits.
64399
64400 2007-02-24  Jim Meyering  <jim@meyering.net>
64401
64402         * m4/regex.m4: Update the description of the configure-time option,
64403         --without-included-regex, to state accurately what the defaults are,
64404         and perhaps to give people an idea why using this option is risky.
64405
64406 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
64407
64408         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
64409         loops on small arguments.  This attempts to avoid the problem
64410         Bruno Haible reported for AIX 4.3.2 in
64411         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
64412
64413 2007-02-23  Bruno Haible  <bruno@clisp.org>
64414
64415         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
64416         Needed for help2man.
64417
64418 2007-02-23  Karl Berry  <karl@gnu.org>
64419
64420         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
64421         exists, foo.h should be cvs-ignored, not committed.
64422
64423 2007-02-23  Eric Blake  <ebb9@byu.net>
64424
64425         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
64426         * lib/stat-time.h (includes): Likewise.
64427         * lib/utimecmp.c (includes): Likewise.
64428         * lib/utimens.h (includes): Likewise.
64429         * lib/getdate.y (includes): Also include "timespec.h" for use
64430         internal to the module.
64431         * modules/utimens (Depends-on): Revert yesterday's patch.
64432         * modules/nanosleep (Depends-on): Add missing dependency.
64433
64434 2007-02-22  Bruno Haible  <bruno@clisp.org>
64435
64436         * lib/glob.c: Don't include getlogin_r.h.
64437
64438 2007-02-22  Jim Meyering  <jim@meyering.net>
64439
64440         * modules/utimens (Depends-on): Add timespec, required for
64441         utimens.h's inclusion of timespec.h.
64442
64443 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
64444
64445         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
64446         long unreadable paths in GNU/Linux.  Problem reported by Andreas
64447         Schwab in
64448         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
64449         I'll try to think of a better way to fix the Solaris problem.
64450
64451         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
64452         like glibc; on Solaris 10, it fails with errno == EINVAL.
64453         POSIX says the behavior is unspecified if the first argument is NULL,
64454         so play it safe and never pass NULL to the system getcwd.
64455
64456 2007-02-21  Jim Meyering  <jim@meyering.net>
64457
64458         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
64459         of gettimeofday.  It would conflict with the one now always
64460         provided via sys_time_.h.  Reported by Matthew Woehlke, as
64461         an IRIX 6.5 build failure.
64462
64463 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
64464
64465         Minor fixups to port to Solaris 10 with Sun C 5.8.
64466         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
64467         * modules/getcwd (Depends-on): Add dirfd.
64468         * lib/putenv.c (putenv): #undef it.
64469         (rpl_putenv): New decl.
64470         (malloc, free): Include <stdlib.h> rather than prototyping separately.
64471
64472 2007-02-20  Bruno Haible  <bruno@clisp.org>
64473
64474         * modules/stdio-tests: New file.
64475         * tests/test-stdio.c: New file.
64476
64477         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
64478         (Depends-on): Add stdio.
64479         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
64480         (Include): Use <stdio.h> instead of vsnprintf.h.
64481         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
64482         HAVE_DECL_VSNPRINTF.
64483         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
64484
64485         * modules/snprintf (Files): Remove lib/snprintf.h.
64486         (Depends-on): Add stdio.
64487         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
64488         (Include): Use <stdio.h> instead of snprintf.h.
64489         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
64490         HAVE_DECL_SNPRINTF.
64491         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
64492         * lib/getaddrinfo.c: Likewise.
64493
64494         * modules/stdio: New file.
64495         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
64496         * lib/snprintf.h: Remove file.
64497         * lib/vsnprintf.h: Remove file.
64498         * lib/.cppi-disable: Remove snprintf.h.
64499         * m4/stdio_h.m4: New file.
64500         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
64501
64502 2007-02-20  Jim Meyering  <jim@meyering.net>
64503
64504         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
64505         used by e.g., mingw.  From Bruno Haible.
64506
64507 2007-02-19  Bruno Haible  <bruno@clisp.org>
64508
64509         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
64510         warnings.
64511         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64512
64513 2007-02-19  Bruno Haible  <bruno@clisp.org>
64514
64515         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
64516         from mingw users.
64517
64518 2007-02-19  Bruno Haible  <bruno@clisp.org>
64519
64520         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
64521         warnings.
64522         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
64523
64524 2007-02-19  Jim Meyering  <jim@meyering.net>
64525
64526         Don't use FD after a successful "fdopendir (fd)".
64527         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
64528         Reset it by calling dirfd on the just-obtained DIR*.
64529
64530         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
64531         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
64532
64533 2007-02-18  Bruno Haible  <bruno@clisp.org>
64534
64535         * lib/readlink.c: Include <unistd.h>.
64536         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
64537         HAVE_READLINK.
64538         * modules/readlink (Depends-on): Add unistd.
64539         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64540         (Include): Add <unistd.h>.
64541
64542         * lib/getlogin_r.h: Remove file.
64543         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
64544         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
64545         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
64546         HAVE_DECL_GETLOGIN_R.
64547         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
64548         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64549         (Include): Use <unistd.h> instead of getlogin_r.h.
64550
64551         * lib/getcwd.h: Remove file.
64552         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
64553         * lib/xgetcwd.c: Likewise.
64554         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
64555         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
64556         * modules/getcwd (Files): Remove lib/getcwd.h.
64557         (Depends-on): Add unistd.
64558         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64559         (Include): Use <unistd.h> instad of getcwd.h.
64560
64561         * lib/ftruncate.c: Include <unistd.h> first.
64562         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
64563         Set HAVE_FTRUNCATE.
64564         * modules/ftruncate (Depends-on): Add unistd.
64565         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64566
64567         * lib/fchdir.c: Include <unistd.h> first.
64568         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
64569         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
64570         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
64571         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64572         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
64573
64574         * lib/dup2.c: Include <unistd.h> first.
64575         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
64576         HAVE_DUP2.
64577         * modules/dup2 (Depends-on): Add unistd.
64578         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64579
64580         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
64581         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
64582         REPLACE_CHOWN. Don't define chown as a macro here.
64583         * modules/chown (Depends-on): Add unistd.
64584         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64585
64586         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
64587         Add definition for GL_LINK_WARNING.
64588         (chown, dup2): New declarations.
64589         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
64590         link warning.
64591         (ftruncate): New declaration.
64592         (getcwd): New declaration, taken from old getcwd.h.
64593         (getlogin_r): New declaration, taken from old getlogin_r.h.
64594         (readlink): New declaration.
64595         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
64596         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
64597         (gl_PREREQ_UNISTD): Remove macro.
64598         (gl_UNISTD_MODULE_INDICATOR): New macro.
64599         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
64600         many new variables. Don't set UNISTD_H.
64601         * modules/unistd (Description): Change.
64602         (Depends-on): Add link-warning.
64603         (configure.ac): Update.
64604         (Makefile.am): Create unistd.h always. Substitute many new variables
64605         into it.
64606
64607 2007-02-18  Bruno Haible  <bruno@clisp.org>
64608
64609         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
64610         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
64611         HAVE_GETSUBOPT.
64612         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
64613         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
64614         * lib/getsubopt.h: Remove file.
64615         * modules/getsubopt (Files): Remove lib/getsubopt.h.
64616         (Depends-on): Add stdlib.
64617         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64618         (Includes): Use <stdlib.h> instead of getsubopt.h.
64619         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
64620         Set HAVE_GETSUBOPT.
64621         * lib/getsubopt.c: Don't include getsubopt.h.
64622
64623 2007-02-18  Bruno Haible  <bruno@clisp.org>
64624
64625         * modules/fchdir (Depends-on): Add dup2.
64626
64627 2007-02-18  Bruno Haible  <bruno@clisp.org>
64628
64629         * lib/stdlib_.h: Handle glibc's special invocation convention
64630         specially.
64631
64632 2007-02-18  Bruno Haible  <bruno@clisp.org>
64633
64634         * modules/stdlib-tests: New file.
64635         * tests/test-stdlib.c: New file.
64636
64637         * modules/mkstemp (Files): Remove lib/mkstemp.h.
64638         (Depends-on): Add stdlib.
64639         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64640         (Includes): Use <stdlib.h> instead of mkstemp.h.
64641         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64642         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
64643         * lib/mkstemp.c: Don't include mkstemp.h.
64644         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
64645         * lib/stdlib--.h: Don't include mkstemp.h.
64646
64647         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
64648         (Depends-on): Add stdlib.
64649         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64650         (Includes): Use <stdlib.h> instead of mkdtemp.h.
64651         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64652         HAVE_MKDTEMP.
64653         * lib/mkdtemp.c: Don't include mkdtemp.h.
64654         * lib/clean-temp.c: Don't include mkdtemp.h.
64655
64656         * modules/exit (Files): Remove lib/exit.h.
64657         (Depends-on): Add stdlib.
64658         (Makefile.am): Remove lib_SOURCES.
64659         (Include): Use <stdlib.h> instead of exit.h.
64660         * lib/argmatch.c: Don't include exit.h.
64661         * lib/execute.c: Likewise.
64662         * lib/pagealign_alloc.c: Likewise.
64663         * lib/pipe.c: Likewise.
64664         * lib/wait-process.c: Likewise.
64665         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
64666         * lib/exitfail.c: Likewise.
64667         * lib/savewd.c: Likewise.
64668         * lib/xsetenv.c: Likewise.
64669
64670         * modules/stdlib: New file.
64671         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
64672         and extra comments about mkstemp().
64673         * lib/exit.h: Remove file.
64674         * lib/mkdtemp.h: Remove file.
64675         * lib/mkstemp.h: Remove file.
64676         * m4/stdlib_h.m4: New file.
64677         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
64678
64679 2007-02-18  Bruno Haible  <bruno@clisp.org>
64680
64681         * modules/math-tests: New file.
64682         * tests/test-math.c: New file.
64683
64684         * modules/math: New file.
64685         * modules/mathl (Files): Remove lib/mathl.h.
64686         (Depends-on): Add math.
64687         (Makefile.am): Don't mention mathl.h.
64688         (Include): Use <math.h> instead of mathl.h.
64689         * lib/math_.h: New file.
64690         * lib/mathl.h: Remove file.
64691         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
64692         mathl.h.
64693         * lib/asinl.c: Likewise.
64694         * lib/atanl.c: Likewise.
64695         * lib/ceill.c: Likewise.
64696         * lib/cosl.c: Likewise.
64697         * lib/expl.c: Likewise.
64698         * lib/floorl.c: Likewise.
64699         * lib/frexpl.c: Likewise.
64700         * lib/ldexpl.c: Likewise.
64701         * lib/logl.c: Likewise.
64702         * lib/sincosl.c: Likewise.
64703         * lib/sinl.c: Likewise.
64704         * lib/sqrtl.c: Likewise.
64705         * lib/tanl.c: Likewise.
64706         * lib/trigl.c: Likewise.
64707         * m4/math_h.m4: New file.
64708         * MODULES.html.sh (Mathematics): Add math.
64709
64710 2007-02-17  Bruno Haible  <bruno@clisp.org>
64711
64712         * modules/wctype-tests: New file.
64713         * tests/test-wctype.c: New file.
64714
64715         * modules/wchar-tests: New file.
64716         * tests/test-wchar.c: New file.
64717
64718         * modules/unistd-tests: New file.
64719         * tests/test-unistd.c: New file.
64720
64721         * modules/time-tests: New file.
64722         * tests/test-time.c: New file.
64723
64724         * modules/sysexits-tests: New file.
64725         * tests/test-sysexits.c: New file.
64726
64727         * modules/sys_time-tests: New file.
64728         * tests/test-sys_time.c: New file.
64729
64730         * modules/sys_stat-tests: New file.
64731         * tests/test-sys_stat.c: New file.
64732
64733         * modules/sys_socket-tests: New file.
64734         * tests/test-sys_socket.c: New file.
64735
64736         * modules/sys_select-tests: New file.
64737         * tests/test-sys_select.c: New file.
64738
64739         * modules/string-tests: New file.
64740         * tests/test-string.c: New file.
64741
64742         * modules/stdbool-tests: New file.
64743         * tests/test-stdbool.c: New file.
64744
64745         * modules/netinet_in-tests: New file.
64746         * tests/test-netinet_in.c: New file.
64747
64748         * modules/inttypes-tests: New file.
64749         * tests/test-inttypes.c: New file.
64750
64751         * modules/fcntl-tests: New file.
64752         * tests/test-fcntl.c: New file.
64753
64754         * modules/byteswap-tests: New file.
64755         * tests/test-byteswap.c: New file.
64756
64757         * modules/arpa_inet-tests: New file.
64758         * tests/test-arpa_inet.c: New file.
64759
64760 2007-02-17  Bruno Haible  <bruno@clisp.org>
64761
64762         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
64763         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
64764         if the corresponding module is not enabled. Emit link warnings if
64765         the function is used nevertheless.
64766         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
64767         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
64768         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
64769         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
64770         * modules/inttypes (Depends-on): Add link-warning.
64771         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64772         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
64773         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
64774         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
64775         * modules/imaxdiv (configure.ac): Likewise.
64776         * modules/strtoimax (configure.ac): Likewise.
64777         * modules/strtoumax (configure.ac): Likewise.
64778
64779 2007-02-17  Bruno Haible  <bruno@clisp.org>
64780
64781         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
64782         gl_STRING_MODULE_INDICATOR_DEFAULTS.
64783         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
64784         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
64785
64786 2007-02-17  Bruno Haible  <bruno@clisp.org>
64787
64788         * modules/link-warning: New file.
64789         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
64790         * lib/string_.h (GL_LINK_WARNING): Remove definition.
64791         * modules/string (Depends-on): Add link-warning.
64792         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64793         string.h.
64794         * MODULES.html.sh (Support for building libraries and executables): Add
64795         link-warning.
64796
64797 2007-02-17  Bruno Haible  <bruno@clisp.org>
64798
64799         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
64800         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
64801         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
64802         long lines.
64803
64804 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
64805             Bruno Haible  <bruno@clisp.org>
64806
64807         * modules/tmpfile: New file.
64808         * lib/tmpfile.c: New file.
64809         * m4/tmpfile.m4: New file.
64810         * MODULES.html.sh (func_all_modules): New section "Input/output".
64811
64812 2007-02-15  Bruno Haible  <bruno@clisp.org>
64813
64814         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
64815         (supports_delete_on_close): New function.
64816         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
64817
64818 2007-02-14  Bruno Haible  <bruno@clisp.org>
64819
64820         * modules/mbspcasecmp-tests: New file.
64821         * tests/test-mbspcasecmp.sh: New file.
64822         * tests/test-mbspcasecmp.c: New file.
64823
64824         New module mbspcasecmp.
64825         * modules/mbspcasecmp: New file.
64826         * lib/mbspcasecmp.c: New file.
64827         * lib/string_.h (strncasecmp): Change warning message.
64828         (mbspcasecmp): New declaration.
64829         * m4/mbspcasecmp.m4: New file.
64830         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64831         GNULIB_MBSPCASECMP.
64832         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
64833         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
64834
64835 2007-02-14  Bruno Haible  <bruno@clisp.org>
64836
64837         * modules/mbsncasecmp-tests: New file.
64838         * tests/test-mbsncasecmp.sh: New file.
64839         * tests/test-mbsncasecmp.c: New file.
64840
64841         New module mbsncasecmp.
64842         * modules/mbsncasecmp: New file.
64843         * lib/mbsncasecmp.c: New file.
64844         * lib/string_.h (mbsncasecmp): New declaration.
64845         * m4/mbsncasecmp.m4: New file.
64846         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64847         GNULIB_MBSNCASECMP.
64848         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
64849         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
64850
64851 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64852
64853         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
64854         Verify that it doesn't overlap with our flags.
64855         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
64856         do not have the desired effect in multibyte locales; instead, use
64857         mbscasecmp.
64858         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
64859         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
64860         we don't require GNU fnmatch ourselves (if our users require it, they
64861         should do so explicitly).
64862
64863         Fix regex code so it doesn't rely on strcasecmp.
64864         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
64865         Otherwise, include gnulib's langinfo.h.
64866         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
64867         undesirable behavior in non-C locales.  Instead, rely on localecharset.
64868         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
64869         * modules/regex (FILES): Remove m4/codeset.m4.
64870         (Depends-on): Add localcharset.  Remove strcase.
64871
64872 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64873
64874         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
64875         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
64876
64877 2007-02-13  Bruno Haible  <bruno@clisp.org>
64878
64879         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
64880         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64881
64882 2007-02-12  Bruno Haible  <bruno@clisp.org>
64883
64884         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64885         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
64886         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
64887         time warning rather than a link error.
64888
64889 2007-02-12  Bruno Haible  <bruno@clisp.org>
64890
64891         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
64892         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64893         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64894
64895 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64896
64897         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
64898         args, not 2.
64899
64900 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64901
64902         New module 'time', so that apps can include <time.h> as per
64903         POSIX and GNU instead of separate include files like time_r.h
64904         and timegm.h.  This implementation tries out a simpler approach
64905         for replacing decls in standard include files (as compared to
64906         the string module), somewhat as an experiment.
64907
64908         * config/srclist.txt: Comment out mktime.c for now.
64909         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
64910         since it doesn't apply any more.  Use generic wording instead.
64911         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
64912         'time'.
64913         * lib/time_.h, m4/time_h.m4, modules/time: New files.
64914         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
64915         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
64916         Don't include <sys/types.h>; no longer needed since we assume C89.
64917         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
64918         * lib/strftime.c: Likewise.
64919         * lib/time_r.c: Likewise.
64920         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
64921         * lib/nanosleep.c: Include <time.h> first, to check interface.
64922         * lib/strptime.c: Likewise.
64923         * lib/time_r.c: Likewise.
64924         * lib/timegm.c: Likewise.
64925         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
64926         needed.
64927         * lib/timegm.c: Don't include timegm.h; no longer needed.
64928         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
64929         time.h now handles any problems in that area.
64930         (struct timespec, nanosleep): Remove; time.h now arranges for these.
64931         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
64932         that time.h defines struct timespec.
64933         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
64934         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
64935         handles that.
64936         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
64937         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
64938         needed.  Set REPLACE_LOCALTIME.
64939         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
64940         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
64941         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
64942         nanosleep; time_h.m4 now does that.  Don't require
64943         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
64944         module handles this now.
64945         * modules/getdate (Depends-on): Remove timespec.  Add time.
64946         * modules/nanosleep (Depends-on): Likewise.
64947         * modules/stat-time (Depends-on): Likewise.
64948         * modules/nanosleep (Include): Include time.h, not timespec.h.
64949         * modules/strptime (Files): Remove lib/strptime.h.
64950         (Depends-on): Add extensions, time.
64951         (Include): Include time.h, not strptime.h.
64952         * modules/time_r (Files): Remove lib/time_r.h.
64953         (Depends-on): Add time.
64954         (Include): Include time.h, not time_r.h.
64955         * modules/timegm: Likewise.
64956         * modules/timespec (Description): Now does timespec-related decls
64957         of our own, instead of struct timespec itself.
64958         (Depends-on): Add time; remove extensions.
64959         (Maintainer): Add self.
64960         * modules/utimecmp (Depends-on): Add time; remove timespec.
64961         * modules/utimens (Depends-on): Likewise.
64962         * modules/xnanosleep (Depends-on): Likewise.
64963
64964 2007-02-11  Bruno Haible  <bruno@clisp.org>
64965
64966         * lib/c-strstr.c: Include allocsa.h.
64967         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64968         * lib/c-strcasestr.c: Include allocsa.h.
64969         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64970         * lib/strcasestr.c: Include allocsa.h.
64971         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64972         * lib/mbsstr.c: Include allocsa.h.
64973         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64974         allocsa/freesa instead of malloc/free.
64975         * lib/mbscasestr.c: Include allocsa.h.
64976         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64977         allocsa/freesa instead of malloc/free.
64978         * modules/c-strstr (Depends-on): Add allocsa.
64979         * modules/c-strcasestr (Depends-on): Likewise.
64980         * modules/strcasestr (Depends-on): Likewise.
64981         * modules/mbsstr (Depends-on): Likewise.
64982         * modules/mbscasestr (Depends-on): Likewise.
64983
64984 2007-02-11  Bruno Haible  <bruno@clisp.org>
64985
64986         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
64987
64988         * modules/mbsspn-tests: New file.
64989         * tests/test-mbsspn.sh: New file.
64990         * tests/test-mbsspn.c: New file.
64991
64992 2007-02-11  Bruno Haible  <bruno@clisp.org>
64993
64994         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
64995
64996         * modules/mbspbrk-tests: New file.
64997         * tests/test-mbspbrk.sh: New file.
64998         * tests/test-mbspbrk.c: New file.
64999
65000 2007-02-11  Bruno Haible  <bruno@clisp.org>
65001
65002         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
65003         unneeded cast.
65004
65005         * modules/mbscspn-tests: New file.
65006         * tests/test-mbscspn.sh: New file.
65007         * tests/test-mbscspn.c: New file.
65008
65009 2007-02-11  Bruno Haible  <bruno@clisp.org>
65010
65011         * modules/mbscasecmp-tests: New file.
65012         * tests/test-mbscasecmp.sh: New file.
65013         * tests/test-mbscasecmp.c: New file.
65014
65015 2007-02-11  Bruno Haible  <bruno@clisp.org>
65016
65017         Ensure O(n) worst-case complexity of mbscasestr.
65018         * lib/mbscasestr.c: Include stdbool.h.
65019         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
65020         functions.
65021         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
65022         the bookkeeping indicates that it's worth it.
65023         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
65024
65025         * modules/mbscasestr-tests: New file.
65026         * tests/test-mbscasestr1.c: New file.
65027         * tests/test-mbscasestr2.sh: New file.
65028         * tests/test-mbscasestr2.c: New file.
65029         * tests/test-mbscasestr3.sh: New file.
65030         * tests/test-mbscasestr3.c: New file.
65031         * tests/test-mbscasestr4.sh: New file.
65032         * tests/test-mbscasestr4.c: New file.
65033         * m4/locale-tr.m4: New file.
65034
65035 2007-02-11  Bruno Haible  <bruno@clisp.org>
65036
65037         Ensure O(n) worst-case complexity of mbsstr.
65038         * lib/mbsstr.c: Include stdbool.h.
65039         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
65040         functions.
65041         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
65042         bookkeeping indicates that it's worth it.
65043         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
65044
65045         * modules/mbsstr-tests: New file.
65046         * tests/test-mbsstr1.c: New file.
65047         * tests/test-mbsstr2.sh: New file.
65048         * tests/test-mbsstr2.c: New file.
65049         * tests/test-mbsstr3.sh: New file.
65050         * tests/test-mbsstr3.c: New file.
65051         * m4/locale-fr.m4: New file.
65052
65053 2007-02-11  Bruno Haible  <bruno@clisp.org>
65054
65055         * lib/mbsrchr.c (mbsrchr): Fix bug.
65056
65057         * modules/mbsrchr-tests: New file.
65058         * tests/test-mbsrchr.sh: New file.
65059         * tests/test-mbsrchr.c: New file.
65060
65061 2007-02-11  Bruno Haible  <bruno@clisp.org>
65062
65063         * lib/mbschr.c (mbschr): Fix bug.
65064
65065         * modules/mbschr-tests: New file.
65066         * tests/test-mbschr.sh: New file.
65067         * tests/test-mbschr.c: New file.
65068         * m4/locale-zh.m4: New file.
65069
65070 2007-02-11  Bruno Haible  <bruno@clisp.org>
65071
65072         Support for copying multibyte string iterators.
65073         * lib/mbiter.h: Include <string.h>.
65074         (mbiter_multi_copy): New function.
65075         (mbi_copy): New macro.
65076         * lib/mbuiter.h: Include <string.h>.
65077         (mbuiter_multi_copy): New function.
65078         (mbui_copy): New macro.
65079
65080 2007-02-11  Bruno Haible  <bruno@clisp.org>
65081
65082         New module mbslen.
65083         * modules/mbslen: New file.
65084         * lib/mbslen.c: New file.
65085         * lib/string_.h (mbslen): New declaration.
65086         * m4/mbslen.m4: New file.
65087         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65088         GNULIB_MBSLEN.
65089         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
65090         * MODULES.html.sh (Internationalization functions): Add mbslen.
65091
65092 2007-02-11  Bruno Haible  <bruno@clisp.org>
65093
65094         Ensure O(n) worst-case complexity of strcasestr substitute.
65095         * lib/strcasestr.c: Include stdbool.h.
65096         (knuth_morris_pratt): New function.
65097         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
65098         bookkeeping indicates that it's worth it.
65099         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
65100
65101         * modules/strcasestr-tests: New file.
65102         * tests/test-strcasestr.c: New file.
65103
65104 2007-02-11  Bruno Haible  <bruno@clisp.org>
65105
65106         Ensure O(n) worst-case complexity of c_strcasestr.
65107         * lib/c-strcasestr.c: Include stdbool.h, string.h.
65108         (knuth_morris_pratt): New function.
65109         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
65110         the bookkeeping indicates that it's worth it.
65111         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
65112
65113         * modules/c-strcasestr-tests: New file.
65114         * tests/test-c-strcasestr.c: New file.
65115
65116 2007-02-11  Bruno Haible  <bruno@clisp.org>
65117
65118         Ensure O(n) worst-case complexity of c_strstr.
65119         * lib/c-strstr.c: Include stdbool.h, string.h.
65120         (knuth_morris_pratt): New function.
65121         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
65122         bookkeeping indicates that it's worth it.
65123         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
65124
65125         * lib/c-strstr.c: Complete rewrite for maintainability.
65126
65127         * modules/c-strstr-tests: New file.
65128         * tests/test-c-strstr.c: New file.
65129
65130 2007-02-11  Bruno Haible  <bruno@clisp.org>
65131
65132         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
65133         5.2.1 and earlier, whereby \055 was treated just like the range
65134         delimiter '-'.
65135         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
65136
65137 2007-02-08  Bruno Haible  <bruno@clisp.org>
65138
65139         * modules/regex (Depends-on): Add stdbool.
65140         Reported by Dalibor Topic <robilad@kaffe.org>.
65141
65142 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
65143
65144         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
65145         Prefer returning from main to exiting from it.
65146         Remove unnecessary parens after sizeof.
65147
65148 2007-02-05  Bruno Haible  <bruno@clisp.org>
65149
65150         New module mbssep.
65151         * modules/mbssep: New file.
65152         * lib/mbssep.c: New file.
65153         * lib/string_.h (strsep): Add a conditional link warning.
65154         (mbssep): New declaration.
65155         * m4/mbssep.m4: New file.
65156         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65157         GNULIB_MBSSEP.
65158         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
65159         * MODULES.html.sh (Internationalization functions): Add mbssep.
65160
65161 2007-02-05  Bruno Haible  <bruno@clisp.org>
65162
65163         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
65164         Optimize search in case of 1 delimiter.
65165
65166 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
65167
65168         * lib/acl.h: Include sys/types.h before sys/acl.h.
65169
65170 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
65171
65172         Merge upstream fix for glibc bugzilla #3957:
65173
65174         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
65175
65176         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
65177         bit for RE_HAT_LISTS_NOT_NEWLINE.
65178         (build_charclass_op): Remove bogus comment.
65179
65180 2007-02-05  Simon Josefsson  <simon@josefsson.org>
65181
65182         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
65183
65184 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
65185
65186         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
65187         * lib/memmem.c [!defined _LIBC]: Include config.h.
65188
65189 2007-02-04  Bruno Haible  <bruno@clisp.org>
65190
65191         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
65192         warning message.
65193
65194 2007-02-04  Bruno Haible  <bruno@clisp.org>
65195
65196         New module mbstok_r.
65197         * modules/mbstok_r: New file.
65198         * lib/mbstok_r.c: New file.
65199         * lib/string_.h (strtok_r): Change argument names to match the
65200         comments. Add a conditional link warning.
65201         (mbstok_r): New declaration.
65202         * m4/mbstok_r.m4: New file.
65203         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65204         GNULIB_MBSTOK_R.
65205         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
65206         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
65207
65208 2007-02-04  Bruno Haible  <bruno@clisp.org>
65209
65210         New module mbsspn.
65211         * modules/mbsspn: New file.
65212         * lib/mbsspn.c: New file.
65213         * lib/string_.h (strspn): Add a conditional link warning.
65214         (mbsspn): New declaration.
65215         * m4/mbsspn.m4: New file.
65216         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65217         GNULIB_MBSSPN.
65218         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
65219         * MODULES.html.sh (Internationalization functions): Add mbsspn.
65220
65221 2007-02-04  Bruno Haible  <bruno@clisp.org>
65222
65223         New module mbspbrk.
65224         * modules/mbspbrk: New file.
65225         * lib/mbspbrk.c: New file.
65226         * lib/string_.h (strpbrk): Add a conditional link warning.
65227         (mbspbrk): New declaration.
65228         * m4/mbspbrk.m4: New file.
65229         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65230         GNULIB_MBSPBRK.
65231         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
65232         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
65233
65234 2007-02-04  Bruno Haible  <bruno@clisp.org>
65235
65236         New module mbscspn.
65237         * modules/mbscspn: New file.
65238         * lib/mbscspn.c: New file.
65239         * lib/string_.h (strcspn): Add a conditional link warning.
65240         (mbscspn): New declaration.
65241         * m4/mbscspn.m4: New file.
65242         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65243         GNULIB_MBSCSPN.
65244         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
65245         * MODULES.html.sh (Internationalization functions): Add mbscspn.
65246
65247 2007-02-04  Bruno Haible  <bruno@clisp.org>
65248
65249         New module mbscasestr, reduced goal of strcasestr.
65250         * modules/mbscasestr: New file.
65251         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
65252         (mbscasestr): Renamed from strcasestr.
65253         * lib/strcasestr.c: Don't include mbuiter.h.
65254         (strcasestr): Remove support for multibyte locales.
65255         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
65256         Change the conditional link warning.
65257         (mbscasestr): New declaration.
65258         * m4/mbscasestr.m4: New file.
65259         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
65260         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
65261         REPLACE_STRCASESTR.
65262         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
65263         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65264         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
65265         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
65266         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
65267         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
65268         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
65269         (Depends-on): Remove mbuiter.
65270         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
65271
65272 2007-02-04  Bruno Haible  <bruno@clisp.org>
65273
65274         Simplify handling of strncasecmp.
65275         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
65276         the conditional link warning.
65277         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65278         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
65279         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
65280         * modules/strcase (configure.ac): Don't invoke
65281         gl_STRING_MODULE_INDICATOR.
65282         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
65283
65284 2007-02-04  Bruno Haible  <bruno@clisp.org>
65285
65286         New module mbscasecmp, reduced goal of strcasecmp.
65287         * modules/mbscasecmp: New file.
65288         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
65289         (mbscasecmp): Renamed from strcasecmp.
65290         * lib/strcasecmp.c: Don't include mbuiter.h.
65291         (strcasecmp): Remove support for multibyte locales.
65292         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
65293         Change the conditional link warning.
65294         (mbscasecmp): New declaration.
65295         * m4/mbscasecmp.m4: New file.
65296         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
65297         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
65298         REPLACE_STRCASECMP.
65299         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
65300         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65301         GNULIB_MBSCASECMP.
65302         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
65303         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
65304         * modules/strcase (Files): Remove m4/mbrtowc.m4.
65305         (Depends-on): Remove mbuiter.
65306         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
65307
65308 2007-02-04  Bruno Haible  <bruno@clisp.org>
65309
65310         New module mbsstr. Remove module strstr.
65311         * modules/mbsstr: New file.
65312         * modules/strstr: Remove file.
65313         * lib/mbsstr.c: Renamed from lib/strstr.c.
65314         (mbsstr): Renamed from strstr.
65315         * lib/string_.h (strstr): Remove declaration. Change the conditional
65316         link warning.
65317         (mbsstr): New declaration.
65318         * m4/mbsstr.m4: New file.
65319         * m4/strstr.m4: Remove file.
65320         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
65321         REPLACE_STRSTR.
65322         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
65323         Don't initialize GNULIB_STRSTR.
65324         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
65325         substitute GNULIB_STRSTR and REPLACE_STRSTR.
65326         * MODULES.html.sh (Internationalization functions): Add mbsstr.
65327         (Support for systems lacking ANSI C 89): Remove strstr.
65328
65329 2007-02-04  Bruno Haible  <bruno@clisp.org>
65330
65331         New module mbsrchr.
65332         * modules/mbsrchr: New file.
65333         * lib/mbsrchr.c: New file.
65334         * lib/string_.h (strrchr): Add a conditional link warning.
65335         (mbsrchr): New declaration.
65336         * m4/mbsrchr.m4: New file.
65337         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65338         GNULIB_MBSRCHR.
65339         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
65340         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
65341
65342 2007-02-04  Bruno Haible  <bruno@clisp.org>
65343
65344         New module mbschr.
65345         * modules/mbschr: New file.
65346         * lib/mbschr.c: New file.
65347         * lib/string_.h (strchr): Add a conditional link warning.
65348         (mbschr): New declaration.
65349         * m4/mbschr.m4: New file.
65350         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65351         GNULIB_MBSCHR.
65352         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
65353         * MODULES.html.sh (Internationalization functions): Add mbschr.
65354
65355 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
65356
65357         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
65358
65359         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
65360
65361 2007-02-04  Bruno Haible  <bruno@clisp.org>
65362
65363         New module description section 'configure.ac-early'.
65364         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
65365         (func_get_autoconf_early_snippet): New function.
65366         (func_import, func_create_testdir): Use it. Remove special cases for
65367         modules 'extensions' and 'lock'.
65368         * modules/extensions (configure.ac-early): Require
65369         gl_USE_SYSTEM_EXTENSIONS.
65370         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
65371
65372 2007-02-04  Bruno Haible  <bruno@clisp.org>
65373
65374         Make use of gcj-4.3's -fsource and -ftarget option.
65375         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
65376         and if so try the options -fsource and -ftarget.
65377         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
65378         source_version, ftarget_option, target_version arguments.
65379         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
65380         (is_envjavac_oldgcj_14_14_usable): Renamed from
65381         is_envjavac_gcj_14_14_usable.
65382         (is_envjavac_oldgcj_14_13_usable): Renamed from
65383         is_envjavac_gcj_14_13_usable.
65384         (is_gcj_present): Update.
65385         (is_gcj_43, is_gcj43_usable): New functions.
65386         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
65387         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
65388         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
65389         try the options -fsource and -ftarget.
65390
65391 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65392
65393         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
65394         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
65395         larger value.
65396
65397 2007-02-03  Jim Meyering  <jim@meyering.net>
65398
65399         Give tools a better chance to allocate space for very large buffers.
65400         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
65401
65402         Make pwd and readlink work also when run with an unreadable parent dir
65403         on systems with openat support.
65404         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
65405         provided getcwd function, even when we have openat support.
65406         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
65407
65408 2007-02-02  Bruno Haible  <bruno@clisp.org>
65409
65410         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
65411         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
65412         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
65413         portability problems if one of these functions is only used on specific
65414         platforms.
65415         Reported by Paul Eggert.
65416
65417 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
65418
65419         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
65420         is causing more trouble than it's curing.
65421         * lib/regex_internal.h (__mempcpy): Remove.
65422         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
65423         (and make the code a tad smaller to boot).
65424         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
65425
65426 2007-02-02  Jim Meyering  <jim@meyering.net>
65427
65428         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
65429         section, not in the Makefile.am: one.
65430
65431 2007-02-02  Eric Blake  <ebb9@byu.net>
65432
65433         * lib/strchrnul.c: Always include config.h first.
65434
65435         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
65436         gnulib strstr is not necessary here.
65437
65438 2007-02-02  Simon Josefsson  <simon@josefsson.org>
65439
65440         * m4/socklen.m4: Fix typo.
65441
65442 2007-02-02  Eric Blake  <ebb9@byu.net>
65443
65444         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
65445         * modules/netinet_in (Makefile.am): Likewise.
65446
65447 2007-02-01  Bruno Haible  <bruno@clisp.org>
65448
65449         * lib/string_.h (GL_LINK_WARNING): New macro.
65450         (strcasecmp, strstr, strcasestr): If provided by the system,
65451         conditionally define as a macro that leads to a warning instead of to
65452         an error.
65453         (strncasecmp): Conditionally define as a macro that leads to a warning.
65454
65455 2007-02-01  Karl Berry  <karl@gnu.org>
65456
65457         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
65458
65459 2007-02-01  Bruno Haible  <bruno@clisp.org>
65460
65461         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
65462         renamings.
65463
65464 2007-02-01  Eric Blake  <ebb9@byu.net>
65465
65466         * modules/regex (Depends-on): Revert dependence on mempcpy.
65467         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
65468         module's definition of mempcpy.
65469         Reported by Paul Eggert.
65470
65471 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
65472
65473         * lib/string_.h: If the gnulib module XYZ is not present, undefine
65474         the symbol XYZ before redefining it.  This fixes a problem with
65475         programs that don't use XYZ, when compiled on systems that define
65476         XYZ to something else.
65477
65478 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
65479
65480         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
65481         occurs when "mkdir -m foo" creates a setgid directory that is (1)
65482         writeable to group or other and (2) is intended to have a special
65483         mode bit that is set or cleared.  In such a case, the directory
65484         should be neither group- nor other-writeable until the special
65485         mode bits are right.
65486
65487 2007-01-31  Eric Blake  <ebb9@byu.net>
65488
65489         * modules/mountlist (Depends-on): Add strstr.
65490
65491         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
65492         bug.
65493         * modules/string (Makefile.am): Remove redundant replacement.
65494         * modules/regex (Depends-on): Add mempcpy.
65495
65496 2007-01-31  Bruno Haible  <bruno@clisp.org>
65497
65498         New module description field 'Link'.
65499         * gnulib-tool (func_usage): Document --extract-link-directive.
65500         (sed_extract_prog): Recognize 'Link' directive.
65501         (func_get_link_directive): New function.
65502         (func_import): Show summary of link directives.
65503         Handle --extract-link-directive option.
65504         * modules/acl (Link): New section.
65505         * modules/clock-time (Link): New section.
65506         * modules/euidaccess (Link): New section.
65507         * modules/gettext (Link): New section.
65508         * modules/iconv (Link): New section.
65509         * modules/lock (Link): New section.
65510         * modules/nanosleep (Link): New section.
65511         * modules/readline (Link): New section.
65512
65513 2007-01-27  Bruno Haible  <bruno@clisp.org>
65514
65515         Enforce the use of gnulib modules for unportable <string.h> functions.
65516         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
65517         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
65518         (gl_HEADER_STRING_H_BODY): Require it.
65519         * lib/string_.h: If the gnulib module XYZ is not present, redefine
65520         the symbol XYZ to one that gives a link error.
65521         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
65522         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
65523         * modules/mempcpy (configure.ac): Likewise.
65524         * modules/memrchr (configure.ac): Likewise.
65525         * modules/stpcpy (configure.ac): Likewise.
65526         * modules/stpncpy (configure.ac): Likewise.
65527         * modules/strcase (configure.ac): Likewise.
65528         * modules/strcasestr (configure.ac): Likewise.
65529         * modules/strchrnul (configure.ac): Likewise.
65530         * modules/strdup (configure.ac): Likewise.
65531         * modules/strndup (configure.ac): Likewise.
65532         * modules/strnlen (configure.ac): Likewise.
65533         * modules/strpbrk (configure.ac): Likewise.
65534         * modules/strsep (configure.ac): Likewise.
65535         * modules/strstr (configure.ac): Likewise.
65536         * modules/strtok_r (configure.ac): Likewise.
65537
65538 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
65539
65540         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
65541
65542 2007-01-30  Jim Meyering  <jim@meyering.net>
65543
65544         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
65545
65546 2007-01-29  Bruno Haible  <bruno@clisp.org>
65547
65548         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
65549         * lib/execute.c: Likewise.
65550         * lib/pipe.c: Likewise.
65551         * lib/printf-args.h: Likewise.
65552         * lib/printf-args.c: Likewise.
65553         * lib/printf-parse.c: Likewise.
65554         * lib/vasnprintf.c: Likewise.
65555
65556 2007-01-29  Eric Blake  <ebb9@byu.net>
65557
65558         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
65559         declaration.
65560
65561 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
65562
65563         * lib/strptime.h (strptime): Use 'restrict' for args where
65564         POSIX requires this.
65565         * lib/strptime.c (strptime): Likewise.
65566         Change license notice from LGPL to GPL, since gnulib-tool will
65567         change this as needed.
65568         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
65569         defined.
65570         Include "strptime.h" first, to check interface.
65571         Do not #undef _LIBC and _NL_CURRENT.
65572         Do not include <stdlib.h>; no longer needed.
65573         Include "time_r.h" and declare ptime_locale_status
65574         only if _LIBC is not defined.
65575         (__P): Remove unused macro.
65576         (match_string): Bring back glibc version, but use it only if _LIBC
65577         is defined.
65578         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
65579         Remove unnecessary assertion and abort() call.
65580         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
65581         * m4/strptime.m4: Fix serial number comment.
65582         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
65583         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
65584         (Depends-on): Add time_r.
65585
65586 2007-01-29  Bruno Haible  <bruno@clisp.org>
65587
65588         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65589         strptime.
65590         * modules/strptime (Depends-on): Add stdbool.
65591         * lib/strptime.h: Include <time.h> always. Add comments.
65592
65593 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65594
65595         * modules/strptime: New file.
65596         * lib/strptime.h: New file.
65597         * lib/strptime.c: New file.
65598         * m4/strptime.m4: New file.
65599
65600 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
65601
65602         * MODULES.html.sh: New module mpsort.
65603         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
65604
65605         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
65606         a circularity problem with HP-UX ia64 reported by Bob Proulx in
65607         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
65608         All uses changed.
65609         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
65610         All uses changed.
65611         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
65612         to _Restrict_.
65613         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
65614         the parameter matches the prototype.
65615
65616 2007-01-28  Jim Meyering  <jim@meyering.net>
65617
65618         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
65619         sys/time.h here, reverting that part of the previous patch:
65620         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
65621
65622 2007-01-28  Bruno Haible  <bruno@clisp.org>
65623
65624         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
65625         value of $(SYS_TIME_H).
65626         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
65627         remove it conditionally, too. [added by Jim Meyering]
65628         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
65629         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65630         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
65631         GETTIMEOFDAY_REPLACEMENT to 1.
65632
65633 2007-01-28  Bruno Haible  <bruno@clisp.org>
65634
65635         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
65636         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
65637         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
65638         Set UNISTD_H instead of UNISTD_H2.
65639         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
65640
65641 2007-01-28  Bruno Haible  <bruno@clisp.org>
65642
65643         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
65644         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
65645
65646 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65647
65648         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
65649         (func_create_testdir): Ensure C locale for `grep' and `tr'
65650         character ranges.
65651         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
65652         ACLOCAL_AMFLAGS parsing state machine.
65653
65654 2007-01-27  Bruno Haible  <bruno@clisp.org>
65655
65656         * modules/unistr/base: Update.
65657
65658 2007-01-27  Bruno Haible  <bruno@clisp.org>
65659
65660         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
65661         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
65662         * modules/unistr/u32-mbtouc-unsafe: Renamed from
65663         modules/unistr/u32-mbtouc.
65664         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
65665         * lib/unistr.h: Update.
65666         * lib/linebreak.c: Update.
65667         * modules/unistr/u32-mbtouc: Renamed from
65668         modules/unistr/u32-mbtouc-safe.
65669         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
65670         * lib/unistr.h: Update.
65671         * lib/unistr/u32-to-u8.c: Update.
65672         * lib/unistr/u32-to-u16.c: Update.
65673
65674 2007-01-27  Bruno Haible  <bruno@clisp.org>
65675
65676         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
65677         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
65678         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
65679         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
65680         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
65681         * modules/unistr/u16-mbtouc-unsafe: Renamed from
65682         modules/unistr/u16-mbtouc.
65683         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
65684         * lib/unistr.h: Update.
65685         * lib/linebreak.c: Update.
65686         * modules/linebreak: Update.
65687         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
65688         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
65689         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
65690         * modules/unistr/u16-mbtouc: Renamed from
65691         modules/unistr/u16-mbtouc-safe.
65692         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
65693         * lib/unistr.h: Update.
65694         * lib/unistr/u16-to-u8.c: Update.
65695         * modules/unistr/u16-to-u8: Update.
65696         * lib/unistr/u16-to-u32.c: Update.
65697         * modules/unistr/u16-to-u32: Update.
65698
65699 2007-01-27  Bruno Haible  <bruno@clisp.org>
65700
65701         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
65702         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
65703         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
65704         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
65705         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
65706         * modules/unistr/u8-mbtouc-unsafe: Renamed from
65707         modules/unistr/u8-mbtouc.
65708         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
65709         * lib/unistr.h: Update.
65710         * lib/striconveh.c: Update.
65711         * modules/striconveh: Update.
65712         * lib/linebreak.c: Update.
65713         * modules/linebreak: Update.
65714         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
65715         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
65716         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
65717         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
65718         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
65719         * lib/unistr.h: Update.
65720         * lib/striconveh.c: Update.
65721         * modules/striconveh: Update.
65722         * lib/unistr/u8-to-u16.c: Update.
65723         * modules/unistr/u8-to-u16: Update.
65724         * lib/unistr/u8-to-u32.c: Update.
65725         * modules/unistr/u8-to-u32: Update.
65726
65727 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65728
65729         Sync from Libtool.
65730         * lib/argz.c: Do not include strings.h nor memory.h, include
65731         string.h unconditionally.  Patch by Simon Josefsson.
65732
65733 2007-01-27  Bruno Haible  <bruno@clisp.org>
65734
65735         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
65736         from gl_HEADER_STRING_H_BODY.
65737         (gl_HEADER_STRING_H_BODY): Require it.
65738         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
65739         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65740         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65741         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65742         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65743         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
65744         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
65745         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65746         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
65747         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65748         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65749         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
65750         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65751         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
65752         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65753
65754 2007-01-27  Bruno Haible  <bruno@clisp.org>
65755
65756         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
65757         check_PROGRAMS into noinst_PROGRAMS.
65758         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
65759         check_PROGRAMS in this case.
65760         (func_import): Set for_test to false.
65761         (func_create_testdir): Set for_test to true.
65762
65763 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65764             Bruno Haible  <bruno@clisp.org>
65765
65766         * modules/strcasestr (Files): Remove lib/strcasestr.h.
65767         (Depends-on): Add string.
65768         (Includes): Use <string.h> instead of strcasestr.h.
65769         * modules/string (Makefile.am): Also substitute the value of
65770         REPLACE_STRCASESTR.
65771         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
65772         assume strcasestr is declared in <string.h> not <strings.h>. Also
65773         set REPLACE_STRCASESTR.
65774         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
65775         REPLACE_STRCASESTR.
65776         * lib/strcasestr.h: Remove file.
65777         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
65778         * lib/string_.h (strcasestr): New declaration.
65779
65780 2007-01-27  Bruno Haible  <bruno@clisp.org>
65781
65782         * lib/string_.h: Use 'extern'.
65783
65784 2007-01-27  Jim Meyering  <jim@meyering.net>
65785
65786         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
65787         of set-but-not-used local, "q".
65788
65789         * lib/mempcpy.c: Include <config.h> before <string.h>.
65790         This fixes a compilation error on HP-UX, due to the system's
65791         "restrict"-using mempcpy prototype.
65792
65793 2007-01-26  Bruno Haible  <bruno@clisp.org>
65794
65795         Small optimization.
65796         * lib/javacomp.c: Include c-strstr.h.
65797          (is_envjavac_gcj): Use c_strstr instead of strstr.
65798         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
65799
65800 2007-01-26  Bruno Haible  <bruno@clisp.org>
65801
65802         * MODULES.html.sh (Unicode string functions): Add the new modules.
65803
65804         * modules/uniconv/u32-strconv-to-locale: New file.
65805         * lib/uniconv/u32-strconv-to-locale.c: New file.
65806
65807         * modules/uniconv/u16-strconv-to-locale: New file.
65808         * lib/uniconv/u16-strconv-to-locale.c: New file.
65809
65810         * modules/uniconv/u8-strconv-to-locale: New file.
65811         * lib/uniconv/u8-strconv-to-locale.c: New file.
65812
65813         * modules/uniconv/u32-strconv-from-locale: New file.
65814         * lib/uniconv/u32-strconv-from-locale.c: New file.
65815
65816         * modules/uniconv/u16-strconv-from-locale: New file.
65817         * lib/uniconv/u16-strconv-from-locale.c: New file.
65818
65819         * modules/uniconv/u8-strconv-from-locale: New file.
65820         * lib/uniconv/u8-strconv-from-locale.c: New file.
65821
65822         * modules/uniconv/u32-strconv-to-enc: New file.
65823         * lib/uniconv/u32-strconv-to-enc.c: New file.
65824         * modules/uniconv/u32-strconv-to-enc-tests: New file.
65825         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
65826
65827         * modules/uniconv/u16-strconv-to-enc: New file.
65828         * lib/uniconv/u16-strconv-to-enc.c: New file.
65829         * lib/uniconv/u-strconv-to-enc.h: New file.
65830         * modules/uniconv/u16-strconv-to-enc-tests: New file.
65831         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
65832
65833         * modules/uniconv/u8-strconv-to-enc: New file.
65834         * lib/uniconv/u8-strconv-to-enc.c: New file.
65835         * modules/uniconv/u8-strconv-to-enc-tests: New file.
65836         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
65837
65838         * modules/uniconv/u32-strconv-from-enc: New file.
65839         * lib/uniconv/u32-strconv-from-enc.c: New file.
65840         * modules/uniconv/u32-strconv-from-enc-tests: New file.
65841         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
65842
65843         * modules/uniconv/u16-strconv-from-enc: New file.
65844         * lib/uniconv/u16-strconv-from-enc.c: New file.
65845         * modules/uniconv/u16-strconv-from-enc-tests: New file.
65846         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
65847
65848         * modules/uniconv/u8-strconv-from-enc: New file.
65849         * lib/uniconv/u8-strconv-from-enc.c: New file.
65850         * lib/uniconv/u-strconv-from-enc.h: New file.
65851         * modules/uniconv/u8-strconv-from-enc-tests: New file.
65852         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
65853
65854         * modules/uniconv/u32-conv-from-enc: New file.
65855         * lib/uniconv/u32-conv-from-enc.c: New file.
65856         * modules/uniconv/u32-conv-from-enc-tests: New file.
65857         * tests/uniconv/test-u32-conv-from-enc.c: New file.
65858
65859         * modules/uniconv/u16-conv-from-enc: New file.
65860         * lib/uniconv/u16-conv-from-enc.c: New file.
65861         * lib/uniconv/u-conv-from-enc.h: New file.
65862         * modules/uniconv/u16-conv-from-enc-tests: New file.
65863         * tests/uniconv/test-u16-conv-from-enc.c: New file.
65864
65865         * modules/uniconv/u8-conv-from-enc: New file.
65866         * lib/uniconv/u8-conv-from-enc.c: New file.
65867         * modules/uniconv/u8-conv-from-enc-tests: New file.
65868         * tests/uniconv/test-u8-conv-from-enc.c: New file.
65869
65870         * modules/uniconv/base: New file.
65871         * lib/uniconv.h: New file.
65872
65873 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65874
65875         * doc/gnulib-tool.texi (Initial import): Update to match current
65876         behavior with strdup module.
65877         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
65878         * lib/memmem.h: Remove; all uses removed.  This is now done
65879         by <string.h>.
65880         * lib/mempcpy.h: Likewise.
65881         * lib/memrchr.h: Likewise.
65882         * lib/stpcpy.h: Likewise.
65883         * lib/stpncpy.h: Likewise.
65884         * lib/strcase.h: Likewise.
65885         * lib/strchrnul.h: Likewise.
65886         * lib/strdup.h: Likewise.
65887         * lib/strndup.h: Likewise.
65888         * lib/strnlen.h: Likewise.
65889         * lib/strpbrk.h: Likewise.
65890         * lib/strsep.h: Likewise.
65891         * lib/strstr.h: Likewise.
65892         * lib/strtok_r.h: Likewise.
65893         * lib/string_.h: New file.
65894         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
65895         Rely on <string.h> instead.
65896         * lib/canon-host.c: Likewise.
65897         * lib/chdir-long.c: Likewise.
65898         * lib/concatpath.c: Likewise.
65899         * lib/exclude.c: Likewise.
65900         * lib/fchdir.c: Likewise.
65901         * lib/getaddrinfo.c: Likewise.
65902         * lib/getcwd.c: Likewise.
65903         * lib/getsubopt.c: Likewise.
65904         * lib/glob.c: Likewise.
65905         * lib/hard-locale.c: Likewise.
65906         * lib/iconvme.c: Likewise.
65907         * lib/javacomp.c: Likewise.
65908         * lib/mempcpy.c: Likewise.
65909         * lib/memrchr.c: Likewise.
65910         * lib/regex_internal.h: Likewise.
65911         * lib/stpncpy.c: Likewise.
65912         * lib/strcasecmp.c: Likewise.
65913         * lib/strchrnul.c: Likewise.
65914         * lib/strdup.c: Likewise.
65915         * lib/striconv.c: Likewise.
65916         * lib/striconveh.c: Likewise.
65917         * lib/striconveha.c: Likewise.
65918         * lib/strncasecmp.c: Likewise.
65919         * lib/strndup.c: Likewise.
65920         * lib/strnlen.c: Likewise.
65921         * lib/strsep.c: Likewise.
65922         * lib/strstr.c: Likewise.
65923         * lib/strtok_r.c: Likewise.
65924         * lib/userspec.c: Likewise.
65925         * lib/w32spawn.h: Likewise.
65926         * lib/xstrndup.c: Likewise.
65927         * lib/mountlist.c (strstr): Remove decl.
65928         * m4/string_h.m4: New file.
65929         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
65930         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
65931         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
65932         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
65933         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
65934         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
65935         Set REPLACE_STRCASECMP if necessary.
65936         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
65937         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
65938         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
65939         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
65940         HAVE_DECL_STRDUP if necessary.
65941         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
65942         since gl_FUNC_STRNDUP does that now.
65943         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
65944         Check for decl here...
65945         (gl_PREREQ_STRNLEN): ... not here.
65946         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
65947         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
65948         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
65949         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
65950         necessary.
65951         * modules/string: New file.
65952         * modules/memmem (Files): Remove special-purpose include file.
65953         (Depends-on): Add string.
65954         (Include): Include <string.h>, not the removed file.
65955         * modules/mempcpy: Likewise.
65956         * modules/memrchr: Likewise.
65957         * modules/stpcpy: Likewise.
65958         * modules/stpncpy: Likewise.
65959         * modules/strcase: Likewise.
65960         * modules/strchrnul: Likewise.
65961         * modules/strdup: Likewise.
65962         * modules/strndup: Likewise.
65963         * modules/strnlen: Likewise.
65964         * modules/strpbrk: Likewise.
65965         * modules/strsep: Likewise.
65966         * modules/strstr: Likewise.
65967         * modules/strtok_r: Likewise.
65968         * tests/test-dirname.c: Don't include "strdup.h", since
65969         <string.h> now suffices.
65970         * tests/test-memmem.c: Don't include "memmem.h", since
65971         <string.h> now suffices.
65972
65973 2007-01-25  Bruno Haible  <bruno@clisp.org>
65974
65975         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
65976         *resultp is 0.
65977
65978         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
65979         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
65980         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
65981         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
65982
65983         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
65984         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
65985         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
65986         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
65987         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
65988         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
65989
65990 2007-01-24  Bruno Haible  <bruno@clisp.org>
65991
65992         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
65993         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
65994         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
65995         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
65996         gl_FUNC_FTS_CORE.
65997         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
65998         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
65999         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66000         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
66001         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
66002         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
66003         gl_FUNC_FCHOWNAT.
66004         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
66005         gl_FUNC_STRFTIME.
66006         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
66007         Reported by Ralf Wildenhues.
66008
66009 2007-01-24  Bruno Haible  <bruno@clisp.org>
66010
66011         Drop AC_REQUIRE calls that are redundant with the module dependencies.
66012         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
66013         gl_GETADDRINFO.
66014         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
66015         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
66016         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
66017
66018 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
66019
66020         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
66021         Don't use 'exit'; just return from 'main'.
66022         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
66023
66024         * lib/fnmatch_.h: Readjust white space and comments to match
66025         glibc, to avoid spurious diffs.
66026
66027 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66028
66029         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
66030         2004-12-01 change by Jakub Jelinek, since this code won't compile
66031         if !LIBC.  Problem reported by Bob Proulx.
66032
66033 2007-01-23  Bruno Haible  <bruno@clisp.org>
66034
66035         * lib/striconveh.c: Include c-strcaseeq.h.
66036         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
66037         * modules/striconveh (Depends-on): Add c-strcaseeq.
66038
66039 2007-01-23  Bruno Haible  <bruno@clisp.org>
66040
66041         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
66042
66043         * modules/c-strcaseeq: New file.
66044         * lib/c-strcaseeq.h: New file.
66045
66046         * modules/streq: New file.
66047         * lib/streq.h: New file.
66048
66049 2007-01-23  Bruno Haible  <bruno@clisp.org>
66050
66051         * modules/striconveha-tests: New file.
66052         * tests/test-striconveha.c: New file.
66053
66054         * lib/striconveha.h: Include <stdbool.h>.
66055         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
66056         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
66057         (mem_iconveha_notranslit): Renamed from mem_iconveha.
66058         (mem_iconveha): New function.
66059         (str_iconveha_notranslit): Renamed from str_iconveha.
66060         (str_iconveha): New function.
66061         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
66062         c-strcase.
66063
66064 2007-01-23  Bruno Haible  <bruno@clisp.org>
66065
66066         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
66067         encodings without forgiving before trying any encoding with handler.
66068         (str_iconveha): Try all encodings without forgiving before trying any
66069         encoding with handler.
66070
66071 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66072
66073         Import the following changes from libc.
66074
66075         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66076
66077         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
66078
66079         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
66080
66081         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
66082         normal_bracket label.
66083
66084         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
66085
66086         [BZ #361]
66087         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
66088         to normal_bracket after fetching the next character.
66089
66090 2007-01-22  Bruno Haible  <bruno@clisp.org>
66091
66092         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
66093         argument.
66094         * lib/striconveh.c (iconv_carefully_1): New function.
66095         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
66096         argument.
66097         (str_cd_iconveh): Update.
66098         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
66099         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
66100         * tests/test-striconveh.c (MAGIC): New macro.
66101         (new_offsets): New function.
66102         (main): Test call with and without offsets.
66103
66104 2007-01-22  Bruno Haible  <bruno@clisp.org>
66105
66106         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
66107         * modules/sys_select (Makefile.am): Likewise.
66108         * modules/sys_socket (Makefile.am): Likewise.
66109         * modules/sys_time (Makefile.am): Likewise.
66110
66111 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
66112
66113         * modules/gettimeofday (License): Change from GPL to LGPL, since
66114         gettimeofday is a library function.
66115
66116 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66117
66118         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
66119
66120 2007-01-21  Bruno Haible  <bruno@clisp.org>
66121
66122         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
66123
66124 2007-01-21  Bruno Haible  <bruno@clisp.org>
66125
66126         * modules/striconveha: New file.
66127         * lib/striconveha.h: New file.
66128         * lib/striconveha.c: New file.
66129         * MODULES.html.sh (Internationalization functions): Add striconveha.
66130         * lib/striconv.c (str_iconv): Optimize the case of an empty input
66131         string.
66132         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
66133
66134 2007-01-21  Bruno Haible  <bruno@clisp.org>
66135
66136         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
66137         * lib/striconveh.c (str_iconveh): Likewise.
66138
66139 2007-01-21  Bruno Haible  <bruno@clisp.org>
66140
66141         * lib/striconveh.h (mem_iconveh): New declaration.
66142         * lib/striconveh.c (mem_iconveh): New function.
66143         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
66144
66145 2007-01-21  Bruno Haible  <bruno@clisp.org>
66146
66147         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
66148
66149         * lib/striconveh.h (mem_cd_iconveh): Change specification.
66150         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
66151         original result buffer.
66152         (str_cd_iconveh): Update.
66153         * tests/test-striconveh.c (main): Update.
66154
66155         * lib/striconv.h (mem_cd_iconv): Change specification.
66156         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
66157         result buffer.
66158         (str_cd_iconv): Update.
66159         * tests/test-striconv.c (main): Update.
66160
66161 2007-01-21  Bruno Haible  <bruno@clisp.org>
66162
66163         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
66164
66165 2007-01-20  Jim Meyering  <jim@meyering.net>
66166
66167         * lib/userspec.c (parse_with_separator): If a user or group string
66168         starts with "+", skip the corresponding name-to-ID look-up, since
66169         such a look-up must fail: user and group names may not include "+".
66170
66171 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
66172
66173         * lib/poll.c: Include sys/time.h and time.h unconditionally,
66174         since we now assume the sys_time module.
66175         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
66176         check for sys/time.h; no longer needed.
66177         * modules/poll (Depends-on): Depend on sys_time.
66178
66179 2007-01-18  Bruno Haible  <bruno@clisp.org>
66180
66181         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
66182         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
66183
66184         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
66185         gettimeofday.
66186
66187         * tests/test-gettimeofday.c: Include <time.h>.
66188         (dummy): Remove variable.
66189
66190         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
66191         gl_HEADER_SYS_TIME_H.
66192         (gl_HEADER_SYS_TIME_H): New macro.
66193
66194         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
66195         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66196         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
66197         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
66198         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66199         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
66200         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
66201         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66202         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
66203         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
66204         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66205
66206         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
66207         last change; it caused a compilation error when cross-compiling to
66208         Cygwin.
66209
66210 2007-01-18  Jim Meyering  <jim@meyering.net>
66211
66212         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
66213         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
66214         than the race-prone "test -d sys || mkdir sys".
66215         (configure.ac): Use AC_PROG_MKDIR_P.
66216         * modules/sys_select: Likewise.
66217         * modules/sys_socket: Likewise.
66218         * modules/sys_time: Likewise.
66219
66220 2007-01-18  Eric Blake  <ebb9@byu.net>
66221
66222         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
66223         replace gettimeofday.
66224         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
66225         name, to avoid infinite recursion.
66226
66227 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
66228
66229         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
66230         module sys_time.
66231         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
66232         assume timespec.h defines struct timeval.
66233         * lib/settime.c: Likewise.
66234         * lib/utimens.c: Likewise.
66235         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
66236         since we now assume the gettimeofday module.
66237         * lib/tempname.c (__gen_tempname): Likewise.
66238         * lib/gettimeofday.h: Remove.
66239         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
66240         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
66241         Include <time.h>, for 'time()'.
66242         (localtime_buffer_addr): Also use this workaround if
66243         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
66244         to simplify the uses.  All uses changed.
66245         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
66246         that #undef is inside {}, and 'const' follows type name consistently.
66247         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
66248         (gettimeofday): Do not use the maximum possible value for
66249         tv->tv_usec, since that might break usages other than ls.c.
66250         Instead, we'll leave ls.c alone.  This undoes today's patch
66251         by Bruno.  Add a compile-time warning for 1s-clock resolution;
66252         we've never observed the problem but might as well keep the
66253         canary.
66254         * lib/nanosleep.c: Include timespec.h first, for interface check.
66255         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
66256         now assume the sys_time module.
66257         * lib/tempname.c: Likewise.
66258         * lib/timespec.h: Likewise.
66259         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
66260         needed.
66261         * lib/strftime.c: Likewise.
66262         * lib/timespec.h: Likewise.
66263         * lib/posixtm.c: Include posixtm.h first, for interface check.
66264         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
66265         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
66266         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
66267         * lib/sys_time_.h: New file.
66268         * lib/timespec.h (struct timespec): Use long int, not long.
66269         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
66270         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
66271         Remove obsolescent call to AC_HEADER_TIME.
66272         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
66273         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66274         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
66275         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
66276         Likewise.
66277         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
66278         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
66279         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
66280         into the sys_time module.  Check for gettimeofday just once.
66281         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
66282         for gettimeofday signature to just check the signature.  Merely
66283         compile it, since linking doesn't test signature.  Improve test for
66284         whether gettimeofday.o is actually needed.
66285         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
66286         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
66287         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
66288         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66289         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
66290         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
66291         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
66292         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
66293         than worrying about sys/time.h.
66294         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
66295         Don't bother worrying about TIME_WITH_SYS_TIME.
66296         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
66297         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
66298         * m4/sys_time_h.m4: New file.
66299         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
66300         Don't include sys/time.h.  Return from main rather than exiting.
66301         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
66302         all uses changed.
66303         * modules/gethrxtime (Depends-on): Add sys_time.
66304         * modules/gettime (Depends-on): Likewise.
66305         * modules/gettimeofday (Depends-on): Likewise.
66306         * modules/nanosleep (Depends-on): Likewise.
66307         * modules/settime (Depends-on): Likewise.
66308         * modules/tempname (Depends-on): Likewise.
66309         * modules/utimens (Depends-on): Likewise.
66310         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
66311         (Include): Change back to <sys/time.h>.
66312         (Maintainer): Add self.
66313         * modules/sys_time: New file.
66314         * modules/tempname (Depends-on): Add gettimeofday.
66315         * tests/test-gettimeofday.c: Include <sys/time.h>
66316         rather than gettimeofday.h.
66317
66318 2007-01-17  Bruno Haible  <bruno@clisp.org>
66319
66320         * gnulib-tool (func_get_license): Revert last patch. Instead, let
66321         the license default to GPL.
66322         (func_create_testdir): Don't complain if a module is LGPL and its
66323         tests module depends on GPLed modules.
66324
66325 2007-01-17  Bruno Haible  <bruno@clisp.org>
66326
66327         * lib/gettimeofday.c (gettimeofday): Add code for the case
66328         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
66329         maximum possible value for tv->tv_usec, rather than the minimum one.
66330
66331 2005-10-08  Martin Lambers  <marlam@marlam.de>
66332 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66333 2007-01-16  Bruno Haible  <bruno@clisp.org>
66334
66335         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
66336         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
66337         gl_FUNC_GETTIMEOFDAY.
66338         (Include): Add gettimeofday.h.
66339         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
66340         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
66341         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
66342         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
66343         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
66344         * lib/gettimeofday.h: New file.
66345         * lib/gettimeofday.c: Include <sys/timeb.h>.
66346         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
66347         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66348         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
66349         fall back on time().
66350
66351         * tests/test-gettimeofday.c: New file.
66352         * modules/gettimeofday-tests: New file.
66353
66354 2007-01-16  Eric Blake  <ebb9@byu.net>
66355
66356         * modules/fnmatch (Depends-on): Depend on wchar.
66357         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
66358         * m4/fnmatch.m4: Likewise.
66359         * modules/mbchar (Makefile.am): Assume <wchar.h>.
66360         * m4/mbchar.m4: Likewise.
66361         * modules/mbswidth (Depends-on): Depend on wchar.
66362         * lib/mbswidth.c: Assume <wchar.h>.
66363         * m4/mbswidth.m4: Likewise.
66364         * modules/quotearg (Depends-on): Depend on wchar.
66365         * lib/quotearg.c: Assume <wchar.h>.
66366         * m4/quotearg.m4: Likewise.
66367         * modules/regex (Depends-on): Depend on wchar.
66368         * lib/regex_internal.h: Assume <wchar.h>.
66369         * m4/regex.m4: Likewise.
66370         * modules/stdint (Depends-on): Depend on wchar.
66371         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
66372         * m4/stdint.m4: Likewise.
66373         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
66374         * modules/strftime (Depends-on): Depend on wchar.
66375         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
66376         * modules/strtol (Depends-on): Depend on wchar.
66377         * lib/strtol.c: Assume <wchar.h>.
66378         * modules/wcwidth (Depends-on): Depend on wchar.
66379         * lib/wcwidth.h: Assume <wchar.h>.
66380         * m4/wcwidth.m4: Likewise.
66381
66382 2007-01-16  Bruno Haible  <bruno@clisp.org>
66383
66384         * modules/csharpexec-script: New, created from...
66385         * modules/csharpexec: ... this.
66386
66387 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
66388
66389         * modules/javaexec-script: New, created from...
66390         * modules/javaexec: ... this.
66391
66392 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66393
66394         * modules/poll (Dependencies): Add sys_select.
66395
66396 2007-01-15  Jim Meyering  <jim@meyering.net>
66397
66398         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
66399         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
66400         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
66401         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
66402
66403 2007-01-15  Bruno Haible  <bruno@clisp.org>
66404
66405         * modules/striconveh: New file.
66406         * lib/striconveh.h: New file.
66407         * lib/striconveh.c: New file.
66408         * MODULES.html.sh (Internationalization functions): Add striconveh.
66409
66410         * modules/striconveh-tests: New file.
66411         * tests/test-striconveh.c: New file.
66412
66413 2007-01-15  Bruno Haible  <bruno@clisp.org>
66414
66415         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
66416         not from GNU libiconv or GNU libc.
66417
66418 2007-01-15  Bruno Haible  <bruno@clisp.org>
66419
66420         * doc/gnulib-intro.texi (Copyright): Explain the different license
66421         terms for module descriptions, autoconf macros, tests, documentation.
66422
66423 2007-01-14  Bruno Haible  <bruno@clisp.org>
66424
66425         * modules/striconv-tests: New file.
66426         * tests/test-striconv.c: New file.
66427
66428 2007-01-14  Bruno Haible  <bruno@clisp.org>
66429
66430         * modules/iconv-tests: New file.
66431         * tests/test-iconv.c: New file.
66432
66433 2007-01-14  Bruno Haible  <bruno@clisp.org>
66434
66435         * gnulib-tool (func_get_license): For test modules, use the license of
66436         the main module.
66437
66438 2007-01-14  Bruno Haible  <bruno@clisp.org>
66439
66440         * modules/iconv (Include): Clarify that <iconv.h> can only be included
66441         if iconv is found to exist.
66442
66443 2007-01-14  Bruno Haible  <bruno@clisp.org>
66444
66445         * modules/c-ctype-tests: New file.
66446         * tests/test-c-ctype.c: New file.
66447
66448 2007-01-14  Bruno Haible  <bruno@clisp.org>
66449
66450         * modules/binary-io-tests: New file.
66451         * tests/test-binary-io.sh: New file.
66452         * tests/test-binary-io.c: New file.
66453
66454 2007-01-14  Bruno Haible  <bruno@clisp.org>
66455
66456         * modules/array-oset-tests: New file.
66457         * tests/test-array_oset.c: New file.
66458
66459 2007-01-14  Bruno Haible  <bruno@clisp.org>
66460
66461         * modules/array-list-tests: New file.
66462         * tests/test-array_list.c: New file.
66463
66464 2007-01-14  Bruno Haible  <bruno@clisp.org>
66465
66466         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
66467         and make.
66468         Reported by Simon Josefsson in
66469         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
66470
66471 2007-01-14  Bruno Haible  <bruno@clisp.org>
66472
66473         * modules/allocsa-tests: New file.
66474         * tests/test-allocsa.c: New file.
66475
66476 2007-01-14  Bruno Haible  <bruno@clisp.org>
66477
66478         * modules/fchdir (Depends-on): Add absolute-header.
66479         * modules/unistd (Depends-on): Likewise.
66480
66481 2006-12-30  Bruno Haible  <bruno@clisp.org>
66482
66483         * modules/fchdir: New file.
66484         * modules/unistd (Files): Add lib/unistd_.h.
66485         (Makefile.am): Generate unistd.h from unistd_.h.
66486         * lib/fchdir.c: New file.
66487         * lib/dirent_.h: New file.
66488         * lib/unistd_.h: New file.
66489         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
66490         * m4/fchdir.m4: New file.
66491         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
66492         (gl_HEADER_UNISTD): Invoke it.
66493         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
66494         function.
66495         * lib/backupfile.c (opendir, closedir): Undefine.
66496         * lib/chown.c (open, close): Undefine.
66497         * lib/clean-temp.c (open, close): Undefine.
66498         * lib/copy-file.c (open, close): Undefine.
66499         * lib/execute.c (open, close): Undefine.
66500         * lib/fsusage.c (open, close): Undefine.
66501         * lib/gc-gnulib.c (open, close): Undefine.
66502         * lib/getcwd.c (opendir, closedir): Undefine.
66503         * lib/glob.c (opendir, closedir): Undefine.
66504         * lib/javacomp.c (open, close): Undefine.
66505         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
66506         * lib/openat-proc.c (open, close): Undefine.
66507         * lib/pagealign_alloc.c (open, close): Undefine.
66508         * lib/pipe.c (open, close): Undefine.
66509         * lib/progreloc.c (open, close): Undefine.
66510         * lib/savedir.c (opendir, closedir): Undefine.
66511         * lib/utime.c (open, close): Undefine.
66512         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
66513
66514 2007-01-10  Bruno Haible  <bruno@clisp.org>
66515
66516         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
66517
66518 2007-01-12  Eric Blake  <ebb9@byu.net>
66519
66520         Provide a robust <wchar.h>.  Further simplifications are now
66521         possible in other modules, but not included here.
66522         * modules/wchar: New module.
66523         * m4/wchar.m4: New file.
66524         * lib/wchar_.h: Likewise.
66525         * modules/mbchar (Depends-on): Depend on wchar, as the first use
66526         of the new module.
66527         * MODULES.html.sh (Extended multibyte and wide character utilities):
66528         New section.
66529
66530 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
66531
66532         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
66533         to a reasonable default for memory allocation.
66534         (xreadlink): Don't allocate a huge buffer, to work around a buggy
66535         file system that reports garbage st_size values for symlinks.
66536         Problem reported by Liyang Hu.
66537
66538 2007-01-11  Simon Josefsson  <simon@josefsson.org>
66539
66540         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
66541         Emacs .#* auto-save files).
66542
66543 2007-01-11  Bruno Haible  <bruno@clisp.org>
66544
66545         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
66546         directory.
66547
66548 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66549
66550         Use @...@ consistently in lib/wctype_.h.
66551         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
66552         on it being set to 1 or 0.
66553         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
66554         go back to AC_SUBSTing it.
66555         * modules/wctype (Makefile.am): Undo previous change.
66556
66557 2007-01-10  Eric Blake  <ebb9@byu.net>
66558
66559         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
66560         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
66561         * modules/wctype (Makefile.am): Likewise.
66562         Reported by Chris McGuire.
66563
66564 2007-01-10  Jim Meyering  <jim@meyering.net>
66565
66566         fts.c: a small readability/maintainability improvement
66567         * lib/fts.c (fts_read): Make this code slightly more readable and
66568         maintainable by hoisting the "sp->fts_cur = p" assignments to
66569         immediately follow the statements that set P.  Derived from
66570         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
66571
66572 2007-01-10  Eric Blake  <ebb9@byu.net>
66573
66574         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
66575         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
66576         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66577         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
66578         Reported by Chris McGuire.
66579
66580 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66581
66582         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
66583         in sed script.
66584
66585 2007-01-09  Bruno Haible  <bruno@clisp.org>
66586
66587         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
66588         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
66589         variables.
66590         (func_module): Use them.
66591
66592 2007-01-09  Bruno Haible  <bruno@clisp.org>
66593
66594         * modules/unistr/base: New file.
66595         * lib/unistr.h: New file.
66596
66597         * modules/unistr/u8-to-u16: New file.
66598         * lib/unistr/u8-to-u16.c: New file.
66599
66600         * modules/unistr/u8-to-u32: New file.
66601         * lib/unistr/u8-to-u32.c: New file.
66602
66603         * modules/unistr/u16-to-u8: New file.
66604         * lib/unistr/u16-to-u8.c: New file.
66605
66606         * modules/unistr/u16-to-u32: New file.
66607         * lib/unistr/u16-to-u32.c: New file.
66608
66609         * modules/unistr/u32-to-u8: New file.
66610         * lib/unistr/u32-to-u8.c: New file.
66611
66612         * modules/unistr/u32-to-u16: New file.
66613         * lib/unistr/u32-to-u16.c: New file.
66614
66615         * modules/unistr/u8-check: New file.
66616         * modules/unistr/u16-check: New file.
66617         * modules/unistr/u32-check: New file.
66618         * lib/unistr/u8-check.c: New file.
66619         * lib/unistr/u16-check.c: New file.
66620         * lib/unistr/u32-check.c: New file.
66621
66622         * modules/unistr/u8-chr: New file.
66623         * modules/unistr/u16-chr: New file.
66624         * modules/unistr/u32-chr: New file.
66625         * lib/unistr/u8-chr.c: New file.
66626         * lib/unistr/u16-chr.c: New file.
66627         * lib/unistr/u32-chr.c: New file.
66628
66629         * modules/unistr/u8-cmp: New file.
66630         * modules/unistr/u16-cmp: New file.
66631         * modules/unistr/u32-cmp: New file.
66632         * lib/unistr/u8-cmp.c: New file.
66633         * lib/unistr/u16-cmp.c: New file.
66634         * lib/unistr/u32-cmp.c: New file.
66635
66636         * modules/unistr/u8-cpy: New file.
66637         * modules/unistr/u16-cpy: New file.
66638         * modules/unistr/u32-cpy: New file.
66639         * lib/unistr/u8-cpy.c: New file.
66640         * lib/unistr/u16-cpy.c: New file.
66641         * lib/unistr/u32-cpy.c: New file.
66642         * lib/unistr/u-cpy.h: New file.
66643
66644         * modules/unistr/u8-cpy-alloc: New file.
66645         * modules/unistr/u16-cpy-alloc: New file.
66646         * modules/unistr/u32-cpy-alloc: New file.
66647         * lib/unistr/u8-cpy-alloc.c: New file.
66648         * lib/unistr/u16-cpy-alloc.c: New file.
66649         * lib/unistr/u32-cpy-alloc.c: New file.
66650         * lib/unistr/u-cpy-alloc.h: New file.
66651
66652         * modules/unistr/u8-endswith: New file.
66653         * modules/unistr/u16-endswith: New file.
66654         * modules/unistr/u32-endswith: New file.
66655         * lib/unistr/u8-endswith.c: New file.
66656         * lib/unistr/u16-endswith.c: New file.
66657         * lib/unistr/u32-endswith.c: New file.
66658         * lib/unistr/u-endswith.h: New file.
66659
66660         * modules/unistr/u8-mblen: New file.
66661         * modules/unistr/u16-mblen: New file.
66662         * modules/unistr/u32-mblen: New file.
66663         * lib/unistr/u8-mblen.c: New file.
66664         * lib/unistr/u16-mblen.c: New file.
66665         * lib/unistr/u32-mblen.c: New file.
66666
66667         * modules/unistr/u8-mbtouc: New file.
66668         * modules/unistr/u16-mbtouc: New file.
66669         * modules/unistr/u32-mbtouc: New file.
66670         * lib/unistr/u8-mbtouc.c: New file.
66671         * lib/unistr/u16-mbtouc.c: New file.
66672         * lib/unistr/u32-mbtouc.c: New file.
66673
66674         * modules/unistr/u8-mbtouc-safe: New file.
66675         * modules/unistr/u16-mbtouc-safe: New file.
66676         * modules/unistr/u32-mbtouc-safe: New file.
66677         * lib/unistr/u8-mbtouc-safe.c: New file.
66678         * lib/unistr/u16-mbtouc-safe.c: New file.
66679         * lib/unistr/u32-mbtouc-safe.c: New file.
66680
66681         * modules/unistr/u8-move: New file.
66682         * modules/unistr/u16-move: New file.
66683         * modules/unistr/u32-move: New file.
66684         * lib/unistr/u8-move.c: New file.
66685         * lib/unistr/u16-move.c: New file.
66686         * lib/unistr/u32-move.c: New file.
66687         * lib/unistr/u-move.h: New file.
66688
66689         * modules/unistr/u8-next: New file.
66690         * modules/unistr/u16-next: New file.
66691         * modules/unistr/u32-next: New file.
66692         * lib/unistr/u8-next.c: New file.
66693         * lib/unistr/u16-next.c: New file.
66694         * lib/unistr/u32-next.c: New file.
66695
66696         * modules/unistr/u8-prev: New file.
66697         * modules/unistr/u16-prev: New file.
66698         * modules/unistr/u32-prev: New file.
66699         * lib/unistr/u8-prev.c: New file.
66700         * lib/unistr/u16-prev.c: New file.
66701         * lib/unistr/u32-prev.c: New file.
66702
66703         * modules/unistr/u8-set: New file.
66704         * modules/unistr/u16-set: New file.
66705         * modules/unistr/u32-set: New file.
66706         * lib/unistr/u8-set.c: New file.
66707         * lib/unistr/u16-set.c: New file.
66708         * lib/unistr/u32-set.c: New file.
66709         * lib/unistr/u-set.h: New file.
66710
66711         * modules/unistr/u8-startswith: New file.
66712         * modules/unistr/u16-startswith: New file.
66713         * modules/unistr/u32-startswith: New file.
66714         * lib/unistr/u8-startswith.c: New file.
66715         * lib/unistr/u16-startswith.c: New file.
66716         * lib/unistr/u32-startswith.c: New file.
66717         * lib/unistr/u-startswith.h: New file.
66718
66719         * modules/unistr/u8-stpcpy: New file.
66720         * modules/unistr/u16-stpcpy: New file.
66721         * modules/unistr/u32-stpcpy: New file.
66722         * lib/unistr/u8-stpcpy.c: New file.
66723         * lib/unistr/u16-stpcpy.c: New file.
66724         * lib/unistr/u32-stpcpy.c: New file.
66725         * lib/unistr/u-stpcpy.h: New file.
66726
66727         * modules/unistr/u8-stpncpy: New file.
66728         * modules/unistr/u16-stpncpy: New file.
66729         * modules/unistr/u32-stpncpy: New file.
66730         * lib/unistr/u8-stpncpy.c: New file.
66731         * lib/unistr/u16-stpncpy.c: New file.
66732         * lib/unistr/u32-stpncpy.c: New file.
66733         * lib/unistr/u-stpncpy.h: New file.
66734
66735         * modules/unistr/u8-strcat: New file.
66736         * modules/unistr/u16-strcat: New file.
66737         * modules/unistr/u32-strcat: New file.
66738         * lib/unistr/u8-strcat.c: New file.
66739         * lib/unistr/u16-strcat.c: New file.
66740         * lib/unistr/u32-strcat.c: New file.
66741         * lib/unistr/u-strcat.h: New file.
66742
66743         * modules/unistr/u8-strchr: New file.
66744         * modules/unistr/u16-strchr: New file.
66745         * modules/unistr/u32-strchr: New file.
66746         * lib/unistr/u8-strchr.c: New file.
66747         * lib/unistr/u16-strchr.c: New file.
66748         * lib/unistr/u32-strchr.c: New file.
66749
66750         * modules/unistr/u8-strcmp: New file.
66751         * modules/unistr/u16-strcmp: New file.
66752         * modules/unistr/u32-strcmp: New file.
66753         * lib/unistr/u8-strcmp.c: New file.
66754         * lib/unistr/u16-strcmp.c: New file.
66755         * lib/unistr/u32-strcmp.c: New file.
66756
66757         * modules/unistr/u8-strcpy: New file.
66758         * modules/unistr/u16-strcpy: New file.
66759         * modules/unistr/u32-strcpy: New file.
66760         * lib/unistr/u8-strcpy.c: New file.
66761         * lib/unistr/u16-strcpy.c: New file.
66762         * lib/unistr/u32-strcpy.c: New file.
66763         * lib/unistr/u-strcpy.h: New file.
66764
66765         * modules/unistr/u8-strcspn: New file.
66766         * modules/unistr/u16-strcspn: New file.
66767         * modules/unistr/u32-strcspn: New file.
66768         * lib/unistr/u8-strcspn.c: New file.
66769         * lib/unistr/u16-strcspn.c: New file.
66770         * lib/unistr/u32-strcspn.c: New file.
66771         * lib/unistr/u-strcspn.h: New file.
66772
66773         * modules/unistr/u8-strdup: New file.
66774         * modules/unistr/u16-strdup: New file.
66775         * modules/unistr/u32-strdup: New file.
66776         * lib/unistr/u8-strdup.c: New file.
66777         * lib/unistr/u16-strdup.c: New file.
66778         * lib/unistr/u32-strdup.c: New file.
66779         * lib/unistr/u-strdup.h: New file.
66780
66781         * modules/unistr/u8-strlen: New file.
66782         * modules/unistr/u16-strlen: New file.
66783         * modules/unistr/u32-strlen: New file.
66784         * lib/unistr/u8-strlen.c: New file.
66785         * lib/unistr/u16-strlen.c: New file.
66786         * lib/unistr/u32-strlen.c: New file.
66787         * lib/unistr/u-strlen.h: New file.
66788
66789         * modules/unistr/u8-strmblen: New file.
66790         * modules/unistr/u16-strmblen: New file.
66791         * modules/unistr/u32-strmblen: New file.
66792         * lib/unistr/u8-strmblen.c: New file.
66793         * lib/unistr/u16-strmblen.c: New file.
66794         * lib/unistr/u32-strmblen.c: New file.
66795
66796         * modules/unistr/u8-strmbtouc: New file.
66797         * modules/unistr/u16-strmbtouc: New file.
66798         * modules/unistr/u32-strmbtouc: New file.
66799         * lib/unistr/u8-strmbtouc.c: New file.
66800         * lib/unistr/u16-strmbtouc.c: New file.
66801         * lib/unistr/u32-strmbtouc.c: New file.
66802
66803         * modules/unistr/u8-strncat: New file.
66804         * modules/unistr/u16-strncat: New file.
66805         * modules/unistr/u32-strncat: New file.
66806         * lib/unistr/u8-strncat.c: New file.
66807         * lib/unistr/u16-strncat.c: New file.
66808         * lib/unistr/u32-strncat.c: New file.
66809         * lib/unistr/u-strncat.h: New file.
66810
66811         * modules/unistr/u8-strncmp: New file.
66812         * modules/unistr/u16-strncmp: New file.
66813         * modules/unistr/u32-strncmp: New file.
66814         * lib/unistr/u8-strncmp.c: New file.
66815         * lib/unistr/u16-strncmp.c: New file.
66816         * lib/unistr/u32-strncmp.c: New file.
66817
66818         * modules/unistr/u8-strncpy: New file.
66819         * modules/unistr/u16-strncpy: New file.
66820         * modules/unistr/u32-strncpy: New file.
66821         * lib/unistr/u8-strncpy.c: New file.
66822         * lib/unistr/u16-strncpy.c: New file.
66823         * lib/unistr/u32-strncpy.c: New file.
66824         * lib/unistr/u-strncpy.h: New file.
66825
66826         * modules/unistr/u8-strnlen: New file.
66827         * modules/unistr/u16-strnlen: New file.
66828         * modules/unistr/u32-strnlen: New file.
66829         * lib/unistr/u8-strnlen.c: New file.
66830         * lib/unistr/u16-strnlen.c: New file.
66831         * lib/unistr/u32-strnlen.c: New file.
66832         * lib/unistr/u-strnlen.h: New file.
66833
66834         * modules/unistr/u8-strpbrk: New file.
66835         * modules/unistr/u16-strpbrk: New file.
66836         * modules/unistr/u32-strpbrk: New file.
66837         * lib/unistr/u8-strpbrk.c: New file.
66838         * lib/unistr/u16-strpbrk.c: New file.
66839         * lib/unistr/u32-strpbrk.c: New file.
66840         * lib/unistr/u-strpbrk.h: New file.
66841
66842         * modules/unistr/u8-strrchr: New file.
66843         * modules/unistr/u16-strrchr: New file.
66844         * modules/unistr/u32-strrchr: New file.
66845         * lib/unistr/u8-strrchr.c: New file.
66846         * lib/unistr/u16-strrchr.c: New file.
66847         * lib/unistr/u32-strrchr.c: New file.
66848
66849         * modules/unistr/u8-strspn: New file.
66850         * modules/unistr/u16-strspn: New file.
66851         * modules/unistr/u32-strspn: New file.
66852         * lib/unistr/u8-strspn.c: New file.
66853         * lib/unistr/u16-strspn.c: New file.
66854         * lib/unistr/u32-strspn.c: New file.
66855         * lib/unistr/u-strspn.h: New file.
66856
66857         * modules/unistr/u8-strstr: New file.
66858         * modules/unistr/u16-strstr: New file.
66859         * modules/unistr/u32-strstr: New file.
66860         * lib/unistr/u8-strstr.c: New file.
66861         * lib/unistr/u16-strstr.c: New file.
66862         * lib/unistr/u32-strstr.c: New file.
66863         * lib/unistr/u-strstr.h: New file.
66864
66865         * modules/unistr/u8-strtok: New file.
66866         * modules/unistr/u16-strtok: New file.
66867         * modules/unistr/u32-strtok: New file.
66868         * lib/unistr/u8-strtok.c: New file.
66869         * lib/unistr/u16-strtok.c: New file.
66870         * lib/unistr/u32-strtok.c: New file.
66871         * lib/unistr/u-strtok.h: New file.
66872
66873         * modules/unistr/u8-uctomb: New file.
66874         * modules/unistr/u16-uctomb: New file.
66875         * modules/unistr/u32-uctomb: New file.
66876         * lib/unistr/u8-uctomb.c: New file.
66877         * lib/unistr/u16-uctomb.c: New file.
66878         * lib/unistr/u32-uctomb.c: New file.
66879
66880         * MODULES.html.sh (Unicode string functions): Add the new modules.
66881
66882 2007-01-08  Bruno Haible  <bruno@clisp.org>
66883
66884         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
66885         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
66886         subdirectories.
66887
66888 2007-01-08  Karl Berry  <karl@gnu.org>
66889
66890         * doc/error.texi: mention that main() fns must set program_name
66891         when progname is used.
66892
66893 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
66894
66895         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
66896         WCTYPE_H is empty, for the benefit of builds from non-distclean
66897         directories.  Problem reported by Eric Blake in
66898         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
66899
66900 2007-01-08  Bruno Haible  <bruno@clisp.org>
66901
66902         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
66903         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
66904         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
66905         PROVIDE_CANONICALIZE_FILENAME_MODE.
66906         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
66907
66908 2007-01-08  Bruno Haible  <bruno@clisp.org>
66909
66910         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
66911         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
66912         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
66913         * lib/fts.c: Likewise.
66914         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
66915
66916 2006-12-25  Bruno Haible  <bruno@clisp.org>
66917
66918         * modules/utf8-ucs4-safe: New file.
66919         * lib/utf8-ucs4-safe.h: New file.
66920         * lib/unistr/utf8-ucs4-safe.c: New file.
66921
66922         * modules/utf16-ucs4-safe: New file.
66923         * lib/utf16-ucs4-safe.h: New file.
66924         * lib/unistr/utf16-ucs4-safe.c: New file.
66925
66926         * MODULES.html.sh (Unicode string functions): Add the new modules.
66927
66928 2007-01-08  Bruno Haible  <bruno@clisp.org>
66929
66930         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
66931         (Depends-on): Add unitypes.
66932         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66933         (u8_mbtouc_aux): Move out to separate file.
66934         (u8_mbtouc): Use ucs4_t, uint8_t types.
66935         * lib/unistr/utf8-ucs4.c: New file.
66936
66937         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
66938         (Depends-on): Add unitypes.
66939         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66940         (u16_mbtouc_aux): Move out to separate file.
66941         (u16_mbtouc): Use ucs4_t, uint16_t types.
66942         * lib/unistr/utf16-ucs4.c: New file.
66943
66944         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
66945         (Depends-on): Add unitypes.
66946         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
66947         (u8_uctomb_aux): Move out to separate file.
66948         (u8_uctomb): Use ucs4_t, uint8_t types.
66949         * lib/unistr/ucs4-utf8.c: New file.
66950
66951         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
66952         (Depends-on): Add unitypes.
66953         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
66954         (u16_uctomb_aux): Move out to separate file.
66955         (u16_uctomb): Use ucs4_t, uint16_t types.
66956         * lib/unistr/ucs4-utf16.c: New file.
66957
66958 2006-12-25  Bruno Haible  <bruno@clisp.org>
66959
66960         * modules/unitypes: New file.
66961         * lib/unitypes.h: New file.
66962         * MODULES.html.sh (func_all_modules): New section "Unicode string
66963         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
66964         this section. Add unitypes.
66965
66966 2007-01-08  Bruno Haible  <bruno@clisp.org>
66967
66968         Avoid variable names that conflict with those from libtool.
66969         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
66970         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
66971         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
66972         library_names_spec to acl_library_names_spec, hardcode_* to
66973         acl_hardcode_*.
66974         Reported by Ralf Wildenhues.
66975
66976 2007-01-08  Bruno Haible  <bruno@clisp.org>
66977
66978         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
66979         definition.
66980         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
66981         definition.
66982         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
66983         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
66984         definition.
66985         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
66986         definition.
66987         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
66988         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
66989         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
66990         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
66991         definition.
66992         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
66993         definition.
66994         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
66995         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
66996         GC_USE_<algorithm>.
66997         * lib/gc-libgcrypt.c: Likewise.
66998         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
66999         * modules/gc-arctwo (configure.ac): Likewise.
67000         * modules/gc-des (configure.ac): Likewise.
67001         * modules/gc-hmac-md5 (configure.ac): Likewise.
67002         * modules/gc-hmac-sha1 (configure.ac): Likewise.
67003         * modules/gc-md2 (configure.ac): Likewise.
67004         * modules/gc-md4 (configure.ac): Likewise.
67005         * modules/gc-md5 (configure.ac): Likewise.
67006         * modules/gc-random (configure.ac): Likewise.
67007         * modules/gc-rijndael (configure.ac): Likewise.
67008         * modules/gc-sha1 (configure.ac): Likewise.
67009
67010 2007-01-08  Bruno Haible  <bruno@clisp.org>
67011
67012         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
67013         macro definition.
67014         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
67015         definition.
67016         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
67017         definition.
67018         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
67019         * modules/fcntl-safer (configure.ac): Likewise.
67020         * modules/fopen-safer (configure.ac): Likewise.
67021         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
67022         GNULIB_FWRITEERROR macro definition.
67023
67024 2007-01-08  Bruno Haible  <bruno@clisp.org>
67025
67026         * m4/gnulib-common.m4: New file.
67027         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
67028         (func_get_filelist): Add m4/gnulib-common.m4.
67029
67030 2007-01-08  Bruno Haible  <bruno@clisp.org>
67031
67032         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
67033         command.
67034
67035 2007-01-08  Jim Meyering  <jim@meyering.net>
67036
67037         Use a more robust test for a "can't happen" condition.
67038         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
67039         narrowed the st_size value.  Presuming the "can't happen" condition
67040         is true, that narrowing could conceivably convert an invalid st_size
67041         value into a valid one.  Instead, use a change based on Matthew
67042         Woehlke's original patch.
67043
67044         Slight readability improvement: use an assert-like macro
67045         in place of literal "abort ()" uses.
67046         * lib/fts.c (fts_assert): Define.
67047         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
67048         Use this macro instead of a bare 'abort'.
67049
67050 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
67051
67052         Don't worry about using IRIX 5.3's wctype.h broken definitions;
67053         simply work around them.
67054         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
67055         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
67056         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
67057         declaring.
67058         Don't bother to define as macros, since the standard doesn't require it.
67059         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
67060         longer worry about IRIX 5.3.
67061         (HAVE_WCTYPE_CTMP_BUG): Remove.
67062
67063 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67064
67065         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
67066         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
67067         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67068         Problems reported by Georg Schwarz for IRIX 5.3.
67069
67070         * gnulib-tool (autoconf_minversion): Take the maximum version number
67071         found, not the minimum.  Problem reported by James Youngman.
67072
67073 2007-01-03  Karl Berry  <karl@gnu.org>
67074
67075         * doc/error.texi: new file, explaining interaction with progname.
67076         * doc/gnulib.texi: include it.  Update copyright.
67077
67078 2007-01-03  Simon Josefsson  <simon@josefsson.org>
67079
67080         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
67081         AC_CANONICAL_HOST, to improve autobuild outputs.
67082
67083 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
67084             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
67085
67086         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
67087         sockets, server sockets, and other file descriptors.  Count errors
67088         to compute the return value.  Reorder the code a bit to be easier
67089         to follow.  Don't set event bits that were not requested (except
67090         POLLERR and POLLHUP).
67091
67092 2007-01-01  Bruno Haible  <bruno@clisp.org>
67093
67094         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
67095
67096 2007-01-03  Jim Meyering  <jim@meyering.net>
67097
67098         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
67099
67100 2007-01-02  Bruno Haible  <bruno@clisp.org>
67101
67102         * modules/settime (Include): Require timespec.h.
67103         * modules/nanosleep (Include): Likewise.
67104
67105 2007-01-01  Bruno Haible  <bruno@clisp.org>
67106
67107         * gnulib-tool (func_emit_copyright_notice): Bump year.
67108         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
67109
67110 2007-01-01  Bruno Haible  <bruno@clisp.org>
67111
67112         Improve support for OpenBSD.
67113         * build-aux/config.rpath (libname_spec): Export.
67114         (library_names_spec): New variable. Export.
67115         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
67116         library_names_spec from the config.rpath output. Locate shared library
67117         through the name pattern in library_names_spec.
67118
67119 2007-01-01  Eric Blake  <ebb9@byu.net>
67120
67121         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
67122
67123 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
67124
67125         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
67126         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
67127         assume the C locale, and avoid an "eval" that could cause trouble.
67128         Problem with SORT reported by Bob Proulx.
67129
67130         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
67131         Define.  Trivial patch from Henning Nielsen Lund, originally
67132         sent to bug-grep@gnu.org today.
67133
67134 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
67135
67136         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
67137         struct stat.  Problem reported by Henning Nielsen Lund.
67138         * lib/acl.c: Include acl.h first, to check interface.  Don't
67139         bother to include sys/types.h and sys/stat.h again.
67140
67141 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67142
67143         Import the following change from libc; problem reported by
67144         Sven Verdoolaege.
67145
67146         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
67147
67148         [BZ #1373]
67149         * lib/argp.h: Remove __NTH for __argp_usage inline function.
67150
67151 2006-12-28  Jim Meyering  <jim@meyering.net>
67152
67153         * build-aux/announce-gen: Do not assume that the package
67154         builds any of tar.gz, tar.bz2, and .xdelta files.
67155         Suggestion from Simon Josefsson.
67156
67157 2006-12-28  Simon Josefsson  <simon@josefsson.org>
67158
67159         * modules/announce-gen: New file.
67160
67161 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
67162
67163         * lib/mbchar.h: Just include <wctype.h>; the wctype module
67164         handles its gotchas now.
67165         * lib/mbswidth.c: Likewise.
67166         * lib/wcwidth.h: Likewise.
67167         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
67168         and iswcntrl; the wctype module does this stuff now.
67169         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67170         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67171         * modules/mbchar (Depends-on): Add wctype.
67172         * modules/mbswidth (Depends-on): Likewise.
67173         * modules/wcwidth (Depends-on): Likewise.
67174
67175 2006-12-27  Eric Blake  <ebb9@byu.net>
67176
67177         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
67178         module uses more than what <wctype.h> is required to provide.
67179
67180 2006-12-26  Eric Blake  <ebb9@byu.net>
67181
67182         * gnulib-tool (sed_extract_prog): Avoid space-tab.
67183
67184 2006-12-26  Eric Blake  <ebb9@byu.net>
67185
67186         * modules/absolute-header: New module.
67187         * modules/fcntl (Depends-on): Depend on it.
67188         * modules/inttypes (Depends-on): Likewise.
67189         * modules/stdint (Depends-on): Likewise.
67190         * modules/sys_stat (Depends-on): Likewise.
67191         * modules/wctype (Depends-on): Likewise.
67192         * MODULES.html.sh (Support for building libraries and
67193         executables): Document it.
67194
67195 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
67196
67197         * gnulib-tool (SED): Remove, undoing previous change.
67198         The problem was that it broke coreutils on Solaris, because
67199         "sed --posix" leaked into a makefile.
67200         (sed): New alias, if 'alias' and GNU sed.
67201
67202 2006-12-24  Jim Meyering  <jim@meyering.net>
67203
67204         Work around an fchownat bug in glibc-2.4:
67205         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
67206         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
67207         in spite of the -P option.
67208         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
67209         New macros.
67210         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
67211         * modules/openat (Files): Add lib/fchownat.c.
67212         * lib/openat.c (fchownat): Don't define here.  Move to...
67213         * lib/fchownat.c: ...this new file.
67214
67215 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67216
67217         Fix bug reported by Bruno Haible in
67218         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
67219         where quotearg.c didn't compile on Mac OS X 10.2 because it
67220         lacks <wchar.h> and wint_t.
67221         * lib/wctype_.h (__wctype_wint_t): New type.
67222         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
67223         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
67224         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
67225         Arg is now of type __wctype_wint_t, not wint_t.
67226         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
67227         substitute HAVE_WINT_T.
67228         * modules/wctype (Files): Add m4/wint_t.m4.
67229         (wctype.h): Substitute HAVE_WINT_T.
67230
67231 2006-12-23  Bruno Haible  <bruno@clisp.org>
67232
67233         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
67234
67235 2006-12-23  Bruno Haible  <bruno@clisp.org>
67236
67237         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
67238         S_ISLNK.
67239         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
67240         mingw.
67241
67242 2006-12-22  Bruno Haible  <bruno@clisp.org>
67243
67244         * lib/copy-file.c: Include acl.h.
67245         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
67246         Close the file descriptors only after being done with copy_acl.
67247         * modules/copy-file (Depends-on): Add acl.
67248
67249 2006-12-22  Bruno Haible  <bruno@clisp.org>
67250
67251         * gnulib-tool (SED): New variable.
67252         Use $SED instead of sed everywhere.
67253
67254 2006-12-22  Bruno Haible  <bruno@clisp.org>
67255
67256         * modules/no-c++: New file.
67257         * m4/no-c++.m4: New file.
67258         * MODULES.html.sh (Support for building libraries and executables):
67259         Add no-c++.
67260
67261 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
67262
67263         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
67264         Include <limits.h>, and use its INT_MAX to rewrite the
67265         j loop so that it does not overflow 'int'.  Problem reported by
67266         Ralf Wildenhues in
67267         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
67268         Play it safe by shifting left by 1 rather than multiplying by 2,
67269         as GCC is less likely to optimize this away when the value
67270         is signed (when it assumes overflow leads to undefined behavior).
67271         Also, don't assume time_t uses two's complement.
67272
67273 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
67274
67275         * MODULES.html.sh: New module wctype.
67276         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
67277         * lib/fnmatch.c: Don't bother to include <wchar.h> before
67278         <wctype.h>, since the new wctype module should fix this.
67279         * lib/quotearg.c: Include <wctype.h> unconditionally, since
67280         the wctype module should arrange for it.
67281         * lib/regex_internal.h: Likewise.
67282         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
67283         since the wctype module should handle this now.
67284         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
67285         * modules/fnmatch (Depends-on): Add wctype.
67286         * modules/quotearg (Depends-on): Likewise.
67287         * modules/regex (Depends-on): Likewise.
67288
67289 2006-12-19  Bruno Haible  <bruno@clisp.org>
67290
67291         * lib/strdup.h [C++]: Wrap definitions in extern "C".
67292         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
67293
67294 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67295
67296         * modules/savewd (Depends-on): Fix dependency on fcntl.
67297
67298 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
67299
67300         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
67301         conforms to C99, rather than relying on the user's environment
67302         setting of STDINT_H.
67303
67304 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
67305         and Eric Blake  <ebb9@byu.net>
67306
67307         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
67308         This is more consistent with the other defines here.
67309         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
67310         Port to z/OS.  Problem reported by Paul Gilmartin.
67311         Change local vars to use gl_ prefix rather than ac_.
67312         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
67313         with other defines.
67314         * modules/double-slash-root: New module.
67315         * modules/dirname (Files): Remove m4/double-slash-root.m4.
67316         (Depends-on): Add double-slash-root.
67317         * MODULES.html.sh (File system functions): Mention new module.
67318
67319 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
67320
67321         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
67322         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
67323         This is for the benefit of gzip, which doesn't do i18n.
67324
67325 2006-12-12  Jim Meyering  <jim@meyering.net>
67326
67327         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
67328         Reported by Andreas Schwab <schwab@suse.de>.
67329
67330 2006-12-12  Bruno Haible  <bruno@clisp.org>
67331
67332         Merge these changes.
67333         2006-09-05  Bruno Haible  <bruno@clisp.org>
67334         * lib/iconvme.c (iconv_string): No need to save and restore errno when
67335         iconv_alloc succeeded.
67336         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
67337         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
67338         test for " && dest " at the end - dest is always != NULL there. Call
67339         iconv with 4xNULL arguments initially, to reset the state. Call iconv
67340         with 2xNULL arguments, also to flush the state storage. Handle the
67341         IRIX iconv behaviour. Realloc the final result, to throw away unused
67342         memory.
67343
67344 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
67345
67346         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
67347         and fchmodat unconditionally, since glibc 2.4 has them.
67348         Problem reported by Arkadiusz Miskiewicz.
67349
67350 2006-12-10  Bruno Haible  <bruno@clisp.org>
67351
67352         * gnulib-tool (func_import): Show the include files only for those
67353         modules that are copied and specified.
67354         Reported by Karl Berry.
67355
67356 2006-12-08  Jim Meyering  <jim@meyering.net>
67357
67358         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
67359         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
67360
67361         * build-aux/announce-gen: Add two new options, both optional:
67362         --bootstrap-tools=TOOL_LIST
67363               a comma-separated list of tools, e.g.,
67364               autoconf,automake,bison,gnulib
67365         --gnulib-snapshot-date=DATE
67366               if gnulib is in the bootstrap tool list,
67367               then report this as the snapshot date.
67368               If not specified, use the current date/time.
67369               If you specify a date here, be sure it's UTC.
67370
67371 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67372
67373         * tests/test-argp-2.sh: Fix test to match actual output.
67374         (func_compare): Fix sed script to be portable.
67375
67376 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
67377
67378         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
67379         workaround for this case.  It is not autoconfigured now; offhand
67380         it's hard to see how to autoconfigure it.
67381
67382 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
67383
67384         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
67385         a directory that is about to be chowned.  Such a directory's
67386         initial file permissions should permit the owner only and this
67387         should not be changed until after the chown, since the group and
67388         other bits would be incorrect if they granted permission before
67389         the chown.
67390
67391         Fix porting problem for iswctype reported by Georg Schwarz in:
67392         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
67393         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
67394         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
67395         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
67396         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67397
67398 2006-12-03  Jim Meyering  <jim@meyering.net>
67399
67400         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
67401         p->fts_statp may not yet be defined.
67402         (fts_read): Instead, set it in the caller, once p->fts_statp is
67403         sure to be defined, and corresponds to a top-level directory.
67404         This bug made du -x fail.  Here's the coreutils test case:
67405         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
67406         Reported by Mike Frysinger.
67407
67408 2006-12-01  Jim Meyering  <jim@meyering.net>
67409
67410         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
67411         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
67412         Reported by Simon Josefsson.
67413
67414 2006-11-30  Jim Meyering  <jim@meyering.net>
67415
67416         * m4/warning.m4: Use the all-permissive copyright notice
67417         recommended by RMS (rather than LGPL).
67418         * m4/vararrays.m4: Likewise.
67419         * m4/flexmember.m4: Likewise.
67420
67421 2006-11-29  Bruno Haible  <bruno@clisp.org>
67422
67423         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67424         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
67425         using +=.
67426         Reported by Simon Josefsson <simon@josefsson.org>.
67427
67428 2006-11-28  James Youngman <jay@gnu.org>
67429
67430         * README: Advise users that they might find the bug-gnulib@gnu.org
67431         and autotools-announce@gnu.org mailing lists useful.
67432
67433 2006-11-28  Bruno Haible  <bruno@clisp.org>
67434
67435         * m4/ptrdiff_max.m4: Remove file.
67436
67437 2006-11-21  Bruno Haible  <bruno@clisp.org>
67438
67439         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
67440         _AC_COMPUTE_INT.
67441         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67442         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
67443         _AC_COMPUTE_INT.
67444         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67445         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
67446         _AC_COMPUTE_INT.
67447         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67448
67449 2006-11-28  Jim Meyering  <jim@meyering.net>
67450
67451         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
67452         warning from "gcc -Wshadow" about shadowing the builtin.
67453
67454 2006-11-27  Bruno Haible  <bruno@clisp.org>
67455
67456         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
67457         _AC_COMPUTE_INT.
67458         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67459
67460 2006-11-27  Bruno Haible  <bruno@clisp.org>
67461             Paul Eggert  <eggert@cs.ucla.edu>
67462
67463         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
67464
67465 2006-11-26  Bruno Haible  <bruno@clisp.org>
67466
67467         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67468         noinst_LTLIBRARIES.
67469
67470 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
67471             Bruno Haible  <bruno@clisp.org>
67472
67473         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
67474         if compiling with "gcc -ansi".
67475
67476 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
67477
67478         Fix some incompatibilities with gcc -ansi -pedantic.
67479         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
67480         if compiling pedantically with GCC, unless it's C99 or later.
67481         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
67482         it mishandles gcc -ansi -pedantic as well.
67483         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
67484         if gcc -pedantic.
67485         * lib/regexec.c (check_node_accept_bytes): Don't use auto
67486         initializers for struct if -pedantic, unless it's C99 or later.
67487
67488 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
67489
67490         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
67491         Don't close an fd more than once. Identical atimes indicate
67492         success, not failure.
67493
67494 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
67495
67496         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
67497
67498 2006-11-23  Jim Meyering  <jim@meyering.net>
67499
67500         * build-aux/announce-gen: New file.  From coreutils.
67501
67502 2006-11-22  Jim Meyering  <jim@meyering.net>
67503
67504         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
67505         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
67506         (fts_read): Use a temporary to narrow the overused st_size member
67507         before using it in a switch statement.  Reported by Matthew Woehlke.
67508
67509         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
67510         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
67511
67512 2006-11-20  Bruno Haible  <bruno@clisp.org>
67513
67514         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
67515         changequote instead of pairs of brackets.
67516         Reported by Andreas Schwab <schwab@suse.de>.
67517
67518 2006-11-21  Jim Meyering  <jim@meyering.net>
67519
67520         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
67521         so as to remain compatible with older compilers.
67522         Patch from Michael Deutschmann.
67523
67524 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67525
67526         * MODULES.html.sh (File system functions): Add openat.
67527
67528         * lib/openat.h (rpl_fstatat): New macro, if
67529         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
67530         (fstatat): Define to rpl_fstatat under the same conditions,
67531         unless COMPILING_FSTATAT.
67532         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
67533         seems to have the bug.
67534         * lib/fstatat.c: New file.
67535         * modules/openat (Files): Add it.
67536
67537 2006-11-20  Bruno Haible  <bruno@clisp.org>
67538
67539         * Makefile: New file.
67540
67541 2006-11-20  Jim Meyering  <jim@meyering.net>
67542
67543         The beginnings of syntax-related checks for gnulib.
67544         * lib/Makefile: New file.
67545         * lib/t-idcache: New script.  Ensure that the two halves of
67546         idcache.c stay in sync.
67547
67548         * lib/idcache.c: Adjust comments in user- and group- portions to
67549         be more accurate, and to be consistent with one another.
67550
67551 2006-11-20  Jim Meyering  <jim@meyering.net>
67552
67553         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
67554         continue using the flexible array member (thus, this module performs
67555         half as many malloc calls), with the addition that...
67556         (getgroup, getuser): Consistently record a non-match via an empty
67557         "name" string, and map an empty string match to a NULL return value.
67558         * modules/idcache (Depends-on): Re-add flexmember.
67559
67560         * lib/idcache.c (getuser): Remove all uses of the register keyword.
67561         (getuidbyname, getgroup, getgidbyname): Likewise.
67562
67563         Use cleaner syntax: NULL rather than 0.
67564         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
67565
67566 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67567
67568         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
67569         It mishandled the case where the group was missing.
67570         Problem reported by Greg Schafer.
67571         * modules/idcache: Likewise.
67572
67573 2006-11-18  Jim Meyering  <jim@meyering.net>
67574
67575         * check-module (%exempt_header): Add exception for some
67576         conditionally-included headers.
67577
67578         * modules/i-ring (Depends-on): Add verify.
67579         (License): Change to LGPL.
67580
67581 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67582
67583         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
67584         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
67585         and inttostr.h.  Use snprintf rather than uinttostr, so that
67586         LGPLed code doesn't depend on GPLed.
67587
67588 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67589
67590         * modules/inline (License): Change from GPL to LGPL.
67591
67592 2006-11-17  Jim Meyering  <jim@meyering.net>
67593
67594         * modules/d-type (License): Switch to LGPL.
67595
67596 2006-11-15  Bruno Haible  <bruno@clisp.org>
67597
67598         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
67599
67600 2006-11-15  Eric Blake  <ebb9@byu.net>
67601
67602         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
67603         the module dependency.
67604
67605 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67606             Bruno Haible  <bruno@clisp.org>
67607
67608         * gnulib-tool (func_create_testdir): Add license consistency check.
67609
67610 2006-11-15  Eric Blake  <ebb9@byu.net>
67611
67612         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
67613         random "(cached)" in configure output.
67614
67615 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67616
67617         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
67618         test for conforming inttypes.h is both announced and cached.
67619
67620         * MODULES.html.sh (seen_modules, seen_files): New variables.
67621         (func_module): Rewrite to use a few less gnulib-tool and sed
67622         invocations.  Avoid a couple of quadratic algorithms for ...
67623         (missed_modules, missed_files): ... these, with ...
67624         (func_append, func_tmpdir): ... these new functions, from
67625         gnulib-tool.  Analogously, install traps for cleanup.
67626
67627         * tests/test-gc.c (main): Remove unused variables.
67628         * tests/test-read-file.c: Include stdlib.h, for 'free'.
67629
67630 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
67631
67632         * modules/inttostr (License): Change to LGPL.
67633
67634 2006-11-14  Eric Blake  <ebb9@byu.net>
67635
67636         * modules/tempname (License): Change to LGPL.
67637
67638 2006-11-14  Eric Blake  <ebb9@byu.net>
67639
67640         * doc/functions.texi (Function Portability): *printf functions on
67641         Cygwin now understand all POSIX size specifiers.
67642
67643 2006-11-14  Bruno Haible  <bruno@clisp.org>
67644
67645         * modules/c-ctype (License): Change to LGPL.
67646
67647 2006-11-12  Bruno Haible  <bruno@clisp.org>
67648
67649         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
67650         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
67651         for GNOME libraries, for which the include files are installed in
67652         subdirectories of $prefix/include.
67653
67654 2006-11-12  Bruno Haible  <bruno@clisp.org>
67655
67656         * m4/lib-link.m4: Require at least autoconf-2.54.
67657         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
67658         name to underscores for the --with option.
67659
67660 2006-11-13  Bruno Haible  <bruno@clisp.org>
67661
67662         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
67663         the tests directory.
67664         Reported by Ralf Wildenhues.
67665
67666 2006-11-13  Bruno Haible  <bruno@clisp.org>
67667
67668         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
67669         (func_emit_initmacro_end): Undo the override here.
67670         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
67671         Works around the famous automake error in coreutils.
67672
67673 2006-11-13  Eric Blake  <ebb9@byu.net>
67674
67675         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
67676         element, not its node.
67677
67678 2006-11-12  Bruno Haible  <bruno@clisp.org>
67679
67680         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
67681         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
67682
67683 2006-11-12  Bruno Haible  <bruno@clisp.org>
67684
67685         * gnulib-tool: New option --local-symlink.
67686         (func_usage): Document it.
67687         (lsymbolic): New variable.
67688         (func_import, func_create_testdir): If --symlink was not specified,
67689         test whether --local-symlink was specified and the file comes from
67690         the local_gnulib_dir.
67691
67692 2006-11-12  Bruno Haible  <bruno@clisp.org>
67693
67694         * gnulib-tool (func_ln): New function.
67695         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
67696
67697 2006-11-12  Bruno Haible  <bruno@clisp.org>
67698
67699         Finish support for source files in subdirectories.
67700         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
67701         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
67702         AUTOMAKE_OPTIONS.
67703         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
67704
67705 2006-11-12  Bruno Haible  <bruno@clisp.org>
67706
67707         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67708         EXTRA_lib_SOURCES augmentation.
67709         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
67710
67711 2006-11-12  Jim Meyering  <jim@meyering.net>
67712
67713         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
67714         file descriptors.  This also averts a failure on systems with
67715         native openat support when a traversed directory lacks "x" access.
67716         * lib/fts_.h: Include "i-ring.h"
67717         (struct FTS) [fts_fd_ring]: New member.
67718         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
67719         (FCHDIR): Add parentheses.
67720         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
67721         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
67722         When descending, rather than simply closing the previous
67723         fts_cwd_fd value, push that file descriptor onto the ring.
67724         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
67725         (fts_open): Initialize the new fd_ring member.
67726         (fts_close): Clear the ring.
67727         (fts_safe_changedir): When possible, use our new fd_ring to skip
67728         the diropen and fstat and dev/ino comparison that would normally
67729         accompany a virtual `chdir ("..")'.
67730
67731         * modules/fts (Depends-on): Add i-ring.
67732         * modules/i-ring: New module.
67733         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
67734         * m4/i-ring.m4: New file.
67735
67736 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67737
67738         * gnulib-tool (func_create_testdir): Fix replacement of
67739         `build-aux' in configure.ac.  Run autotools in gltests
67740         subdirectory.
67741         (func_create_testdir, func_create_megatestdir, test): There is
67742         no need for '--force' in most autotool invocations in a new
67743         tree.  Actually fail the whole test if any of the tools, or the
67744         configure or make stages fail.
67745
67746         Sync from Automake.
67747         * build-aux/gnupload: Revert last change.  Add pointer to upload
67748         instructions of the GNU Maintenance Instructions.
67749         Suggestion by Karl Berry.
67750
67751 2006-11-10  Jim Meyering  <jim@meyering.net>
67752
67753         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
67754
67755 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67756
67757         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
67758         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
67759         (bind_textdomain_codeset) [! ENABLE_NLS]:
67760         Evaluate all the arguments.  That way, callers get compatible behavior
67761         if the arguments have side effects.  Also, it avoids some GCC
67762         diagnostics in some cases; Joel E. Denny reported problems when Bison
67763         was configured with --enable-gcc-warnigs.
67764
67765 2006-11-10  Jim Meyering  <jim@meyering.net>
67766
67767         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
67768         relevant options in CFLAGS (like -O, -fno-inline) are taken into
67769         account.
67770
67771 2006-11-10  Jim Meyering  <jim@meyering.net>
67772
67773         * modules/inline: New file/module.
67774         * modules/xalloc (Files): Remove m4/inline.m4.
67775         (Depends-on): Add inline, instead.
67776         * modules/oset: Likewise.
67777         * modules/list: Likewise.
67778
67779 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67780
67781         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
67782         Problem reported by Matthew Woehlke.
67783
67784 2006-11-09  Bruno Haible  <bruno@clisp.org>
67785
67786         * lib/tempname.c (gen_tempname): Remove variant that invokes
67787         __gen_tempname.
67788         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
67789         __gen_tempname.
67790
67791 2006-11-08  Bruno Haible  <bruno@clisp.org>
67792
67793         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
67794         to 'yes' instead of 'cross-compiling'.
67795
67796 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
67797
67798         * lib/quotearg.h (quotearg_free): New decl.
67799         * lib/quotearg.c (quotearg_free): New function.
67800         (slot0, nslots, slotvec0, slotvec):
67801         Now file-scope so that quotearg_free can get at them.
67802
67803 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67804
67805         Sync from Automake.
67806         * build-aux/gnupload: Add missing 'gnu' to example URL.
67807         Report by Karl Berry.
67808
67809 2006-11-08  Bruno Haible  <bruno@clisp.org>
67810
67811         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
67812         Suggested by Paul Eggert.
67813
67814 2006-11-08  Jim Meyering  <jim@meyering.net>
67815
67816         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
67817         It's already included if !_LIBC.
67818         (fts_safe_changedir): Add a comment.
67819
67820 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67821
67822         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
67823         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
67824         Matthew Woehlke.
67825
67826         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
67827         definitions up, to avoid colliding with change below.
67828         (static_inline) [HAVE_INLINE]: New macro.
67829         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
67830         Provide extern decls when !HAVE_INLINE.  Do not define unless
67831         static_inline is defined, either by us or by xmalloc.c.  Use
67832         static_inline rather than static inline.
67833         (XCALLOC): Optimize sizeof(T) = 1 case.
67834         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
67835
67836 2006-11-07  Bruno Haible  <bruno@clisp.org>
67837
67838         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
67839         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
67840         AC_C_INLINE.
67841         * modules/xalloc (Files): Add m4/inline.m4.
67842
67843 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67844
67845         * README: Fix typo.
67846         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
67847         (Miscellanous Notes): ...from this.
67848
67849 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67850
67851         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
67852         Mention that offsetof should be used instead of sizeof.
67853         From Bruno Haible.
67854
67855 2006-11-07  Bruno Haible  <bruno@clisp.org>
67856
67857         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
67858
67859 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67860
67861         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67862         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
67863         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67864         (gl_tree_add_before, gl_tree_add_after):
67865         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
67866         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
67867         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67868         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
67869         (gl_linked_add_after, gl_linked_add_at): Likewise.
67870         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
67871         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67872         (gl_tree_add_before, gl_tree_add_after): Likewise.
67873         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
67874         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
67875         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
67876
67877 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67878
67879         * lib/gl_oset.h: Use C comment style, not C++ comment style.
67880
67881 2006-11-06  Bruno Haible  <bruno@clisp.org>
67882
67883         * m4/inline.m4: New file.
67884         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
67885         * modules/list (Files): Add m4/inline.m4.
67886         * modules/oset (Files): Likewise.
67887
67888 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67889
67890         * lib/idcache.c: Include <stddef.h>, for offsetof.
67891         (struct userid.name): Change from char * to a flexible array member.
67892         All uses changed.
67893         * modules/idcache (Depends-on): Add flexmember.
67894
67895         * MODULES.html.sh (Core language properties): New module flexmember.
67896         * modules/flexmember, m4/flexmember.m4: New files.
67897
67898         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
67899         inline functions that are identical with the old xnmalloc_inline,
67900         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
67901         that we can avoid some unnecessary integer multiplications and
67902         divisions in the common case where the element size is known at
67903         compile time.
67904         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
67905         needed.
67906         (xnboundedmalloc): Remove.
67907         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
67908         arguments, for consistency with rest of this header.
67909         (xcharalloc): Rewrite using XNMALLOC.
67910         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
67911         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
67912         versions have been moved to lib/xalloc.h and renamed to be the
67913         non-*_inline versions.
67914         (xmalloc, xrealloc): Implement without reference to the xnmalloc
67915         and xnrealloc functions, since those functions are now inline and
67916         now call us.
67917         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
67918         renaming described above.
67919         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
67920         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
67921         captures the dependency in AC_C_INLINE.
67922
67923         New module canonicalize-lgpl, proposed by Charles Wilson in
67924         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
67925         with a few small changes afterwards.
67926         * MODULES.html.sh (File system functions): New module
67927         canonicalize-lgpl.
67928         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
67929         and canonicalize_file_name.
67930         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
67931         * modules/canonicalize-lgpl: New files.
67932
67933 2006-11-05  Bruno Haible  <bruno@clisp.org>
67934
67935         * gnulib-tool (func_import, func_create_testdir): Create directories
67936         also for files in subdirectories of lib/.
67937
67938 2006-11-05  Bruno Haible  <bruno@clisp.org>
67939
67940         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
67941         ANSI C compliant.
67942
67943 2006-11-03  Bruno Haible  <bruno@clisp.org>
67944
67945         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67946         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
67947         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
67948         (xnboundedmalloc): New inline function.
67949         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
67950         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
67951         xmalloc.
67952         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
67953         xmalloc.
67954         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
67955         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
67956         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
67957         xmalloc.
67958         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67959         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
67960         xmalloc.
67961         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
67962         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67963         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
67964         xmalloc.
67965         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67966         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
67967         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67968         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
67969         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
67970         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
67971         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
67972
67973 2006-11-03  Bruno Haible  <bruno@clisp.org>
67974
67975         * lib/c-ctype.h [C++]: Define functions without name mangling.
67976         * lib/fwriteerror.h [C++]: Likewise.
67977         * lib/gcd.h [C++]: Likewise.
67978         * lib/linebreak.h [C++]: Likewise.
67979
67980 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
67981
67982         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
67983         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
67984         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
67985         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
67986         Check for functions and headers just once.
67987         Check for declaration of canonicalize_file_name.
67988         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
67989
67990 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67991
67992         * gnulib-tool (func_import): Fix typo in actioncmd.
67993
67994 2006-11-02  Bruno Haible  <bruno@clisp.org>
67995
67996         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
67997         newline sequence in the Makefile.am snippet as a space, like "make"
67998         does.
67999         Reported by Roger Persson <perrog@gmail.com>.
68000
68001 2006-11-01  Bruno Haible  <bruno@clisp.org>
68002
68003         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
68004         already declared in <string.h>.
68005         * lib/strcase.h (strncasecmp): Don't declare it if yes.
68006
68007 2006-11-01  Bruno Haible  <bruno@clisp.org>
68008
68009         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
68010         * lib/strcase.h: Include <string.h>.
68011         (strcasecmp): Define to rpl_strcasecmp here.
68012
68013 2006-11-01  Bruno Haible  <bruno@clisp.org>
68014
68015         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
68016
68017 2006-11-01  Eric Blake  <ebb9@byu.net>
68018
68019         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
68020
68021         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
68022
68023 2006-10-29  Bruno Haible  <bruno@clisp.org>
68024
68025         Make it compile in C++ mode.
68026         * lib/full-write.c (full_rw): Add a cast.
68027
68028 2006-11-01  Bruno Haible  <bruno@clisp.org>
68029
68030         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
68031         be POSIX compliant.
68032         Reported by Roger Persson <perrog@gmail.com>.
68033
68034 2006-11-01  Eric Blake  <ebb9@byu.net>
68035
68036         * lib/getopt_.h: Fix comments.
68037
68038 2006-10-31  Eric Blake  <ebb9@byu.net>
68039
68040         * modules/tmpdir (Depends-on): Add sys_stat.
68041         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
68042         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
68043         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
68044         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
68045         tempname.
68046
68047 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
68048
68049         Avoid some C++ diagnostics reported by Bruno Haible.
68050         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
68051         xmalloc.
68052         (quotearg_alloc): Use xcharalloc rather than xmalloc.
68053         (struct slotvec): Move to top level.
68054         (quotearg_n_options): Rewrite to avoid xmalloc.
68055         * lib/xalloc.h (xcharalloc): New function.
68056         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
68057         [defined __cplusplus]: Add function template that provides result
68058         type propagation.  This part of the change is from Bruno Haible.
68059
68060 2006-10-29  Bruno Haible  <bruno@clisp.org>
68061
68062         Make it compile in C++ mode.
68063         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
68064         * lib/strnlen1.c (strnlen1): Cast memchr result.
68065         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
68066         * lib/clean-temp.c (string_equals, string_hash): Add casts.
68067         (create_temp_dir): Rename local variable 'template'.
68068         (compile_csharp_using_sscli): Add cast.
68069         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
68070         * lib/findprog.c (find_in_path): Likewise.
68071         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
68072         * lib/wait-process.c (register_slave_subprocess): Likewise.
68073
68074 2006-10-22  Bruno Haible  <bruno@clisp.org>
68075
68076         * modules/tsearch: New file.
68077         * lib/tsearch.h: New file.
68078         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
68079         * m4/tsearch.m4: New file.
68080         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
68081
68082 2006-10-29  Eric Blake  <ebb9@byu.net>
68083
68084         * lib/arcfour.c: Assume config.h.
68085         * lib/arctwo.c: Likewise.
68086         * lib/base64.c: Likewise.
68087         * lib/check-version.c: Likewise.
68088         * lib/crc.c: Likewise.
68089         * lib/des.c: Likewise.
68090         * lib/gc-gnulib.c: Likewise.
68091         * lib/gc-libgcrypt.c: Likewise.
68092         * lib/gc-pbkdf2-sha1.c: Likewise.
68093         * lib/getaddrinfo.c: Likewise.
68094         * lib/getdelim.c: Likewise.
68095         * lib/getline.c: Likewise.
68096         * lib/hmac-md5.c: Likewise.
68097         * lib/hmac-sha1.c: Likewise.
68098         * lib/iconvme.c: Likewise.
68099         * lib/md2.c: Likewise.
68100         * lib/md4.c: Likewise.
68101         * lib/memxor.c: Likewise.
68102         * lib/read-file.c: Likewise.
68103         * lib/readline.c: Likewise.
68104         * lib/rijndael-alg-fst.c: Likewise.
68105         * lib/rijndael-api-fst.c: Likewise.
68106         * lib/xgetdomainname.c: Likewise.
68107
68108 2006-10-28  Eric Blake  <ebb9@byu.net>
68109
68110         * lib/xstrndup.c: Assume config.h.
68111
68112 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
68113
68114         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
68115         stat-macros.h is now for our own macros, whereas stat_h is for
68116         macros in the <sys/stat.h> name space.
68117         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
68118         (STAT_MACROS_H): Remove.
68119         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
68120         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
68121         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
68122         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
68123         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
68124         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
68125         Move these macros to ...
68126         * lib/stat_.h: here.  Don't include stat-macros.h.
68127         * lib/canonicalize.c: Don't include stat-macros.h.
68128         * lib/chown.c: Likewise.
68129         * lib/euidaccess.c: Likewise.
68130         * lib/file-type.c: Likewise.
68131         * lib/filemode.c: Likewise.
68132         * lib/glob.c: Likewise.
68133         * lib/isapipe.c: Likewise.
68134         * lib/lchown.c: Likewise.
68135         * lib/lstat.c: Likewise.
68136         * lib/mkdir-p.c: Likewise.
68137         * lib/rmdir.c: Likewise.
68138         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
68139         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
68140         unless mkdir isn't declared, to speed up 'configure'.
68141         Always create sys/stat.h, since it's unlikely any real sys/stat.h
68142         would define all the S_* symbols.
68143         * modules/canonicalize (Depends-on):
68144         Depend on sys_stat, not stat-macros.
68145         * modules/chown: Likewise.
68146         * modules/euidaccess: Likewise.
68147         * modules/filemode: Likewise.
68148         * modules/file-type: Likewise.
68149         * modules/glob: Likewise.
68150         * modules/isapipe: Likewise.
68151         * modules/lchown: Likewise.
68152         * modules/lstat: Likewise.
68153         * modules/mkancesdirs: Likewise.
68154         * modules/rmdir: Likewise.
68155         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
68156         * modules/modechange: Likewise.
68157         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
68158         (configure.ac): Remove gl_STAT_MACROS.
68159         * modules/sys_stat (Depends-on): Remove stat-macros.
68160
68161 2006-10-27  Bruno Haible  <bruno@clisp.org>
68162
68163         * m4/signed.m4: Remove file.
68164         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
68165         invocation.
68166         * modules/vasnprintf (Files): Remove m4/signed.m4.
68167
68168 2006-10-27  Bruno Haible  <bruno@clisp.org>
68169
68170         Update to GNU gettext 0.16.
68171         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
68172         m4/inttypes-h.m4, m4/signed.m4.
68173         * m4/gettext.m4: Update to GNU gettext 0.16.
68174         * m4/intl.m4: New file, from GNU gettext.
68175         * m4/intldir.m4: New file, from GNU gettext.
68176         * config/srclist.txt: Update
68177
68178 2006-10-27  Eric Blake  <ebb9@byu.net>
68179
68180         * MODULES.html.sh: Document tempname.
68181         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
68182         dependencies.
68183         (Files): Move lib/tempname.c...
68184         * modules/tempname: ...to this new module.
68185         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
68186         (gl_PREREQ_TEMPNAME): Move...
68187         * m4/tempname.m4: ...to this new file.
68188         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
68189         * modules/sys_stat (Depends-on): Add stat-macros.
68190         * lib/stat_.h (includes): Pick up stat macros.
68191         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
68192         if stat macros are broken.
68193         * lib/tempname.c (includes): No need to include "stat-macros.h".
68194         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
68195         (direxists, __path_search) [!_LIBC]: Don't compile these in
68196         gnulib; the tmpdir module covers that.
68197         * lib/tempname.h: New file.
68198
68199 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
68200
68201         * COPYING: Explain how gnulib-tool converts licence headers.
68202         Almost all wording by Eric Blake.
68203
68204 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
68205
68206         * lib/mbchar.h (is_basic_table): Make read-only.
68207         * lib/mbchar.c (is_basic_table): Likewise.
68208         Reported by John Darrington.
68209
68210 2006-10-25  Bruno Haible  <bruno@clisp.org>
68211
68212         * lib/progname.h (set_program_name): Undefine before defining.
68213
68214 2006-10-25  Bruno Haible  <bruno@clisp.org>
68215
68216         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
68217         false for non-gcc C++ compilers.
68218         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
68219
68220 2006-10-24  Bruno Haible  <bruno@clisp.org>
68221
68222         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
68223         iconv implementations like Irix iconv.
68224
68225 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68226
68227         * modules/vararrays: New file.
68228         * m4/vararrays.m4: New file, taken from diffutils.
68229         * MODULES.html.sh: New module vararrays.
68230
68231 2006-10-24  Karl Berry  <karl@gnu.org>
68232
68233         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
68234         Don't call GNU Unix.
68235
68236 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68237
68238         * users.txt: Add Libtool.
68239
68240         Sync from Libtool:
68241
68242         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68243
68244         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
68245         to gnulib's policy of including config.h unconditionally.
68246
68247 2006-10-24  Bruno Haible  <bruno@clisp.org>
68248
68249         * modules/wcwidth (Files): Add m4/wint_t.m4.
68250         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
68251         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
68252
68253 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68254
68255         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
68256         to pacify GCC with some -W flags enabled.  Problem reported by
68257         Bruno Haible.
68258
68259 2006-10-24  Jim Meyering  <jim@meyering.net>
68260
68261         * MODULES.html.sh: Remove uinttostr.  It's not a module.
68262         Reported by Karl Berry.
68263
68264 2006-10-23  Bruno Haible  <bruno@clisp.org>
68265
68266         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
68267
68268 2006-10-24  Bruno Haible  <bruno@clisp.org>
68269
68270         * lib/gl_list.h: Use C comment style, not C++ comment style.
68271
68272 2006-10-23  Eric Blake  <ebb9@byu.net>
68273
68274         * lib/getaddrinfo.c (includes): Add missing include.
68275
68276 2006-10-23  Bruno Haible  <bruno@clisp.org>
68277             Paul Eggert  <eggert@cs.ucla.edu>
68278
68279         Ability to rename obstack_free.
68280         * lib/obstack.h (__obstack_free): New macro. Declare instead of
68281         obstack_free.
68282         (obstack_free): Invoke the __obstack_free macro.
68283         * lib/obstack.c (obstack_free): Use __obstack_free macro.
68284
68285 2006-10-23  Bruno Haible  <bruno@clisp.org>
68286             Paul Eggert  <eggert@cs.ucla.edu>
68287
68288         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
68289         __argc, __argv from the declaration. (They are defined as macros on
68290         mingw.)
68291
68292 2006-10-22  Bruno Haible  <bruno@clisp.org>
68293
68294         * doc/gnulib-intro.texi: New file.
68295         * doc/gnulib.texi: Include it.
68296
68297 2006-10-21  Bruno Haible  <bruno@clisp.org>
68298
68299         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
68300         "Introduction", "Miscellanous Notes", "Particular Modules".
68301
68302 2006-10-21  Bruno Haible  <bruno@clisp.org>
68303
68304         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68305         Change mostlyclean-local rule to avoid sh syntax error from bash
68306         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
68307
68308 2006-10-23  Jim Meyering  <jim@meyering.net>
68309
68310         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
68311         in place of snprintf.
68312
68313         * modules/inttostr (Files): Add lib/uinttostr.c.
68314         * lib/uinttostr.c (inttostr): New file/function.
68315         * lib/inttostr.h (uinttostr): Declare.
68316         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
68317         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
68318         Add uinttostr.
68319         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
68320
68321 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
68322
68323         * lib/canonicalize.c (ELOOP): Define if not already defined.
68324         Problem reported by Bruno Haible in
68325         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
68326
68327 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
68328
68329         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
68330         Problem reported by Perry Smith and Ville Laurikari.
68331
68332         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
68333         uses.
68334
68335 2006-10-19  Bruno Haible  <bruno@clisp.org>
68336
68337         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
68338         for mingw.
68339
68340 2006-10-19  Bruno Haible  <bruno@clisp.org>
68341
68342         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
68343         Needed for mingw.
68344
68345 2006-10-19  Bruno Haible  <bruno@clisp.org>
68346
68347         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
68348
68349 2006-10-19  Bruno Haible  <bruno@clisp.org>
68350
68351         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
68352         it.
68353
68354 2006-10-19  Bruno Haible  <bruno@clisp.org>
68355
68356         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
68357         invocation.
68358
68359 2006-10-19  Bruno Haible  <bruno@clisp.org>
68360
68361         * gnulib-tool (func_create_testdir): Don't include ftruncate and
68362         mountlist by default.
68363
68364 2006-10-16  Bruno Haible  <bruno@clisp.org>
68365
68366         * lib/c-strstr.c: Include c-strstr.h.
68367
68368 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68369
68370         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
68371         in a slash.
68372
68373 2006-10-18  Bruno Haible  <bruno@clisp.org>
68374
68375         * lib/lock.h [C++]: Wrap definitions in extern "C".
68376
68377 2006-10-18  Bruno Haible  <bruno@clisp.org>
68378
68379         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
68380         gl_LIBOBJS list.
68381
68382 2006-10-18  Bruno Haible  <bruno@clisp.org>
68383
68384         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
68385
68386 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
68387
68388         * lib/xstrtol.h: Include gettext.h.
68389         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
68390         Problem reported by Eric Blake.
68391         * modules/xstrtol (Depends-on): Add gettext-h.
68392
68393 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
68394
68395         * lib/strftime.c (advance): New macro.
68396         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
68397         incomplete type, so you can't add 0 to it.  Problem and patch
68398         reported by Eelco Dolstra for dietlibc.
68399
68400 2006-10-18  Jim Meyering  <jim@meyering.net>
68401
68402         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
68403         type for a local, and rename it: s/up/user_proc/.
68404
68405 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
68406
68407         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
68408         READ_UTMP_USER_PROCESS.
68409         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
68410
68411 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
68412
68413         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
68414         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
68415
68416 2006-10-17  Eric Blake  <ebb9@byu.net>
68417
68418         * lib/sigprocmask.c (sigprocmask): Fix typo.
68419
68420         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
68421
68422         * modules/clean-temp (Makefile.am): Don't add to make output...
68423         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
68424         config.h.
68425
68426 2006-10-17  Bruno Haible  <bruno@clisp.org>
68427
68428         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
68429         differently if DEFAULT_TEXT_DOMAIN is set.
68430
68431 2006-10-16  Bruno Haible  <bruno@clisp.org>
68432
68433         * lib/clean-temp.c: Include fwriteerror.h.
68434
68435 2006-10-16  Bruno Haible  <bruno@clisp.org>
68436
68437         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
68438
68439 2006-10-16  Bruno Haible  <bruno@clisp.org>
68440
68441         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
68442         * lib/sigprocmask.h: Include <sys/types.h>.
68443         (sigset_t): Use the system's definition if present.
68444
68445 2006-10-17  Eric Blake  <ebb9@byu.net>
68446
68447         * lib/xvasprintf.c (includes): Assume config.h.
68448         * lib/xasprintf.c (includes): Likewise.
68449
68450 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
68451
68452         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
68453         at least as wide as intmax_t.
68454
68455 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
68456
68457         (Imported from Automake.)
68458         * build-aux/gnupload: Update to version 1.1 of directive file.
68459
68460 2006-10-16  Eric Blake  <ebb9@byu.net>
68461
68462         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
68463         match Automake 1.10a.
68464
68465 2006-10-14  Bruno Haible  <bruno@clisp.org>
68466
68467         * modules/sigprocmask: New file.
68468         * lib/sigprocmask.h: New file.
68469         * lib/sigprocmask.c: New file.
68470         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
68471         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
68472         request sigprocmask.o.
68473         (gl_PREREQ_SIGPROCMASK): New macro.
68474         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
68475         (Depends-on): Add sigprocmask.
68476         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
68477         gt_SIGNALBLOCKING. Test for 'raise' only once.
68478         * lib/fatal-signal.c: Include sigprocmask.h.
68479         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
68480         unblock_fatal_signals): Define always.
68481         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68482         sigprocmask.
68483
68484 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68485
68486         Sync from Automake.
68487         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
68488         which incorrectly sets the mode of an existing destination
68489         directory.  In some cases the unpatched install-sh could do the
68490         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
68491         system.  We hope this is rare in practice, but it's clearly worth
68492         fixing.  Problem reported by Alex Unleashed in
68493         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
68494         Also, don't bother to check for -m bugs unless we're using -m;
68495         suggested by Stepan Kasal.
68496
68497 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68498
68499         Sync from Automake.
68500         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
68501         `-c' flag, so they appear at the same position as in %FASTDEP%
68502         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
68503         which ignores unknown options only after the first non-option.
68504         Bug report against M4 by Nelson H. F. Beebe.
68505
68506 2006-10-13  Jim Meyering  <jim@meyering.net>
68507
68508         Fix a bug in yesterday's change.
68509         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
68510         p->fts_statp->st_dev would be used uninitialized.
68511         Ensures that we always call fts_stat on the very first entry.
68512         Miklos Szeredi reported that find -xdev stopped working.
68513
68514 2006-10-12  Bruno Haible  <bruno@clisp.org>
68515
68516         * gnulib-tool (func_get_automake_snippet): Append an automatically
68517         computed EXTRA_DIST augmentation.
68518         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
68519         * modules/alloca-opt (Makefile.am): Likewise.
68520         * modules/allocsa (Makefile.am): Likewise.
68521         * modules/arcfour (Makefile.am): Likewise.
68522         * modules/arctwo (Makefile.am): Likewise.
68523         * modules/argmatch (Makefile.am): Likewise.
68524         * modules/argz (Makefile.am): Likewise.
68525         * modules/atexit (Makefile.am): Likewise.
68526         * modules/backupfile (Makefile.am): Likewise.
68527         * modules/byteswap (Makefile.am): Likewise.
68528         * modules/c-strtod (Makefile.am): Likewise.
68529         * modules/c-strtold (Makefile.am): Likewise.
68530         * modules/calloc (Makefile.am): Likewise.
68531         * modules/canon-host (Makefile.am): Likewise.
68532         * modules/canonicalize (Makefile.am): Likewise.
68533         * modules/chdir-long (Makefile.am): Likewise.
68534         * modules/chdir-safer (Makefile.am): Likewise.
68535         * modules/check-version (Makefile.am): Likewise.
68536         * modules/chown (Makefile.am): Likewise.
68537         * modules/cloexec (Makefile.am): Likewise.
68538         * modules/close-stream (Makefile.am): Likewise.
68539         * modules/closeout (Makefile.am): Likewise.
68540         * modules/crc (Makefile.am): Likewise.
68541         * modules/csharpexec (Makefile.am): Likewise.
68542         * modules/cycle-check (Makefile.am): Likewise.
68543         * modules/des (Makefile.am): Likewise.
68544         * modules/dev-ino (Makefile.am): Likewise.
68545         * modules/dirfd (Makefile.am): Likewise.
68546         * modules/dirname (Makefile.am): Likewise.
68547         * modules/dup2 (Makefile.am): Likewise.
68548         * modules/eealloc (Makefile.am): Likewise.
68549         * modules/error (Makefile.am): Likewise.
68550         * modules/euidaccess (Makefile.am): Likewise.
68551         * modules/exclude (Makefile.am): Likewise.
68552         * modules/exitfail (Makefile.am): Likewise.
68553         * modules/fcntl-safer (Makefile.am): Likewise.
68554         * modules/fcntl (Makefile.am): Likewise.
68555         * modules/file-type (Makefile.am): Likewise.
68556         * modules/fileblocks (Makefile.am): Likewise.
68557         * modules/filemode (Makefile.am): Likewise.
68558         * modules/filenamecat (Makefile.am): Likewise.
68559         * modules/fnmatch (Makefile.am): Likewise.
68560         * modules/fopen-safer (Makefile.am): Likewise.
68561         * modules/fpending (Makefile.am): Likewise.
68562         * modules/fprintftime (Makefile.am): Likewise.
68563         * modules/free (Makefile.am): Likewise.
68564         * modules/fsusage (Makefile.am): Likewise.
68565         * modules/ftruncate (Makefile.am): Likewise.
68566         * modules/fts (Makefile.am): Likewise.
68567         * modules/gc-arcfour (Makefile.am): Likewise.
68568         * modules/gc-des (Makefile.am): Likewise.
68569         * modules/gc-hmac-md5 (Makefile.am): Likewise.
68570         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
68571         * modules/gc-md4 (Makefile.am): Likewise.
68572         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68573         * modules/gc-sha1 (Makefile.am): Likewise.
68574         * modules/gc (Makefile.am): Likewise.
68575         * modules/getaddrinfo (Makefile.am): Likewise.
68576         * modules/getcwd (Makefile.am): Likewise.
68577         * modules/getdelim (Makefile.am): Likewise.
68578         * modules/getdomainname (Makefile.am): Likewise.
68579         * modules/getgroups (Makefile.am): Likewise.
68580         * modules/gethostname (Makefile.am): Likewise.
68581         * modules/gethrxtime (Makefile.am): Likewise.
68582         * modules/getline (Makefile.am): Likewise.
68583         * modules/getloadavg (Makefile.am): Likewise.
68584         * modules/getlogin_r (Makefile.am): Likewise.
68585         * modules/getndelim2 (Makefile.am): Likewise.
68586         * modules/getopt (Makefile.am): Likewise.
68587         * modules/getpagesize (Makefile.am): Likewise.
68588         * modules/getpass-gnu (Makefile.am): Likewise.
68589         * modules/getpass (Makefile.am): Likewise.
68590         * modules/getsubopt (Makefile.am): Likewise.
68591         * modules/gettime (Makefile.am): Likewise.
68592         * modules/gettimeofday (Makefile.am): Likewise.
68593         * modules/getugroups (Makefile.am): Likewise.
68594         * modules/getusershell (Makefile.am): Likewise.
68595         * modules/glob (Makefile.am): Likewise.
68596         * modules/group-member (Makefile.am): Likewise.
68597         * modules/hard-locale (Makefile.am): Likewise.
68598         * modules/hash (Makefile.am): Likewise.
68599         * modules/hmac-md5 (Makefile.am): Likewise.
68600         * modules/hmac-sha1 (Makefile.am): Likewise.
68601         * modules/human (Makefile.am): Likewise.
68602         * modules/idcache (Makefile.am): Likewise.
68603         * modules/imaxabs (Makefile.am): Likewise.
68604         * modules/imaxdiv (Makefile.am): Likewise.
68605         * modules/inet_ntop (Makefile.am): Likewise.
68606         * modules/inet_pton (Makefile.am): Likewise.
68607         * modules/intprops (Makefile.am): Likewise.
68608         * modules/inttostr (Makefile.am): Likewise.
68609         * modules/inttypes (Makefile.am): Likewise.
68610         * modules/isapipe (Makefile.am): Likewise.
68611         * modules/javaversion (Makefile.am): Likewise.
68612         * modules/lchmod (Makefile.am): Likewise.
68613         * modules/lchown (Makefile.am): Likewise.
68614         * modules/localcharset (Makefile.am): Likewise.
68615         * modules/long-options (Makefile.am): Likewise.
68616         * modules/lstat (Makefile.am): Likewise.
68617         * modules/malloc (Makefile.am): Likewise.
68618         * modules/mathl (Makefile.am): Likewise.
68619         * modules/mbchar (Makefile.am): Likewise.
68620         * modules/md2 (Makefile.am): Likewise.
68621         * modules/md4 (Makefile.am): Likewise.
68622         * modules/md5 (Makefile.am): Likewise.
68623         * modules/memcasecmp (Makefile.am): Likewise.
68624         * modules/memchr (Makefile.am): Likewise.
68625         * modules/memcmp (Makefile.am): Likewise.
68626         * modules/memcoll (Makefile.am): Likewise.
68627         * modules/memcpy (Makefile.am): Likewise.
68628         * modules/memmem (Makefile.am): Likewise.
68629         * modules/memmove (Makefile.am): Likewise.
68630         * modules/mempcpy (Makefile.am): Likewise.
68631         * modules/memrchr (Makefile.am): Likewise.
68632         * modules/memset (Makefile.am): Likewise.
68633         * modules/memxor (Makefile.am): Likewise.
68634         * modules/mkancesdirs (Makefile.am): Likewise.
68635         * modules/mkdir-p (Makefile.am): Likewise.
68636         * modules/mkdir (Makefile.am): Likewise.
68637         * modules/mkdtemp (Makefile.am): Likewise.
68638         * modules/mkstemp (Makefile.am): Likewise.
68639         * modules/mktime (Makefile.am): Likewise.
68640         * modules/modechange (Makefile.am): Likewise.
68641         * modules/mountlist (Makefile.am): Likewise.
68642         * modules/nanosleep (Makefile.am): Likewise.
68643         * modules/obstack (Makefile.am): Likewise.
68644         * modules/openat (Makefile.am): Likewise.
68645         * modules/pagealign_alloc (Makefile.am): Likewise.
68646         * modules/pathmax (Makefile.am): Likewise.
68647         * modules/physmem (Makefile.am): Likewise.
68648         * modules/poll (Makefile.am): Likewise.
68649         * modules/posixtm (Makefile.am): Likewise.
68650         * modules/posixver (Makefile.am): Likewise.
68651         * modules/putenv (Makefile.am): Likewise.
68652         * modules/quote (Makefile.am): Likewise.
68653         * modules/quotearg (Makefile.am): Likewise.
68654         * modules/raise (Makefile.am): Likewise.
68655         * modules/read-file (Makefile.am): Likewise.
68656         * modules/readline (Makefile.am): Likewise.
68657         * modules/readlink (Makefile.am): Likewise.
68658         * modules/readtokens (Makefile.am): Likewise.
68659         * modules/readutmp (Makefile.am): Likewise.
68660         * modules/realloc (Makefile.am): Likewise.
68661         * modules/regex (Makefile.am): Likewise.
68662         * modules/rename-dest-slash (Makefile.am): Likewise.
68663         * modules/rename (Makefile.am): Likewise.
68664         * modules/rijndael (Makefile.am): Likewise.
68665         * modules/rmdir (Makefile.am): Likewise.
68666         * modules/rpmatch (Makefile.am): Likewise.
68667         * modules/safe-read (Makefile.am): Likewise.
68668         * modules/safe-write (Makefile.am): Likewise.
68669         * modules/same-inode (Makefile.am): Likewise.
68670         * modules/same (Makefile.am): Likewise.
68671         * modules/save-cwd (Makefile.am): Likewise.
68672         * modules/savedir (Makefile.am): Likewise.
68673         * modules/setenv (Makefile.am): Likewise.
68674         * modules/settime (Makefile.am): Likewise.
68675         * modules/sha1 (Makefile.am): Likewise.
68676         * modules/sig2str (Makefile.am): Likewise.
68677         * modules/snprintf (Makefile.am): Likewise.
68678         * modules/stat-macros (Makefile.am): Likewise.
68679         * modules/stat-time (Makefile.am): Likewise.
68680         * modules/stdbool (Makefile.am): Likewise.
68681         * modules/stdint (Makefile.am): Likewise.
68682         * modules/stdlib-safer (Makefile.am): Likewise.
68683         * modules/stpcpy (Makefile.am): Likewise.
68684         * modules/stpncpy (Makefile.am): Likewise.
68685         * modules/strcase (Makefile.am): Likewise.
68686         * modules/strcasestr (Makefile.am): Likewise.
68687         * modules/strchrnul (Makefile.am): Likewise.
68688         * modules/strcspn (Makefile.am): Likewise.
68689         * modules/strdup (Makefile.am): Likewise.
68690         * modules/strerror (Makefile.am): Likewise.
68691         * modules/strftime (Makefile.am): Likewise.
68692         * modules/strndup (Makefile.am): Likewise.
68693         * modules/strnlen (Makefile.am): Likewise.
68694         * modules/strpbrk (Makefile.am): Likewise.
68695         * modules/strsep (Makefile.am): Likewise.
68696         * modules/strstr (Makefile.am): Likewise.
68697         * modules/strtod (Makefile.am): Likewise.
68698         * modules/strtoimax (Makefile.am): Likewise.
68699         * modules/strtok_r (Makefile.am): Likewise.
68700         * modules/strtol (Makefile.am): Likewise.
68701         * modules/strtoll (Makefile.am): Likewise.
68702         * modules/strtoul (Makefile.am): Likewise.
68703         * modules/strtoull (Makefile.am): Likewise.
68704         * modules/strtoumax (Makefile.am): Likewise.
68705         * modules/strverscmp (Makefile.am): Likewise.
68706         * modules/sys_socket (Makefile.am): Likewise.
68707         * modules/sys_stat (Makefile.am): Likewise.
68708         * modules/sysexits (Makefile.am): Likewise.
68709         * modules/time_r (Makefile.am): Likewise.
68710         * modules/timegm (Makefile.am): Likewise.
68711         * modules/timespec (Makefile.am): Likewise.
68712         * modules/tmpfile-safer (Makefile.am): Likewise.
68713         * modules/trim (Makefile.am): Likewise.
68714         * modules/unistd-safer (Makefile.am): Likewise.
68715         * modules/unlinkdir (Makefile.am): Likewise.
68716         * modules/unlocked-io (Makefile.am): Likewise.
68717         * modules/userspec (Makefile.am): Likewise.
68718         * modules/utime (Makefile.am): Likewise.
68719         * modules/utimecmp (Makefile.am): Likewise.
68720         * modules/utimens (Makefile.am): Likewise.
68721         * modules/vasnprintf (Makefile.am): Likewise.
68722         * modules/vasprintf (Makefile.am): Likewise.
68723         * modules/vsnprintf (Makefile.am): Likewise.
68724         * modules/xalloc (Makefile.am): Likewise.
68725         * modules/xgetcwd (Makefile.am): Likewise.
68726         * modules/xnanosleep (Makefile.am): Likewise.
68727         * modules/xreadlink (Makefile.am): Likewise.
68728         * modules/xstrtod (Makefile.am): Likewise.
68729         * modules/xstrtol (Makefile.am): Likewise.
68730         * modules/xstrtold (Makefile.am): Likewise.
68731         * modules/yesno (Makefile.am): Likewise.
68732         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
68733
68734 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68735
68736         * modules/error (Makefile.am): Distribute files through
68737         EXTRA_DIST, not lib_SOURCES.
68738
68739 2006-10-12  Eric Blake  <ebb9@byu.net>
68740
68741         * modules/error (Makefile.am): Distribute files in /lib.
68742         * modules/obstack (Makefile.am): Likewise.
68743
68744 2006-10-12  Bruno Haible  <bruno@clisp.org>
68745
68746         * modules/acl (Makefile.am): Distribute all files in lib/ through
68747         EXTRA_DIST.
68748         * modules/arcfour (Makefile.am): Likewise.
68749         * modules/arctwo (Makefile.am): Likewise.
68750         * modules/argmatch (Makefile.am): Likewise.
68751         * modules/argz (Makefile.am): Likewise.
68752         * modules/atexit (Makefile.am): Likewise.
68753         * modules/backupfile (Makefile.am): Likewise.
68754         * modules/c-strtod (Makefile.am): Likewise.
68755         * modules/c-strtold (Makefile.am): Likewise.
68756         * modules/calloc (Makefile.am): Likewise.
68757         * modules/canon-host (Makefile.am): Likewise.
68758         * modules/canonicalize (Makefile.am): Likewise.
68759         * modules/chdir-long (Makefile.am): Likewise.
68760         * modules/chdir-safer (Makefile.am): Likewise.
68761         * modules/check-version (Makefile.am): Likewise.
68762         * modules/chown (Makefile.am): Likewise.
68763         * modules/cloexec (Makefile.am): Likewise.
68764         * modules/close-stream (Makefile.am): Likewise.
68765         * modules/closeout (Makefile.am): Likewise.
68766         * modules/crc (Makefile.am): Likewise.
68767         * modules/cycle-check (Makefile.am): Likewise.
68768         * modules/des (Makefile.am): Likewise.
68769         * modules/dirfd (Makefile.am): Likewise.
68770         * modules/dirname (Makefile.am): Likewise.
68771         * modules/dup2 (Makefile.am): Likewise.
68772         * modules/euidaccess (Makefile.am): Likewise.
68773         * modules/exclude (Makefile.am): Likewise.
68774         * modules/exitfail (Makefile.am): Likewise.
68775         * modules/fcntl-safer (Makefile.am): Likewise.
68776         * modules/file-type (Makefile.am): Likewise.
68777         * modules/fileblocks (Makefile.am): Likewise.
68778         * modules/filemode (Makefile.am): Likewise.
68779         * modules/filenamecat (Makefile.am): Likewise.
68780         * modules/fnmatch (Makefile.am): Likewise.
68781         * modules/fopen-safer (Makefile.am): Likewise.
68782         * modules/fpending (Makefile.am): Likewise.
68783         * modules/fprintftime (Makefile.am): Likewise.
68784         * modules/free (Makefile.am): Likewise.
68785         * modules/fsusage (Makefile.am): Likewise.
68786         * modules/ftruncate (Makefile.am): Likewise.
68787         * modules/fts (Makefile.am): Likewise.
68788         * modules/gc (Makefile.am): Likewise.
68789         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68790         * modules/getaddrinfo (Makefile.am): Likewise.
68791         * modules/getcwd (Makefile.am): Likewise.
68792         * modules/getdelim (Makefile.am): Likewise.
68793         * modules/getdomainname (Makefile.am): Likewise.
68794         * modules/getgroups (Makefile.am): Likewise.
68795         * modules/gethostname (Makefile.am): Likewise.
68796         * modules/gethrxtime (Makefile.am): Likewise.
68797         * modules/getline (Makefile.am): Likewise.
68798         * modules/getloadavg (Makefile.am): Likewise.
68799         * modules/getlogin_r (Makefile.am): Likewise.
68800         * modules/getopt (Makefile.am): Likewise.
68801         * modules/getpass (Makefile.am): Likewise.
68802         * modules/getpass-gnu (Makefile.am): Likewise.
68803         * modules/getsubopt (Makefile.am): Likewise.
68804         * modules/gettime (Makefile.am): Likewise.
68805         * modules/gettimeofday (Makefile.am): Likewise.
68806         * modules/getugroups (Makefile.am): Likewise.
68807         * modules/getusershell (Makefile.am): Likewise.
68808         * modules/glob (Makefile.am): Likewise.
68809         * modules/group-member (Makefile.am): Likewise.
68810         * modules/hard-locale (Makefile.am): Likewise.
68811         * modules/hash (Makefile.am): Likewise.
68812         * modules/hmac-md5 (Makefile.am): Likewise.
68813         * modules/hmac-sha1 (Makefile.am): Likewise.
68814         * modules/human (Makefile.am): Likewise.
68815         * modules/idcache (Makefile.am): Likewise.
68816         * modules/imaxabs (Makefile.am): Likewise.
68817         * modules/imaxdiv (Makefile.am): Likewise.
68818         * modules/inet_ntop (Makefile.am): Likewise.
68819         * modules/inet_pton (Makefile.am): Likewise.
68820         * modules/inttostr (Makefile.am): Likewise.
68821         * modules/isapipe (Makefile.am): Likewise.
68822         * modules/lchown (Makefile.am): Likewise.
68823         * modules/long-options (Makefile.am): Likewise.
68824         * modules/lstat (Makefile.am): Likewise.
68825         * modules/malloc (Makefile.am): Likewise.
68826         * modules/mathl (Makefile.am): Likewise.
68827         * modules/mbchar (Makefile.am): Likewise.
68828         * modules/md2 (Makefile.am): Likewise.
68829         * modules/md4 (Makefile.am): Likewise.
68830         * modules/md5 (Makefile.am): Likewise.
68831         * modules/memcasecmp (Makefile.am): Likewise.
68832         * modules/memchr (Makefile.am): Likewise.
68833         * modules/memcmp (Makefile.am): Likewise.
68834         * modules/memcoll (Makefile.am): Likewise.
68835         * modules/memcpy (Makefile.am): Likewise.
68836         * modules/memmem (Makefile.am): Likewise.
68837         * modules/memmove (Makefile.am): Likewise.
68838         * modules/mempcpy (Makefile.am): Likewise.
68839         * modules/memrchr (Makefile.am): Likewise.
68840         * modules/memset (Makefile.am): Likewise.
68841         * modules/memxor (Makefile.am): Likewise.
68842         * modules/mkancesdirs (Makefile.am): Likewise.
68843         * modules/mkdir (Makefile.am): Likewise.
68844         * modules/mkdir-p (Makefile.am): Likewise.
68845         * modules/mkdtemp (Makefile.am): Likewise.
68846         * modules/mkstemp (Makefile.am): Likewise.
68847         * modules/mktime (Makefile.am): Likewise.
68848         * modules/modechange (Makefile.am): Likewise.
68849         * modules/mountlist (Makefile.am): Likewise.
68850         * modules/nanosleep (Makefile.am): Likewise.
68851         * modules/openat (Makefile.am): Likewise.
68852         * modules/pagealign_alloc (Makefile.am): Likewise.
68853         * modules/physmem (Makefile.am): Likewise.
68854         * modules/poll (Makefile.am): Likewise.
68855         * modules/posixtm (Makefile.am): Likewise.
68856         * modules/posixver (Makefile.am): Likewise.
68857         * modules/putenv (Makefile.am): Likewise.
68858         * modules/quote (Makefile.am): Likewise.
68859         * modules/quotearg (Makefile.am): Likewise.
68860         * modules/raise (Makefile.am): Likewise.
68861         * modules/read-file (Makefile.am): Likewise.
68862         * modules/readline (Makefile.am): Likewise.
68863         * modules/readlink (Makefile.am): Likewise.
68864         * modules/readtokens (Makefile.am): Likewise.
68865         * modules/readutmp (Makefile.am): Likewise.
68866         * modules/realloc (Makefile.am): Likewise.
68867         * modules/regex (Makefile.am): Likewise.
68868         * modules/rename (Makefile.am): Likewise.
68869         * modules/rename-dest-slash (Makefile.am): Likewise.
68870         * modules/rijndael (Makefile.am): Likewise.
68871         * modules/rmdir (Makefile.am): Likewise.
68872         * modules/rpmatch (Makefile.am): Likewise.
68873         * modules/safe-read (Makefile.am): Likewise.
68874         * modules/safe-write (Makefile.am): Likewise.
68875         * modules/same (Makefile.am): Likewise.
68876         * modules/save-cwd (Makefile.am): Likewise.
68877         * modules/savedir (Makefile.am): Likewise.
68878         * modules/setenv (Makefile.am): Likewise.
68879         * modules/settime (Makefile.am): Likewise.
68880         * modules/sha1 (Makefile.am): Likewise.
68881         * modules/sig2str (Makefile.am): Likewise.
68882         * modules/snprintf (Makefile.am): Likewise.
68883         * modules/stdlib-safer (Makefile.am): Likewise.
68884         * modules/stpcpy (Makefile.am): Likewise.
68885         * modules/stpncpy (Makefile.am): Likewise.
68886         * modules/strcase (Makefile.am): Likewise.
68887         * modules/strcasestr (Makefile.am): Likewise.
68888         * modules/strchrnul (Makefile.am): Likewise.
68889         * modules/strcspn (Makefile.am): Likewise.
68890         * modules/strdup (Makefile.am): Likewise.
68891         * modules/strerror (Makefile.am): Likewise.
68892         * modules/strftime (Makefile.am): Likewise.
68893         * modules/strndup (Makefile.am): Likewise.
68894         * modules/strnlen (Makefile.am): Likewise.
68895         * modules/strpbrk (Makefile.am): Likewise.
68896         * modules/strsep (Makefile.am): Likewise.
68897         * modules/strstr (Makefile.am): Likewise.
68898         * modules/strtod (Makefile.am): Likewise.
68899         * modules/strtoimax (Makefile.am): Likewise.
68900         * modules/strtok_r (Makefile.am): Likewise.
68901         * modules/strtol (Makefile.am): Likewise.
68902         * modules/strtoll (Makefile.am): Likewise.
68903         * modules/strtoul (Makefile.am): Likewise.
68904         * modules/strtoull (Makefile.am): Likewise.
68905         * modules/strtoumax (Makefile.am): Likewise.
68906         * modules/strverscmp (Makefile.am): Likewise.
68907         * modules/time_r (Makefile.am): Likewise.
68908         * modules/timegm (Makefile.am): Likewise.
68909         * modules/tmpfile-safer (Makefile.am): Likewise.
68910         * modules/unistd-safer (Makefile.am): Likewise.
68911         * modules/unlinkdir (Makefile.am): Likewise.
68912         * modules/userspec (Makefile.am): Likewise.
68913         * modules/utime (Makefile.am): Likewise.
68914         * modules/utimecmp (Makefile.am): Likewise.
68915         * modules/utimens (Makefile.am): Likewise.
68916         * modules/vasnprintf (Makefile.am): Likewise.
68917         * modules/vasprintf (Makefile.am): Likewise.
68918         * modules/vsnprintf (Makefile.am): Likewise.
68919         * modules/xalloc (Makefile.am): Likewise.
68920         * modules/xgetcwd (Makefile.am): Likewise.
68921         * modules/xnanosleep (Makefile.am): Likewise.
68922         * modules/xreadlink (Makefile.am): Likewise.
68923         * modules/xstrtod (Makefile.am): Likewise.
68924         * modules/xstrtol (Makefile.am): Likewise.
68925         * modules/xstrtold (Makefile.am): Likewise.
68926         * modules/yesno (Makefile.am): Likewise.
68927
68928 2006-10-12  Jim Meyering  <jim@meyering.net>
68929
68930         * m4/getloadavg.m4: Revert the change below.
68931
68932         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
68933         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
68934         fail with a symlink, which is what coreutils' ./bootstrap now
68935         creates by default.
68936
68937 2006-10-12  Bruno Haible  <bruno@clisp.org>
68938
68939         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
68940         mingw.
68941         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
68942         MSVC and mingw explicitly.
68943
68944 2006-10-11  Simon Josefsson  <jas@extundo.com>
68945             Bruno Haible  <bruno@clisp.org>
68946
68947         Add support for multiple gnulib-tool invocations in the scope of a
68948         single configure.ac file.
68949         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
68950         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
68951         with the same contents as the _LIBADD variable.
68952         (func_emit_initmacro_start, func_emit_initmacro_end,
68953         func_emit_initmacro_done): New functions.
68954         (func_import, func_create_testdir): Invoke them. Allow the identifiers
68955         gl_LIBOBJS and gl_LTLIBOBJS.
68956
68957 2006-10-11  Bruno Haible  <bruno@clisp.org>
68958
68959         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
68960         (func_create_testdir): Don't create po/Makefile.am, don't invoke
68961         autoreconf. Instead, invoke autopoint explicitly but move back the
68962         *.m4 files from gnulib.
68963
68964 2006-10-11  Bruno Haible  <bruno@clisp.org>
68965
68966         * gnulib-tool (func_usage): Make module names after --create-testdir
68967         optional.
68968         (func_create_testdir): If no module was specified, use nearly all
68969         modules.
68970
68971 2006-10-12  Jim Meyering  <jim@meyering.net>
68972
68973         Big performance improvement for fts-based tools that use FTS_NOSTAT.
68974         Avoid spurious inode-mismatch problems on non-POSIX file systems.
68975         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
68976         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
68977         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
68978         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
68979         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
68980         (fts_set_stat_required): New function.
68981         (fts_open): Defer the calls to fts_stat, if possible or requested.
68982         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
68983         into fts_stat itself.
68984         (fts_read): Perform any required (deferred) fts_stat call.
68985         (fts_build): Likewise, for the directory we're about to open and read.
68986         In the readdir loop, carefully decide whether each entry will require
68987         an eventual call to fts_stat, using dirent.d_type info if available.
68988         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
68989         a command line argument into this function.  Update all callers.
68990         Map a return value of FTS_DOT to FTS_D for a command line argument.
68991         * modules/fts (Depends-on): Add d-type.  Alphabetize.
68992         Thanks to Miklos Szeredi for his tenacity and for the initial
68993         bug report about "find" failing on a FUSE-based file system.
68994
68995         * lib/fts.c (fts_open): Use consistent indentation.
68996
68997 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68998
68999         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
69000         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
69001         reported by Jim Meyering.  All uses of cache variables renamed
69002         to match Autoconf's.
69003         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
69004         the other one.
69005
69006         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
69007         Fix misspelling in diagnostic.
69008
69009 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
69010
69011         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
69012         defined.  Problem reported by Matthew Woehlke.
69013
69014         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
69015         Add support for Tandem NonStop R series.
69016         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
69017         Use new macro.
69018
69019         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
69020         (has_trailing_slash): Omit size arg; all callers changed.
69021         Omit 'inline', since it doesn't help performance and we'd
69022         need to configure it.
69023         Don't count //, ///, etc. as having a trailing slash.
69024         As a side effect, this removes a C99ism reported by Matthew Woehlke.
69025         (rpl_rename_dest_slash): On failure, use rename's errno rather
69026         than (in some cases) an incorrect or junk errno.
69027         Simplify code by removing need to compute length; this does
69028         cause it to make two passes instead of one over the file name,
69029         but it's worth it.
69030
69031         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
69032         change, since Autoconf's version may no longer be appropriate now
69033         that we are using CVS Autoconf's version.  Add support for Tandem.
69034
69035 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
69036             Bruno Haible  <bruno@clisp.org>
69037
69038         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
69039         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
69040         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
69041         gl_AC_TYPE_LONG_LONG.
69042
69043         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
69044         instead of HAVE_LONG_LONG.
69045         * lib/printf-args.c (printf_fetchargs): Likewise.
69046         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
69047         * lib/vasnprintf.c (VASNPRINTF): Likewise.
69048         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
69049         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
69050         gl_AC_TYPE_LONG_LONG.
69051
69052 2006-10-11  Bruno Haible  <bruno@clisp.org>
69053
69054         * m4/longlong.m4: Add comments.
69055         * m4/ulonglong.m4: Likewise.
69056
69057 2006-10-10  Bruno Haible  <bruno@clisp.org>
69058
69059         Make it possible to #define stpcpy, strdup to aliases.
69060         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
69061         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
69062
69063 2006-10-10  Bruno Haible  <bruno@clisp.org>
69064
69065         Make it possible to #define gcd to an alias.
69066         * lib/gcd.c: Include config.h.
69067
69068 2006-10-10  Bruno Haible  <bruno@clisp.org>
69069
69070         Make it possible to #define c_isascii to an alias.
69071         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
69072         defined. Undefine the macros before defining them, to avoid gcc
69073         warnings.
69074         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
69075         define NO_C_CTYPE_MACROS early.
69076
69077 2006-10-10  Bruno Haible  <bruno@clisp.org>
69078
69079         Make it possible to #define set_program_name to an alias.
69080         * lib/progname.c: Don't undefine set_program_name; instead, undefine
69081         ENABLE_RELOCATABLE early.
69082
69083 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69084
69085         Port to Tandem NSK OSS, which has 64-bit signed int but at most
69086         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
69087         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
69088         More generally, don't assume that 64-bit signed int is available
69089         if unsigned int is, and vice versa.
69090         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
69091         unsigned symbols, not on their signed counterparts.
69092         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
69093         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
69094         (UINT64_C, UINTMAX_C):
69095         Likewise.
69096         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
69097         unsigned counterparts.
69098         (Have_long_long, Unsigned): New macros.
69099         (Int): Renamed from INT.
69100         (strtoimax): Use the new macros.
69101         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
69102         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
69103         * modules/inttypes (inttypes.h): Substitute
69104         HAVE_UNSIGNED_LONG_LONG_INT.
69105         * modules/stdint (stdint.h): Likewise.
69106         (Files): Add m4/ulonglong.m4.
69107
69108 2006-10-10  Bruno Haible  <bruno@clisp.org>
69109
69110         Fix a gcc -Wshadow warning.
69111         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
69112         to 'bucket'.
69113         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
69114         gl_linked_indexof_from_to): Likewise.
69115         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
69116         Likewise.
69117         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
69118         Likewise.
69119         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
69120         Reported by Eric Blake.
69121
69122 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
69123
69124         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
69125         for NetBSD.  Problem reported by Bruno Haible.
69126
69127 2006-10-09  Jim Meyering  <jim@meyering.net>
69128
69129         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
69130         Patch from Bruno Haible.
69131
69132 2006-10-09  Jim Meyering  <jim@meyering.net>
69133
69134         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
69135         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
69136         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
69137
69138 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69139
69140         Don't include <config.h> twice; this doesn't work in some cases,
69141         e.g., when config.h has "#define intmax_t long long int" and
69142         we include <config.h>, <inttypes.h>, <config.h> in that order.
69143         Problem reported by Matthew Woehlke in:
69144         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
69145         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
69146         * lib/fts-cycle.c: Don't include config.h.
69147         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
69148         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
69149         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
69150         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
69151         inttypes.h.
69152         * lib/xstrtoumax.c: Likewise.
69153         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
69154         __strtol and the like, so that this module is more like its siblings.
69155         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
69156         Remove; no longer needed now that we assume gnulib inttypes.h.
69157
69158 2006-10-08  Bruno Haible  <bruno@clisp.org>
69159
69160         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
69161         option.
69162
69163 2006-10-07  Jim Meyering  <jim@meyering.net>
69164
69165         * modules/inttypes (inttypes.h): Revert what seems to have been
69166         an inadvertent part of today's change: use "|", not "/" in the
69167         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
69168
69169 2006-10-07  Bruno Haible  <bruno@clisp.org>
69170
69171         * modules/sublist: New file.
69172
69173 2006-10-07  Bruno Haible  <bruno@clisp.org>
69174
69175         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
69176         * modules/argz (argz.h): Likewise.
69177         * modules/arpa_inet (arpa/inet.h): Likewise.
69178         * modules/byteswap (byteswap.h): Likewise.
69179         * modules/configmake (configmake.h): Likewise.
69180         * modules/fcntl (fcntl.h): Likewise.
69181         * modules/fnmatch (fnmatch.h): Likewise.
69182         * modules/getopt (getopt.h): Likewise.
69183         * modules/glob (glob.h): Likewise.
69184         * modules/inttypes (inttypes.h): Likewise.
69185         * modules/netinet_in (netinet/in.h): Likewise.
69186         * modules/poll (poll.h): Likewise.
69187         * modules/stdbool (stdbool.h): Likewise.
69188         * modules/stdint (stdint.h): Likewise.
69189         * modules/sys_select (sys/select.h): Likewise.
69190         * modules/sys_socket (sys/socket.h): Likewise.
69191         * modules/sys_stat (sys/stat.h): Likewise.
69192         * modules/sysexits (sysexits.h): Likewise.
69193         * modules/unistd (unistd.h): Likewise.
69194         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69195         Add a "DO NOT EDIT" comment to the generated file.
69196         (func_import): Likewise for gnulib-comp.m4.
69197
69198 2006-10-07  Bruno Haible  <bruno@clisp.org>
69199
69200         * lib/gl_sublist.h: New file.
69201         * lib/gl_sublist.c: New file.
69202
69203 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69204
69205         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
69206         name (relative to the original working directory) and the file
69207         name component (relative to the temporary working directory).  All
69208         callers changed.
69209         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
69210         * lib/mkdir-p.c (make_dir_parents): Likewise.
69211         * lib/mkdir-p.h (make_dir_parents): Likewise.
69212
69213 2006-10-06  Eric Blake  <ebb9@byu.net>
69214
69215         Define several macros for use by the clean-temp module.
69216         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
69217         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
69218         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
69219
69220         * lib/clean-temp.h (close_stream_temp): New declaration.
69221         * lib/clean-temp.c (includes): Pull in headers according to what
69222         other modules are in use.
69223         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
69224
69225 2006-10-06  Bruno Haible  <bruno@clisp.org>
69226
69227         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
69228         instead of fopen, fwriteerror.
69229
69230 2006-10-06  Bruno Haible  <bruno@clisp.org>
69231
69232         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
69233         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
69234         int.
69235         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
69236         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
69237         Return an error indicator.
69238         Suggested by Eric Blake.
69239
69240 2006-10-06  Bruno Haible  <bruno@clisp.org>
69241
69242         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
69243         Reported by Eric Blake.
69244
69245 2006-10-06  Bruno Haible  <bruno@clisp.org>
69246
69247         * modules/closeout (Description): Mention stderr too.
69248
69249 2006-10-06  Bruno Haible  <bruno@clisp.org>
69250         and Paul Eggert  <eggert@cs.ucla.edu>
69251
69252         * lib/closeout.c (close_stdout): Also close stderr.
69253         * lib/closeout.h: Update comment.
69254
69255 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
69256
69257         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
69258         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
69259         * lib/dirchownmod.c: Include lchown.h.
69260         * lib/lchown.c: Don't include files that lchown.h now includes.
69261         Don't declare chown, since lchown.h now does that.
69262         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
69263         (lchown): Define to rpl_chown if lchown is declared but
69264         does not exist.  Declare using a prototype if lchown is not
69265         declared.  Add a copyright notice.
69266         * lib/mkstemp.h: Include <unistd.h>.
69267         * lib/openat.c: Include lchown.h.
69268
69269         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
69270         we now test for that separately.
69271         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
69272         rather than O_NOFOLLOW, when testing whether it's possible to
69273         avoid a race condition reliably.
69274         * lib/savewd.c (savewd_chdir): Likewise.
69275
69276         Remove macros that are no longer needed now that stdint.h is
69277         reliable.
69278         * lib/fsusage.c (UINTMAX_MAX): Remove.
69279         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
69280         * lib/utimecmp.c (SIZE_MAX): Remove.
69281
69282         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
69283
69284         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
69285         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
69286         O_NOATIME works.
69287
69288 2006-10-05  Bruno Haible  <bruno@clisp.org>
69289
69290         * lib/gl_list.h (gl_sortedlist_search_from_to,
69291         gl_sortedlist_indexof_from_to): New declarations.
69292         (gl_list_implementation): New fields sortedlist_search_from_to,
69293         sortedlist_indexof_from_to.
69294         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
69295         inline functions.
69296         * lib/gl_list.c (gl_sortedlist_search_from_to,
69297         gl_sortedlist_indexof_from_to): New functions.
69298         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
69299         function.
69300         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
69301         (gl_array_sortedlist_search_from_to): New function.
69302         (gl_array_list_implementation): Update.
69303         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
69304         function.
69305         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
69306         (gl_carray_sortedlist_search_from_to): New function.
69307         (gl_carray_list_implementation): Update.
69308         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
69309         gl_linked_sortedlist_indexof_from_to): New functions.
69310         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
69311         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
69312         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
69313         gl_tree_sortedlist_indexof_from_to): New functions.
69314         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
69315         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
69316         Update.
69317         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
69318         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
69319         Update.
69320
69321 2006-10-05  Bruno Haible  <bruno@clisp.org>
69322
69323         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
69324         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
69325         (struct gl_list_implementation): Add fields search_from_to,
69326         indexof_from_to. Remove fields search, indexof.
69327         (gl_list_search): Use the search_from_to method.
69328         (gl_list_search_from, gl_list_search_from_to): New functions.
69329         (gl_list_indexof): Use the indexof_from_to method.
69330         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
69331         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
69332         (gl_list_search_from, gl_list_search_from_to): New functions.
69333         (gl_list_indexof): Use the indexof_from_to method.
69334         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
69335         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
69336         gl_array_indexof. Add start_index, end_index arguments.
69337         (gl_array_search_from_to): Renamed from gl_array_search. Add
69338         start_index, end_index arguments.
69339         (gl_array_remove, gl_array_list_implementation): Update.
69340         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
69341         gl_carray_indexof. Add start_index, end_index arguments.
69342         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
69343         start_index, end_index arguments.
69344         (gl_carray_remove, gl_carray_list_implementation): Update.
69345         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
69346         gl_linked_search. Add start_index, end_index arguments.
69347         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
69348         start_index, end_index arguments.
69349         (gl_linked_remove): Update.
69350         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
69351         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
69352         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
69353         field to 'size_t'.
69354         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
69355         gl_tree_search. Add start_index, end_index arguments.
69356         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
69357         start_index, end_index arguments.
69358         (gl_tree_remove): Update.
69359         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
69360         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
69361         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
69362         function.
69363         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
69364         gl_tree_search. Add start_index, end_index arguments.
69365         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
69366         start_index, end_index arguments.
69367         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
69368         Update.
69369         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
69370
69371 2006-10-05  Bruno Haible  <bruno@clisp.org>
69372
69373         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
69374
69375         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
69376         fwriteerror_temp): New declarations.
69377         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
69378         (descriptors): New variable.
69379         (cleanup): First, close the descriptors.
69380         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
69381         fclose_temp, fwriteerror_temp): New functions.
69382
69383 2006-10-04  Jim Meyering  <jim@meyering.net>
69384
69385         * lib/fts.c (fts_open): Tiny comment change.
69386
69387 2006-10-04  Bruno Haible  <bruno@clisp.org>
69388
69389         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
69390         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
69391         gl_LOCK_BODY.
69392         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
69393         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
69394         gl_LOCK_EARLY_BODY.
69395         (gl_LOCK): Require gl_LOCK_BODY.
69396
69397 2006-10-04  Bruno Haible  <bruno@clisp.org>
69398
69399         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
69400         (gl_oset_search_atleast): New declaration.
69401         (struct gl_oset_implementation): Add field 'search_atleast'.
69402         (gl_oset_search_atleast): New inline function.
69403         * lib/gl_oset.c (gl_oset_search_atleast): New function.
69404         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
69405         (gl_array_oset_implementation): Update.
69406         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
69407         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
69408         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
69409
69410 2006-10-04  Bruno Haible  <bruno@clisp.org>
69411
69412         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
69413
69414 2006-10-03  Bruno Haible  <bruno@clisp.org>
69415
69416         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
69417         from gl_avltreehash_list_implementation.
69418
69419 2006-10-03  Bruno Haible  <bruno@clisp.org>
69420
69421         * lib/gl_oset.c (gl_oset_add): Fix return type.
69422
69423 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
69424
69425         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
69426
69427 2006-10-02  Eric Blake  <ebb9@byu.net>
69428
69429         * modules/strnlen (Depends-on): Add extensions.
69430
69431 2006-10-02  Eric Blake  <ebb9@byu.net>
69432
69433         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
69434         definition in 2.60+.
69435
69436 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
69437
69438         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
69439         checks.
69440
69441 2006-10-02  Bruno Haible  <bruno@clisp.org>
69442
69443         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
69444         to the AUTOMAKE_OPTIONS.
69445         Reported by Jim Meyering.
69446
69447 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
69448
69449         Work around bug in Solaris 10 /proc file system:
69450         /proc/self/fd/NNN/.. isn't the parent directory of
69451         the directory whose file descriptor is NNN.  This needs to
69452         be worked around at run time, not compile time, since a
69453         program might be built on Solaris 8, where things work, and
69454         run on Solaris 10.
69455         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
69456         to use the following interface instead:
69457         (OPENAT_BUFFER_SIZE): New macro.
69458         (openat_proc_name): New function.
69459         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
69460         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
69461         Likewise.
69462         * lib/openat-proc.c: New file.
69463         * modules/openat (Files): Add lib/openat-proc.c.
69464         (Depends-on): Add same-inode, stdbool.
69465         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
69466
69467 2006-09-29  Bruno Haible  <bruno@clisp.org>
69468
69469         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
69470         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
69471         argument. Set stdout_closed before testing for ferror, not after.
69472         (fwriteerror, fwriteerror_no_ebadf): New functions.
69473
69474 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69475
69476         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
69477
69478 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
69479
69480         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
69481         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
69482
69483 2006-09-28  Jim Meyering  <jim@meyering.net>
69484
69485         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
69486         Include <unistd.h>.
69487
69488 2006-09-28  Bruno Haible  <bruno@clisp.org>
69489
69490         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
69491         * modules/linkedhash-list (Depends-on): Likewise.
69492         * modules/rbtreehash-list (Depends-on): Likewise.
69493
69494 2006-09-28  Bruno Haible  <bruno@clisp.org>
69495
69496         * lib/strndup.h: Simplify the redefinition of strndup.
69497         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
69498         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
69499
69500 2006-09-28  Bruno Haible  <bruno@clisp.org>
69501
69502         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
69503         * lib/gl_linkedhash_list.c: Likewise.
69504         * lib/gl_rbtreehash_list.c: Likewise.
69505
69506 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
69507
69508         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
69509         getaddrinfo.
69510
69511         * lib/__fpending.h: Don't include <stdio_ext.h> unless
69512         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
69513         it causes <stdio_ext.h> to cause a compile-time error.
69514         Problem reported by Nelson H. F. Beebe.
69515         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
69516         of HAVE_DECL___PENDING.
69517
69518         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
69519         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
69520         declaration.
69521
69522 2006-09-27  Jim Meyering  <jim@meyering.net>
69523
69524         This file could end up with a definition for a function
69525         named __strndup, rather than rpl_strndup on a system with
69526         incomplete weak_alias support.
69527         * lib/strndup.c (strndup): Rename from __strndup.
69528         Remove #defines that used to map __strndup to strndup.
69529         Don't use K&R prototypes.
69530         Remove LIBC-related code, since this file is not sync'd with glibc.
69531         * lib/strndup.h: Revamp, accordingly.
69532         * m4/strndup.m4: Modernize.
69533
69534 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
69535
69536         * modules/savewd (Depends-on): Add 'raise'.
69537         * lib/savewd.c: Include <signal.h>, for 'raise'.
69538
69539 2006-09-26  Jim Meyering  <jim@meyering.net>
69540
69541         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
69542         when we detect Darwin 8.7.0's acl_get_file bug.
69543         Rearrange to perform the new (below) run-test while $LIBS
69544         contains any acl-related library.  Set USE_ACL at the end.
69545         (gl_ACL_GET_FILE): New function.
69546
69547 2006-09-26  Eric Blake  <ebb9@byu.net>
69548
69549         * lib/verror.c: Include <config.h> unconditionally.
69550
69551 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
69552
69553         * modules/clock-time (Maintainer): Add self.
69554         * modules/getlogin_r (Depends-on): Add extensions.
69555
69556 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69557
69558         * modules/clock-time: New module.
69559         * modules/nanosleep (Depends-on): Add clock-time.
69560         * modules/gethrxtime (Depends-on): Likewise.
69561         * modules/gettime (Depends-on): Likewise.
69562         * modules/settime (Depends-on): Likewise.
69563
69564         * modules/fts-lgpl: Depend on openat.
69565         * modules/mkancesdirs: Depend on savewd.
69566         * modules/mkdir-p: Likewise.
69567
69568 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69569
69570         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
69571
69572         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
69573         `gl_have_arbitrary_file_name_length_limit' to
69574         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
69575         actually works between configure runs.
69576
69577 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69578             Bruno Haible  <bruno@clisp.org>
69579
69580         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
69581
69582 2006-09-25  Jim Meyering  <jim@meyering.net>
69583
69584         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
69585         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
69586
69587 2006-09-25  Eric Blake  <ebb9@byu.net>
69588
69589         * gnulib-tool (func_import, func_create_testdir): Fix typos in
69590         exec's in 2006-09-18 patch when shuffling fds.
69591
69592 2006-09-25  Bruno Haible  <bruno@clisp.org>
69593
69594         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
69595         Reported by Jim Meyering.
69596
69597 2006-09-24  Jim Meyering  <jim@meyering.net>
69598
69599         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
69600         compare a pointer against a literal "0".  That caused failures with
69601         at least HP-UX's hpcc.
69602
69603 2006-09-22  Simon Josefsson  <jas@extundo.com>
69604
69605         * modules/gc-sha1:
69606         * modules/gc-md4:
69607         * modules/gc-hmac-sha1:
69608         * modules/gc-hmac-md5:
69609         * modules/gc-des:
69610         * modules/gc-arcfour: Distribute more files.
69611
69612 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69613
69614         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
69615         (gl_linked_iterator_from_to): Initialize struct completely.
69616         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
69617         (gl_tree_iterator_from_to): Likewise
69618         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
69619         * lib/gl_array_list.c [lint] (gl_array_iterator)
69620         (gl_array_iterator_from_to): Likewise.
69621         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
69622         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
69623         (gl_carray_iterator_from_to): Likewise.
69624
69625         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
69626         * lib/md4.c (md4_process_block): Remove unused variable.
69627         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
69628         parentheses for clarity.
69629
69630 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69631
69632         * modules/bison-i18n (Depends-on): Add gettext.
69633
69634 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69635
69636         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
69637         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
69638         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
69639         also add missing comma that caused broken test.
69640         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
69641         stdlib.h, for `abort'.
69642         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
69643         variables.
69644         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
69645         include unistd.h if present, for `rmdir'.
69646         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
69647         variables.
69648         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
69649         in the process include standard headers for prototypes.
69650         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
69651         gets declared on GNU/Linux.
69652         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
69653         unistd.h, for `rmdir'.
69654         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
69655
69656         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
69657         always true.
69658         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
69659
69660         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
69661
69662 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69663
69664         * gnulib-tool (func_version): Create output all at once.  This
69665         may help avoid triggering unnecessary SIGPIPEs, and at any
69666         rate it doesn't hurt.
69667
69668 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69669             Bruno Haible  <bruno@clisp.org>
69670
69671         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
69672         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
69673         * m4/signed.m4 (bh_C_SIGNED): Likewise.
69674
69675         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
69676         (gl_FUNC_VASPRINTF): Invoke it.
69677
69678 2006-09-22  Bruno Haible  <bruno@clisp.org>
69679
69680         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
69681         getloadavg.c as first argument.
69682
69683 2006-09-22  Bruno Haible  <bruno@clisp.org>
69684
69685         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
69686         at the beginning of the gl_INIT macro.
69687         * modules/getloadavg (configure.ac): Pass $gl_source_base to
69688         gl_GETLOADAVG.
69689
69690 2006-09-22  Bruno Haible  <bruno@clisp.org>
69691
69692         * gnulib-tool (func_create_megatestdir): Don't include the config-h
69693         module.
69694         Suggested by Ralf Wildenhues.
69695
69696 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69697
69698         Import this patch from libc:
69699
69700         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
69701
69702         * lib/regex_internal.c (re_string_reconstruct): Handle
69703         offset < pstr->valid_raw_len && pstr->offsets_needed case.
69704         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
69705         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
69706         re_string_context_at.
69707
69708         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
69709         now requires it.
69710         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
69711         gl_REGEX now does it for us.
69712         (gl_REGEX): Add test taken from
69713         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
69714
69715         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
69716         Check that large offsets work.  Modernize Autoconf usages.
69717         Prefer "yes" to mean a good thing rather than a bad.
69718         Don't put "#define mkstemp" in config.h, as this might interfere
69719         with standard system headers that "#define mkstemp mkstemp64".
69720
69721         * modules/mkstemp (Depends-on): Add extensions, so that
69722         mkstemp is visible on some platforms.
69723         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
69724         (Include): Change to "mkstemp.h" from <stdlib.h>.
69725         (Files): Add mkstemp.h.
69726
69727         * lib/mkstemp.h: New file, since some standard headers
69728         #define mkstemp.
69729         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
69730         Include "mkstemp.h".
69731         Make the _LIBC code resemble glibc original more,
69732         e.g., use K&R style.
69733         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
69734         (mkstemp): Remove, since mkstemp.h does this for us.
69735         * lib/stdlib--.h: Include mkstemp.h.
69736
69737         Import this patch from libc:
69738
69739         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69740
69741         * lib/tempname.c (__gen_tempname): Change attempts_min
69742         into a macro.  Use preprocessor to decide how to initialize
69743         attempts [Coverity CID 67].
69744
69745 2006-09-20  Bruno Haible  <bruno@clisp.org>
69746
69747         * lib/mkdtemp.c: Import from libc.
69748         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69749                 * sysdeps/posix/tempname.c (__gen_tempname): Change
69750                 attempts_min into a macro.  Use preprocessor to decide how to
69751                 initialize attempts [Coverity CID 67].
69752         2001-11-27  Paul Eggert  <eggert@twinsun.com>
69753                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
69754                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
69755
69756 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69757
69758         * gnulib-tool (func_exit): New function, to allow to pass the
69759         exit status portably through the trap.  Use everywhere.
69760         (--help, --version): Signal a write error.
69761         (trap): catch SIGPIPE, for write errors.
69762         Exit at the end of the trap, with the correct exit status.
69763
69764 2006-09-19  Karl Berry  <karl@gnu.org>
69765
69766         * doc/gnulib.texi: note about the license texinfo files.
69767
69768 2006-09-19  Eric Blake  <ebb9@byu.net>
69769
69770         * gnulib-tool: Avoid space-tab.
69771
69772 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69773
69774         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
69775         that prevented coreutils 6.1 from building.  Problem reported
69776         by Petter Reinholdtsen.
69777
69778 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69779
69780         * gnulib-tool (avoidlist): Fix typo that broke options like
69781         --avoid=lock that are used by coreutils bootstrap.
69782
69783 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
69784
69785         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
69786         more systematically.
69787
69788 2006-09-18  Jim Meyering  <jim@meyering.net>
69789
69790         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
69791
69792 2006-09-18  Bruno Haible  <bruno@clisp.org>
69793
69794         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
69795
69796 2006-09-18  Bruno Haible  <bruno@clisp.org>
69797
69798         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
69799         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
69800         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
69801         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
69802         * m4/gettext.m4: Require autoconf >= 2.52.
69803         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
69804         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
69805         of gl_cv_header_inttypes_h.
69806
69807 2006-09-18  Bruno Haible  <bruno@clisp.org>
69808
69809         * lib/javaversion.c: Include configmake.h.
69810
69811 2006-09-18  Bruno Haible  <bruno@clisp.org>
69812
69813         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
69814         avoid that the while loops be executed in a subshell.
69815
69816 2006-09-18  Bruno Haible  <bruno@clisp.org>
69817
69818         * MODULES.html.sh (func_module): Break long lines.
69819         Suggested by Bruce Korb <bkorb@gnu.org>.
69820
69821 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69822
69823         Speed up by a factor of 1.12.
69824         * gnulib-tool (nl): New variable.
69825         (func_import): Rewrite include directive extraction to only read each
69826         directive once.
69827
69828 2006-09-17  Bruno Haible  <bruno@clisp.org>
69829
69830         * modules/javaversion (Makefile.am): Remove DEFS setting.
69831         (Depends-on): Add configmake, for PKGDATADIR definition.
69832
69833 2006-09-17  Bruno Haible  <bruno@clisp.org>
69834
69835         * gnulib-tool (func_create_testdir): Rewrite all files at once.
69836
69837 2006-09-17  Bruno Haible  <bruno@clisp.org>
69838
69839         * gnulib-tool (func_append): New function, stolen from libtool.m4.
69840         (func_modules_transitive_closure, func_modules_add_dummy,
69841         func_modules_to_filelist, func_import, func_create_testdir,
69842         func_create_megatestdir, ...): Use it wherever possible.
69843         Suggested by Ralf Wildenhues.
69844
69845 2006-09-16  Karl Berry  <karl@gnu.org>
69846
69847         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
69848         to avoid sectioning errors.
69849         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
69850         [ifinfo]: blank line after @center-ed titles.
69851         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
69852         Spell FSF address consistently with others.
69853         (These changes approved by rms.)
69854
69855 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69856
69857         Speed up by a factor of 1.61.
69858         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
69859         already checked module names again.
69860
69861 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69862
69863         Speed up by a factor of 1.13.
69864         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
69865         for new_files, and the input to func_add_or_update.
69866
69867 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69868
69869         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
69870         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
69871
69872 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69873
69874         * modules/mkancesdirs (Depends-on): Add fcntl.
69875         * modules/savewd: New file.
69876         * MODULES.html.sh (File system functions): Add savewd.
69877
69878         * modules/configmake (Makefile.am): Add support for the
69879         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
69880
69881 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69882
69883         * m4/savewd.m4: New file.
69884
69885 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69886
69887         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
69888         (dirchownmod): New arg FD.  All callers changed.
69889         Use FD rather than opening the directory ourself, as opening is
69890         now the caller's responsibility.
69891         * lib/dirchownmod.h: Likewise.
69892         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
69893         hosts that require <sys/types.h> before <sys/stat.h>.  Include
69894         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
69895         (test_dir): Remove.
69896         (mkancesdirs): Return length of prefix of FILE that has already
69897         been made, or -2 if there is a child doing the work.  Redo
69898         algorithm so that it is O(N) rather than O(N**2).  Optimize away
69899         ".", and treat ".." specially since it might stray back into
69900         already-created areas.  Use a subprocess if necessary.  New arg
69901         WD; all users changed.  MAKE_DIR function should now return 1
69902         if it creates a directory that is not readable.  Return -2 if
69903         a child process is spun off.
69904         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
69905         Adjust signature to match code.
69906         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
69907         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
69908         all users changed.
69909         * lib/savewd.c, lib/savewd.h: New files.
69910
69911 2006-09-15  Jim Meyering  <jim@meyering.net>
69912
69913         * modules/rename-dest-slash: New module.
69914         * MODULES.html.sh (posix_compat): Add it here.
69915
69916         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
69917
69918 2006-09-15  Jim Meyering  <jim@meyering.net>
69919
69920         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
69921         file.
69922
69923         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
69924
69925 2006-09-15  Jim Meyering  <jim@meyering.net>
69926
69927         * lib/rename-dest-slash.c (has_trailing_slash): Use
69928         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
69929         (rpl_rename_dest_slash): Perform the cheaper trailing slash
69930         test before testing whether SRC is a directory.
69931         Suggestions from Bruno Haible.
69932
69933         Avoid a warning about an unused variable.
69934         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
69935         into the #ifdef block where it's used.
69936
69937         * lib/rename-dest-slash.c: New file.
69938
69939 2006-09-14  Bruno Haible  <bruno@clisp.org>
69940
69941         * lib/allocsa.c: Include <config.h> unconditionally.
69942         * lib/asnprintf.c: Likewise.
69943         * lib/asprintf.c: Likewise.
69944         * lib/c-strcasecmp.c: Likewise.
69945         * lib/c-strcasestr.c: Likewise.
69946         * lib/c-strncasecmp.c: Likewise.
69947         * lib/c-strstr.c: Likewise.
69948         * lib/classpath.c: Likewise.
69949         * lib/clean-temp.c: Likewise.
69950         * lib/concatpath.c: Likewise.
69951         * lib/copy-file.c: Likewise.
69952         * lib/csharpcomp.c: Likewise.
69953         * lib/csharpexec.c: Likewise.
69954         * lib/execute.c: Likewise.
69955         * lib/fatal-signal.c: Likewise.
69956         * lib/findprog.c: Likewise.
69957         * lib/fwriteerror.c: Likewise.
69958         * lib/gl_array_list.c: Likewise.
69959         * lib/gl_array_oset.c: Likewise.
69960         * lib/gl_avltree_list.c: Likewise.
69961         * lib/gl_avltree_oset.c: Likewise.
69962         * lib/gl_avltreehash_list.c: Likewise.
69963         * lib/gl_carray_list.c: Likewise.
69964         * lib/gl_linked_list.c: Likewise.
69965         * lib/gl_linkedhash_list.c: Likewise.
69966         * lib/gl_list.c: Likewise.
69967         * lib/gl_oset.c: Likewise.
69968         * lib/gl_rbtree_list.c: Likewise.
69969         * lib/gl_rbtree_oset.c: Likewise.
69970         * lib/gl_rbtreehash_list.c: Likewise.
69971         * lib/imaxabs.c: Likewise.
69972         * lib/imaxdiv.c: Likewise.
69973         * lib/javacomp.c: Likewise.
69974         * lib/javaexec.c: Likewise.
69975         * lib/javaversion.c: Likewise.
69976         * lib/linebreak.c: Likewise.
69977         * lib/localcharset.c: Likewise.
69978         * lib/lock.c: Likewise.
69979         * lib/mbchar.c: Likewise.
69980         * lib/mbswidth.c: Likewise.
69981         * lib/mkdtemp.c: Likewise.
69982         * lib/pipe.c: Likewise.
69983         * lib/printf-args.c: Likewise.
69984         * lib/printf-parse.c: Likewise.
69985         * lib/progname.c: Likewise.
69986         * lib/progreloc.c: Likewise.
69987         * lib/readlink.c: Likewise.
69988         * lib/sh-quote.c: Likewise.
69989         * lib/stpcpy.c: Likewise.
69990         * lib/stpncpy.c: Likewise.
69991         * lib/strcasecmp.c: Likewise.
69992         * lib/strcasestr.c: Likewise.
69993         * lib/strcspn.c: Likewise.
69994         * lib/striconv.c: Likewise.
69995         * lib/strncasecmp.c: Likewise.
69996         * lib/strnlen1.c: Likewise.
69997         * lib/strstr.c: Likewise.
69998         * lib/strtok_r.c: Likewise.
69999         * lib/tls.c: Likewise.
70000         * lib/tmpdir.c: Likewise.
70001         * lib/unicodeio.c: Likewise.
70002         * lib/unsetenv.c: Likewise.
70003         * lib/vasnprintf.c: Likewise.
70004         * lib/vasprintf.c: Likewise.
70005         * lib/wait-process.c: Likewise.
70006         * lib/xallocsa.c: Likewise.
70007         * lib/xsetenv.c: Likewise.
70008         * lib/xstriconv.c: Likewise.
70009
70010 2006-09-13  Simon Josefsson  <jas@extundo.com>
70011
70012         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
70013         that internally, suggested by Ralf Wildenhues
70014         <Ralf.Wildenhues@gmx.de>.
70015
70016 2006-09-13  Simon Josefsson  <jas@extundo.com>
70017
70018         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
70019         @LIBOBJS@.
70020         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70021
70022 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70023
70024         * lib/_fpending.c: Include <config.h> unconditionally, since we no
70025         longer worry about uses that don't define HAVE_CONFIG_H.
70026         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
70027         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
70028         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
70029         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
70030         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
70031         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
70032         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
70033         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
70034         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
70035         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
70036         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
70037         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
70038         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
70039         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
70040         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
70041         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
70042         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
70043         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
70044         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
70045         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
70046         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
70047         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
70048         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
70049         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
70050         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
70051         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
70052         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
70053         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
70054         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
70055         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
70056         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
70057         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
70058         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
70059         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
70060         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
70061         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
70062         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
70063         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
70064         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
70065         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
70066         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
70067         Likewise.
70068
70069 2006-09-13  Eric Blake  <ebb9@byu.net>
70070
70071         * lib/getopt.c: Fix typo in last commit.
70072
70073 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70074
70075         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
70076         dgettext.
70077
70078 2006-09-12  Jim Meyering  <jim@meyering.net>
70079
70080         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
70081         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
70082         Reported by Nelson H. F. Beebe.
70083
70084 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70085
70086         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
70087         program_invocation_name and program_invocation_short_name are
70088         initialized.
70089         * lib/argp-namefrob.h: Move declarations of program_invocation_name
70090         and program_invocation_short_name to argp.h, so they are visible
70091         to user programs.
70092         * lib/argp.h: Likewise
70093
70094 2006-09-10  Bruno Haible  <bruno@clisp.org>
70095
70096         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70097         m4/inttypes_h.m4, m4/uintmax_t.m4.
70098
70099 2006-09-10  Bruno Haible  <bruno@clisp.org>
70100
70101         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
70102         gl_AC_TYPE_UINTMAX_T.
70103
70104 2006-09-10  Bruno Haible  <bruno@clisp.org>
70105
70106         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
70107
70108 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70109
70110         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
70111         convention.  Text proposed by Bruno Haible.
70112         (struct argp_option): Document the use of N_() wrappers.
70113
70114         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
70115         '\v', and translate the two parts separately, instead of feeding
70116         the whole string to gettext.  This allows to exclude
70117         '\v' from the strings visible to the translator by writing doc
70118         strings as N_("..") "\v" N_("..").
70119
70120 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
70121
70122         * config/srclist.txt: Undo latest change; the bug was fixed.
70123
70124 2006-09-09  Bruno Haible  <bruno@clisp.org>
70125
70126         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
70127         assignments if building a library without libtool.
70128         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
70129         in func_emit_lib_Makefile_am.
70130         (func_import): When building a static library libfoo.a, arrange to
70131         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
70132         (func_create_testdir): Likewise.
70133         * modules/gc (configure.ac, Makefile.am): If building statically,
70134         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
70135         * modules/iconvme (configure.ac, Makefile.am): Likewise.
70136         * modules/striconv (configure.ac, Makefile.am): Likewise.
70137         Based on a suggestion by Ralf Wildenhues.
70138
70139 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70140
70141         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70142         Check for unistd.h too, since Autoconf doesn't assume POSIX.
70143         Also:
70144
70145         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70146         Add year_2050_test to catch glibc bug 2821
70147         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
70148
70149         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70150         Prefer #ifdef to #if.
70151
70152         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
70153         Return from 'main' instead of calling 'exit'.
70154
70155 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70156
70157         * lib/mktime.c (guess_time_tm): Fix bug where mktime
70158         returned the maximum time_t value rather than (time_t) -1.
70159         Problem originally reported by William Bardwell
70160         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
70161
70162         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
70163         Moved to here ...
70164         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
70165         ... from here.
70166
70167 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70168
70169         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
70170         2821 is fixed.
70171
70172 2006-09-08  Jim Meyering  <jim@meyering.net>
70173
70174         Don't make generated files read-only.  That would bother too many
70175         people.  However, do retain the ability to work when targets are
70176         read-only: remove the destination and temporary files before writing
70177         them (when generated via sed or echo), or by using the -f option for
70178         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
70179         * modules/alloca-opt, modules/argz, modules/arpa_inet:
70180         * modules/byteswap, modules/configmake, modules/fcntl:
70181         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
70182         * modules/localcharset, modules/netinet_in, modules/poll:
70183         * modules/stdbool, modules/stdint, modules/sys_select:
70184         * modules/sys_socket, modules/sys_stat, modules/sysexits:
70185
70186 2006-09-08  Jim Meyering  <jim@meyering.net>
70187
70188         Avoid new build failure on FreeBSD 6.0.
70189         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
70190         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
70191         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
70192
70193 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70194
70195         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
70196
70197 2006-09-07  Jim Meyering  <jim@meyering.net>
70198
70199         Fix global typo in last change: use chmod u-w, not chmod u-x.
70200         Spotted by Paul Eggert and Bruce Korb.
70201         * modules/alloca-opt, modules/argz, modules/arpa_inet:
70202         * modules/byteswap, modules/configmake, modules/fcntl:
70203         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
70204         * modules/localcharset, modules/netinet_in, modules/poll:
70205         * modules/stdbool, modules/stdint, modules/sys_select:
70206         * modules/sys_socket, modules/sys_stat, modules/sysexits:
70207
70208 2006-09-06  Jim Meyering  <jim@meyering.net>
70209
70210         Make generated files be read-only.
70211         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
70212         Ensure that each generated file is now read-only.
70213         * modules/argz: Likewise.
70214         * modules/arpa_inet: Likewise.
70215         * modules/byteswap: Likewise.
70216         * modules/configmake: Likewise.
70217         * modules/fcntl: Likewise.
70218         * modules/fnmatch: Likewise.
70219         * modules/getopt: Likewise.
70220         * modules/glob: Likewise.
70221         * modules/inttypes: Likewise.
70222         * modules/netinet_in: Likewise.
70223         * modules/poll: Likewise.
70224         * modules/stdbool: Likewise.
70225         * modules/stdint: Likewise.
70226         * modules/sys_select: Likewise.
70227         * modules/sys_socket: Likewise.
70228         * modules/sys_stat: Likewise.
70229         * modules/sysexits: Likewise.
70230         * modules/localcharset: Same as above, but continue using temporary
70231         file named "t-$@" (why different?) rather than the "$@-t" used
70232         everywhere else.
70233
70234         * modules/sysexits (Makefile.am): Replace literal occurrences
70235         of "sysexit.h" more readable, and more consistent, "$@".
70236
70237 2006-09-06  Bruno Haible  <bruno@clisp.org>
70238
70239         * modules/striconv: New file.
70240         * modules/xstriconv: New file.
70241         * MODULES.html.sh (Internationalization functions): Add striconv,
70242         xstriconv.
70243
70244 2006-09-06  Bruno Haible  <bruno@clisp.org>
70245
70246         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
70247         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
70248         not using libtool correctly.
70249
70250 2006-09-06  Bruno Haible  <bruno@clisp.org>
70251
70252         * lib/striconv.h: New file.
70253         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
70254         iconvstring.c.
70255         * lib/xstriconv.h: New file.
70256         * lib/xstriconv.c: New file.
70257
70258 2006-09-06  Bruno Haible  <bruno@clisp.org>
70259
70260         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70261         lib_..._LDFLAGS.
70262
70263 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70264
70265         * lib/argz_.h: Sync from Libtool.
70266
70267         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
70268                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70269
70270         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
70271
70272 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
70273
70274         * modules/trim: New file.
70275
70276 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
70277
70278         * lib/trim.h: New file.
70279         * lib/trim.c: New file.
70280
70281 2006-09-05  Bruno Haible  <bruno@clisp.org>
70282
70283         * MODULES.html.sh (String handling): Add trim.
70284
70285 2006-09-04  Karl Berry  <karl@gnu.org>
70286
70287         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
70288         until next release.
70289
70290 2006-09-03  Bruno Haible  <bruno@clisp.org>
70291
70292         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
70293         correctly.
70294
70295 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70296
70297         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
70298         not gl_GETLOADAVG.  Omit unneeded semicolons.
70299         Problems reported by Ralf Wildenhues in
70300         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
70301         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
70302         at the end, which is the usual gnulib style.
70303
70304         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
70305         of doing all the work ourselves.
70306         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
70307         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
70308
70309 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70310
70311         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
70312         Problem reported by Ralf Wildenhues in
70313         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
70314
70315         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
70316         HAVE_STRUCT_STATFS_F_FSTYPENAME.
70317
70318 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70319
70320         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
70321         yesterday's patch by changing test -n to test -z.
70322
70323 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70324
70325         * modules/getloadavg (Files): Add m4/getloadavg.m4.
70326         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
70327         the former is now obsolescent.
70328
70329         * modules/chdir-long (Depends-on): Add fcntl.
70330
70331 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70332
70333         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
70334         obsolescent, and programs should use gnulib instead.
70335         * m4/getloadavg.m4: New file, with contents taken from Autoconf
70336         but with prefixes changed.
70337
70338 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70339
70340         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
70341         or stdbool.h, because they might not exist while configuring.
70342
70343         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
70344         Don't include unistd.h or limits.h; not needed, since chdir-long.h
70345         does that for us.
70346         (O_DIRECTORY): Remove.
70347
70348 2006-08-31  Eric Blake  <ebb9@byu.net>
70349
70350         * gnulib-tool: Don't let emacs change spaces to TAB.
70351
70352 2006-08-31  Bruno Haible  <bruno@clisp.org>
70353
70354         * gnulib-tool: When calling func_import more than once, do it in a
70355         subshell.
70356         Reported by Eric Blake <ebb9@byu.net>.
70357
70358 2006-08-31  Bruno Haible  <bruno@clisp.org>
70359
70360         * gnulib-tool (nl): Remove variable.
70361         (sed_transform_lib_file): Use more robust test for config-h module.
70362         (func_import): Fix typo in 2006-08-25 patch.
70363
70364 2006-08-31  Bruno Haible  <bruno@clisp.org>
70365
70366         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
70367         specified, augment Makefile.am variables instead of assigning them.
70368
70369 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70370
70371         Work around a bug in both the Linux and SunOS 64-bit kernels:
70372         nanosleep mishandles sleeps for longer than 2**31 seconds.
70373         Problem reported by Frank v Waveren in
70374         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
70375         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
70376         Check for nanosleep bug.
70377         (LIB_NANOSLEEP): Append clock_gettime library if needed.
70378
70379 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70380
70381         Work around a bug in both the Linux and SunOS 64-bit kernels:
70382         nanosleep mishandles sleeps for longer than 2**31 seconds.
70383         Problem reported by Frank v Waveren in
70384         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
70385         * lib/nanosleep.c (BILLION): New constant.
70386         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
70387         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
70388         implementation.
70389
70390 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70391
70392         * modules/nanosleep (Depends-on): Add gettime.
70393
70394 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70395         and Simon Josefsson  <jas@extundo.com>
70396         and Oskar Liljeblad  <oskar@osk.mine.nu>
70397
70398         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
70399         * gnulib-tool (func_import): New license type 'unmodifiable license
70400         text'.
70401         * modules/fdl: Use it.  Longer description.
70402         * module/gpl, module/lgpl: New files.
70403
70404 2006-08-30  Jim Meyering  <jim@meyering.net>
70405
70406         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
70407         shadowing the parameter.
70408
70409 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70410
70411         Sync from Libtool:
70412
70413         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70414
70415         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
70416         sharing with gnulib.  Report by Eric Blake.
70417
70418 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70419
70420         * modules/isapipe: New file.
70421         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
70422
70423 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70424
70425         * modules/configmake (Makefile.am): Add a comment, and omit
70426         the CONFIGMAKE_ prefix from generated macro names.  Suggested
70427         by Bruno Haible.
70428
70429 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70430
70431         * m4/isapipe.m4: New file.
70432
70433 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70434
70435         * lib/isapipe.c, lib/isapipe.h: New files.
70436
70437 2006-08-29  Jim Meyering  <jim@meyering.net>
70438
70439         * modules/configmake (Makefile.am): Make configmake.h depend on
70440         Makefile.  Otherwise, a stale configmake.h could hang around.
70441
70442 2006-08-29  Eric Blake  <ebb9@byu.net>
70443
70444         * lib/error.c (error_at_line, print_errno_message): Match libc, after
70445         resolution of upstream bug 3044.
70446
70447 2006-08-29  Bruno Haible  <bruno@clisp.org>
70448
70449         * modules/localcharset (Depends-on): Add configmake.
70450         (Makefile.am): Remove setting of LIBDIR through DEFS.
70451
70452 2006-08-29  Bruno Haible  <bruno@clisp.org>
70453
70454         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
70455         defined.
70456
70457 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70458
70459         * modules/fcntl: New file.
70460         * modules/chdir-safer (Depends-on): Add fcntl.
70461         * modules/fts: Likewise.
70462         * modules/mkdir-p: Likewise.
70463
70464         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
70465         This undoes the most recent change, since we're now addressing the
70466         problem in a different way.
70467
70468         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
70469         into output, since the output might be called Makefile.am even
70470         if $makefile_name is something different.
70471         (func_import): Use $makefile_am rather than
70472         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
70473         empty.
70474
70475         * modules/inttypes (Files): Add m4/inttypes-h.m4.
70476
70477 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70478
70479         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
70480         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
70481         recent change to stdint.m4, since we're now addressing the problem in a
70482         different way.
70483
70484 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70485
70486         * m4/fcntl_h.m4: New file.
70487
70488 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70489
70490         * lib/fcntl_.h: New file.
70491         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
70492         the fcntl module.
70493         * lib/dirchownmod.c: Likewise.
70494         * lib/fts.c: Likewise.
70495
70496         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
70497         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
70498         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
70499         just before including <inttypes.h>, to avoid circular inclusion.
70500
70501 2006-08-28  Jim Meyering  <jim@meyering.net>
70502
70503         * doc/visibility.texi: Actually read and correct the grammar of the
70504         sentence affected by yesterday's change.
70505
70506 2006-08-28  Eric Blake  <ebb9@byu.net>
70507
70508         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
70509         needs wrapper.
70510
70511 2006-08-28  Eric Blake  <ebb9@byu.net>
70512
70513         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
70514
70515 2006-08-28  Eric Blake  <ebb9@byu.net>
70516
70517         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
70518
70519 2006-08-28  Bruno Haible  <bruno@clisp.org>
70520
70521         * modules/c-strstr: New file, from GNU gettext.
70522         * MODULES.html.sh (String handling): Add c-strstr.
70523
70524 2006-08-28  Bruno Haible  <bruno@clisp.org>
70525
70526         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
70527         macros.
70528         Reported by Eric Blake.
70529
70530 2006-08-28  Bruno Haible  <bruno@clisp.org>
70531
70532         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
70533         (VASNPRINTF): Return a string of length > INT_MAX without failing.
70534         * lib/vasprintf.c: Include errno.h, limits.h.
70535         (EOVERFLOW): New fallback definition.
70536         (vasprintf): Test here whether the string length is > INT_MAX.
70537         * lib/vsnprintf.c: Include errno.h, limits.h.
70538         (EOVERFLOW): New fallback definition.
70539         (vsnprintf): Fix bug when generated string was too long for the buffer.
70540         Test here whether the string length is > INT_MAX.
70541
70542 2006-08-28  Bruno Haible  <bruno@clisp.org>
70543
70544         * lib/inttypes_.h (SCNX*): Remove definitions.
70545         Reported by Eric Blake.
70546
70547 2006-08-28  Bruno Haible  <bruno@clisp.org>
70548
70549         * lib/c-strstr.h: New file, from GNU gettext.
70550         * lib/c-strstr.c: New file, from GNU gettext.
70551
70552 2006-08-28  Bruno Haible  <bruno@clisp.org>
70553
70554         * gnulib-tool: Reorder some statements.
70555
70556 2006-08-28  Bruno Haible  <bruno@clisp.org>
70557
70558         * gnulib-tool: New option --makefile-name.
70559         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
70560         $makefile_name.
70561         (func_import): Write $makefile_name to the cache file, and read it from
70562         there unless explicitly specified. Use $makefile_name as file name
70563         instead of Makefile.am. Adjust the recommendations accordingly.
70564
70565 2006-08-28  Bruno Haible  <bruno@clisp.org>
70566
70567         * gnulib-tool (func_verify_module): Check against misapplying patch.
70568
70569 2006-08-28  Bruno Haible  <bruno@clisp.org>
70570
70571         * gnulib-tool (func_relativize, func_relconcat): New functions.
70572         Give an error if --local-dir is given with --update.
70573         Remove trailing slashes from $local_gnulib_dir.
70574         (func_import): Store the relativized $local_gnulib_dir in
70575         gnulib-cache.m4, and read it from there if not specified explicitly.
70576
70577 2006-08-28  Bruno Haible  <bruno@clisp.org>
70578
70579         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
70580         is the current directory. Respect also $local_gnulib_dir.
70581
70582 2006-08-28  Bruno Haible  <bruno@clisp.org>
70583             Simon Josefsson  <jas@extundo.com>
70584
70585         BeOS portability.
70586         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
70587
70588 2006-08-27  Jim Meyering  <jim@meyering.net>
70589
70590         * doc/visibility.texi: Remove duplicate word: "pointer".
70591
70592 2006-08-26  Bruno Haible  <bruno@clisp.org>
70593
70594         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
70595         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
70596         (Makefile.am): Create inttypes.h from inttypes_.h.
70597         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
70598
70599         * modules/imaxabs: New file.
70600
70601         * modules/imaxdiv: New file.
70602
70603 2006-08-26  Bruno Haible  <bruno@clisp.org>
70604
70605         * m4/inttypes.m4: New file.
70606         * m4/_inttypes_h.m4: Remove file.
70607         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
70608         PRI_MACROS_BROKEN.
70609         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
70610
70611         * m4/imaxabs.m4: New file.
70612
70613         * m4/imaxdiv.m4: New file.
70614
70615 2006-08-26  Bruno Haible  <bruno@clisp.org>
70616
70617         * lib/inttypes_.h: New file.
70618         * lib/inttypes.h: Remove file.
70619         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
70620
70621         * lib/imaxabs.c: New file.
70622
70623         * lib/imaxdiv.c: New file.
70624
70625 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70626
70627         New config-h module, so that "make" output needn't be cluttered
70628         by -DHAVE_CONFIG_H.
70629         * MODULES.html.sh (Support for building libraries and executables):
70630         Add config-h.
70631         * modules/config-h: New file.
70632         * gnulib-tool (nl, sed_transform_lib_file): New vars.
70633         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
70634         the config-h module is used.
70635
70636         New configmake module, so that "make" output needn't be cluttered
70637         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
70638         * MODULES.html.sh (Support for building libraries and executables):
70639         Add configmake.
70640         * modules/configmake: New file.
70641
70642 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70643
70644         * m4/config-h.m4: New file.
70645
70646 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70647
70648         * config/srclist.txt: Add elisp-comp.
70649
70650 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70651
70652         * MODULES.html.sh (Support for building libraries and executables):
70653         Add elisp-comp.
70654         * build-aux/elisp-comp: New file.
70655         * modules/elisp-comp: New file.
70656
70657 2006-08-24  Bruno Haible  <bruno@clisp.org>
70658
70659         * gnulib-tool (func_create_testdir): Use non-default values of
70660         sourcebase and m4base.
70661
70662 2006-08-24  Bruno Haible  <bruno@clisp.org>
70663
70664         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
70665         HTML structure.
70666
70667 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70668
70669         * modules/openat (Depends-on): Add lchown.
70670
70671 2006-08-23  Bruno Haible  <bruno@clisp.org>
70672
70673         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
70674         of gl_LOCK_EARLY instead of gl_LOCK.
70675
70676 2006-08-23  Bruno Haible  <bruno@clisp.org>
70677
70678         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
70679         on OSF/1 to no.
70680         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
70681
70682 2006-08-23  Bruno Haible  <bruno@clisp.org>
70683
70684         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
70685         as unusable.
70686
70687         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
70688         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
70689         (gl_LOCK): New macro.
70690
70691 2006-08-22  Simon Josefsson  <jas@extundo.com>
70692
70693         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
70694         to md5 module.
70695
70696 2006-08-22  Simon Josefsson  <jas@extundo.com>
70697
70698         * MODULES.html.sh: Add "Support for maintaining and release
70699         projects".
70700
70701         * build-aux/gnupload: New file, from coreutils.
70702
70703 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70704
70705         Avoid the need for AC_LIBSOURCES in m4 macros.
70706         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
70707         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
70708         * modules/check-version (EXTRA_DIST): Add check-version.h.
70709         * modules/crc (EXTRA_DIST): Add crc.h.
70710         * modules/des (EXTRA_DIST): Add des.h.
70711         * modules/gc (EXTRA_DIST): Add gc.h.
70712         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
70713         * modules/getline (EXTRA_DIST): Add getline.h.
70714         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
70715         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
70716         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
70717         * modules/md2 (EXTRA_DIST): Add md2.h.
70718         * modules/md4 (EXTRA_DIST): Add md4.h.
70719         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
70720         * modules/read-file (EXTRA_DIST): Add read-file.h.
70721         * modules/readline (EXTRA_DIST): Add readline.h.
70722         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
70723         rijndael-api-fst.h.
70724
70725 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70726
70727         * m4/rijndael.m4 (gl_ARCFOUR):
70728         * m4/arctwo.m4 (gl_ARCTWO):
70729         * m4/check-version.m4 (gl_CHECK_VERSION):
70730         * m4/crc.m4 (gl_CRC):
70731         * m4/des.m4 (gl_DES):
70732         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
70733         * m4/gc.m4 (gl_GC):
70734         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
70735         * m4/getline.m4 (gl_FUNC_GETLINE):
70736         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
70737         * m4/hmac-md5.m4 (gl_HMAC_MD5):
70738         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
70739         * m4/md2.m4 (gl_MD2):
70740         * m4/md4.m4 (gl_MD4):
70741         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
70742         * m4/read-file.m4 (gl_FUNC_READ_FILE):
70743         * m4/readline.m4 (gl_FUNC_READLINE):
70744         * m4/rijndael.m4 (gl_RIJNDAEL):
70745         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70746         to get the necessary .h files and whatnot.
70747
70748 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70749
70750         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
70751         gnulib rather than the other way around.
70752         * config/srclistvars.sh (COREUTILS): Remove.
70753
70754 2006-08-22  Jim Meyering  <jim@meyering.net>
70755
70756         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
70757
70758         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
70759
70760 2006-08-22  Eric Blake  <ebb9@byu.net>
70761
70762         * modules/regexprops-generic: New file.
70763         * MODULES.html.sh (Support for building documentation): List it.
70764
70765 2006-08-22  Eric Blake  <ebb9@byu.net>
70766
70767         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
70768         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
70769         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
70770         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
70771
70772 2006-08-22  Bruno Haible  <bruno@clisp.org>
70773
70774         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
70775         and lib_LTLIBRARIES like the other lib_* variables.
70776
70777 2006-08-22  Bruno Haible  <bruno@clisp.org>
70778
70779         * build-aux/x-to-1.in: New file, from GNU gettext.
70780
70781 2006-08-22  Bruno Haible  <bruno@clisp.org>
70782
70783         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
70784         <utmpx.h> exists.
70785
70786 2006-08-22  Bruno Haible  <bruno@clisp.org>
70787
70788         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
70789         <utmpx.h> exists.
70790
70791 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70792
70793         BeOS portability.
70794         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
70795         exist.
70796         Problem reported by Bruno Haible.
70797
70798 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70799
70800         Avoid the need for AC_LIBSOURCES in m4 macros.
70801         * modules/acl (EXTRA_DIST): Add acl.h.
70802         * modules/argmatch (Files): Add m4/argmatch.m4.
70803         (configure.ac): Add gl_ARGMATCH.
70804         (EXTRA_DIST): Renamed from lib_SOURCES, for
70805         consistency with the other modules.  Remove argmatch.c.
70806         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
70807         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
70808         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
70809         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
70810         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
70811         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
70812         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
70813         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
70814         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
70815         * modules/closeout (EXTRA_DIST): Add closeout.h.
70816         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
70817         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
70818         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
70819         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
70820         dirname.h; remove basename.c and stripslash.c.
70821         * modules/exclude (EXTRA_DIST): Add exclude.h.
70822         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
70823         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
70824         * modules/file-type (EXTRA_DIST): Add file-type.h.
70825         * modules/filemode (EXTRA_DIST): Add filemode.h.
70826         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
70827         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70828         * modules/fpending (EXTRA_DIST): Add __fpending.h.
70829         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
70830         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
70831         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
70832         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
70833         * modules/getdate (EXTRA_DIST): Add getdate.c.
70834         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
70835         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
70836         * modules/getpass (EXTRA_DIST): Add getpass.h.
70837         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
70838         * modules/group-member (EXTRA_DIST): Add group-member.h.
70839         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
70840         * modules/hash (EXTRA_DIST): Add hash.h.
70841         * modules/human (EXTRA_DIST): Add human.h.
70842         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
70843         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
70844         * modules/lchown (EXTRA_DIST): Add lchown.h.
70845         * modules/long-options (EXTRA_DIST): Add long-options.h.
70846         * modules/lstat (EXTRA_DIST): Add lstat.h.
70847         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
70848         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
70849         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
70850         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
70851         * modules/memxor (EXTRA_DIST): Add memxor.h.
70852         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
70853         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
70854         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
70855         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
70856         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
70857         * modules/physmem (EXTRA_DIST): Add physmem.h.
70858         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
70859         * modules/posixver (EXTRA_DIST): Add posixver.h.
70860         * modules/quote (EXTRA_DIST): Add quote.h.
70861         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
70862         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
70863         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
70864         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
70865         regex_internal.h regexec.c.
70866         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
70867         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
70868         * modules/same (EXTRA_DIST): Add same.h.
70869         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
70870         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
70871         * modules/savedir (EXTRA_DIST): Add savedir.h.
70872         * modules/sha1 (EXTRA_DIST): Add sha1.h.
70873         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
70874         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
70875         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
70876         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
70877         * modules/strdup (EXTRA_DIST): Add strdup.h.
70878         * modules/strftime (EXTRA_DIST): Add strftime.h.
70879         * modules/strndup (EXTRA_DIST): Add strndup.h.
70880         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
70881         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
70882         * modules/time_r (EXTRA_DIST): Add time_r.h.
70883         * modules/timespec (EXTRA_DIST): Add timespec.h.
70884         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70885         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
70886         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
70887         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
70888         * modules/userspec (EXTRA_DIST): Add userspec.h.
70889         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
70890         * modules/utimens (EXTRA_DIST): Add utimens.h.
70891         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
70892         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
70893         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
70894         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
70895         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
70896         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
70897         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
70898         * modules/yesno (EXTRA_DIST): Add yesno.h.
70899
70900 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70901
70902         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
70903
70904         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
70905         * m4/dev-ino.m4, same-inode.m4: Remove.
70906
70907         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
70908         * m4/acl.m4 (AC_FUNC_ACL):
70909         * m4/backupfile.m4 (gl_BACKUPFILE):
70910         * m4/c-strtod.m4 (gl_C99_STRTOLD):
70911         * m4/canon-host.m4 (gl_CANON_HOST):
70912         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
70913         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
70914         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
70915         * m4/cloexec.m4 (gl_CLOEXEC):
70916         * m4/close-stream.m4 (gl_CLOSE_STREAM):
70917         * m4/closeout.m4 (gl_CLOSEOUT):
70918         * m4/dirfd.m4 (gl_FUNC_DIRFD):
70919         * m4/dirname.m4 (gl_DIRNAME):
70920         * m4/exclude.m4 (gl_EXCLUDE):
70921         * m4/exitfail.m4 (gl_EXITFAIL):
70922         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
70923         * m4/file-type.m4 (gl_FILE_TYPE):
70924         * m4/filemode.m4 (gl_FILEMODE):
70925         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
70926         * m4/fpending.m4 (gl_FUNC_FPENDING):
70927         * m4/fprintftime.m4 (gl_FPRINTFTIME):
70928         * m4/fts.m4 (gl_FUNC_FTS):
70929         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
70930         * m4/getdate.m4 (gl_GETDATE):
70931         * m4/gethrxtime.m4 (gl_GETHRXTIME):
70932         * m4/getpagesize.m4 (gl_GETPAGESIZE):
70933         * m4/getpass.m4 (gl_FUNC_GETPASS):
70934         * m4/gettime.m4 (gl_GETTIME):
70935         * m4/getugroups.m4 (gl_GETUGROUPS):
70936         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
70937         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
70938         * m4/hard-locale.m4 (gl_HARD_LOCALE):
70939         * m4/hash.m4 (gl_HASH):
70940         * m4/idcache.m4 (gl_IDCACHE):
70941         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
70942         * m4/lchown.m4 (gl_FUNC_LCHOWN):
70943         * m4/long-options.m4 (gl_LONG_OPTIONS):
70944         * m4/lstat.m4 (gl_FUNC_LSTAT):
70945         * m4/md5.m4 (gl_MD5):
70946         * m4/memcasecmp.m4 (gl_MEMCASECMP):
70947         * m4/memcoll.m4 (gl_MEMCOLL):
70948         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
70949         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
70950         * m4/memxor.m4 (gl_MEMXOR):
70951         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
70952         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
70953         * m4/modechange.m4 (gl_MODECHANGE):
70954         * m4/mountlist.m4 (gl_MOUNTLIST):
70955         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70956         * m4/openat.m4 (gl_FUNC_OPENAT):
70957         * m4/pathmax.m4 (gl_PATHMAX):
70958         * m4/physmem.m4 (gl_PHYSMEM):
70959         * m4/posixtm.m4 (gl_POSIXTM):
70960         * m4/posixver.m4 (gl_POSIXVER):
70961         * m4/quote.m4 (gl_QUOTE):
70962         * m4/quotearg.m4 (gl_QUOTEARG):
70963         * m4/readtokens.m4 (gl_READTOKENS):
70964         * m4/readutmp.m4 (gl_READUTMP):
70965         * m4/regex.m4 (gl_REGEX):
70966         * m4/safe-read.m4 (gl_SAFE_READ):
70967         * m4/safe-write.m4 (gl_SAFE_WRITE):
70968         * m4/same.m4 (gl_SAME):
70969         * m4/save-cwd.m4 (gl_SAVE_CWD):
70970         * m4/savedir.m4 (gl_SAVEDIR):
70971         * m4/settime.m4 (gl_SETTIME):
70972         * m4/sha1.m4 (gl_SHA1):
70973         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
70974         * m4/stat-macros.m4 (gl_STAT_MACROS):
70975         * m4/stat-time.m4 (gl_STAT_TIME):
70976         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
70977         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
70978         * m4/strdup.m4 (gl_FUNC_STRDUP):
70979         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
70980         * m4/strndup.m4 (gl_FUNC_STRNDUP):
70981         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
70982         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
70983         * m4/time_r.m4 (gl_TIME_R):
70984         * m4/timespec.m4 (gl_TIMESPEC):
70985         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
70986         * m4/unlinkdir.m4 (gl_UNLINKDIR):
70987         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
70988         * m4/userspec.m4 (gl_USERSPEC):
70989         * m4/utimecmp.m4 (gl_UTIMECMP):
70990         * m4/utimens.m4 (gl_UTIMENS):
70991         * m4/xalloc.m4 (gl_XALLOC):
70992         * m4/xgetcwd.m4 (gl_XGETCWD):
70993         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
70994         * m4/xreadlink.m4 (gl_XREADLINK):
70995         * m4/xstrtod.m4 (gl_XSTRTOD):
70996         * m4/yesno.m4 (gl_YESNO):
70997         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70998         to get the necessary .h files and whatnot.
70999
71000 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
71001             Bruno Haible  <bruno@clisp.org>
71002
71003         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
71004         /bin/sh understanding of '!' conditional negation.
71005
71006 2006-08-21  Jim Meyering  <jim@meyering.net>
71007
71008         * modules/openat (Depends-on): Really alphabetize.
71009
71010         * modules/acl (Depends-on): Add error and quote.
71011
71012         * check-module (find_included_lib_files): Add at-func.c to the
71013         ok-to-include-more-than-once white list.
71014
71015         * modules/openat (Depends-on): Add lstat.  Alphabetize.
71016
71017 2006-08-21  Bruno Haible  <bruno@clisp.org>
71018
71019         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71020         Emit a pkgdata_DATA variable only if some snippets add contents to it.
71021         Reported by Martin Lambers <marlam@marlam.de>.
71022
71023 2006-08-21  Bruno Haible  <bruno@clisp.org>
71024
71025         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
71026         specify an installation location, don't emit a noinst_LIBRARIES or
71027         noinst_LTLIBRARIES assignment.
71028
71029 2006-08-21  Bruno Haible  <bruno@clisp.org>
71030
71031         BeOS portability.
71032         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
71033         BeOS has mbrtowc() but no <wctype.h>.
71034
71035 2006-08-21  Bruno Haible  <bruno@clisp.org>
71036
71037         BeOS portability.
71038         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
71039         exist.
71040
71041 2006-08-21  Bruno Haible  <bruno@clisp.org>
71042
71043         BeOS portability.
71044         * lib/mbchar.h: Include <wctype.h> only if it exists.
71045
71046 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71047
71048         Remove files that are no longer needed by their respective modules.
71049         * m4/obstack.m4: Remove.
71050         * m4/strerror_r.m4: Remove.
71051         * m4/uint32_t.m4: Remove.
71052         * m4/uintptr_t.m4: Remove.
71053         * m4/ullong_max.m4: Remove.
71054         * m4/xstrtoimax.m4: Remove.
71055         * m4/xstrtoumax.m4: Remove.
71056
71057         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
71058         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
71059         dependencies now capture this.
71060
71061         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
71062         Do not use AC_LIBSOURCES, since gnulib modules now do this.
71063         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
71064         * m4/human.m4 (gl_HUMAN): Likewise.
71065         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
71066         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
71067
71068         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
71069
71070         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
71071         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
71072         stdint.
71073         * m4/human.m4 (gl_HUMAN): Likewise.
71074         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
71075         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
71076         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
71077         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
71078         * m4/xstrtol (gl_XSTRTOL): Likewise.
71079
71080         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
71081         AC_TYPE_LONG_LONG_INT.
71082         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
71083         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
71084         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
71085         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
71086
71087         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
71088         on stdbool.
71089
71090         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
71091         (gl_PREREQ_XSTRTOUL): Remove.
71092
71093         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
71094
71095         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
71096         mode.
71097
71098 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71099
71100         Add and change modules to make it easier for coreutils to use
71101         gnulib-tool.
71102         * modules/backupfile (Files): Remove m4/d-ino.m4.
71103         (Depends-on): Add d-ino.
71104         * modules/cycle-check (Depends-on): Add stdint.
71105         (lib_SOURCES): Add cycle-check.h.
71106         * modules/d-ino: New module.
71107         * modules/d-type: New module.
71108         * modules/error (Files): Remove m4/strerror_r.m4.
71109         * modules/filemode (Files): Add m4/st_dm_mode.m4.
71110         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
71111         m4/inttypes_h.m4, m4/uintmax_t.m4.
71112         (Depends-on): Add stdint.
71113         (lib_SOURCES): Add fsusage.h.
71114         * modules/getcwd (Files): Remove d-ino.m4.
71115         (Depends-on): Add d-ino.
71116         * modules/getndelim2 (Depends-on): Add stdint.
71117         * modules/glob (Files): Remove m4/d-type.m4.
71118         (Depends-on): Add d-type.
71119         * modules/host-os: New module.
71120         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
71121         m4/inttypes_h.m4, m4/uintmax_t.m4.
71122         * Depends-on: Add stdint.
71123         (lib_SOURCES): Add human.h.
71124         * modules/inttostr (Files): Remove m4/intmax_t.m4,
71125         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
71126         m4/uintmax_t.m4, m4/ulonglong.m4.
71127         (Depends-on): Add stdint.
71128         (EXTRA_DIST): Add inttostr.h.
71129         * modules/lchmod: New module.
71130         * modules/link-follow: New module.
71131         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
71132         (Depends-on): Add lchmod.
71133         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
71134         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
71135         (Depends-on): Add stdint.
71136         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
71137         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
71138         (Depends-on): Add stdint.
71139         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
71140         * modules/perl: New module.
71141         * modules/regex (Depends-on): Add stdint.
71142         * modules/rmdir-errno: New module.
71143         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
71144         m4/intmax_t.m4.
71145         (Depends-on): Add stdint.
71146         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
71147         m4/uintmax_t.m4.
71148         (Depends-on): Add stdint.
71149         * modules/unlink-busy: New module.
71150         * modules/utimecmp (Depends-on): Add stdint.
71151         * modules/uptime: New module.
71152         * modules/winsz-ioctl: New module.
71153         * modules/winsz-termios: New module.
71154         * modules/xnanosleep (Depends-on): Add nanosleep.
71155         * modules/ullong_max: Remove.
71156         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
71157         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
71158         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
71159         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
71160         (Depends-on): Add inttypes.
71161         (lib_SOURCES): Add xstrtol.h.
71162         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
71163         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
71164         * MODULES.html.sh: Move 'assert' into the assert section.
71165         Move 'dummy' into the linking section.
71166         Remove ullong_max.
71167         Add section for compatibility checks for POSIX:2001 functions,
71168         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
71169         winsz-ioctl, and winsz-termios into it.
71170         Add lchmod.
71171         Add top-level Misc section and put host-os, perl, and uptime
71172         into it.
71173
71174 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71175
71176         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
71177         now assume the stdint module.  Do not include inttypes.h.
71178         * lib/fsusage.h: Likewise.
71179         * lib/getndelim2.c: Likewise.
71180         * lib/human.h: Likewise.
71181         * lib/inttostr.h: Likewise.
71182         * lib/obstack.c: Likewise.
71183         * lib/regex_internal.h: Likewise.
71184         * lib/tempname.c: Likewise.
71185         * lib/utimecmp.c: Likewise.
71186         * lib/xstrtol.h: Likewise.
71187
71188         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
71189
71190         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
71191         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
71192         * lib/xtime.h: Likewise.
71193
71194 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71195
71196         * modules/openat (Files): Add lib/fchmodat.c.
71197         Fixes problem reported by Jay Youngman.
71198
71199 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71200
71201         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
71202         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
71203
71204 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
71205             Bruno Haible  <bruno@clisp.org>
71206
71207         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
71208         and is a script that invokes bison. Tighten the code. Add comments.
71209
71210 2006-08-18  Jim Meyering  <jim@meyering.net>
71211
71212         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
71213         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
71214         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
71215         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
71216
71217 2006-08-18  Bruno Haible  <bruno@clisp.org>
71218
71219         * modules/bison-i18n: New file.
71220         * MODULES.html.sh (Internationalization functions): Add it.
71221
71222 2006-08-18  Bruno Haible  <bruno@clisp.org>
71223
71224         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
71225         sys/statvfs.h. When getmntinfo was found, check its declaration and
71226         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
71227
71228 2006-08-18  Bruno Haible  <bruno@clisp.org>
71229
71230         * m4/bison-i18n.m4: New file, from bison.
71231
71232 2006-08-18  Bruno Haible  <bruno@clisp.org>
71233
71234         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
71235         (ME_DUMMY): Treat "kernfs" as a dummy.
71236         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
71237
71238 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71239
71240         Update from coreutils.
71241
71242         2006-08-15  Jim Meyering  <jim@meyering.net>
71243
71244         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
71245
71246         2006-01-17  Jim Meyering  <jim@meyering.net>
71247
71248         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
71249
71250         2006-01-11  Jim Meyering  <jim@meyering.net>
71251
71252         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
71253         Check for the lchmod function.
71254
71255 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71256
71257         Update from coreutils.
71258
71259         * lib/__fpending.h: Add copyright notice.
71260         * lib/fprintftime.h: Likewise.
71261         * lib/savedir.c: Use (C) in copyright notice.
71262         * lib/savedir.h: Likewise.
71263
71264         2006-08-15  Jim Meyering  <jim@meyering.net>
71265
71266         * lib/at-func.c: New file, with the logic of all emulated at-functions.
71267         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
71268         in support of the EXPECTED_ERRNO macro.
71269         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
71270         definitions.  Instead, define the appropriate symbols and include
71271         "at-func.c".
71272         * lib/mkdirat.c (mkdirat): Likewise.
71273         * lib/fchmodat.c (fchmodat): Likewise.
71274         (ENOSYS): Remove definition.
71275         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
71276         it.  Don't include "unistd--.h" -- it wasn't ever used.
71277
71278         2006-01-17  Jim Meyering  <jim@meyering.net>
71279
71280         Rewrite fts.c not to change the current working directory,
71281         by using openat, fstatat, fdopendir, etc..
71282
71283         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
71284         (HAVE_OPENAT_SUPPORT): Define.
71285         [_LIBC] (fchdir): Don't undef or define; no longer used.
71286         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
71287         Now, this `function' always succeeds, and consumes its file descriptor
71288         parameter -- so callers must not close such FDs.  Update callers.
71289         (diropen_fd, opendirat, cwd_advance_fd): New functions.
71290         (diropen): Add parameter, SP.  Adjust all callers.
71291         Implement using diropen_fd, rather than open.
71292         (fts_open): Initialize new member, fts_cwd_fd.
71293         Remove fts_rft-setting code.
71294         (fts_close): Close fts_cwd_fd, if necessary.
71295         (__opendir2): Define in terms of opendir or opendirat,
71296         depending on whether the FST_NOCHDIR flag is set.
71297         (fts_build): Since fts_safe_changedir consumes its FD, and since
71298         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
71299         and close the dup'd file descriptor upon failure.
71300         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
71301         (fts_safe_changedir): Tweak semantics to reflect that this function
71302         now calls cwd_advance_fd and hence consumes its FD argument.
71303         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
71304         [struct FTS] (fts_rft): Remove now-unused member.
71305         [struct FTS] (fts_cycle.state): Improve comment.
71306
71307         * lib/openat.c (openat_needs_fchdir): New function.
71308         * lib/openat.h (openat_needs_fchdir): Declare it.
71309
71310 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
71311
71312         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
71313         Problem and fix reported by Pádraig Brady in
71314         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
71315
71316 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71317
71318         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
71319
71320 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71321
71322         * lib/memcoll.c (memcoll): Optimize for the common case where the
71323         arguments are bytewise equal.
71324
71325 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71326
71327         * doc/regexprops-generic.texi: Add a copyright notice.
71328
71329 2006-08-15  Bruno Haible  <bruno@clisp.org>
71330
71331         * modules/tmpdir (License): Change to LGPL.
71332
71333 2006-08-15  Bruno Haible  <bruno@clisp.org>
71334
71335         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
71336         module.
71337
71338 2006-08-14  Simon Josefsson  <jas@extundo.com>
71339
71340         * config/srclist.txt: Add gnupload.
71341
71342 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71343
71344         Change copyright notice from LGPL 2 to GPL 2, since that's the
71345         standard form used in the gnulib repository.
71346         * tests/test-lock.c: Likewise.
71347         * tests/test-stdint.c: Likewise.
71348         * tests/test-tls.c: Likewise.
71349
71350         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
71351         prelude-manager.  User shorter URLs for GNU projects, without '?'.
71352         Add copyright notice.
71353
71354         * check-module: Add copyright notice.  Output a copyright
71355         notice if "--version" is specified.
71356         * modules/COPYING: New file.
71357         * tests/test-getaddrinfo.c: Add copyright notice.
71358         * tests/test-verify.c: Likewise.
71359
71360 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71361
71362         Change copyright notice from LGPL 2 to GPL 2, since that's the
71363         standard form used in the gnulib repository.
71364         * lib/lock.c: LGPL -> GPL.
71365         * lib/lock.h: Likewise.
71366         * lib/strnlen1.c: Likewise.
71367         * lib/strnlen1.h: Likewise.
71368         * lib/tls.c: Likewise.
71369         * lib/tls.h: Likewise.
71370         * lib/tmpdir.c: Likewise.
71371
71372         * lib/TODO: Remove; this belongs only in coreutils.
71373
71374 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71375
71376         Add copyright notices to long-enough files that lack them, since
71377         otherwise the files aren't clearly free.  Use the same notice that
71378         getdate.texi already uses.
71379         * doc/alloca-opt.texi: Add copyright notice.
71380         * doc/alloca.texi: Likewise.
71381         * doc/ctime.texi: Likewise.
71382         * doc/functions.texi: Likewise.
71383         * doc/gcd.texi: Likewise.
71384         * doc/gnulib-tool.texi: Likewise.
71385         * doc/inet_ntoa.texi: Likewise.
71386         * doc/visibility.texi: Likewise.
71387
71388         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
71389         * doc/quote.texi: Add copyright notice.
71390
71391         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
71392         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
71393         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
71394         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
71395         is now obsolete, and give a pointer to the Sun list.
71396         Add copyright notice.
71397
71398 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71399
71400         * config/srclistvars.sh: Add copyright notice.
71401
71402 2006-08-14  Eric Blake  <ebb9@byu.net>
71403
71404         Import the following change from libc:
71405
71406         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
71407
71408         Upstream bug 2997.
71409         * lib/misc/error.c: Add space between program name and message if file
71410         name is missing.
71411
71412 2006-08-12  Karl Berry  <karl@gnu.org>
71413
71414         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
71415         remove, these originate in gnulib now.
71416
71417 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71418
71419         * doc/Makefile (standards.info standards.html standards.dvi):
71420         Also depend on make-stds.texi.
71421
71422 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71423
71424         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
71425         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
71426
71427         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
71428         in wchar_t.  Problem reported by Eric Blake.
71429
71430         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
71431         LEN is smaller than SIZE.  Suggested by Bruno Haible.
71432         Also, help the compiler to keep LEN in a register.
71433
71434 2006-08-11  Eric Blake  <ebb9@byu.net>
71435
71436         * users.txt: Sort.  Add tar.
71437
71438 2006-08-11  Bruno Haible  <bruno@clisp.org>
71439
71440         * users.txt: New file.
71441
71442 2006-08-11  Bruno Haible  <bruno@clisp.org>
71443
71444         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
71445         before <wchar.h>. Needed for OSF/1 and BSD/OS.
71446
71447 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71448
71449         * modules/snprintf (Depends-on): Remove minmax.
71450         (Maintainer): Add self and Bruno.
71451
71452 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71453
71454         * lib/.cppi-disable: Add snprintf.h, socket_.h.
71455         * lib/snprintf.c: Include <errno.h> and <limits.h>.
71456         (EOVERFLOW): Define if the system does not.
71457         Do not include "minmax.h"; it wasn't used.
71458         (snprintf): Don't assume size_t promotes to an unsigned type.
71459         Fix bug when generated string was too long for the buffer: the
71460         buffer's contents are supposed to be the initial prefix of the
71461         output.  Don't assume vasnprintf returns EOVERFLOW if the size
71462         exceeds INT_MAX; do the check ourselves.
71463
71464         Import the following changes from libc:
71465
71466         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
71467
71468         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
71469         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
71470         set wc to the byte which couldn't be converted.
71471         (re_string_reconstruct): Don't clear valid_raw_len before calling
71472         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
71473         tip_context using re_string_context_at.
71474
71475         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
71476
71477         * lib/posix/regex.h: g++ still cannot handled [restrict].
71478
71479         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
71480
71481         * lib/posix/regex.h: Remove special handling for VMS.
71482
71483 2006-08-10  Jim Meyering  <jim@meyering.net>
71484
71485         * modules/same-inode: New module.
71486         * modules/dev-ino: New module.
71487         * modules/cycle-check: Depend on these modules, rather than simply
71488         including their .h files.
71489         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
71490         required via m4/cycle-check.m4.
71491         * modules/same: Depend on new same-inode module, rather than
71492         including same-inode.h.
71493         * modules/chdir-safer: New file.
71494
71495         * modules/chown (Depends-on): Add stat-macros.
71496
71497 2006-08-10  Jim Meyering  <jim@meyering.net>
71498
71499         * m4/cycle-check.m4: New file.
71500         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
71501         * m4/dev-ino.m4, m4/same-inode.m4: New files.
71502
71503 2006-08-10  Eric Blake  <ebb9@byu.net>
71504
71505         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
71506         in from original proposal.
71507
71508 2006-08-10  Eric Blake  <ebb9@byu.net>
71509         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
71510
71511         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
71512         namespace.
71513
71514 2006-08-10  Bruno Haible  <bruno@clisp.org>
71515
71516         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
71517         as well.
71518
71519 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71520
71521         Sync from coreutils.
71522
71523         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
71524
71525         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
71526         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
71527
71528 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71529
71530         * modules/restrict: Remove; no longer needed now that we assume
71531         Autoconf 2.59 or later.
71532         * MODULES.html.sh: Remove 'restrict'.
71533         * modules/argp (Depends-on): Remove 'restrict'.
71534         * modules/base64 (Depends-on): Likewise.
71535         * modules/gc (Depends-on): Likewise.
71536         * modules/getaddrinfo (Depends-on): Likewise.
71537         * modules/glob (Depends-on): Likewise.
71538         * modules/inet_ntop (Depends-on): Likewise.
71539         * modules/inet_pton (Depends-on): Likewise.
71540         * modules/memxor (Depends-on): Likewise.
71541         * modules/regex (Depends-on): Likewise.
71542         * modules/strtok_r (Depends-on): Likewise.
71543         * modules/time_r (Depends-on): Likewise.
71544
71545 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71546
71547         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
71548         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
71549         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71550         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
71551         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
71552         * m4/memxor.m4 (gl_MEMXOR): Likewise.
71553         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
71554         gl_C_RESTRICT replaced by AC_C_RESTRICT.
71555
71556         Merge from coreutils.
71557         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
71558         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
71559         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
71560         * m4/time_r.m4 (gl_TIME_R): Likewise.
71561
71562 2006-08-09  Karl Berry  <karl@gnu.org>
71563
71564         * config/srclist.txt: no more gettext-tools, per Bruno.
71565
71566 2006-08-08  Eric Blake  <ebb9@byu.net>
71567
71568         * modules/verror: New module.
71569         * MODULES.html.sh: Document it.
71570
71571 2006-08-08  Eric Blake  <ebb9@byu.net>
71572
71573         * lib/verror.h, lib/verror.c: New files.
71574
71575 2006-08-08  Eric Blake  <ebb9@byu.net>
71576
71577         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
71578         verror_at_line output complies with GNU Coding Standards even when
71579         file is NULL.
71580
71581 2006-08-07  Bruno Haible  <bruno@clisp.org>
71582
71583         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
71584         versions of AIX.
71585         Reported by Ralf Wildenhues.
71586
71587 2006-08-07  Bruno Haible  <bruno@clisp.org>
71588
71589         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
71590         in an AC_DEFUN. Needed so that the autoconf snippets can use
71591         AC_REQUIRE.
71592
71593 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71594
71595         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71596         Initialize pkgdata_DATA.
71597         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
71598         overriding it.
71599
71600 2006-08-06  Eric Blake  <ebb9@byu.net>
71601
71602         * lib/error.h: Fold in some upstream changes from glibc.
71603         * lib/error.c: Likewise.
71604
71605 2006-08-04  Bruno Haible  <bruno@clisp.org>
71606
71607         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71608         Make the mostlyclean-local rule depend on mostlyclean-generic.
71609         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
71610
71611 2006-07-31  Bruno Haible  <bruno@clisp.org>
71612
71613         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
71614         <stdlib.h>, <string.h>.
71615
71616 2006-07-30  Bruno Haible  <bruno@clisp.org>
71617
71618         * modules/readlink (License): Change to LGPL.
71619
71620 2006-07-30  Bruno Haible  <bruno@clisp.org>
71621
71622         * modules/javaversion (Makefile.am): Distribute javaversion.java and
71623         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
71624         set PKGDATADIR to point to it.
71625
71626 2006-07-30  Bruno Haible  <bruno@clisp.org>
71627
71628         * modules/csharpexec (configure.ac): Comment out macro invocation.
71629         * modules/javaexec (configure.ac): Likewise.
71630         * modules/javacomp-script (configure.ac): Likewise.
71631
71632         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
71633
71634 2006-07-30  Bruno Haible  <bruno@clisp.org>
71635
71636         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
71637         linked-list.
71638
71639 2006-07-30  Bruno Haible  <bruno@clisp.org>
71640
71641         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
71642
71643 2006-07-30  Bruno Haible  <bruno@clisp.org>
71644
71645         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71646         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
71647         get removed.
71648
71649 2006-07-29  Bruno Haible  <bruno@clisp.org>
71650
71651         Make it possible for gnulib-tool to work with locally modified or
71652         augmented gnulib repositories.
71653         * gnulib-tool (func_usage): Document --local-dir option.
71654         (local_gnulib_dir): New variable.
71655         Handle --local-dir option.
71656         (func_lookup_file): New function.
71657         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
71658         (func_get_description, func_get_filelist, func_get_description,
71659         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
71660         func_get_automake_snippet, func_get_include_directive,
71661         func_get_license, func_get_maintainer): Use func_lookup_file.
71662         (func_import, func_create_testdir): Use func_lookup_file.
71663
71664 2006-07-29  Bruno Haible  <bruno@clisp.org>
71665
71666         * modules/setenv (Depends-on): Add unistd.
71667
71668 2006-07-29  Bruno Haible  <bruno@clisp.org>
71669
71670         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
71671
71672 2006-07-29  Bruno Haible  <bruno@clisp.org>
71673
71674         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
71675
71676 2006-07-29  Bruno Haible  <bruno@clisp.org>
71677
71678         * gnulib-tool (import, update): If there is no Makefile.am, look at
71679         aclocal.m4, instead of bailing out.
71680
71681 2006-07-29  Bruno Haible  <bruno@clisp.org>
71682
71683         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
71684         Categorize the options by when they are useful.
71685
71686 2006-07-29  Bruno Haible  <bruno@clisp.org>
71687
71688         * gnulib-tool (func_usage): Document option --no-libtool.
71689         Handle option --no-libtool.
71690         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
71691         for changed semantics of $libtool variable.
71692         (func_import): Likewise. If libtool is not used, show this through
71693         an option --no-libtool.
71694         (func_create_testdir): Update.
71695
71696 2006-07-29  Bruno Haible  <bruno@clisp.org>
71697
71698         * gnulib-tool (func_import): Extend error message about missing
71699         --doc-base.
71700
71701 2006-07-29  Bruno Haible  <bruno@clisp.org>
71702
71703         * gnulib-tool (func_import): Don't create the $docbase directory if
71704         there is no file to store there.
71705
71706 2006-07-29  Bruno Haible  <bruno@clisp.org>
71707
71708         * gnulib-tool (autoconf_minversion): If a --dir option is given and
71709         relevant, look for configure.ac there, not in the current directory.
71710         Also use a simple search for AC_PREREQ, not "autoconf --trace".
71711
71712 2006-07-29  Bruno Haible  <bruno@clisp.org>
71713
71714         * gnulib-tool (SORT): New variable.
71715         (func_usage): Undocument --assume-autoconf option.
71716         Remove --assume-autoconf option handling.
71717         (autoconf_minversion): Determine from the contents of configure.ac.
71718         (func_import): Remove autoconf_minversion handling.
71719         Suggested by Eric Blake.
71720
71721 2006-07-29  Bruno Haible  <bruno@clisp.org>
71722
71723         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
71724
71725 2006-07-29  Bruno Haible  <bruno@clisp.org>
71726
71727         * config/srclist.txt (*setenv.[ch]): Remove rules.
71728
71729 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71730
71731         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
71732
71733 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71734
71735         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
71736         arpa/inet.h.
71737
71738 2006-07-28  Simon Josefsson  <jas@extundo.com>
71739
71740         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
71741         * modules/inet_pton (Depends-on): Likewise.
71742
71743 2006-07-28  Simon Josefsson  <jas@extundo.com>
71744
71745         * m4/netinet_in_h.m4: New file.
71746
71747 2006-07-28  Simon Josefsson  <jas@extundo.com>
71748
71749         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
71750         #include's.
71751
71752 2006-07-28  Simon Josefsson  <jas@extundo.com>
71753
71754         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
71755         #include's.
71756
71757 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
71758
71759         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
71760         setgid on directories only if they set these bits.
71761         * lib/modechange.h: Remove obsolete comment about masks.
71762
71763 2006-07-28  Eric Blake  <ebb9@byu.net>
71764
71765         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
71766         macro expansion.
71767
71768 2006-07-28  Bruno Haible  <bruno@clisp.org>
71769
71770         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
71771
71772 2006-07-28  Bruno Haible  <bruno@clisp.org>
71773
71774         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
71775
71776 2006-07-28  Bruno Haible  <bruno@clisp.org>
71777
71778         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
71779         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
71780         Define fallbacks.
71781         Avoids link error on FreeBSD 4.x.
71782         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71783
71784         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
71785         encoding.
71786         * lib/mbswidth.c (iswcntrl): Likewise.
71787
71788 2006-07-27  Bruno Haible  <bruno@clisp.org>
71789
71790         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
71791         test.
71792
71793 2006-07-27  Bruno Haible  <bruno@clisp.org>
71794
71795         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
71796         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
71797         defined.
71798
71799 2006-07-26  Eric Blake  <ebb9@byu.net>
71800
71801         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
71802
71803 2006-07-26  Eric Blake  <ebb9@byu.net>
71804
71805         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
71806         like mingw that lack mkstemp.
71807         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
71808         avoid compilation warning on mingw.
71809
71810 2006-07-26  Bruno Haible  <bruno@clisp.org>
71811
71812         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
71813         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
71814         INT_FAST*_MIN, INTPTR_MIN.
71815
71816 2006-07-25  Bruno Haible  <bruno@clisp.org>
71817
71818         * modules/version-etc (Depends-on): Add stdarg.
71819
71820 2006-07-25  Bruno Haible  <bruno@clisp.org>
71821
71822         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
71823         complex commands.
71824
71825 2006-07-25  Bruno Haible  <bruno@clisp.org>
71826
71827         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
71828         defined in <stdarg.h> or config.h.
71829
71830 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71831
71832         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
71833         (gl_STDIO_SAFER): Remove.
71834
71835 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71836
71837         * MODULES.html.sh (File stream based Input/Output):
71838         Add fopen-safer, tmpfile-safer; remove stdio-safer.
71839         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
71840         * modules/fopen-safer, modules/tmpfile-safer: New files.
71841         * modules/stdio-safer: Remove.
71842
71843 2006-07-24  Bruno Haible  <bruno@clisp.org>
71844
71845         * modules/tmpdir: New file.
71846         * MODULES.html.sh (File system functions): Add it.
71847
71848 2006-07-24  Bruno Haible  <bruno@clisp.org>
71849
71850         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
71851         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
71852
71853 2006-07-24  Bruno Haible  <bruno@clisp.org>
71854
71855         * modules/clean-temp: New file.
71856
71857 2006-07-24  Bruno Haible  <bruno@clisp.org>
71858
71859         * m4/tmpdir.m4: New file, from GNU gettext.
71860
71861 2006-07-24  Bruno Haible  <bruno@clisp.org>
71862
71863         * lib/tmpdir.h: New file, from GNU gettext.
71864         * lib/tmpdir.c: New file, from GNU gettext.
71865
71866 2006-07-24  Bruno Haible  <bruno@clisp.org>
71867
71868         * lib/clean-temp.h: New file, from GNU gettext.
71869         * lib/clean-temp.c: New file, from GNU gettext.
71870
71871 2006-07-23  Eric Blake  <ebb9@byu.net>
71872
71873         * modules/stdio-safer (Files): Add tmpfile-safer.c.
71874         (Depends-on): Add binary-io.
71875
71876 2006-07-23  Eric Blake  <ebb9@byu.net>
71877
71878         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
71879
71880 2006-07-23  Eric Blake  <ebb9@byu.net>
71881
71882         * lib/tmpfile-safer.c: New file.
71883         * lib/stdio-safer.h (fopen_safer): Add prototype.
71884         * lib/stdio--.h (tmpfile): Make safer.
71885
71886 2006-07-23  Bruno Haible  <bruno@clisp.org>
71887
71888         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
71889         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
71890         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
71891         gl_linked_remove_at): Use it.
71892
71893 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71894         and Simon Josefsson <jas@extundo.com>
71895
71896         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
71897
71898         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
71899
71900 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71901
71902         * modules/close-stream: New file.
71903         * modules/closeout (Description): Make it clear that it exits
71904         with a diagnostic on error.
71905         (Depends-on): Add close-stream.  Remove fpending, stdbool.
71906         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
71907
71908 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71909
71910         * m4/close-stream.m4: New file.
71911
71912 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71913
71914         * lib/close-stream.c, lib/close-stream.h: New files.
71915
71916 2006-07-22  Bruno Haible  <bruno@clisp.org>
71917
71918         Merge from GNU gettext 0.15.
71919
71920         2006-05-01  Bruno Haible  <bruno@clisp.org>
71921
71922                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
71923
71924         2006-07-22  Bruno Haible  <bruno@clisp.org>
71925
71926                 * modules/javaversion: New file.
71927                 * MODULES.html.sh (Java): Add javaversion.
71928
71929         2006-03-12  Bruno Haible  <bruno@clisp.org>
71930
71931                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
71932
71933         2005-12-04  Bruno Haible  <bruno@clisp.org>
71934
71935                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
71936                 (untested).
71937
71938         2006-06-21  Bruno Haible  <bruno@clisp.org>
71939
71940                 Avoid warnings from recent versions of mcs.
71941                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
71942                 -o, -L, -r any more. Use options documented since mcs-1.0
71943                 instead. Similarly for -g.
71944
71945         2005-12-04  Bruno Haible  <bruno@clisp.org>
71946
71947                 * build-aux/csharpcomp.sh.in: Suffix for resources is
71948                 .resources, not .resource.
71949
71950         2005-07-09  Bruno Haible  <bruno@clisp.org>
71951
71952                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
71953                 add a .dll suffix.
71954                 Reported by Mark Junker <mjscod@gmx.de>.
71955
71956         2006-07-22  Bruno Haible  <bruno@clisp.org>
71957
71958                 * modules/gettext: Upgrade to gettext-0.15.
71959                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
71960                 m4/visibility.m4.
71961                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
71962
71963 2006-07-22  Bruno Haible  <bruno@clisp.org>
71964
71965         Merge from GNU gettext 0.15.
71966
71967         2006-03-25  Bruno Haible  <bruno@clisp.org>
71968
71969                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
71970
71971         2006-07-21  Bruno Haible  <bruno@clisp.org>
71972
71973                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
71974                 "1.1".
71975
71976         2006-05-09  Bruno Haible  <bruno@clisp.org>
71977
71978                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
71979                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
71980                 for the conftestver execution.
71981
71982         2006-05-01  Bruno Haible  <bruno@clisp.org>
71983
71984                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
71985                 optional target-version argument. Verify that the compiler
71986                 groks source of the specified source-version, or add -source
71987                 option as necessary. Verify that the compiler produces
71988                 bytecode in the specified target-version, or add -target and
71989                 -source options as necessary. Make the result of the test
71990                 available as variable CONF_JAVAC. Also log error output in
71991                 config.log.
71992
71993         2006-03-11  Bruno Haible  <bruno@clisp.org>
71994
71995                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
71996
71997         2006-05-09  Bruno Haible  <bruno@clisp.org>
71998
71999                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
72000                 CLASSPATH_SEPARATOR to a semicolon.
72001
72002         2006-03-12  Bruno Haible  <bruno@clisp.org>
72003
72004                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
72005                 available as variable CONF_JAVA, for subsequent autoconf
72006                 tests. Also log error output in config.log.
72007
72008         2006-07-19  Bruno Haible  <bruno@clisp.org>
72009
72010                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
72011                 that getline works on glibc2 systems. Needed to avoid trouble
72012                 in relocatable.c.
72013                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
72014
72015         2005-12-04  Bruno Haible  <bruno@clisp.org>
72016
72017                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
72018                 launcher (untested).
72019
72020         2005-12-04  Bruno Haible  <bruno@clisp.org>
72021
72022                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
72023
72024         2006-07-22  Bruno Haible  <bruno@clisp.org>
72025
72026                 * gettext.m4: Update from GNU gettext-0.15.
72027                 * nls.m4: Likewise.
72028                 * po.m4: Likewise.
72029                 * inttypes-pri.m4: Likewise.
72030                 * inttypes-h.m4: Renamed from inttypes.m4.
72031                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
72032
72033 2006-07-22  Bruno Haible  <bruno@clisp.org>
72034
72035         Merge from GNU gettext 0.15.
72036
72037         2005-07-05  Bruno Haible  <bruno@clisp.org>
72038
72039                 * printf-args.c (printf_fetchargs): Work around broken
72040                 definition of wint_t on mingw.
72041
72042         2005-02-12  Bruno Haible  <bruno@clisp.org>
72043
72044                 * xallocsa.h: Add extern "C" for C++.
72045
72046         2006-05-17  Bruno Haible  <bruno@clisp.org>
72047
72048                 Cygwin portability.
72049                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
72050
72051         2006-04-30  Bruno Haible  <bruno@clisp.org>
72052
72053                 * progreloc.c: Include <mach-o/dyld.h> if available.
72054                 (find_executable): Use _NSGetExecutablePath when possible.
72055
72056         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72057
72058                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
72059                 function.
72060
72061         2005-12-29  Bruno Haible  <bruno@clisp.org>
72062
72063                 * progreloc.c (set_program_name_and_installdir): Fix
72064                 compilation error.
72065
72066         2005-12-04  Bruno Haible  <bruno@clisp.org>
72067
72068                 Cygwin portability.
72069                 * progreloc.c: Include <windows.h> also on Cygwin.
72070                 (find_executable): Add support for Cygwin.
72071                 (set_program_name_and_installdir): Handle also platforms with
72072                 nonempty EXEEXT.
72073
72074         2006-07-11  Bruno Haible  <bruno@clisp.org>
72075
72076                 * javacomp.c: Fix a comment.
72077                 Reported by Jim Meyering.
72078
72079         2006-04-30  Bruno Haible  <bruno@clisp.org>
72080
72081                 * javacomp.h (compile_java_class): Add source_version,
72082                 target_version arguments.
72083                 * javacomp.c: Rewritten to choose only a compiler that
72084                 respects the specified source_version and target_version.
72085
72086         2006-06-27  Bruno Haible  <bruno@clisp.org>
72087
72088                 Assume correct S_ISDIR macro.
72089                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
72090
72091         2006-07-22  Bruno Haible  <bruno@clisp.org>
72092
72093                 * javaversion.h: New file, from GNU gettext.
72094                 * javaversion.c: New file, from GNU gettext.
72095                 * javaversion.java: New file, from GNU gettext.
72096                 * javaversion.class: New file, from GNU gettext.
72097
72098         2006-05-17  Bruno Haible  <bruno@clisp.org>
72099
72100                 Cygwin portability.
72101                 * javaexec.c (execute_java_class): Test for jview program
72102                 also on Cygwin.
72103
72104         2006-04-09  Bruno Haible  <bruno@clisp.org>
72105
72106                 * fatal-signal.c: Don't include string.h.
72107                 (at_fatal_signal): Use a copying loop instead of memcpy.
72108
72109         2005-12-04  Bruno Haible  <bruno@clisp.org>
72110
72111                 * csharpexec.c: Add support for 'clix' launcher (untested).
72112                 (execute_csharp_using_sscli): New function.
72113                 (execute_csharp_program): Call it.
72114
72115         2006-06-21  Bruno Haible  <bruno@clisp.org>
72116
72117                 Avoid warnings from recent versions of mcs.
72118                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
72119                 -o, -L, -r any more. Use options documented since mcs-1.0
72120                 instead. Similarly for -g.
72121
72122         2005-07-09  Bruno Haible  <bruno@clisp.org>
72123
72124                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
72125                 add a .dll suffix.
72126                 Reported by Mark Junker <mjscod@gmx.de>.
72127
72128         2006-06-17  Bruno Haible  <bruno@clisp.org>
72129
72130                 * config.charset: Update for NetBSD 3.0.
72131
72132         2006-05-17  Bruno Haible  <bruno@clisp.org>
72133
72134                 Cygwin portability.
72135                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
72136
72137         2006-05-16  Bruno Haible  <bruno@clisp.org>
72138
72139                 * localcharset.c [CYGWIN]: Include <windows.h>.
72140                 (get_charset_aliases): For Cygwin, return the same CPxxx
72141                 aliases list as under WIN32.
72142                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
72143                 the environment variables. Fall back to GetACP().
72144
72145         2006-04-05  Bruno Haible  <bruno@clisp.org>
72146
72147                 * config.charset: Update Juan Manuel Guerrero's address.
72148
72149         2005-02-12  Bruno Haible  <bruno@clisp.org>
72150
72151                 * allocsa.h: Add extern "C" for C++.
72152
72153         2005-02-10  Bruno Haible  <bruno@clisp.org>
72154
72155                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
72156                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
72157
72158         2006-07-22  Bruno Haible  <bruno@clisp.org>
72159
72160                 * gettext.h: Update to GNU gettext-0.15.
72161
72162 2006-07-22  Bruno Haible  <bruno@clisp.org>
72163
72164         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
72165         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
72166         lib-prefix.m4, longdouble.m4, ssize_t.m4.
72167
72168 2006-07-21  Eric Blake  <ebb9@byu.net>
72169
72170         * modules/stdlib-safer: New file.
72171         * MODULES.html.sh (File stream based Input/Output): Add
72172         stdlib-safer.
72173
72174 2006-07-21  Eric Blake  <ebb9@byu.net>
72175
72176         * lib/stdlib-safer.h: New file from coreutils, required by
72177         stdlib--.h.
72178
72179 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
72180
72181         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
72182
72183 2006-07-20  Bruno Haible  <bruno@clisp.org>
72184
72185         * gnulib-tool: Recognize new option --assume-autoconf.
72186         (autoconf_minversion): New variable.
72187         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
72188
72189 2006-07-20  Bruno Haible  <bruno@clisp.org>
72190
72191         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
72192
72193 2006-07-19  Derek R. Price  <derek@ximbiot.com>
72194
72195         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
72196         Reindent and repaginate.
72197
72198 2006-07-19  Derek Price  <derek@ximbiot.com>
72199
72200         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
72201         Correct grammar.
72202
72203 2006-07-17  Bruno Haible  <bruno@clisp.org>
72204
72205         * modules/list: New file.
72206         * modules/array-list: New file.
72207         * modules/carray-list, modules/carray-list-tests: New files.
72208         * modules/linked-list, modules/linked-list-tests: New files.
72209         * modules/avltree-list, modules/avltree-list-tests: New files.
72210         * modules/rbtree-list, modules/rbtree-list-tests: New files.
72211         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
72212         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
72213         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
72214         * modules/oset: New file.
72215         * modules/array-oset: New file.
72216         * modules/avltree-oset, modules/avltree-oset-tests: New files.
72217         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
72218         * tests/test-carray_list.c: New file.
72219         * tests/test-linked_list.c: New file.
72220         * tests/test-avltree_list.c: New file.
72221         * tests/test-rbtree_list.c: New file.
72222         * tests/test-linkedhash_list.c: New file.
72223         * tests/test-avltreehash_list.c: New file.
72224         * tests/test-rbtreehash_list.c: New file.
72225         * tests/test-avltree_oset.c: New file.
72226         * tests/test-rbtree_oset.c: New file.
72227         * MODULES.html.sh (Container data structures): New section.
72228
72229 2006-07-17  Bruno Haible  <bruno@clisp.org>
72230
72231         * m4/gl_list.m4: New file.
72232
72233 2006-07-17  Bruno Haible  <bruno@clisp.org>
72234
72235         * lib/gl_list.h: New file.
72236         * lib/gl_list.c: New file.
72237         * lib/gl_array_list.h: New file.
72238         * lib/gl_array_list.c: New file.
72239         * lib/gl_carray_list.h: New file.
72240         * lib/gl_carray_list.c: New file.
72241         * lib/gl_linked_list.h: New file.
72242         * lib/gl_linked_list.c: New file.
72243         * lib/gl_anylinked_list1.h: New file.
72244         * lib/gl_anylinked_list2.h: New file.
72245         * lib/gl_avltree_list.h: New file.
72246         * lib/gl_avltree_list.c: New file.
72247         * lib/gl_anyavltree_list1.h: New file.
72248         * lib/gl_anyavltree_list2.h: New file.
72249         * lib/gl_rbtree_list.h: New file.
72250         * lib/gl_rbtree_list.c: New file.
72251         * lib/gl_anyrbtree_list1.h: New file.
72252         * lib/gl_anyrbtree_list2.h: New file.
72253         * lib/gl_anytree_list1.h: New file.
72254         * lib/gl_anytree_list2.h: New file.
72255         * lib/gl_linkedhash_list.h: New file.
72256         * lib/gl_linkedhash_list.c: New file.
72257         * lib/gl_anyhash_list1.h: New file.
72258         * lib/gl_anyhash_list2.h: New file.
72259         * lib/gl_avltreehash_list.h: New file.
72260         * lib/gl_avltreehash_list.c: New file.
72261         * lib/gl_rbtreehash_list.h: New file.
72262         * lib/gl_rbtreehash_list.c: New file.
72263         * lib/gl_anytreehash_list1.h: New file.
72264         * lib/gl_anytreehash_list2.h: New file.
72265
72266         * lib/gl_oset.h: New file.
72267         * lib/gl_oset.c: New file.
72268         * lib/gl_array_oset.h: New file.
72269         * lib/gl_array_oset.c: New file.
72270         * lib/gl_avltree_oset.h: New file.
72271         * lib/gl_avltree_oset.c: New file.
72272         * lib/gl_rbtree_oset.h: New file.
72273         * lib/gl_rbtree_oset.c: New file.
72274         * lib/gl_anytree_oset.h: New file.
72275
72276 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72277
72278         * m4/mkancesdirs.m4: New file.
72279         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
72280         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
72281         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
72282         it.
72283
72284 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72285
72286         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
72287         * lib/mkancesdirs.h: New files.
72288         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
72289         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
72290         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
72291         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
72292         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
72293         callers changed.  Revamp internals significantly, by not
72294         attempting to create directories that are temporarily more
72295         permissive than the final results.  Do not attempt to use
72296         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
72297         This removes some race conditions, fixes some bugs, and simplifies
72298         things.  Use new dirchownmod function to do owner and mode changes.
72299         * lib/mkdir-p.h: Likewise.
72300         * lib/modechange.c (octal_to_mode): New function.
72301         (struct mode_change): New member mentioned.
72302         (make_node_op_equals): New arg mentioned.  All callers changed.
72303         (mode_compile): Keep track of which mode bits the user has explicitly
72304         mentioned.
72305         (mode_adjust): New arg DIR, so that we implement the X op correctly.
72306         New arg PMODE_BITS, to keep track of which mode bits the user
72307         mentioned; it treats S_ISUID and S_ISGID speciall.
72308         All callers changed.
72309         * lib/modechange.h: Likewise.
72310
72311 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72312
72313         * MODULES.html.sh: Add mkancestors.
72314         * modules/mkancesdirs: New module.
72315         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
72316         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
72317         The chdir-safer and afs files are now orphans; I'll remove them
72318         unless someone speaks up.
72319         Add lib/dirchownmod.c, lib/dirchownmod.h.
72320         (Depends-on): Remove alloca, chown, save-cwd, dirname.
72321         Add lchown, mkancesdirs.
72322         (Maintainer): Add self.
72323
72324 2006-07-15  Karl Berry  <karl@gnu.org>
72325
72326         * gnulib-tool: help message wording/arrangement.
72327
72328 2006-07-14  Simon Josefsson  <jas@extundo.com>
72329
72330         * doc/gnulib.texi (Libtool and Windows): New section.
72331
72332 2006-07-12  Simon Josefsson  <jas@extundo.com>
72333
72334         * modules/gendocs (License): Fix license, approved by Karl.
72335
72336 2006-07-12  Eric Blake  <ebb9@byu.net>
72337
72338         * MODULES.html.sh: Add gendocs.
72339
72340 2006-07-11  Eric Blake  <ebb9@byu.net>
72341
72342         * modules/fdl: New module, to install doc/fdl.texi.
72343         * MODULES.html.sh: Add new section for documentation modules.
72344         * gnulib-tool: Avoid space-tab.
72345         (--doc-base): New option, to manage files from doc.
72346
72347 2006-07-11  Eric Blake  <ebb9@byu.net>
72348
72349         * m4/absolute-header.m4: Fix comments to match recent change.
72350
72351 2006-07-11  Eric Blake  <ebb9@byu.net>
72352
72353         * gnulib-tool: List --doc-base before --tests-base.
72354
72355 2006-07-11  Derek R. Price  <derek@ximbiot.com>
72356
72357         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
72358
72359 2006-07-11  Bruno Haible  <bruno@clisp.org>
72360
72361         * README: Mention where to put documentation.
72362
72363 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72364
72365         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
72366
72367 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
72368
72369         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
72370         to stdint.m4.
72371
72372 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
72373
72374         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
72375         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
72376         "no/such/file/stdint.h" when there is no such file, so that
72377         the resulting C code can be parsed by dodgy compilers.
72378         Problems reported by Bob Proulx.
72379
72380 2006-07-10  Derek R. Price  <derek@ximbiot.com>
72381
72382         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
72383         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
72384         macros into the GNU _D_EXACT_NAMLEN.
72385         * lib/savedir.c:  Likewise.
72386         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
72387
72388 2006-07-10  Derek R. Price  <derek@ximbiot.com>
72389         and Paul Eggert  <eggert@cs.ucla.edu>
72390
72391         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
72392         * m4/savedir.m4:
72393         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
72394         macros into the GNU _D_EXACT_NAMLEN.
72395
72396 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72397
72398         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
72399         around the absolute name, to work around a problem with the HP-UX
72400         11.23 native C compiler, reported by Bob Proulx.
72401
72402 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72403
72404         * doc/maintain.texi, make-stds.texi: Sync from
72405         <http://savannah.gnu.org/projects/gnustandards>.
72406
72407 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72408
72409         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
72410
72411 2006-07-09  Jim Meyering  <jim@meyering.net>
72412
72413         * m4/glob.m4: Remove a doubled word in a comment.
72414
72415 2006-07-09  Jim Meyering  <jim@meyering.net>
72416
72417         * lib/argp-pv.c: Remove a doubled word in a comment.
72418         * lib/check-version.c (check_version): Likewise.
72419         * lib/javacomp.c (compile_java_class): Likewise.
72420
72421 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72422
72423         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
72424         for the benefit of people using Autoconf 2.60.  If you want to
72425         support older Autoconf versions you can copy m4/onceonly_2_57.m4
72426         (or m4/onceonly.m4, if pre-2.57) manually.
72427
72428 2006-07-08  Jim Meyering  <jim@meyering.net>
72429
72430         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
72431         comment.
72432         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
72433         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
72434         comment.
72435
72436 2006-07-08  Jim Meyering  <jim@meyering.net>
72437
72438         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
72439
72440 2006-07-07  Simon Josefsson  <jas@extundo.com>
72441
72442         * tests/test-crc.c: Change expected crc value, the test vector
72443         were probably computed using the old broken crc.c?
72444
72445 2006-07-06  Simon Josefsson  <jas@extundo.com>
72446
72447         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
72448         now the canonical place for the M4 file).
72449
72450         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
72451         from the sys_socket dependency now.
72452
72453         * modules/inet_pton (Files): Ditto.
72454
72455         * modules/inet_ntop (Files): Ditto.
72456
72457 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72458
72459         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
72460         not gl_PREREQ_GETUSERSHELL.
72461
72462 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72463
72464         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
72465         with only one argument, for Autoconf 2.60.
72466         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
72467         expand to nothing, so add a shell command to avoid syntax error.
72468         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72469
72470 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72471
72472         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
72473
72474 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72475
72476         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
72477         no longer needed.  Check for isblank decl.
72478         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
72479         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
72480         of existence.
72481
72482 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72483
72484         * lib/getloadavg.c: Use __VMS, not VMS.
72485         * lib/getopt.c: Likewise.
72486         * lib/getpagesize.h: Likewise.
72487         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
72488         and probably does not work.
72489
72490 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72491
72492         * lib/.cppi-disable: Add wcwidth.
72493         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
72494         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
72495         (ISGRAPH): Remove.  All uses changed to isgraph.
72496         (FOLD) [!defined _LIBC]: Remove special case.
72497         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
72498         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
72499         HAVE_ISBLANK.
72500         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
72501         case.
72502
72503 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72504
72505         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
72506         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
72507         brackets.  Other minor changes to suppress some compiler
72508         warnings.
72509
72510 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72511         and Paul Eggert  <eggert@cs.ucla.edu>
72512
72513         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
72514         of invoking obsolescent AC_HEADER_DIRENT macro.
72515         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
72516         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
72517         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
72518         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
72519         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
72520         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
72521         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
72522         * m4/readdir.m4: Remove; no longer needed.
72523
72524 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72525         and Paul Eggert  <eggert@cs.ucla.edu>
72526
72527         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
72528         Don't worry about this obsolete case any more.
72529         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
72530         directories.
72531         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
72532         worry about this obsolete case any more.
72533         * lib/fts.c: Likewise.
72534         * lib/getcwd.c: Likewise.
72535         * lib/glob.h: Likewise.
72536         * lib/savedir.c: Likewise.
72537
72538 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72539
72540         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
72541         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
72542         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
72543         needed.
72544         All uses removed.
72545         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72546         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
72547         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
72548         needed.
72549         * m4/getdate.m4 (gl_GETDATE): Likewise.
72550         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
72551         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
72552         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
72553         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72554         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
72555         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72556         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
72557         needed.
72558
72559 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72560
72561         * lib/memcasecmp.c: Include <limits.h>.
72562         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
72563         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
72564         Don't assume isdigit succeeds only on '0' through '9'.
72565
72566 2006-07-05  Eric Blake  <ebb9@byu.net>
72567
72568         * modules/getaddrinfo (Depends-on): Add snprintf.
72569
72570 2006-07-05  Eric Blake  <ebb9@byu.net>
72571
72572         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
72573         to avoid 'header present but could not be compiled' on cygwin.
72574
72575 2006-07-05  Eric Blake  <ebb9@byu.net>
72576
72577         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
72578         missing from netdb.h.
72579         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
72580
72581 2006-07-05  Derek R. Price  <derek@ximbiot.com>
72582
72583         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
72584         no longer needed.
72585         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
72586         * m4/getdate.m4 (gl_GETDATE): Likewise.
72587         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
72588         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
72589         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
72590         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72591         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72592
72593 2006-07-05  Derek R. Price  <derek@ximbiot.com>
72594
72595         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
72596         All uses of is_space replaced by isspace.
72597         * lib/exit.h: Don't talk about STDC_HEADERS.
72598         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
72599         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
72600         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
72601         replaced by isprint etc.
72602         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
72603         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72604         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
72605         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
72606         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
72607         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72608
72609 2006-07-05  Bruno Haible  <bruno@clisp.org>
72610
72611         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
72612         the function exists, before testing against AIX.
72613         Reported by Martin Lambers <marlam@marlam.de>.
72614
72615 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72616
72617         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
72618         From Mark D. Baushke.
72619
72620 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72621
72622         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
72623         to the absolute name, not just one, to bypass Sun C 5.8's
72624         "warning: #include of /usr/include/... may be non-portable".
72625
72626 2006-07-04  Eric Blake  <ebb9@byu.net>
72627
72628         * modules/dirname-tests: New test module.
72629         * tests/test-dirname.c: New file, replacing dirname.c
72630         TEST_DIRNAME section that was recently deleted.
72631
72632 2006-07-04  Bruno Haible  <bruno@clisp.org>
72633
72634         Assume ANSI C header files and <ctype.h> functions.
72635         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
72636         (mbsnwidth): Use isprint, iscntrl instead.
72637
72638 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72639
72640         Merge from coreutils.
72641         * MODULES.html.sh: Add xstrtold.
72642         * modules/xstrtold: New file.
72643         * modules/cycle-check (Files): Add lib/same-inode.h.
72644         * modules/dirname (Files): Add m4/double-slash-root.m4.
72645         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
72646         * modules/mkdir-p (Files): Add lib/same-inode.h.
72647         * modules/same (Files): Add lib/same-inode.h.
72648
72649 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72650
72651         * m4/absolute-header.m4: Renamed from full-header-path.m4.
72652         This is to keep the terminology clean; POSIX talks about
72653         "absolute pathnames", not "full pathnames", but the GNU
72654         Coding Standards say to use "path" for something else;
72655         so use "absolute" to keep both sides happy.
72656         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
72657         Set gl_absolute_header, not gl_full_header_path.
72658         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
72659         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
72660         All uses changed.
72661
72662         Merge from coreutils.
72663
72664         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72665
72666         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
72667         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
72668         want to require the building of c-strtod.o.
72669         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
72670         needs -lm directly.
72671         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
72672
72673         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72674
72675         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
72676         --as-needed option if available.  Problem reported by Albert Chin in
72677         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
72678         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
72679         cc merely issues a bunch of annoying warnings for --as-needed
72680         (this problem was reported by Bob Proulx).  Also, try linking with
72681         -lm to detect a bug in binutils 2.16 (this problem was reported
72682         by Ralf Wildenhues).
72683
72684         2006-06-18  Jim Meyering  <jim@meyering.net>
72685
72686         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
72687         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
72688         macro.
72689         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
72690         also check for glibc-2.4's abort-inducing bug.
72691
72692         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
72693         Low-probability clean-up should be to use rmdir to get rid of
72694         the just-created directory, not unlink.
72695
72696         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
72697         configure fail, and request a bug report to inform us about it.
72698         Add a comment that, barring reports to the contrary, in 2007 we'll
72699         assume ftruncate is universally available.
72700
72701         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72702
72703         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
72704
72705         2006-03-12  Jim Meyering  <jim@meyering.net>
72706
72707         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
72708         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
72709         * m4/same.m4 (gl_SAME): Likewise.
72710         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
72711
72712         2006-03-11  Eric Blake  <ebb9@byu.net>
72713
72714         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
72715         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
72716         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
72717         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
72718
72719 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72720
72721         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
72722         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
72723         reported by Mark D. Baushke, one in
72724         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
72725
72726         Merge from coreutils.
72727
72728         * lib/.cppi-disable: Add stdint_.h.
72729         * lib/.cvsignore: Add stdint.h.
72730
72731         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72732
72733         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
72734         both double and long double versions.
72735         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
72736         * lib/xstrtold.c: New file.
72737         * lib/xstrtod.h (xstrtold): New decl.
72738
72739         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
72740
72741         * lib/filemode.c (setst): Remove.
72742         (strmode): Rewrite to avoid setst.  This makes the code shorter,
72743         (arguably) clearer, and the generated code is a bit smaller on my
72744         Debian GNU/Linux stable x86 host.
72745
72746         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72747
72748         * lib/filemode.c: Include "filemode.h" first, to test the interface.
72749         Assume that filemode.h includes sys/types.h and sys/stat.h.
72750         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
72751         (ftypelet): Reorder to put common cases first, for efficiency.
72752         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
72753         to do 'M'.
72754         (strmode): Renamed from mode_string, and now stores 12 bytes instead
72755         of 10, for compatibility with FreeBSD.  All callers changed.
72756         (filemodestring): Now stores 12 bytes instead of 10, and sets file
72757         types that can't be deduced solely from st_mode.  First arg is now a
72758         const pointer.
72759         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
72760         (strmode): Renamed from mode_string.
72761         (filemodestring): New decl.
72762         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
72763         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
72764         needed.
72765         (S_ISPORT, S_ISWHT): New macros, if not already defined.
72766
72767         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72768
72769         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
72770         fsusage.h now does that.  Include fsusage.h first, to test interface.
72771         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
72772         at most one method (the old code could have generated decls that
72773         didn't conform to C89, not that this was ever exercised).
72774         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
72775
72776         2006-03-19  Jim Meyering  <jim@meyering.net>
72777
72778         Work even in a chroot where d_ino values for entries in "/"
72779         don't match the stat.st_ino values for the same names.
72780         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
72781         number, iterate through all entries again, using lstat instead.
72782         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
72783         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
72784
72785         * lib/getcwd.c (__getcwd): Clarify a comment.
72786         Use memcpy in place of a call to strcpy.
72787
72788         2006-03-12  Jim Meyering  <jim@meyering.net>
72789
72790         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
72791         matches that of the current directory (which we're about to chdir ".."
72792         out of), then save the dev-ino of the parent, instead.
72793
72794         * lib/same-inode.h (SAME_INODE): New file/macro.
72795         * lib/chdir-safer.c (SAME_INODE): Remove definition.
72796         Include "same-inode.h", instead.
72797         * lib/same.c: Likewise.
72798         * lib/cycle-check.h: Include "same-inode.h".
72799         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
72800         * lib/cycle-check.c (SAME_INODE): Remove definition.
72801         * lib/root-dev-ino.h: Include "same-inode.h".
72802
72803         2006-03-11  Eric Blake  <ebb9@byu.net>
72804
72805         * lib/same.c (same_name): s/base_name/last_component/
72806         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
72807         * lib/filenamecat.c (file_name_concat): Likewise.
72808
72809         2006-03-11  Eric Blake  <ebb9@byu.net>,
72810                     Paul Eggert  <eggert@cs.ucla.edu>
72811
72812         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
72813         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
72814         drive prefix.
72815         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
72816         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
72817         (last_component): New method.
72818         * lib/dirname.c (dir_len): Determine when drive letters need a
72819         subsequent slash.  Preserve // when it is special.
72820         (dir_name): Don't append dot when drive letter is absolute.
72821         [TEST_DIRNAME]: Move into a full-blown gnulib test.
72822         * lib/basename.c (base_name): New semantics - malloc the result.
72823         Preserve // when it is special.  Preserve relative files that look
72824         like drive letters.
72825         (base_len): Preserve // when it is special.
72826         (last_component): New method, similar to old base_name semantics.
72827         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
72828         base_name.  Strip redundant slashes from ///.
72829
72830 2006-07-03  Jim Meyering  <jim@meyering.net>
72831
72832         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
72833         macro is used before the first cycle_check call.
72834
72835 2006-07-03  Eric Blake  <ebb9@byu.net>
72836
72837         * modules/dirname (Depends-on): Add xstrndup.
72838
72839 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72840
72841         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
72842         test cases, so that config.log is a bit easier to follow.
72843
72844 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72845
72846         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
72847         both are 64 bits, since this seems to be the tradition, and this
72848         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
72849         we ever run into a host that prefers long long to long in this
72850         case, we'll need another configure-time test.  Problem reported by
72851         Jim Meyering.
72852
72853 2006-07-02  Eric Blake  <ebb9@byu.net>
72854
72855         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
72856
72857 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72858
72859         * modules/inttypes (Depends-on): No longer depends on stdint.
72860         * modules/stdint (Description): Say more about assumptions.
72861         Say that the fast types might differ.  Say macros are used.
72862         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
72863         (Makefile.am): Revise list of substituted symbols to match
72864         new stdint.m4.
72865         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
72866         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
72867         * tests/test-stdint.c (verify_same_types)
72868         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
72869         the code conforms to C99/C89.
72870         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
72871         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
72872
72873 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72874
72875         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
72876         but fix a bug, by requiring at least 64 bits.
72877         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
72878         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
72879         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
72880         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
72881
72882         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
72883         changes.  Make 2.59 a prerequisite.  Check and substitute for
72884         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
72885         inttypes.h.  Do not use special include files; just use the
72886         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
72887         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
72888         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
72889         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
72890         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
72891         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
72892         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
72893         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
72894         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
72895         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
72896         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
72897         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
72898         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
72899         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
72900         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
72901         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
72902         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
72903         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
72904         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
72905         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
72906         WINT_MAX.  Check for C99 conformance more strictly, by detecting
72907         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
72908         not check for things that C99 does not require, e.g., int8_t.  If
72909         a test isn't needed unless <stdint.h> isn't working, and is
72910         unlikely to be needed for any other reason, then don't do it
72911         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
72912         size_t, since we assume C89 freestanding at least.  Do not check
72913         for sig_atomic_t, wchar_t, or wint_t, since the code now does
72914         the right thing even if the types are not defined.  Instead use:
72915         (gl_STDINT_TYPE_PROPERTIES): New macro.
72916         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
72917         testing whether <sys/types.h> clashes, as Autoconf does this for
72918         us now.  All uses removed.
72919         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
72920         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
72921         (gl_CHECK_TYPE_SAME):
72922         Remove; no longer needed.
72923         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
72924         exists, since we'll return 0 anyway in that case.
72925         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
72926
72927 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72928
72929         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
72930         possible collision with system files.
72931         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
72932         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
72933         WCHAR_MIN and WCHAR_MAX in this case.
72934         (<stddef.h>): Do not include; no longer needed.
72935         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
72936         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
72937         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
72938         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
72939         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
72940         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
72941         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
72942         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
72943         !defined(__c99))]: Include in this case too, since it's harmless
72944         now.
72945         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
72946         dangerous to do so.
72947         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
72948         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
72949         (_STDINT_MIN, _STDINT_MAX): New macros.
72950         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
72951         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
72952         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
72953         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
72954         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
72955         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
72956         macros, not typedefs; this simplifies things quite a bit.
72957         Use long int for all types narrower than int64_t.
72958         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
72959         Define in terms of long long int or int64_t or long int,
72960         not int64_t or int32_t.  This saves some compile-time testing.
72961         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
72962         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
72963         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
72964         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
72965         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
72966         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
72967         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
72968         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
72969         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
72970         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
72971         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72972         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72973         undef any previous version and define our own version, for
72974         simplicity and consistency with the new macros for types.
72975         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72976         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72977         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
72978         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
72979         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
72980         @WINT_T_SUFFIX@ to keep things simple here.
72981         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
72982         Simplify by assuming typical 8/16/32/64 host, since we're
72983         already doing that elsewhere anyway.
72984         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
72985         and assume long long int is 64 bits if available.  This
72986         speeds up 'configure'.
72987
72988 2006-07-01  Eric Blake  <ebb9@byu.net>
72989
72990         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
72991         Reported by Andreas Buening.
72992
72993 2006-07-01  Eric Blake  <ebb9@byu.net>
72994
72995         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
72996
72997 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72998
72999         * lib/getaddrinfo.c: fixed typo
73000
73001 2006-06-29  Jim Meyering  <jim@meyering.net>
73002
73003         * modules/strftime (Maintainer): Add my name, since with the
73004         FPRINTFTIME changes strftime.c has forked from glibc.
73005
73006 2006-06-29  Eric Blake  <ebb9@byu.net>
73007
73008         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
73009
73010 2006-06-29  Eric Blake  <ebb9@byu.net>
73011
73012         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
73013
73014 2006-06-29  Eric Blake  <ebb9@byu.net>
73015
73016         * lib/stat_.h: New file.
73017
73018 2006-06-29  Eric Blake  <ebb9@byu.net>
73019
73020         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
73021         unused static function.
73022
73023 2006-06-29  Eric Blake  <ebb9@byu.net>
73024
73025         * doc/functions.texi (Function Portability): Document missing lstat
73026         on mingw.
73027
73028 2006-06-29  Eric Blake  <ebb9@byu.net>
73029
73030         * MODULES.html.sh: Add sys_stat.
73031         * modules/sys_stat: New module.
73032         * modules/mkstemp (Depends-on): Add sys_stat.
73033
73034 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73035
73036         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
73037
73038 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73039
73040         * m4/c-bs-a.m4: Removed.
73041
73042 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73043
73044         * lib/strftime.c: Assume strftime() exists.
73045
73046 2006-06-29  Derek Price  <derek@ximbiot.com>
73047
73048         * modules/c-bs-a: Removed - \a is C89.
73049         * MODULES.html.sh: Remove c-bs-a.
73050
73051 2006-06-29  Bruno Haible  <bruno@clisp.org>
73052
73053         * modules/wcwidth (License): Change to LGPL.
73054
73055 2006-06-28  Simon Josefsson  <jas@extundo.com>
73056
73057         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
73058         on _WIN32.
73059
73060         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
73061         getnameinfo.
73062
73063 2006-06-28  Simon Josefsson  <jas@extundo.com>
73064
73065         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
73066
73067 2006-06-28  Simon Josefsson  <jas@extundo.com>
73068
73069         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
73070         functions there.  It will succeed on Windows XP, but on Windows
73071         2000 and (presumably) earlier, it will fail, and use the internal
73072         re-implementation.
73073         (use_win32_p): New function.
73074         (getaddrinfo): Use strtoul on servname, to support numeric ports.
73075         Support AI_NUMERICSERV to disable getservbyname.
73076         (getnameinfo): New function, only supports
73077         NI_NUMERICHOST|NI_NUMERICSERV for now.
73078
73079         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
73080         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
73081         getnameinfo.
73082
73083 2006-06-28  Eric Blake  <ebb9@byu.net>
73084
73085         * modules/wcwidth: New file.
73086         * modules/mbchar (Depends-on): Add wcwidth.
73087         * modules/mbswidth (Depends-on): Add wcwidth.
73088         * MODULES.html.sh: Add wcwidth.
73089
73090 2006-06-28  Eric Blake  <ebb9@byu.net>
73091
73092         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
73093         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
73094
73095 2006-06-28  Eric Blake  <ebb9@byu.net>
73096
73097         * lib/xvasprintf.h: Fix comments.
73098
73099 2006-06-28  Eric Blake  <ebb9@byu.net>
73100
73101         * lib/mbchar.h (wcwidth): Include wcwidth.h.
73102         * lib/mbswidth.c (wcwidth): Move from here...
73103         * lib/wcwidth.h: ...to this new file.
73104
73105 2006-06-28  Derek R. Price  <derek@ximbiot.com>
73106
73107         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
73108
73109         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
73110         it's obsolete.
73111         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
73112
73113 2006-06-28  Derek R. Price  <derek@ximbiot.com>
73114
73115         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
73116         Autoconf 2.60 says this stuff was obsolete.
73117
73118 2006-06-28  Bruno Haible  <bruno@clisp.org>
73119
73120         * modules/wcwidth (Files): Add m4/wchar_t.m4.
73121
73122 2006-06-28  Bruno Haible  <bruno@clisp.org>
73123
73124         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
73125         gt_TYPE_WCHAR_T.
73126
73127 2006-06-28  Bruno Haible  <bruno@clisp.org>
73128
73129         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
73130         declaration for wcwidth.
73131         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
73132
73133 2006-06-28  Bruno Haible  <bruno@clisp.org>
73134
73135         * lib/mkdtemp.c [MINGW]: Include <io.h>.
73136         (mkdir): Define using _mkdir.
73137
73138 2006-06-28  Bruno Haible  <bruno@clisp.org>
73139
73140         * lib/getaddrinfo.h: Fix POSIX URL.
73141         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
73142         _WIN32.
73143         (use_win32_p): Make static.
73144         (getaddrinfo): Reject service name if it is empty or does not consist
73145         solely of decimal digits, or if its value is > 65535.
73146         (getnameinfo): Remove useless casts.
73147
73148 2006-06-27  Simon Josefsson  <jas@extundo.com>
73149
73150         * modules/sys_select: New file, suggested by Bruno Haible, Paul
73151         Eggert and Martin Lambers.
73152
73153 2006-06-27  Simon Josefsson  <jas@extundo.com>
73154
73155         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
73156         Eggert and Martin Lambers.
73157
73158 2006-06-27  Bruno Haible  <bruno@clisp.org>
73159
73160         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
73161         result to 0, not to empty.
73162         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
73163
73164 2006-06-27  Bruno Haible  <bruno@clisp.org>
73165
73166         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
73167
73168 2006-06-26  Simon Josefsson  <jas@extundo.com>
73169
73170         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
73171         present.
73172
73173 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
73174
73175         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
73176         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
73177         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
73178
73179 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
73180
73181         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
73182
73183 2006-06-26  Bruno Haible  <bruno@clisp.org>
73184
73185         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
73186
73187 2006-06-26  Bruno Haible  <bruno@clisp.org>
73188
73189         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
73190
73191 2006-06-26  Bruno Haible  <bruno@clisp.org>
73192
73193         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
73194         SGI C compiler in pre-C99 mode.
73195         Suggested by Mark D. Baushke and Larry Jones.
73196
73197 2006-06-26  Bruno Haible  <bruno@clisp.org>
73198
73199         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
73200         WCHAR_MAX.
73201         Reported by Mark D. Baushke and Larry Jones.
73202
73203 2006-06-26  Bruno Haible  <bruno@clisp.org>
73204
73205         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
73206         in pre-C99 mode.
73207         Suggested by Mark D. Baushke and Larry Jones.
73208
73209 2006-06-23  Simon Josefsson  <jas@extundo.com>
73210             Bruno Haible  <bruno@clisp.org>
73211
73212         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
73213         Emit mostlyclean-local rule.
73214         (func_emit_tests_Makefile_am): Likewise.
73215         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
73216
73217 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
73218
73219         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
73220
73221 2006-06-23  Bruno Haible  <bruno@clisp.org>
73222
73223         * tests/test-stdint.c: Update to match ISO C 99 Technical
73224         Corrigendum 1.
73225
73226 2006-06-23  Bruno Haible  <bruno@clisp.org>
73227
73228         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
73229
73230 2006-06-23  Bruno Haible  <bruno@clisp.org>
73231
73232         * lib/stdint_.h: Treat IRIX like OpenBSD.
73233
73234 2006-06-23  Bruno Haible  <bruno@clisp.org>
73235
73236         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
73237         ISO C 99 Technical Corrigendum 1.
73238
73239 2006-06-22  Simon Josefsson  <jas@extundo.com>
73240
73241         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
73242         MinGW.
73243
73244 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73245
73246         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
73247         needed.  Some compiler complained about some of them.  Problem reported
73248         by Larry Jones in
73249         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
73250
73251 2006-06-21  Simon Josefsson  <jas@extundo.com>
73252
73253         * tests/test-getaddrinfo.c: New file.
73254
73255         * modules/getaddrinfo-tests: New file.
73256
73257         * MODULES.html.sh: Add inet_pton.
73258
73259         * modules/inet_pton: New file.
73260
73261 2006-06-21  Simon Josefsson  <jas@extundo.com>
73262
73263         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
73264         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
73265         of using the (limited) gnulib implementation on Windows XP.
73266
73267         * m4/inet_pton.m4: New file.
73268
73269 2006-06-21  Simon Josefsson  <jas@extundo.com>
73270
73271         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
73272         variable.
73273
73274         * lib/socket_.h: Don't define WINVER.
73275
73276         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
73277         slightly modified to work in gnulib.
73278
73279 2006-06-21  Simon Josefsson  <jas@extundo.com>
73280
73281         * doc/gnulib.texi (Windows sockets): Add.
73282
73283 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
73284
73285         * lib/read-file.c (fread_file): Start with buffer allocation of
73286         0 bytes rather than 1 byte; this simplifies the code.
73287         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
73288         code to free buffer and save/restore errno.
73289         (internal_read_file): Remove unused local.
73290
73291 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
73292
73293         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
73294         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
73295         Problem reported by Denis Excoffier in
73296         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
73297
73298 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73299
73300         * modules/sys_socket, modules/socklen: Include sys/types since
73301         FreeBSD 4.x's sys/socket.h needs it.
73302
73303 2006-06-19  Simon Josefsson  <jas@extundo.com>
73304
73305         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
73306
73307 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
73308
73309         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
73310
73311 2006-06-19  Bruno Haible  <bruno@clisp.org>
73312
73313         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
73314         and FULL_PATH_INTTYPES_H in angle brackets.
73315         Reported by Mark D. Baushke <mdb@gnu.org>.
73316
73317 2006-06-17  Eric Blake  <ebb9@byu.net>
73318
73319         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
73320         errno.
73321
73322 2006-06-17  Bruno Haible  <bruno@clisp.org>
73323
73324         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
73325         <sys/inttypes.h>.
73326
73327 2006-06-17  Bruno Haible  <bruno@clisp.org>
73328
73329         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
73330         whether errno is declared. Assume <errno.h> declares errno.
73331
73332 2006-06-17  Bruno Haible  <bruno@clisp.org>
73333
73334         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
73335
73336 2006-06-17  Bruno Haible  <bruno@clisp.org>
73337
73338         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
73339         problem on Solaris 2.5.1.
73340
73341 2006-06-16  Eric Blake  <ebb9@byu.net>
73342
73343         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
73344         * lib/unicodeio.c [!defined errno]: Likewise.
73345         * lib/strtol.c [!defined errno]: Likewise.
73346         * lib/strtod.c [!defined errno]: Likewise.
73347
73348 2006-06-15  Eric Blake  <ebb9@byu.net>
73349
73350         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
73351
73352 2006-06-15  Eric Blake  <ebb9@byu.net>
73353
73354         * config/srclist.txt (ssize_t.m4): Lose sync.
73355
73356 2006-06-15  Bruno Haible  <bruno@clisp.org>
73357
73358         * modules/stdint (Files): Include m4/full-header-path.m4,
73359         m4/size_max.m4, m4/wchar_t.m4.
73360         (Makefile.am): Many more substitutions.
73361         * modules/stdint-tests: New file.
73362         * tests/test-stdint.c: New file.
73363
73364 2006-06-15  Bruno Haible  <bruno@clisp.org>
73365
73366         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
73367         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
73368         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
73369         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
73370         gl_CHECK_TYPE_SAME): New macros.
73371
73372 2006-06-15  Bruno Haible  <bruno@clisp.org>
73373
73374         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
73375
73376 2006-06-15  Bruno Haible  <bruno@clisp.org>
73377
73378         * lib/stdint_.h: Rewritten to be fully auto-configured.
73379         Fixes bug on HP-UX/IA64.
73380
73381 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
73382
73383         * lib/getdate.y (__attribute__): Don't define if already defined.
73384         Problem reported by Larry Jones.
73385         * lib/utimens.c (__attribute__): Likewise.
73386
73387 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
73388
73389         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
73390         reported by Andreas Schwab.
73391
73392 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73393             Bruno Haible  <bruno@clisp.org>
73394
73395         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
73396         check for the declaration of strnlen and a run test that exposes the
73397         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
73398         rpl_strndup.
73399
73400 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73401             Bruno Haible  <bruno@clisp.org>
73402
73403         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
73404
73405 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73406
73407         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
73408         compile test, for Tru64 4.0D.
73409
73410 2006-05-28  Karl Berry  <karl@gnu.org>
73411
73412         * config/srclist.txt (printf-args.c): lose sync.
73413
73414 2006-05-26  Martin Lambers  <marlam@marlam.de>
73415
73416         * lib/getpass.c: Updates the test for the native W32 API, and adds
73417         missing includes, thus fixing compilation warnings.
73418
73419 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73420
73421         * lib/exclude.c (exclude_fnmatch): New function.
73422         (excluded_file_name): Call exclude_fnmatch.
73423         * lib/exclude.h (excluded_file_name): New prototype
73424
73425 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
73426
73427         * lib/tempname.c (small_open, large_open): New macros.
73428         (__open, __open64) [!_LIBC]: Remove.
73429         (__gen_tempname): Use small_open and large_open instead of __open
73430         and __open64.  This fixes a portability bug on HP-UX 11.11i
73431         reported by Simon Wing-Tang in
73432         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
73433
73434 2006-05-24  Bruno Haible  <bruno@clisp.org>
73435
73436         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
73437         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
73438         Reported by Thorsten Maerz <torte@netztorte.de> via
73439         Aaron Stone <aaron@serendipity.cx>.
73440
73441 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73442
73443         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
73444         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
73445         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
73446         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
73447         not really conditional on the cache.
73448         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
73449
73450 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73451
73452         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
73453         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
73454         (my_usleep): Don't mishandle maximum value.
73455
73456 2006-05-19  Jim Meyering  <jim@meyering.net>
73457
73458         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
73459
73460 2006-05-17  Bruno Haible  <bruno@clisp.org>
73461
73462         Cygwin portability.
73463         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
73464
73465 2006-05-17  Bruno Haible  <bruno@clisp.org>
73466
73467         * lib/stdint_.h: Fix recognition of Cygwin.
73468
73469 2006-05-15  Bruno Haible  <bruno@clisp.org>
73470
73471         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
73472         on libtool patch by Ralf Wildenhues.
73473
73474 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73475
73476         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
73477         test for C99 conformance; (bool) 0.5 is an integer constant
73478         expression, but (bool) -0.5 is not.  Problem reported by Fedor
73479         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
73480
73481 2006-05-11  Simon Josefsson  <jas@extundo.com>
73482
73483         * m4/xvasprintf.m4: Fix obvious typo.
73484
73485 2006-05-11  Jim Meyering  <jim@meyering.net>
73486
73487         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
73488         James Lemley.
73489
73490 2006-05-10  Simon Josefsson  <jas@extundo.com>
73491
73492         * lib/md4.c: Typo fix, update copyright years.
73493         (K1, K2): Don't use L because it turn computations into 64-bit on
73494         64-bit platforms.
73495
73496 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
73497
73498         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
73499         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
73500         unwanted sign propagation, e.g., on hosts with 64-bit int.
73501         There still are some problems with reeelly weird theoretical hosts
73502         (e.g., 33-bit int) but it's not worth worrying about now.
73503         * lib/sha1.c (rol): Likewise.
73504         (K1, K2, K3, K4): Remove unnecessary L suffix.
73505
73506 2006-05-10  Bruno Haible  <bruno@clisp.org>
73507
73508         * lib/des.c: Cast to avoid warnings.
73509
73510 2006-05-09  Bruno Haible  <bruno@clisp.org>
73511
73512         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
73513         (Depends-on): Depend also on xsize, stdarg.
73514         (configure.ac): Add gl_XVASPRINTF.
73515
73516 2006-05-09  Bruno Haible  <bruno@clisp.org>
73517
73518         * m4/xvasprintf.m4: New file.
73519
73520 2006-05-09  Bruno Haible  <bruno@clisp.org>
73521
73522         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
73523         (EOVERFLOW): Define fallback value.
73524         (xstrcat): New function.
73525         (xvasprintf): Recognize the special case of a string concatenation.
73526
73527 2006-05-08  Eric Blake  <ebb9@byu.net>
73528
73529         * gnulib-tool (func_version): Base copyright year on CVS date.
73530         (func_emit_copyright_notice): New function.
73531         (func_emit_lib_Makefile_am): Use it.
73532         (func_emit_tests_Makefile_am): Likewise.
73533         (func_import): Likewise.
73534
73535 2006-05-08  Bruno Haible  <bruno@clisp.org>
73536
73537         * modules/stdarg: New file.
73538         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
73539
73540 2006-05-08  Bruno Haible  <bruno@clisp.org>
73541
73542         * m4/stdarg.m4: New file, from GNU gettext.
73543
73544 2006-05-08  Bruno Haible  <bruno@clisp.org>
73545
73546         * config/srclist.txt (build-aux/config.rpath): different from latest
73547         release.
73548
73549 2006-05-08  Bruno Haible  <bruno@clisp.org>
73550
73551         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
73552
73553 2006-05-05  Jim Meyering  <jim@meyering.net>
73554
73555         * m4/warning.m4: New file, derived from bison's file by the same name.
73556
73557 2006-05-03  Bruno Haible  <bruno@clisp.org>
73558
73559         * lib/stdint_.h: Shorter URL.
73560         * lib/inttypes.h: Likewise.
73561
73562 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73563
73564         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
73565
73566 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73567
73568         * lib/verify.h: Document the internals better.  Most of this change
73569         was written by Bruno Haible.
73570
73571 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73572
73573         * doc/verify.texi: New file, partly based on a proposal by
73574         Bruno Haible.
73575
73576 2006-05-02  Bruno Haible  <bruno@clisp.org>
73577
73578         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
73579         test from here...
73580         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
73581
73582 2006-04-29  Bruno Haible  <bruno@clisp.org>
73583
73584         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
73585         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
73586
73587 2006-04-29  Bruno Haible  <bruno@clisp.org>
73588
73589         * gnulib-tool: Make --update option actually work.
73590
73591 2006-04-29  Bruno Haible  <bruno@clisp.org>
73592
73593         * doc/gcd.texi: New file.
73594         * doc/gnulib.texi: Include it.
73595
73596 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
73597
73598         * lib/getdate.y (get_date): When adding relative date, start with the
73599         initial time, not with the result of the first mktime call.
73600
73601 2006-04-25  Bruno Haible  <bruno@clisp.org>
73602
73603         * gnulib-tool (func_import): Output the include directives in three
73604         blocks, sorted separately.
73605         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73606
73607 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73608
73609         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
73610         to define main with arguments, for C++.  Reported by Eric Blake.
73611         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
73612         Prefer 'int main ()' to 'int main (void)', for C++.
73613         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
73614         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
73615         for 'main', for C99 and C++.
73616
73617 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73618
73619         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
73620         Don't assume that exit status -1 is valid.
73621         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73622         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
73623         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
73624         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
73625         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
73626         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
73627         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
73628         functions can be used without declaring them, or that you can
73629         exit with status -1.
73630         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
73631
73632 2006-04-24  Karl Berry  <karl@gnu.org>
73633
73634         * config/srclist.txt (longdouble.m4): sync lost.
73635
73636 2006-04-24  Eric Blake  <ebb9@byu.net>
73637
73638         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
73639
73640 2006-04-24  Bruno Haible  <bruno@clisp.org>
73641
73642         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
73643         poll() implementation in AIX.
73644         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73645
73646 2006-04-24  Bruno Haible  <bruno@clisp.org>
73647
73648         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
73649         assigned exactly once.
73650
73651 2006-04-23  Claudio Fontana  <claudio@gnu.org>
73652             Bruno Haible  <bruno@clisp.org>
73653
73654         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
73655         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
73656         for AM_CPPFLAGS.
73657
73658 2006-04-23  Bruno Haible  <bruno@clisp.org>
73659
73660         * modules/copy-file: Depend on unistd.
73661         * modules/execute: Likewise.
73662         * modules/fatal-signal: Likewise.
73663         * modules/findprog: Likewise.
73664         * modules/mkdtemp : Likewise.
73665         * modules/pipe: Likewise.
73666         * modules/wait-process: Likewise.
73667
73668 2006-04-23  Bruno Haible  <bruno@clisp.org>
73669
73670         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
73671         condition was already detected.
73672         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73673
73674 2006-04-23  Bruno Haible  <bruno@clisp.org>
73675
73676         * lib/copy-file.c: Include <unistd.h> unconditionally.
73677         * lib/execute.c: Likewise.
73678         * lib/fatal-signal.c: Likewise.
73679         * lib/findprog.c: Likewise.
73680         * lib/mkdtemp.c: Likewise.
73681         * lib/pipe.h: Likewise.
73682         * lib/pipe.c: Likewise.
73683         * lib/wait-process.h: Likewise.
73684
73685 2006-04-23  Bruno Haible  <bruno@clisp.org>
73686
73687         * gnulib-tool (func_usage): Fix --import description. Document
73688         --update.
73689         (func_import): Create temporary file in a temporary directory, if
73690         --dry-run is specified. Silence errors from 'grep' when there are no
73691         m4 files in $m4dir.
73692         (func_create_testdir): Silence errors from 'grep' when there are no
73693         m4 files in $m4dir.
73694         Reported by Karl Berry <karl@freefriends.org>.
73695
73696 2006-04-20  Bruno Haible  <bruno@clisp.org>
73697
73698         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
73699         one argument, so that the code will be portable to Autoconf 2.60.
73700         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
73701         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
73702         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
73703
73704 2006-04-19  Derek Price  <derek@ximbiot.com>
73705             Eric Blake  <ebb9@byu.net>
73706
73707         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
73708         rather than "/full/path.h".  Update comment to match.  Shorten &
73709         generalize m4_translit call via AS_TR_CPP.
73710
73711 2006-04-19  Derek Price  <derek@ximbiot.com>
73712             Eric Blake  <ebb9@byu.net>
73713
73714         * lib/inttypes.h: Correct grammar in comment.
73715
73716 2006-04-18  Derek Price  <derek@ximbiot.com>
73717             Paul Eggert  <eggert@cs.ucla.edu>
73718
73719         * modules/inttypes: New file.
73720         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
73721
73722 2006-04-18  Derek Price  <derek@ximbiot.com>
73723             Paul Eggert  <eggert@cs.ucla.edu>
73724
73725         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
73726         New files.
73727
73728 2006-04-18  Derek Price  <derek@ximbiot.com>
73729             Paul Eggert  <eggert@cs.ucla.edu>
73730
73731         * lib/inttypes.h: New file.
73732         * lib/strtoimax.c: Assume <inttypes.h>.
73733
73734 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
73735
73736         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
73737         isn't mounted.  Problem reported by Kir Kolyshkin.
73738
73739 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73740
73741         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
73742         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
73743         Derek R. Price.
73744         * lib/regex.h (RE_DUP_MAX): Update comment to match current
73745         implementation.
73746
73747 2006-04-12  Eric Blake  <ebb9@byu.net>
73748
73749         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
73750         is now done automatically by the corresponding Autoconf macro.
73751
73752 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
73753
73754         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
73755         time_r.h.
73756
73757 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73758
73759         Merge regex changes from libc, removing some of our
73760         POSIX-conformance changes that were rejected and redoing them in a
73761         less-intrusive way.
73762
73763         * lib/regcomp.c (re_compile_internal, init_dfa):
73764         Length arg is now size_t, not Idx.  All uses changed.
73765         (peek_token): Forward decl now says internal_function.
73766         (__re_error_msgid, __re_error_msgid_idx):
73767         Now static rather than extern with attribute_hidden.
73768         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
73769         For some reason libc prefers K&R style defns for external functions.
73770         (regerror) [!defined _LIBC]: Likewise.
73771         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
73772         (seek_collating_symbol_entry, lookup_collation_sequence_value):
73773         (build_range_exp, build_collating_symbol):
73774         Use K&R-style defn.
73775         (re_compile_fastmap): Use '\0' to memset, not 0.
73776         (utf8_sb_map): Make the calculations more obvious.
73777         (init_dfa, parse_bracket_exp, build_charclass_op):
73778         Call calloc and cast result, as glibc does.
73779         (init_word_char, fetch_token, peek_token, peek_token_bracket):
73780         (build_range_exp, build_collating_symbol):
73781         Now internal functions.
73782
73783         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
73784
73785         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
73786         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
73787         Don't depend on VMS; depend on __VMS instead, for POSIX
73788         namespace cleanness.
73789         (regoff_t): Define to ssize_t, not long int.
73790
73791         Remove the REG_ macros named below.  Instead, make the old names
73792         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
73793         __USE_GNU_REGEX.
73794         (REG_BACKSLASH_ESCAPE_IN_LISTS):
73795         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
73796         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
73797         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
73798         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
73799         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
73800         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
73801         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
73802         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
73803         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
73804         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
73805         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
73806         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
73807         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
73808         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
73809         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
73810         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
73811         (REG_NREGS):
73812         Remove.  All uses replaced by the old RE_* names.
73813         (RE_BACKSLASH_ESCAPE_IN_LISTS):
73814         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
73815         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
73816         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
73817         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
73818         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
73819         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
73820         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
73821         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
73822         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
73823         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
73824         Don't bother having these macros be independent of each others'
73825         values, since they no longer exist in the POSIX name space.
73826
73827         Rename the following member names back to their old names,
73828         unless !__USE_GNU_REGEX.  All uses changed back.
73829         (buffer): Renamed from re_buffer.
73830         (allocated): Renamed from re_allocated.
73831         (used): Renamed from re_used.
73832         (syntax): Renamed from re_syntax.
73833         (fastmap): Renamed from re_fastmap.
73834         (translate): Renamed from re_translate.
73835         (can_be_null): Renamed from re_can_be_null.
73836         (regs_allocated): Renamed from re_regs_allocated.
73837         (fastmap_accurate): Renamed from re_fastmap_accurate.
73838         (no_sub): Renamed from re_no_sub.
73839         (not_bol): Renamed from re_not_bol.
73840         (not_eol): Renamed from re_not_eol.
73841         (newline_anchor): Renamed from re_newline_anchor.
73842         (num_regs): Renamed from rm_num_regs.
73843         (start): Renamed from rm_start.
73844         (end): Renamed from rm_end.
73845
73846         (free_state): Move up a bit.
73847
73848         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
73849         #define to be empty.
73850         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
73851         when that is what is intended.
73852         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
73853         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
73854         (MAX): New macro.
73855         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
73856         All uses changed back to re_malloc, etc.  It's now the caller's
73857         responsibility to check for overflow; all callers changed.
73858         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
73859         (re_x2nrealloc): Remove.
73860         (free_state): Remove decl.
73861
73862         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
73863         (re_set_registers, re_exec):
73864         Use K&R-style defn.
73865
73866         2006-01-31  Roland McGrath  <roland@redhat.com>
73867
73868         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
73869         Reported by Mike Frysinger <vapier@gentoo.org>.
73870
73871         2006-01-15  Andreas Jaeger  <aj@suse.de>
73872
73873         [BZ #1950]
73874         * lib/regex_internal.c (re_string_reconstruct): Adjust for
73875         build_wcs_upper_buffer change.
73876         (build_wcs_upper_buffer): Change return type.
73877
73878         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
73879
73880         * lib/regex_internal.h: Include <stdint.h> if available.
73881
73882         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
73883
73884         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
73885
73886         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73887
73888         * lib/regcomp.c: Adjust for changed secondary hash function.
73889
73890         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
73891
73892         * lib/regex.h: Pretty printing.
73893         Clean up namespace a bit.
73894
73895         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
73896
73897         * lib/regexec.c (update_cur_sifted_state, check_arrival,
73898         check_arrival_add_next_nodes): Avoid using uninitialized variable.
73899
73900         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73901                     Ulrich Drepper  <drepper@redhat.com>
73902
73903         [BZ #1302]
73904         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
73905         changed.
73906         (bitset_word_t): Renamed from bitset_word.  All uses changed.
73907
73908         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
73909
73910         [BZ #281]
73911         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
73912         * lib/regcomp.c: Remove unnecessary uses of
73913         unsigned RE_TRANSLATE_TYPE.
73914         * lib/regex_internal.h: Likewise.
73915         * lib/regex_internal.c: Likewise.
73916         * lib/regexec.c: Likewise.
73917         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
73918
73919         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
73920
73921         * lib/regexec.c (find_recover_state): Remove unnecessary
73922         initialization.
73923         (transit_state_bkref): Make DFA a const pointer.
73924         (get_subexp): Likewise.
73925         (check_arrival): Likewise.
73926         (update_cur_sifted_state): Likewise.
73927         (re_search_internal): Likewise.
73928         (prune_impossible_nodes): Likewise.
73929         (acquire_init_state_context): Likewise.
73930         (proceed_next_node): Likewise.
73931         (set_regs): Likewise.
73932         (free_fail_stack_return): Likewise.
73933         (check_arrival_expand_ecl): Mark DFA parameter as const.
73934         (check_arrival_expand_ecl_sub): Likewise.
73935         (check_subexp_limits): Likewise.
73936         (sub_epsilon_src_nodes):  Likewise.
73937         (add_epsilon_src_nodes):  Likewise.
73938         (merge_state_array): Likewise.
73939         (update_regs): Likewise.
73940         (build_trtable): Likewise.
73941         (sift_states_backward): Mark MCTX parameter as const.
73942         (build_sifted_states): Likewise.
73943         (update_cur_sifted_state): Likewise.
73944         (sift_states_mkref): Likewise.
73945         (check_arrival_expand_ecl): Mark eclosure as const.
73946         (check_dst_limits_calc_pos_1): Likewise.
73947         * lib/regex_internal.h (re_match_context_t): Make dfa a const
73948         pointer.
73949
73950         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
73951
73952         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
73953         (transit_state_sb): Likewise.
73954         (transit_state_mb): Likewise.
73955         (sift_states_iter_mb): Likewise.
73956         (check_arrival_add_next_nodes): Likewise.
73957         (check_node_accept_bytes): Change first parameter to pointer-to-const.
73958         [_LIBC] (re_search_2_stub): Use mempcpy.
73959
73960         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
73961         mbrtowc for very simple UTF-8 case.
73962
73963         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
73964         a pointer-to-const.
73965         (re_acquire_state_context): Likewise.
73966         * lib/regex_internal.h: Adjust prototypes.
73967
73968         * lib/regex.c: Prevent using C++ compilers.
73969
73970         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
73971         (re_acquire_state_context): Likewise.
73972
73973 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73974
73975         * modules/regex (Depends-on): Add ssize_t.
73976
73977 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73978
73979         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
73980         translation table.
73981
73982 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73983
73984         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
73985
73986 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
73987             Bruno Haible  <bruno@clisp.org>
73988
73989         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
73990         <sys/types.h> and <inttypes.h>.
73991
73992 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73993
73994         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
73995         `__error_t_defined', so argp.h will not typedef the former.
73996
73997 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
73998
73999         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
74000         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
74001         glibc names.  Even if glibc is changed to conform to POSIX, the
74002         traditional names will be available anyway, since regex depends on
74003         the extensions module.  Also, fix a longstanding typo in the
74004         implementation of Spencer ERE test #75 from grep 2.3.  Problems
74005         reported by Emanuele Giaquinta.  Also, change sense of cached
74006         variable, so that the message makes sense.
74007
74008 2006-03-24  Simon Josefsson  <jas@extundo.com>
74009
74010         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
74011         including some doc fixes.
74012         (base64_encode_alloc): Fix +1 bug on allocation failures.
74013
74014 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74015
74016         * lib/base64.c (base64_encode): Do not read past end of array with
74017         unsanitized input on systems with CHAR_BIT > 8.
74018
74019 2006-03-24  Eric Blake  <ebb9@byu.net>
74020
74021         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
74022
74023 2006-03-22  Karl Berry  <karl@gnu.org>
74024
74025         * config/srclist.txt (*setenv.[ch]): get from coreutils.
74026         * config/srclistvars.sh (COREUTILS): new var.
74027
74028 2006-03-17  Jim Meyering  <jim@meyering.net>
74029
74030         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
74031         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
74032
74033 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
74034
74035         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
74036         no longer needs it.  Instead, check that regoff_t is as least
74037         as wide as ptrdiff_t.
74038
74039         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
74040         so that our regex.h stays compatible with the installed regex.
74041         This is helpful for installers who configure --without-included-regex.
74042         Problem reported by Emanuele Giaquinta.
74043
74044 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
74045
74046         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
74047         Typedef to long int, not to off_, as POSIX will likely change
74048         in that direction.
74049
74050 2006-03-15  Eric Blake  <ebb9@byu.net>
74051
74052         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
74053
74054 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
74055
74056         * lib/argp-help.c (validate_uparams): Fix typo
74057         * lib/argp-parse.c (argp_default_options): Consistently begin help
74058         messages with a lowercase letter.
74059
74060 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
74061
74062         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
74063         overrun buffers and shouldn't be used (much as gets shouldn't be
74064         used).
74065         * lib/time_r.c (asctime_r, ctime_r): Likewise.
74066
74067 2006-03-08  Simon Josefsson  <jas@extundo.com>
74068
74069         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
74070         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74071
74072 2006-03-08  Simon Josefsson  <jas@extundo.com>
74073
74074         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
74075         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74076
74077 2006-03-08  Simon Josefsson  <jas@extundo.com>
74078
74079         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
74080         signal that configure disabled the device.
74081
74082 2006-03-08  Simon Josefsson  <jas@extundo.com>
74083
74084         * build-aux/maint.mk: Fix refresh-po, to handle no translated
74085         languages.
74086
74087 2006-03-07  Simon Josefsson  <jas@extundo.com>
74088
74089         * modules/getopt (Depends-on): Add unistd.
74090
74091         * modules/unistd: New file.
74092
74093 2006-03-07  Simon Josefsson  <jas@extundo.com>
74094
74095         * modules/gc-random: New file.
74096
74097 2006-03-07  Simon Josefsson  <jas@extundo.com>
74098
74099         * m4/unistd_h.m4: New file.
74100
74101 2006-03-07  Simon Josefsson  <jas@extundo.com>
74102
74103         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
74104         test to be side-effect free by storing the result in the cache
74105         variable gl_cv_lib_readline, and moving the assignment of
74106         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
74107         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74108
74109 2006-03-07  Simon Josefsson  <jas@extundo.com>
74110
74111         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
74112         error on missing devices (the functions will return an error).
74113
74114         * m4/gc.m4: Move random stuff to gc-random.m4
74115
74116 2006-03-07  Simon Josefsson  <jas@extundo.com>
74117
74118         * lib/unistd_.h: New file.
74119
74120 2006-03-07  Simon Josefsson  <jas@extundo.com>
74121
74122         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
74123
74124 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74125
74126         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
74127         Problem reported by Juan Manuel Guerrero.
74128
74129 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74130
74131         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
74132         the unistd module.
74133         * lib/getlogin_r.c: Likewise.
74134         * lib/getlogin_r.h: Likewise.
74135         * lib/glob.c: Likewise.
74136         * lib/pagealign_alloc.c: Likewise.
74137         * lib/unistd_.h: Remove; no longer needed.
74138
74139 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74140
74141         * MODULES.html.sh (Support for systems lacking POSIX:2001):
74142         Add unistd.
74143         * modules/c-stack (Depends-on): Add unistd.
74144         * modules/getlogin_r: Likewise.
74145         * modules/glob: Likewise.
74146         * modules/pagealign_alloc: Likewise.
74147         * modules/unistd (Files): Remove lib/unistd_.h.
74148         (EXTRA_DIST): Remove.
74149         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
74150         need unistd_.h.
74151         (MOSTLYCLEANFILES): Remove unistd.h-t.
74152
74153 2006-03-03  Simon Josefsson  <jas@extundo.com>
74154
74155         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
74156
74157 2006-03-03  Simon Josefsson  <jas@extundo.com>
74158
74159         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
74160         libidn and bison.
74161
74162 2006-03-03  Simon Josefsson  <jas@extundo.com>
74163
74164         * build-aux/maint.mk: Add indent target.
74165
74166 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
74167
74168         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
74169         our replacement poll.h in any case, to avoid a differing
74170         declaration from a system header.  Seen on AIX.
74171
74172 2006-03-01  Simon Josefsson  <jas@extundo.com>
74173
74174         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
74175         <kasal@ucw.cz>.
74176
74177 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74178
74179         * modules/gettime (Depends-on): Add extensions module.
74180         * modules/nanosleep (Depends-on): Likewise.
74181         * modules/settime (Depends-on): Likewise.
74182
74183 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74184
74185         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
74186         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
74187         pedantically.
74188         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74189         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
74190
74191         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
74192         not "==".  Reported by Ralf Wildenhues.
74193
74194 2006-03-01  Karl Berry  <karl@gnu.org>
74195
74196         * doc/Copyright/request-*: new files, synced from gnuorg.
74197
74198 2006-03-01  Karl Berry  <karl@gnu.org>
74199
74200         * config/srclist.txt (Copyright/*): new entries.
74201
74202 2006-02-28  Simon Josefsson  <jas@extundo.com>
74203
74204         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
74205
74206 2006-02-27  Simon Josefsson  <jas@extundo.com>
74207
74208         * lib/base64.h: Indent #define's.  From Jim Meyering
74209         <jim@meyering.net>.
74210
74211 2006-02-27  Jim Meyering  <jim@meyering.net>
74212
74213         Revert the change of 2006-02-24, so these files can continue
74214         to be sync'd from gettext.
74215         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
74216         of `config.h'.
74217
74218 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
74219
74220         * modules/intprops: New file.
74221         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
74222         Add intprops.
74223         * modules/getloadavg (Files): Remove lib/intprops.h.
74224         (Depends-on): Add intprops.
74225         * modules/human: Likewise.
74226         * modules/inttostr: Likewise.
74227         * modules/openat: Likewise.
74228         * modules/sig2str: Likewise.
74229         * modules/userspec: Likewise.
74230         * modules/utimecmp: Likewise.
74231         * modules/xnanosleep: Likewise.
74232         * modules/xstrtol: Likewise.
74233
74234 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
74235
74236         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
74237         * modules/lock-tests (TESTS): Use $(EXEEXT).
74238         * modules/tls-tests: Likewise.
74239         * modules/argp-tests: Likewise.
74240         (check_PROGRAMS): New var, replacing...
74241         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
74242
74243 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74244
74245         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
74246         `config.h'.
74247
74248 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
74249
74250         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
74251
74252 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74253
74254         Sync from coreutils.
74255         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
74256         gl_CHDIR_SAFER.
74257
74258 2006-02-22  Jim Meyering  <jim@meyering.net>
74259
74260         Sync from coreutils.
74261         * m4/chdir-safer.m4: New file.
74262
74263 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
74264
74265         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
74266         AT_FDCWD exceeds INT_MAX.
74267         * lib/openat.h (AT_FDCWD): Likewise.
74268
74269 2006-02-17  Eric Blake  <address@hidden>
74270
74271         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
74272
74273 2006-02-16  Simon Josefsson  <jas@extundo.com>
74274
74275         * modules/getaddrinfo (Depends-on): Add sys_socket.
74276
74277 2006-02-15  Simon Josefsson  <jas@extundo.com>
74278
74279         * build-aux/maint.mk: Add dsyntax-check rule.
74280
74281 2006-02-15  Eric Blake  <ebb9@byu.net>
74282
74283         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
74284         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
74285         'present but cannot compile' warnings on cygwin.
74286         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
74287         use ws2tcpip.h if sys/socket.h works.
74288         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
74289         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
74290
74291 2006-02-14  Simon Josefsson  <jas@extundo.com>
74292
74293         * modules/maintainer-makefile (Files): Rename.
74294
74295         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
74296         and (the local) Makefile.cfg to maint-cfg.mk.
74297
74298         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
74299         to the latter.
74300
74301         * modules/maintainer-makefile: New module.
74302
74303         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
74304         severaly stripped to make it possible to build it up from scratch
74305         with reliable tests.
74306
74307         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
74308         fixes to permit overriding the default actions when configure and
74309         makefile are not available.
74310
74311 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
74312
74313         Sync from coreutils.
74314         * modules/lstat (Depends-on): Don't depend on xalloc.
74315         (License): Change from GPL to LGPL, since this is now simply a
74316         replacement for a libc function.
74317
74318 2006-02-14  Jim Meyering  <jim@meyering.net>
74319
74320         Sync from coreutils.
74321
74322         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
74323         failure on deficient systems, and simplify gnulib lgpl dependencies.
74324         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
74325         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
74326
74327         * lib/xalloc-die.c: Remove unused definition of N_.
74328
74329 2006-02-14  Jim Meyering  <jim@meyering.net>
74330
74331         Sync from coreutils.
74332         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
74333         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
74334         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
74335         double-quote uses of that variable, to accommodate the rare case in
74336         which getmntent is available in none of the libraries checked.  This
74337         happens at least on FreeBSD 5.0.
74338
74339 2006-02-13  Simon Josefsson  <jas@extundo.com>
74340
74341         * gnulib-tool (Usage): Fix --import, from
74342         karl@freefriends.org (Karl Berry).
74343
74344 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
74345
74346         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
74347
74348 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
74349
74350         * lib/argp-namefrob.h: Restore changes accidentally lost during the
74351         "autoupdate" on 2005-12-12.
74352
74353 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
74354
74355         * modules/closeout (Depends-on): Remove atexit.
74356
74357 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
74358
74359         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
74360         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
74361
74362 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74363
74364         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
74365         __EXTENSIONS__ if this causes compilation to fail.  Problem
74366         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
74367         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
74368
74369 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
74370
74371         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
74372         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
74373         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
74374         All uses changed.
74375
74376 2006-01-26  Simon Josefsson  <jas@extundo.com>
74377
74378         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
74379         prototype is visible on mingw32.
74380
74381         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
74382         for mingw32.
74383
74384         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
74385         mingw32).
74386
74387 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
74388
74389         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
74390         attempt to open for write; this always fails, at least on POSIX
74391         hosts.  This reinstates the 2006-01-09 change, which was
74392         inadvertently removed.
74393
74394 2006-01-26  Bruno Haible  <bruno@clisp.org>
74395
74396         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
74397         Reported by Paul Eggert.
74398
74399 2006-01-26  Bruno Haible  <bruno@clisp.org>
74400             Paul Eggert  <eggert@cs.ucla.edu>
74401
74402         * lib/stdbool_.h (_Bool)
74403         [(! (defined __cplusplus || defined __BEOS__)
74404           && !defined __GNUC__
74405           && !(defined __HP_cc || defined __xlc__
74406                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
74407                || defined __sgi))]:
74408         #define to signed char in these cases too; this simplifies
74409         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
74410         etc., separately) and makes it more conservative.
74411
74412 2006-01-25  Simon Josefsson  <jas@extundo.com>
74413
74414         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
74415         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
74416         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
74417
74418 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74419
74420         * lib/argp-namefrob.h: Bugfix. Remove stray #
74421
74422 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
74423
74424         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
74425         so that we test the test.
74426         Check for yet another HP-UX cc bug involving *bool |= bool.
74427
74428 2006-01-25  Karl Berry  <karl@gnu.org>
74429
74430         * config/srclist.txt (vasnprintf.c): sync lost.
74431
74432 2006-01-25  Jim Meyering  <jim@meyering.net>
74433
74434         Sync from the stable (b5) branch of coreutils:
74435
74436         * lib/fts.c (fts_children): Don't let close() clobber errno from
74437         failed fchdir().
74438
74439         * lib/fts.c (fts_stat): When following a symlink-to-directory,
74440         don't necessarily interpret stat-fails+lstat-succeeds as indicating
74441         a dangling symlink.  That can also happen at least for ELOOP.
74442         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
74443         FYI, this bug predates the inclusion of fts.c in coreutils.
74444
74445         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
74446         in their own block, so pre-c99 compilers don't object.
74447
74448         Avoid the double-free (first in fts_read, second in fts_close) that
74449         would occur when an `active' directory is made inaccessible (e.g.,
74450         via chmod a-x) during a traversal.
74451         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74452         before returning.  Reproduce this failure by
74453         mkdir -p a/b; cd a; chmod a-x . b
74454         Reported by Stavros Passas.
74455
74456 2006-01-25  Jim Meyering  <jim@meyering.net>
74457
74458         * lib/fileblocks.c: Remove more useless parentheses.
74459         * lib/readutmp.h: Likewise.
74460
74461 2006-01-25  Bruno Haible  <bruno@clisp.org>
74462
74463         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
74464         warnings.
74465         Reported by Paul Eggert.
74466
74467 2006-01-25  Bruno Haible  <bruno@clisp.org>
74468
74469         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
74470         rid of a trap command. For Solaris sh.
74471         Reported by Mark D. Baushke <mdb@gnu.org>.
74472
74473 2006-01-24  Simon Josefsson  <jas@extundo.com>
74474
74475         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
74476         Bruno.
74477
74478 2006-01-24  Karl Berry  <karl@gnu.org>
74479
74480         * config/srclist.txt (argp-namefrob.h): sync lost.
74481
74482 2006-01-24  Jim Meyering  <jim@meyering.net>
74483
74484         * modules/openat (Files): Add lib/intprops.h.
74485         From Mark D. Baushke.
74486
74487 2006-01-24  Jim Meyering  <jim@meyering.net>
74488
74489         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
74490         Reported by Mark D. Baushke.
74491
74492 2006-01-24  Jim Meyering  <jim@meyering.net>
74493
74494         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
74495
74496 2006-01-24  Bruno Haible  <bruno@clisp.org>
74497
74498         * modules/strnlen (Maintainer): Change from glibc to all.
74499
74500 2006-01-24  Bruno Haible  <bruno@clisp.org>
74501
74502         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
74503         Patch by Paul Eggert.
74504
74505 2006-01-24  Bruno Haible  <bruno@clisp.org>
74506
74507         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
74508         already has it.
74509         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
74510         2005-11-26.
74511
74512         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
74513         'signed char' to avoid problems with the built-in _Bool type.
74514         Reported by Paul Eggert on 2005-11-26.
74515
74516 2006-01-24  Bruno Haible  <bruno@clisp.org>
74517
74518         * gnulib-tool (func_import): Avoid constructing complicated sed
74519         expressions inside backquote.
74520         Report and solution by Mark D. Baushke <mdb@gnu.org>.
74521
74522 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
74523
74524         These changes imported from libc.
74525         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
74526         test and two separate function calls.
74527         * lib/strndup.c (__strndup): Add libc_hidden_def.
74528
74529 2006-01-23  Simon Josefsson  <jas@extundo.com>
74530
74531         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
74532         Remove the test_*_SOURCES variable: automake infers it by default.
74533         * modules/tls-tests: Likewise.
74534
74535 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74536
74537         Work around porting bugs reported by Dieter in
74538         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
74539         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
74540         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
74541         Include "getopt.h" first, to check interface.
74542         (getenv): Declare only if defined HAVE_DECL_GETENV &&
74543         !HAVE_DECL_GETENV.
74544         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
74545         (__strndup): Revert to K&R-style function dfns, the glibc style.
74546         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
74547         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
74548         Include strnlen.h first, to get prototype properly.
74549         (strnlen): Renamed from __strnlen.
74550         Remove weak alias.
74551
74552 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74553
74554         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
74555
74556 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74557
74558         * config/srclist.txt: Adjust to reflect glibc reorganization.
74559         This affects only comments.
74560
74561 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74562
74563          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
74564          Reported by Bruce Korb <bkorb@gnu.org>.
74565
74566 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
74567
74568         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
74569         to pacify gcc -Wswitch-default.
74570
74571 2006-01-22  Bruno Haible  <bruno@clisp.org>
74572
74573         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
74574         temporary buffer for sprintf, take into account the precision also
74575         for 'd', 'i', 'u', 'o', 'x', 'X'.
74576
74577 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
74578
74579         * modules/argp-tests: New module
74580         * tests/test-argp.c: New file
74581         * tests/test-argp-2.sh: New file
74582
74583 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
74584
74585         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
74586         (__argp_base_name): Removed
74587         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
74588         typo.
74589         (__argp_base_name): Provide macro definition or extern declaration
74590         depending on the configuration
74591
74592 2006-01-20  Simon Josefsson  <jas@extundo.com>
74593
74594         * modules/inet_ntop (Depends-on): Depend on sys_socket.
74595
74596 2006-01-20  Simon Josefsson  <jas@extundo.com>
74597
74598         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
74599
74600 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74601
74602         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
74603         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
74604         Suggested by Bruno Haible.
74605
74606 2006-01-20  Karl Berry  <karl@gnu.org>
74607
74608         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
74609         until changes propagate, I guess.
74610
74611 2006-01-19  Simon Josefsson  <jas@extundo.com>
74612
74613         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
74614
74615 2006-01-19  Simon Josefsson  <jas@extundo.com>
74616
74617         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
74618
74619 2006-01-19  Simon Josefsson  <jas@extundo.com>
74620
74621         * gnulib-tool: Set check_PROGRAMS.
74622
74623         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74624         modules/des-tests, modules/gc-arcfour-tests,
74625         modules/gc-arctwo-tests, modules/gc-des-tests,
74626         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74627         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74628         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74629         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74630         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74631         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
74632         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
74633         test_*_SOURCES.
74634
74635 2006-01-18  Simon Josefsson  <jas@extundo.com>
74636
74637         * modules/socklen (Depends-on): Depend on sys_socket.
74638
74639 2006-01-18  Simon Josefsson  <jas@extundo.com>
74640
74641         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74642         modules/des-tests, modules/gc-arcfour-tests,
74643         modules/gc-arctwo-tests, modules/gc-des-tests,
74644         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74645         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74646         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74647         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74648         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74649         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
74650         $(EXEEXT) to automake TESTS variable, for mingw32.
74651
74652 2006-01-17  Simon Josefsson  <jas@extundo.com>
74653
74654         * modules/socklen (Include): Need sys/socket.h.
74655
74656 2006-01-17  Bruno Haible  <bruno@clisp.org>
74657
74658         * modules/ssize_t (Include): Add <sys/types.h>.
74659
74660 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
74661
74662         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
74663         it's not portable and it doesn't work with cross-compiles.
74664         Problem reported by Bruno Haible.  Fix missing-$ typo in
74665         'test "gl_cv_ignore_unused_libraries" ...' that prevented
74666         -zignore from being used with Sun's C compiler.
74667
74668 2006-01-12  Simon Josefsson  <jas@extundo.com>
74669
74670         * lib/base64.c: Fix warning, reported by Bruno Haible
74671         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
74672
74673 2006-01-12  Bruno Haible  <bruno@clisp.org>
74674
74675         * modules/ldd: New file.
74676         * build-aux/ldd.sh.in: New file.
74677         * MODULES.html.sh (Support for building libraries and executables): Add
74678         ldd.
74679
74680 2006-01-12  Bruno Haible  <bruno@clisp.org>
74681
74682         * m4/ldd.m4: New file.
74683
74684 2006-01-12  Bruno Haible  <bruno@clisp.org>
74685
74686         * gnulib-tool (func_import, func_create_testdir): Don't go into an
74687         endless loop while replacing $auxdir with build-aux.
74688
74689 2006-01-11  Simon Josefsson  <jas@extundo.com>
74690
74691         * lib/stdint_.h (SIZE_MAX): Add missing (.
74692
74693 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
74694
74695         Sync from coreutils.
74696         * lib/md5.c: Fix commentary typos.
74697         (alignof, UNALIGNED_P): No need for a GCC-specific version.
74698         * lib/md5.h (__attribute__): Remove; unused.
74699         * lib/sha1.c: Fix commentary to match md5 better.
74700         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
74701         so that we don't need to worry about alignment.  All uses changed.
74702         This merges the 2005-10-28 md5 change into sha1.
74703
74704 2006-01-11  Jim Meyering  <jim@meyering.net>
74705
74706         Sync from coreutils.
74707         * lib/md5.c (OP): Fix spacing.
74708
74709 2006-01-11  Bruno Haible  <bruno@clisp.org>
74710
74711         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74712         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
74713         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
74714
74715 2006-01-11  Bruno Haible  <bruno@clisp.org>
74716
74717         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74718         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
74719         the "early" section as well.
74720
74721 2006-01-11  Bruno Haible  <bruno@clisp.org>
74722
74723         Avoid "ar: no archive members specified" error on MacOS X.
74724         * gnulib-tool (func_modules_add_dummy): New function.
74725         (func_import, func_create_testdir): Invoke it.
74726
74727 2006-01-11  Bruno Haible  <bruno@clisp.org>
74728
74729         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
74730         with $auxdir in AC_CONFIG_FILES statements.
74731
74732 2006-01-11  Bruno Haible  <bruno@clisp.org>
74733
74734         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74735         Initialize also noinst_HEADERS to empty.
74736
74737 2006-01-11  Bruno Haible  <bruno@clisp.org>
74738
74739         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
74740         variables.
74741         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
74742         autoreconf.
74743
74744 2006-01-11  Bruno Haible  <bruno@clisp.org>
74745
74746         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
74747         overridable by the user.
74748         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74749
74750 2006-01-10  Simon Josefsson  <jas@extundo.com>
74751
74752         * modules/sys_socket: New file.
74753
74754 2006-01-10  Simon Josefsson  <jas@extundo.com>
74755
74756         * m4/sys_socket_h.m4: New file.
74757
74758 2006-01-10  Simon Josefsson  <jas@extundo.com>
74759
74760         * lib/socket_.h: New file.
74761
74762 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74763
74764         * modules/readutmp (Maintainer): Add myself.
74765
74766 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74767
74768         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
74769         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
74770         People who are still concerned with buggy memcmp implementations
74771         can invoke gl_FUNC_MEMCMP themselves.
74772
74773 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74774
74775         * lib/regex_internal.h (BITSET_WORD_BITS):
74776         Work around a bug in 64-bit PGC (before version 6.1-2), where the
74777         preprocessor mishandles large unsigned values as if they were signed.
74778         Problem reported by Claudio Fontana in
74779         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
74780
74781 2006-01-10  Jim Meyering  <jim@meyering.net>
74782
74783         Avoid the double-free (first in fts_read, second in fts_close) that
74784         would occur when an `active' directory is made inaccessible (e.g.,
74785         via chmod a-x) during a traversal.
74786         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74787         before returning.  Reproduce this failure by
74788         mkdir -p a/b; cd a; chmod a-x . b
74789         Reported by Stavros Passas.
74790
74791         Sync from coreutils.
74792         * lib/sha1.c: Tweak grammar in a comment.
74793
74794 2006-01-10  Jim Meyering  <jim@meyering.net>
74795
74796         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
74797         Patch by Joerg Sonnenberger.
74798
74799 2006-01-10  Bruno Haible  <bruno@clisp.org>
74800
74801         * modules/readutmp: Depend on module free.
74802         * modules/strtok_r: Depend on module restrict.
74803
74804 2006-01-10  Bruno Haible  <bruno@clisp.org>
74805
74806         * modules/gettext (configure.ac): Add an invocation of
74807         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
74808
74809 2006-01-10  Bruno Haible  <bruno@clisp.org>
74810
74811         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
74812         Reported by Werner Lemberg <wl@gnu.org>.
74813
74814 2006-01-10  Bruno Haible  <bruno@clisp.org>
74815
74816         * lib/localcharset.c: Update from GNU gettext.
74817
74818 2006-01-10  Bruno Haible  <bruno@clisp.org>
74819
74820         * lib/argp.h (__const): Remove macro. Use const instead.
74821         * lib/argp-fmtstream.h (__const): Likewise.
74822         * lib/glob_.h (__const): Remove macro.
74823         * lib/glob-libc.h: Use const instead of __const.
74824
74825 2006-01-10  Bruno Haible  <bruno@clisp.org>
74826
74827         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
74828         variable.
74829         Needed to avoid an automake error regarding the 'gettext' module.
74830
74831 2006-01-09  Simon Josefsson  <jas@extundo.com>
74832
74833         * modules/inet_ntop (Depends-on): Add restrict.
74834
74835 2006-01-09  Simon Josefsson  <jas@extundo.com>
74836
74837         * modules/gc-rijndael-tests (License): Put under LGPL.
74838
74839         * modules/gc-des-tests (License): Likewise.
74840
74841         * modules/gc-arcfour-tests (License): Likewise.
74842
74843         * modules/gc-arctwo-tests (License): Likewise.
74844
74845         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
74846
74847         * modules/gc-hmac-sha1-tests (Files): Likewise.
74848
74849         * modules/gc-hmac-md5-tests (License): Likewise.
74850
74851         * modules/gc-sha1-tests (License): Likewise.
74852
74853         * modules/gc-md5-tests (License): Likewise.
74854
74855         * modules/gc-md4-tests (License): Likewise.
74856
74857         * modules/gc-md2-tests (License): Likewise.
74858
74859         * modules/gc-tests (License): Likewise.
74860
74861         * modules/des-tests (License): Likewise.
74862
74863         * modules/md4-tests (License): Likewise.
74864
74865         * modules/md2-tests (License): Likewise.
74866
74867 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74868
74869         Sync from coreutils:
74870
74871         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
74872         * modules/lib-ignore: New file.
74873         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
74874         chdir-safer.m4, lchmod.m4.
74875         * modules/openat: Add mkdirat.c, openat-priv.h.
74876
74877 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74878
74879         Sync from coreutils.
74880         * m4/lib-ignore.m4: New file.
74881         * m4/lchmod.m4: New file.
74882
74883 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74884
74885         Sync from coreutils.
74886         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
74887         for write access: POSIX says that must fail.
74888         * lib/fts.c (diropen): Likewise.
74889         * lib/save-cwd.c (save_cwd): Likewise.
74890         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
74891         well, for minor improvements on hosts that lack O_DIRECTORY.
74892         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
74893         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
74894         Fall back on chown if open failed with EACCES.
74895
74896         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
74897         Report an error at compile-time if only a 1-second nominal clock
74898         resolution is found.
74899
74900         * lib/lchmod.h: New file.
74901         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
74902         (make_dir_parents): Use lchown rather than chown, and
74903         lchmod rather than chmod.
74904
74905         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
74906         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
74907         "proc" reported by n0dalus.
74908
74909         * lib/mountlist.c: Include <limits.h>.
74910         (dev_from_mount_options)
74911         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
74912         New function.  It no longer assumes "dev=" has the System V meaning
74913         on Linux (since it doesn't).  It also parses "dev=" more carefully.
74914         (read_file_system_list)
74915         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
74916         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
74917         dev= in that case.
74918
74919         * lib/posixtm.h (PDS_PRE_2000): New macro.
74920         * lib/posixtm.c (year): Arg is now syntax_bits rather than
74921         allow_century.  All usages changed.  Reject dates outside the range
74922         1969-1999 if PDS_PRE_2000 is used.
74923
74924 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74925
74926         Sync from coreutils.
74927         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
74928         (Time of day items): Mention the possibility of leap seconds.
74929         Problem reported by Dr. David Alan Gilbert.
74930
74931 2006-01-09  Jim Meyering  <jim@meyering.net>
74932
74933         Sync from coreutils.
74934
74935         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
74936
74937         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
74938
74939         * lib/modechange.c (mode_compile): Reject an invalid mode string
74940         that starts with an octal digit.  From Andreas Gruenbacher.
74941
74942         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
74943         and dup to open_safer and dup_safer, respectively.
74944         (openat_permissive): Fix typo in comment.
74945
74946         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
74947         "gettext.h"; either no longer needed or are guaranteed by openat.h.
74948         (_): Remove; no longer needed.
74949         (openat): Renamed from rpl_openat; no need for rpl_openat
74950         since openat.h renames openat for us.
74951         Replace most of the body with a call to openat_permissive,
74952         to avoid duplicate code.
74953         Port to (probably hypothetical) environments were mode_t is
74954         wider than int.
74955         (openat_permissive): Require mode arg, so that we can check
74956         types better.  Put it just after flags.  Change cwd failure
74957         indicator from pointer-to-bool to pointer-to-errno-value.
74958         All callers changed.
74959         Invoke openat_save_fail and/or openat_restore_fail if
74960         cwd_errno is null, so that openat can call us.
74961         (openat_permissive, fdopendir, fstatat, unlinkat):
74962         Simplify errno handling to avoid some duplicate code,
74963         as it's OK to set errno on success.
74964         * lib/openat.h: Revamp code so that function macros depend on
74965         __OPENAT_PREFIX only, not also on AT_FDCWD.
74966         (openat_ro): Remove.  Caller changed to use openat_permissive.
74967         (openat_permissive): Now a macro, if not a function.
74968         (openat_restore_fail, openat_save_fail): Now always functions,
74969         since mkdirat needs them even if __OPENAT_PREFIX is defined.
74970
74971         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
74972         and openat.c.
74973         * lib/mkdirat.c: Include openat-priv.h.
74974         Remove definitions of macros defined therein.
74975         * lib/openat.c: Likewise.
74976
74977         * lib/mkdirat.c (mkdirat): New file and function.
74978         * lib/openat.h (mkdirat): Declare.
74979
74980         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
74981
74982         * lib/openat.h (openat_permissive): Declare.
74983         (openat_ro): Define.
74984
74985         * lib/openat.c (EXPECTED_ERRNO): New macro.
74986         (openat_permissive): New function -- used in remove.c rewrite.
74987         (all functions): Set errno just before returning, only if there
74988         was an actual failure.
74989         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
74990
74991         Emulate openat-family functions using Linux's procfs, if possible.
74992         Idea and some code based on Ulrich Drepper's glibc changes.
74993
74994         * lib/openat.c: (BUILD_PROC_NAME): New macro.
74995         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
74996         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
74997         before falling back on save_cwd and restore_cwd.
74998         (fdopendir, fstatat, unlinkat): Likewise.
74999
75000         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
75001         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
75002
75003         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
75004         as second argument to va_arg.  Otherwise, some versions of gcc
75005         warn that `if this code is reached, the program will abort'.
75006
75007 2006-01-09  Jim Meyering  <jim@meyering.net>
75008
75009         Sync from coreutils.
75010         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
75011         Require openat-priv.h.
75012
75013 2006-01-09  Bruno Haible  <bruno@clisp.org>
75014
75015         * modules/strnlen (Include): Use strnlen.h.
75016
75017 2006-01-09  Bruno Haible  <bruno@clisp.org>
75018
75019         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
75020
75021 2006-01-09  Bruno Haible  <bruno@clisp.org>
75022
75023         * lib/sysexit_.h (EX_OK): New macro.
75024         Suggested by Martin Lambers <marlam@marlam.de>.
75025
75026 2006-01-09  Bruno Haible  <bruno@clisp.org>
75027
75028         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
75029         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
75030
75031 2006-01-09  Bruno Haible  <bruno@clisp.org>
75032
75033         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
75034         numbers.
75035
75036 2006-01-09  Bruno Haible  <bruno@clisp.org>
75037
75038         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
75039         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
75040         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
75041         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
75042
75043 2006-01-09  Bruno Haible  <bruno@clisp.org>
75044
75045         * build-aux/javacomp.sh.in: New file, moved from lib/.
75046         * modules/javacomp-script (Files): Update.
75047         (configure.ac): Add AC_CONFIG_FILES invocation.
75048         (EXTRA_DIST): Remove variable.
75049
75050         * build-aux/javaexec.sh.in: New file, moved from lib/.
75051         * modules/javaexec (Files): Update.
75052         (configure.ac): Add AC_CONFIG_FILES invocation.
75053         (EXTRA_DIST): Remove javaexec.sh.in.
75054
75055         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
75056         * modules/csharpcomp-script (Files): Update.
75057         (configure.ac): Add AC_CONFIG_FILES invocation.
75058         (EXTRA_DIST): Remove variable.
75059
75060         * build-aux/csharpexec.sh.in: New file, moved from lib/.
75061         * modules/csharpexec (Files): Update.
75062         (configure.ac): Add AC_CONFIG_FILES invocation.
75063         (EXTRA_DIST): Remove csharpexec.sh.in.
75064
75065 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
75066
75067         Sync from coreutils.
75068
75069         Add POSIX ACL support
75070         * lib/acl.h (copy_acl, set_acl): Add declarations.
75071         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
75072         systems other than Linux.
75073         (chmod_or_fchmod): New function: use fchmod when possible,
75074         and chmod otherwise.
75075         (file_has_acl): Add a POSIX ACL implementation, with a
75076         Linux-specific subcase.
75077         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
75078         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
75079         acls are unsupported.
75080         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
75081         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
75082         are unsupported.
75083
75084 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
75085
75086         Sync from coreutils.
75087         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
75088
75089 2006-01-07  Bruno Haible  <bruno@clisp.org>
75090
75091         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
75092         gl_EARLY.
75093
75094 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75095
75096         * lib/strftime.c (tzname): Don't declare if it is already #defined.
75097         Problem reported for Mingw by Mark Junker.
75098
75099 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75100
75101         * README: Gnulib normally doesn't generate a tarball.
75102
75103 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
75104
75105         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
75106         long int, not int, for nanosecond counts, so that people who are
75107         used to POSIX struct timespec won't be surprised.  Reported by Jim
75108         Meyering.
75109
75110 2005-12-28  Bruno Haible  <bruno@clisp.org>
75111
75112         * build-aux/config.rpath: Update from GNU gettext.
75113
75114 2005-12-16  Jim Meyering  <jim@meyering.net>
75115
75116         * modules/fprintftime: New module.
75117         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
75118
75119 2005-12-16  Jim Meyering  <jim@meyering.net>
75120
75121         * m4/fprintftime.m4: New file.
75122
75123 2005-12-16  Jim Meyering  <jim@meyering.net>
75124
75125         * lib/fprintftime.c, lib/fprintftime.h: New files.
75126
75127 2005-12-15  Simon Josefsson  <jas@extundo.com>
75128
75129         * modules/socklen (configure.ac): Fix M4 macro name, to align with
75130         new m4/socklen.m4.
75131
75132 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75133
75134         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
75135         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
75136
75137 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75138
75139         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
75140         * lib/argp-help.c (fill_in_uparams): Check if the constructed
75141         struct uparams is valid. Fall back to the default values if it is
75142         not.
75143
75144 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75145
75146         * modules/argp (Files): Add argp-pin.c
75147         (Depends-on): dirname
75148         (lib_SOURCES): Add argp-pin.c
75149
75150 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75151
75152         * m4/argp.m4:  Check if program_invocation_name and
75153         program_invocation_short_name are declared and define appropriate
75154         macros if they are not.
75155
75156 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75157
75158         * lib/argp-help.c (__argp_base_name): New function
75159         (__argp_short_program_name): Rewrite using __argp_base_name
75160         * lib/argp-namefrob.h: Define program_invocation_name and
75161         program_invocation_short_name if requested
75162         (__argp_base_name): Add prototype
75163         * lib/argp-parse.c (argp_def): Use gettext wrappers
75164         (argp_default_parser): Use __argp_base_name
75165         * lib/argp-pin.c: New file. Defines program_invocation_name and
75166         program_invocation_short_name on systems that lack them.
75167
75168 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75169
75170         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
75171         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
75172         porting problem reported by Georg Schwarz in
75173         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
75174
75175 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75176
75177         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
75178         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
75179         porting problem reported by Georg Schwarz in
75180         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
75181
75182 2005-12-05  Bruno Haible  <bruno@clisp.org>
75183
75184         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
75185         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
75186         Reported by Mark Junker <mjscod@gmx.de>.
75187
75188 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
75189
75190         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
75191         Use implementation from Albert Chin, with some
75192         comments/corrections by Stepan Kasal and myself.
75193
75194 2005-12-02  Bruno Haible  <bruno@clisp.org>
75195
75196         * gnulib-tool (func_import): Accept GPLed build tool modules when
75197         --lgpl is given.
75198         * modules/csharpcomp-script: New file.
75199         * modules/csharpcomp: Depend on it.
75200         * modules/javacomp-script: New file.
75201         * modules/javacomp: Depend on it.
75202         Suggested by Simon Josefsson.
75203
75204 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
75205
75206         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
75207         statement, to work around an HP-UX 10.20 compiler bug reported by
75208         Peter O'Gorman.
75209
75210 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
75211
75212         * modules/savedir (Depends-on): Add openat.
75213
75214 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
75215
75216         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
75217         (uintmax_t) [defined uintmax_t]: Do not declare.
75218         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
75219         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
75220         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
75221         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
75222         sake of portability to weird hosts that C allows (though we don't
75223         know of any practical examples).
75224
75225         * lib/savedir.h (fdsavedir): New decl.
75226         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
75227         contains most of the former guts of savedir.
75228         (savedir): Use savedirstream.
75229         Include "openat.h".
75230
75231 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75232
75233         * modules/obstack (Files): Add m4/ulonglong.m4.
75234         Problem reported by Davide Angelocola.
75235
75236 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
75237
75238         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
75239         coreutils no longer futzes with rounding modes.
75240
75241 2005-11-14  Jim Meyering  <jim@meyering.net>
75242
75243         * lib/mkstemp-safer.c: Include <config.h>, required for possible
75244         replacement of mkstemp.
75245
75246 2005-11-10  Simon Josefsson  <jas@extundo.com>
75247
75248         * lib/readline.c: Remove EOL.
75249
75250 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75251
75252         * modules/gethrxtime (Depends-on): Add gettime.
75253
75254 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75255
75256         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
75257         or gettimeofday; no longer needed.
75258
75259 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75260
75261         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
75262         time business.
75263         (gethrxtime) [! (HAVE_NANOUPTIME
75264         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
75265         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
75266         our own approximation.
75267
75268 2005-11-08  Eric Blake  <ebb9@byu.net>
75269
75270         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
75271
75272 2005-11-08  Eric Blake  <ebb9@byu.net>
75273
75274         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
75275
75276 2005-11-04  Bruno Haible  <bruno@clisp.org>
75277
75278         * gnulib-tool: Implement --update mode.
75279
75280 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75281
75282         Fix porting problem reported by Theodoros V. Kalamatianos.
75283         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
75284         Don't assume that futimes failing means we must fail.
75285
75286 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75287
75288         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
75289         variables to suggest the intended function of the PATH_MAX check.
75290
75291 2005-10-30  Kean Johnston  <jkj@sco.com>
75292
75293         Trivial changes to support SCO systems.
75294         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
75295         as PATH_MAX.
75296         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
75297         where __ptr is null when no I/O is pending.
75298
75299 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75300
75301         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
75302         leave errno alone.  Problem reported by Dmitry V. Levin.
75303
75304 2005-10-28  Simon Josefsson  <jas@extundo.com>
75305
75306         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
75307         Test more.
75308
75309         * tests/test-gc-md2.c, tests/test-md2.c: New files.
75310
75311         * modules/md2, modules/md2-tests: New files.
75312
75313 2005-10-28  Simon Josefsson  <jas@extundo.com>
75314
75315         * m4/inet_ntop.m4: More tests.
75316
75317         * m4/gc-md2.m4, md2.m4: New file.
75318
75319 2005-10-28  Simon Josefsson  <jas@extundo.com>
75320
75321         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
75322         "restrict" keywords, as per POSIX.  Protect the function
75323         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
75324         Don't use K&R prototypes.  Check the sprintf return values.
75325         Re-define EAFNOSUPPORT if not present.  Indent.
75326
75327         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
75328         suggested by Bruno Haible <bruno@clisp.org>.
75329
75330         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
75331
75332         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
75333
75334         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
75335         libgcrypt).
75336
75337         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
75338
75339         * lib/md2.h, lib/md2.c: New files.
75340
75341 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
75342
75343         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
75344         errno alone.  Problem reported by Frederic Jolliton.
75345
75346 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75347
75348         * modules/verify (License): Change from GPL to LGPL.  This is a
75349         tiny module and there are apparently near-equivalents that are
75350         under the BSD license.
75351
75352 2005-10-24  Simon Josefsson  <jas@extundo.com>
75353
75354         * modules/sha1: Relicense to LGPL.
75355
75356 2005-10-24  Simon Josefsson  <jas@extundo.com>
75357
75358         * lib/md4.h: Shrink buffer size, now that we changed the type.
75359
75360 2005-10-23  Simon Josefsson  <jas@extundo.com>
75361
75362         * gnulib-tool (func_import): Fix --tests-base.
75363
75364 2005-10-22  Simon Josefsson  <jas@extundo.com>
75365
75366         * modules/arcfour (Depends-on): Need stdint.
75367
75368 2005-10-22  Simon Josefsson  <jas@extundo.com>
75369
75370         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
75371         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
75372
75373 2005-10-22  Simon Josefsson  <jas@extundo.com>
75374
75375         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
75376         suggested by Bruno Haible <bruno@clisp.org>.
75377
75378 2005-10-22  Simon Josefsson  <jas@extundo.com>
75379
75380         * lib/crc.h: Include stddef.h, for size_t.
75381
75382 2005-10-22  Simon Josefsson  <jas@extundo.com>
75383
75384         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
75385         arcfour_context struct (simplify test vector testing in GNU
75386         Shishi).
75387
75388 2005-10-21  Simon Josefsson  <jas@extundo.com>
75389
75390         * modules/des, modules/des-tests: New files.
75391
75392         * modules/gc-des, modules/gc-des-tests: New files.
75393
75394         * tests/test-des.c, tests/test-gc-des.c: New file.
75395
75396 2005-10-21  Simon Josefsson  <jas@extundo.com>
75397
75398         * modules/arctwo, modules/arctwo-tests: New files.
75399
75400         * tests/test-arctwo.c: New file.
75401
75402         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
75403
75404         * tests/test-gc-arctwo.c: New file.
75405
75406 2005-10-21  Simon Josefsson  <jas@extundo.com>
75407
75408         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
75409         Bruno Haible <bruno@clisp.org>.
75410
75411         * m4/gc-des.m4: New file.
75412
75413 2005-10-21  Simon Josefsson  <jas@extundo.com>
75414
75415         * m4/arctwo.m4: New file.
75416
75417         * m4/gc-arctwo.m4: New file.
75418
75419 2005-10-21  Simon Josefsson  <jas@extundo.com>
75420
75421         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
75422         block.
75423
75424 2005-10-21  Simon Josefsson  <jas@extundo.com>
75425
75426         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
75427         <bruno@clisp.org>.
75428
75429         * lib/hmac-sha1.c (hmac_sha1): Likewise.
75430
75431         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
75432         Bruno Haible <bruno@clisp.org>.
75433
75434         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
75435         <bruno@clisp.org>.
75436
75437 2005-10-21  Simon Josefsson  <jas@extundo.com>
75438
75439         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
75440
75441 2005-10-21  Simon Josefsson  <jas@extundo.com>
75442
75443         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
75444
75445 2005-10-21  Simon Josefsson  <jas@extundo.com>
75446
75447         * lib/des.h, lib/des.c: New files.
75448
75449         * lib/gc-gnulib.c: Support DES.c
75450
75451 2005-10-21  Simon Josefsson  <jas@extundo.com>
75452
75453         * lib/arctwo.h, lib/arctwo.c: New files.
75454
75455         * lib/gc-gnulib.c: Support ARCTWO.
75456
75457 2005-10-21  Simon Josefsson  <jas@extundo.com>
75458
75459         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
75460         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75461
75462 2005-10-21  Simon Josefsson  <jas@extundo.com>
75463
75464         * gnulib-tool (func_import, func_create_testdir): Define automake
75465         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
75466         Makefile.am snippet),
75467         suggested by Bruno Haible <bruno@clisp.org>.
75468
75469         * modules/gc (Makefile.am): Use it.
75470
75471 2005-10-21  Bruno Haible  <bruno@clisp.org>
75472
75473         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
75474         patch.
75475
75476 2005-10-19  Simon Josefsson  <jas@extundo.com>
75477
75478         * tests/test-gc-rijndael.c: New file.
75479
75480         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
75481
75482 2005-10-19  Simon Josefsson  <jas@extundo.com>
75483
75484         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
75485         interface too.
75486
75487 2005-10-19  Simon Josefsson  <jas@extundo.com>
75488
75489         * tests/test-gc-arcfour.c: New file.
75490
75491         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
75492
75493 2005-10-19  Simon Josefsson  <jas@extundo.com>
75494
75495         * modules/gc-md4, modules/gc-md4-tests: New file.
75496
75497         * tests/test-gc-md4.c: New file.
75498
75499 2005-10-19  Simon Josefsson  <jas@extundo.com>
75500
75501         * m4/gc-md4.m4: New file.
75502
75503 2005-10-19  Simon Josefsson  <jas@extundo.com>
75504
75505         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
75506         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
75507         <kasal@ucw.cz>.
75508
75509 2005-10-19  Simon Josefsson  <jas@extundo.com>
75510
75511         * m4/gc-arcfour.m4: New file.
75512
75513         * m4/gc-rijndael.m4: New file.
75514
75515 2005-10-19  Simon Josefsson  <jas@extundo.com>
75516
75517         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
75518
75519 2005-10-19  Simon Josefsson  <jas@extundo.com>
75520
75521         * lib/gc-gnulib.c: Support ARCFOUR.
75522
75523 2005-10-19  Simon Josefsson  <jas@extundo.com>
75524
75525         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
75526         support.
75527
75528         * lib/gc.h: Add ECB enum type.
75529
75530         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
75531
75532 2005-10-18  Simon Josefsson  <jas@extundo.com>
75533
75534         * tests/test-md5.c: New file.
75535
75536         * modules/md5-tests: New file.
75537
75538 2005-10-18  Simon Josefsson  <jas@extundo.com>
75539
75540         * tests/test-md4.c: New file.
75541
75542         * modules/md4, modules/md4-tests: New files.
75543
75544 2005-10-18  Simon Josefsson  <jas@extundo.com>
75545
75546         * m4/md4.m4: New file.
75547
75548 2005-10-18  Simon Josefsson  <jas@extundo.com>
75549
75550         * lib/md4.h, lib/md4.c: New files, based on md5.?.
75551
75552 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
75553
75554         * gnulib-tool (func_create_testdir): Omit the second check whether
75555         BUILT_SOURCES in nonempty.
75556
75557 2005-10-17  Simon Josefsson  <jas@extundo.com>
75558
75559         * tests/test-rijndael.c: New file.
75560
75561 2005-10-17  Simon Josefsson  <jas@extundo.com>
75562
75563         * modules/sha1: Depend on stdint instead of md5.
75564
75565         * modules/md5: Depend on stdint, remove uint32_t.
75566
75567 2005-10-17  Simon Josefsson  <jas@extundo.com>
75568
75569         * modules/gc-sha1-tests: New file.
75570
75571         * tests/test-gc-sha1.c: New file.
75572
75573 2005-10-17  Simon Josefsson  <jas@extundo.com>
75574
75575         * m4/md5.m4: Remove call to uint32_t.m4.
75576
75577 2005-10-17  Simon Josefsson  <jas@extundo.com>
75578
75579         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
75580
75581         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
75582         md5.h.
75583
75584         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
75585
75586         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
75587
75588 2005-10-17  Simon Josefsson  <jas@extundo.com>
75589
75590         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
75591
75592 2005-10-17  Simon Josefsson  <jas@extundo.com>
75593
75594         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
75595
75596 2005-10-17  Simon Josefsson  <jas@extundo.com>
75597
75598         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
75599
75600         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
75601
75602 2005-10-17  Bruno Haible  <bruno@clisp.org>
75603
75604         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
75605         that it can also be used in a test.
75606
75607 2005-10-16  Bruno Haible  <bruno@clisp.org>
75608
75609         * gnulib-tool (func_emit_tests_Makefile_am): Also define
75610         TESTS_ENVIRONMENT, so that individual tests can augment it.
75611
75612         * gnulib-tool (func_create_testdir): Use an intermediate target for
75613         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
75614         macros, like $(ALLOCA_H), which cannot be passed through the command
75615         line.
75616
75617 2005-10-15  Simon Josefsson  <jas@extundo.com>
75618
75619         * modules/rijndael-tests: New file.
75620
75621         * modules/rijndael: New file.
75622
75623 2005-10-15  Simon Josefsson  <jas@extundo.com>
75624
75625         * m4/rijndael.m4: New file.
75626
75627 2005-10-15  Simon Josefsson  <jas@extundo.com>
75628
75629         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
75630
75631         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
75632
75633 2005-10-14  Simon Josefsson  <jas@extundo.com>
75634
75635         * tests/test-arcfour.c: New file.
75636
75637         * modules/arcfour, modules/arcfour-tests: New files.
75638
75639 2005-10-14  Simon Josefsson  <jas@extundo.com>
75640
75641         * m4/arcfour.m4: New file.
75642
75643 2005-10-14  Simon Josefsson  <jas@extundo.com>
75644
75645         * lib/arcfour.h, lib/arcfour.c: New files.
75646
75647 2005-10-14  Roland McGrath  <roland@redhat.com>
75648
75649         Import from libc.  [BZ #1331]
75650         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
75651         macro argument.
75652         Reported by Matej Vela <vela@debian.org>.
75653
75654 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75655
75656         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
75657         include <wchar.h>; no longer needed.
75658
75659 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75660
75661         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
75662
75663 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
75664         and  Ulrich Drepper  <drepper@redhat.com>
75665
75666         Import from libc.
75667         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
75668         instead of inline stream orientation test and two separate
75669         function calls.  Pay no attention to USE_IN_LIBIO.
75670
75671 2005-10-13  Simon Josefsson  <jas@extundo.com>
75672
75673         * modules/gc-hmac-md5-tests: New file.
75674
75675         * tests/test-gc-hmac-sha1.c: New file.
75676
75677         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
75678
75679         * modules/gc-hmac-md5-tests: New file.
75680
75681         * tests/test-gc-md5.c: New file.
75682
75683         * modules/gc-md5-tests: New file.
75684
75685 2005-10-13  Simon Josefsson  <jas@extundo.com>
75686
75687         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
75688         Move memory allocation outside of loop.
75689
75690 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
75691
75692         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
75693         intermediate directory is in a read-only file system.  Problem
75694         reported by Eric Blake.
75695
75696 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
75697
75698         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
75699
75700 2005-10-12  Simon Josefsson  <jas@extundo.com>
75701
75702         * tests/test-hmac-sha1.c: New file.
75703
75704         * modules/hmac-sha1-tests: New file.
75705
75706         * modules/hmac-sha1: New file.
75707
75708 2005-10-12  Simon Josefsson  <jas@extundo.com>
75709
75710         * modules/gc-sha1: New file.
75711
75712 2005-10-12  Simon Josefsson  <jas@extundo.com>
75713
75714         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
75715
75716         * tests/test-gc-pbkdf2-sha1.c: New file.
75717
75718 2005-10-12  Simon Josefsson  <jas@extundo.com>
75719
75720         * modules/gc-md5, modules/gc-hmac-md5: New files.
75721
75722         * modules/gc (Files): Remove md5, memxor and hmac files.
75723
75724 2005-10-12  Simon Josefsson  <jas@extundo.com>
75725
75726         * m4/gc-pbkdf2-sha1.m4: New file.
75727
75728         * m4/gc-hmac-sha1.m4: New file.
75729
75730         * m4/gc-sha1: New file.
75731
75732         * m4/hmac-sha1.m4: New file.
75733
75734 2005-10-12  Simon Josefsson  <jas@extundo.com>
75735
75736         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
75737
75738         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
75739
75740 2005-10-12  Simon Josefsson  <jas@extundo.com>
75741
75742         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
75743         suggested by Bruno Haible <bruno@clisp.org>.
75744
75745 2005-10-12  Simon Josefsson  <jas@extundo.com>
75746
75747         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
75748
75749 2005-10-12  Simon Josefsson  <jas@extundo.com>
75750
75751         * lib/gc-pbkdf2-sha1.c: New file.
75752
75753         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
75754
75755 2005-10-12  Simon Josefsson  <jas@extundo.com>
75756
75757         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
75758
75759         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
75760
75761 2005-10-12  Simon Josefsson  <jas@extundo.com>
75762
75763         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
75764         GC_USE_HMAC_MD5, respectively.
75765
75766         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
75767         (gc_md5): Fix typo.
75768
75769         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
75770
75771         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
75772
75773         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
75774
75775 2005-10-12  Bruno Haible  <bruno@clisp.org>
75776
75777         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
75778         Reported by Stepan Kasal <kasal@ucw.cz>.
75779
75780 2005-10-11  Simon Josefsson  <jas@extundo.com>
75781
75782         * tests/test-crc.c: New file.
75783
75784         * modules/crc, modules/crc-tests: New files.
75785
75786 2005-10-11  Simon Josefsson  <jas@extundo.com>
75787
75788         * m4/crc.m4: New file.
75789
75790 2005-10-11  Simon Josefsson  <jas@extundo.com>
75791
75792         * lib/gc.h: Add gc_hash and gc_hash_buffer.
75793
75794         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
75795
75796         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
75797
75798 2005-10-11  Simon Josefsson  <jas@extundo.com>
75799
75800         * lib/crc.h, lib/crc.c: New files.
75801
75802         * lib/gc.h (gc_hash_buffer): Add doc.
75803
75804 2005-10-11  Bruno Haible  <bruno@clisp.org>
75805
75806         * modules/c-strcasestr: New file.
75807         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
75808
75809 2005-10-11  Bruno Haible  <bruno@clisp.org>
75810
75811         * modules/c-strcase: New file.
75812         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
75813
75814 2005-10-11  Bruno Haible  <bruno@clisp.org>
75815
75816         * lib/strcasecmp.c: Include limits.h.
75817         (strcasecmp): Avoid integer overflow on exotic platforms.
75818         * lib/strncasecmp.c: Include limits.h.
75819         (strncasecmp): Avoid integer overflow on exotic platforms.
75820         Reported by Paul Eggert.
75821
75822 2005-10-11  Bruno Haible  <bruno@clisp.org>
75823
75824         * lib/c-strcasestr.h: New file, from GNU gettext.
75825         * lib/c-strcasestr.c: New file, from GNU gettext.
75826
75827 2005-10-11  Bruno Haible  <bruno@clisp.org>
75828
75829         * lib/c-strcase.h: New file, from GNU gettext.
75830         * lib/c-strcasecmp.c: New file, from GNU gettext.
75831         * lib/c-strncasecmp.c: New file, from GNU gettext.
75832
75833 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75834
75835         * modules/mempcpy (License): GPL -> LGPL.
75836         * modules/strchrnul (License): Likewise.
75837         * modules/sysexits (License): Likewise.
75838
75839 2005-10-08  Simon Josefsson  <jas@extundo.com>
75840
75841         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
75842
75843 2005-10-07  Simon Josefsson  <jas@extundo.com>
75844
75845         * m4/memxor.m4: Remove gl_C_RESTRICT call.
75846
75847 2005-10-06  Simon Josefsson  <jas@extundo.com>
75848
75849         * tests/test-hmac-md5.c: New file.
75850
75851         * modules/hmac-md5-tests: New file.
75852
75853         * modules/hmac-md5: New file.
75854
75855 2005-10-06  Simon Josefsson  <jas@extundo.com>
75856
75857         * m4/hmac-md5.m4: New file.
75858
75859         * m4/memxor.m4: Require gl_C_RESTRICT.
75860
75861 2005-10-06  Simon Josefsson  <jas@extundo.com>
75862
75863         * lib/memxor.c (memxor): Avoid casts and warnings.
75864
75865 2005-10-06  Simon Josefsson  <jas@extundo.com>
75866
75867         * lib/hmac-md5.c: New file.
75868
75869         * lib/hmac.h: New file.
75870
75871 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75872
75873         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
75874         promotes to int, not unsigned int, to catch the AIX 5.3
75875         compiler bug.
75876
75877 2005-10-05  Simon Josefsson  <jas@extundo.com>
75878
75879         * modules/memxor: New file.
75880
75881         * modules/iconv (Files): Move config.rpath to havelib, it is used
75882         there.
75883
75884         * modules/havelib (Files): Add config.rpath.
75885
75886 2005-10-05  Simon Josefsson  <jas@extundo.com>
75887
75888         * m4/memxor.m4: New file.
75889
75890 2005-10-05  Simon Josefsson  <jas@extundo.com>
75891
75892         * lib/memxor.c (memxor): Fix compiler error.
75893
75894         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
75895         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
75896
75897         * lib/memxor.h, lib/memxor.c: New files.
75898
75899         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
75900         we assume all systems have it, suggested by Jim Meyering
75901         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
75902         any systems lack sys/socket.h; mingw32 is known to lack it, but we
75903         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
75904         same reasons.
75905
75906 2005-10-05  Simon Josefsson  <jas@extundo.com>
75907
75908         * config/srclist.txt: Add glibc bug 1423 for md5.h.
75909
75910 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75911
75912         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
75913         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
75914         needed, since the source code now assumes these .h files.
75915
75916 2005-10-05  Derek Price  <derek@ximbiot.com>
75917
75918         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
75919
75920 2005-10-05  Bruno Haible  <bruno@clisp.org>
75921
75922         * modules/stdint (License): Change to LGPL.
75923
75924 2005-10-04  Simon Josefsson  <jas@extundo.com>
75925
75926         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
75927         D. Baushke" <mdb@gnu.org>.
75928
75929 2005-10-04  Bruno Haible  <bruno@clisp.org>
75930
75931         * lib/verify.h (verify_true): Provide alternative definition for C++.
75932
75933 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
75934
75935         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
75936         (SSIZE_MAX): New macro, if not already defined.
75937         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
75938         than 2 GiB.
75939
75940 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75941
75942         Sync from coreutils.
75943         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
75944         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
75945         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
75946         ULLONG_MAX doesn't work with 2.7.2.1.
75947
75948 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75949
75950         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
75951         From Ben Pfaff.
75952
75953         * modules/exclude (Depends-on): Depend on verify.
75954         * modules/strtoimax (Depends-on): Likewise.
75955         * modules/utimecmp (Depends-on): Likewise.
75956
75957 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75958
75959         * lib/exclude.c: Include verify.h.
75960         (verify): Remove.  All callers changed to use verify.h's version.
75961         * lib/strtoimax.c: Likewise.
75962         * lib/utimecmp.c: Likewis.e
75963
75964         Sync from coreutils.
75965         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
75966         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
75967         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
75968         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
75969         bother returning ENOSYS if settimeofday or stime fails; just let
75970         them return whatever errno they want to return.
75971         * lib/utimens.c: Include unistd.h, for dup2.
75972         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
75973         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
75974
75975 2005-10-02  Jim Meyering  <jim@meyering.net>
75976
75977         Sync from coreutils.
75978         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
75979         from glibc-2.2.5 that fails for read-only files.
75980
75981 2005-10-02  Jim Meyering  <jim@meyering.net>
75982
75983         Sync from coreutils.
75984         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
75985         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
75986         `#if HAVE_CONFIG_H'.
75987         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
75988         Remove AT_FDCWD test.
75989         Do not consume the fd unless successful.
75990         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
75991         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
75992         block, so that we don't even try to compile it if settimeofday is
75993         available.  This works around a compilation failure on OSF1 V5.1,
75994         due to stime requiring a `long int*' while tv_sec is `int'.
75995
75996 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
75997
75998         Sync from coreutils.
75999         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
76000         against `yes', rather than just testing for nonempty.
76001
76002 2005-10-01  Simon Josefsson  <jas@extundo.com>
76003
76004         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
76005         and Darwin.
76006
76007         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
76008         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
76009         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
76010         freeaddrinfo and gai_strerror are declared by the POSIX headers.
76011         Check if struct addrinfo is declared.
76012
76013 2005-10-01  Simon Josefsson  <jas@extundo.com>
76014
76015         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
76016         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
76017         AI_* and EAI_* definitions.  Protect function declarations.
76018
76019 2005-10-01  Jim Meyering  <jim@meyering.net>
76020
76021         Sync from coreutils.
76022
76023         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
76024         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
76025         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
76026         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
76027         in the inet and nsl libraries.  Required on Solaris 5.7.
76028
76029 2005-10-01  Jim Meyering  <jim@meyering.net>
76030
76031         Sync from coreutils.
76032         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
76033         in the inet and nsl libraries.  Required on Solaris 5.7.
76034
76035 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
76036
76037         * lib/getdelim.c (getdelim): Remove unused variables.
76038
76039 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76040
76041         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
76042         so that the code works even with ancient cpp.  Portability problem
76043         with GCC 2.7.2.1 reported by Thomas M.Ott.
76044
76045 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76046
76047         * modules/regex (Depends-on): Add strcase.
76048
76049         * modules/gethostname (Licence): Change from GPL to LGPL, since
76050         gethostname.c is a trivial implementation of a standard library
76051         function.
76052         * modules/poll (License): Change from GPL to LGPL, since it's
76053         derived from LGPL code.
76054
76055 2005-09-27  Jim Meyering  <jim@meyering.net>
76056
76057         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
76058         HAVE_CONFIG_H.
76059
76060         * lib/intprops.h (signed_type_or_expr__): Define.
76061         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
76062         for unsigned types.
76063
76064 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76065
76066         * lib/verify.h (verify_expr): Remove, replacing with:
76067         (verify_true): New macro that returns true instead of void.
76068         (verify_type__): Remove.
76069         (verify): Use verify_true rather than verify_type__.
76070
76071 2005-09-26  Bruno Haible  <bruno@clisp.org>
76072
76073         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
76074         is necessary.
76075         (lib_SOURCES): Remove mbchar.c.
76076         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
76077         (Files): Add m4/mbrtowc.m4.
76078         * modules/mbiter: Likewise.
76079         * modules/mbuiter: Likewise.
76080
76081 2005-09-26  Bruno Haible  <bruno@clisp.org>
76082
76083         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
76084         compile mbchar.c if they are not both present.
76085         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
76086         * m4/mbiter.m4 (gl_MBITER): Likewise.
76087         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
76088         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
76089         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
76090
76091 2005-09-25  Jim Meyering  <jim@meyering.net>
76092
76093         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
76094         also uses socklen_t.
76095
76096 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
76097
76098         * lib/utimens.c (ENOSYS): Define if not already defined.
76099         (futimens): Support having a null PATH if the file descriptor
76100         is nonnegative.
76101
76102         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
76103         Remove.
76104         (__attribute): Define to empty unless GCC 3.1 or later.
76105         This works around a core dump on OpenBSD 3.4, which has GCC
76106         2.95.3, which dumps core when given __attribute__(()).  It also
76107         simplifies other tests, since we really don't want to bother with
76108         worrying about which ancient version of GCC supported what.
76109         Original problem reported by Yoann Vandoorselaere, with part of
76110         the fix suggested by Derek Price.
76111
76112 2005-09-24  Jim Meyering  <jim@meyering.net>
76113
76114         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
76115         so we can once again use a positive bitfield width of 1 -- now we
76116         don't have to explain why we were using a bitfield width of 2.
76117
76118 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
76119
76120         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
76121         and similarly for the other external symbols.  Problem reported
76122         by James Gallager.
76123
76124         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
76125         bug reported by Jim Meyering.
76126
76127         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
76128         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
76129         not needed, since socklen is a prerequisite module.
76130
76131 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
76132
76133         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
76134         Problem reported by Eric Blake.
76135         (getaddrinfo): Initialize se so that it's not garbage.
76136         Redo internal storage allocation so that it doesn't make unportable
76137         assumptions about alignment.
76138         Fix a memory leak.
76139
76140         * lib/utimens.c (futimens): Use futimesat if available.
76141         Prefer it to futimes since it doesn't have the futimes bug.
76142
76143         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
76144         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
76145         Instead, declare a function that returns a pointer to an array,
76146         and use verify_type__ to declare the size of the array.
76147         Problem and germ of a solution reported by Bruno Haible.
76148         (verify_type__): Use 2, not 1, for bitfield size, to avoid
76149         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
76150
76151 2005-09-23  Jim Meyering  <jim@meyering.net>
76152
76153         Sync from coreutils.
76154         Correct build failure (socklen_t not defined) on at least
76155         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
76156         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
76157
76158 2005-09-23  Jim Meyering  <jim@meyering.net>
76159
76160         * modules/getaddrinfo (Depends-on): Add socklen.
76161
76162 2005-09-23  Bruno Haible  <bruno@clisp.org>
76163
76164         * tests/test-verify.c: New file.
76165
76166 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76167
76168         Sync from coreutils.
76169
76170         * modules/argmatch (Depends-on): Add verify.
76171         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
76172         unistd-safer.
76173         * modules/save-cwd (Depends-on): Likewise.
76174
76175         * modules/openat (Files): Add lib/openat-die.c.
76176         (Depends-on): Remove error, exitfail.
76177         Add dirname.
76178
76179         * modules/verify: New file.
76180         * MODULES.html.sh (Diagnostics <assert.h>): New section,
76181         with "verify" module.
76182
76183 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76184
76185         Sync from coreutils.
76186
76187         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
76188         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
76189         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
76190         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
76191         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
76192         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
76193         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
76194         Don't bother checking for string.h, stdlib.h, unistd.h.
76195         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
76196         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
76197         module's job.
76198         * m4/jm-macros.m4 (gl_MACROS): Likewise.
76199         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
76200
76201         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
76202         (gl_GETDATE): Use it.
76203
76204         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
76205
76206 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76207
76208         Sync from coreutils.
76209
76210         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
76211         stat-time.h.
76212         * lib/argmatch.h: Include verify.h
76213         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
76214         (ARGMATCH_ASSERT): Remove; unused.
76215         * lib/canonicalize.c: Assume STDC_HEADERS.
76216         * lib/exclude.c: Include "strcase.h".
76217         * lib/regex_internal.h [!defined _LIBC]: Likewise.
76218         * lib/getusershell.c: Include stdio--.h rather than stdio.h
76219         and stdio-safer.h.
76220         (getusershell): Call fopen, not fopen_safer.
76221         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
76222         Do not include unistd-safer.h.
76223         (save_cwd): Don't call fd_safer; no longer needed
76224         now that we include fcntl--.h.
76225
76226         * lib/getdate.y (relative_time): New type.
76227         (RELATIVE_TIME_0): New constant.
76228         (parser_control): Use relative_time instead of doing it ourselves.
76229         (%union): Add new relative_time rel member.
76230         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
76231         Now typeless.
76232         (relunit, relunit_snumber): Now of type rel.
76233         (zone, rel, relunit, get_date): Adjust to above changes.
76234
76235         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
76236         Do not include unistd-safer.h.
76237         (getloadavg): Don't call fd_safer; no longer needed
76238         now that we include fcntl--.h.
76239
76240         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
76241         (make_dir_parents): Treat ENOSYS like EEXIST.
76242
76243         Improve quality of diagnostics on restore_cwd failure.
76244         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
76245         (make_dir_parents): Last arg is now int * (for errno), not bool *.
76246         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
76247         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
76248         each time through the loop.  Do not diagnose restore_cwd failure;
76249         that is the caller's job (and perhaps the caller does not care).
76250
76251         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
76252         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
76253         If the file already exists but is not a directory, don't bother
76254         to try to make its parents.
76255         Close potential file descriptor leak if we can't chdir("/") (!).
76256         Don't always return true if chdir($PWD) fails; return true only
76257         if the requested action was done successfully (except for the
76258         chdir($PWD)).
76259         Don't log final directory unless we actually made it.
76260         Refactor to avoid duplicate code to fix up permissions.
76261         Don't attempt to fix up parent permissions if chdir($PWD) fails.
76262
76263         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
76264         to make it a bit faster and (I hope) clearer.
76265         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
76266         Fix bug in formats like %2N.
76267
76268         * lib/verify.h: New file.
76269
76270 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76271
76272         Sync from coreutils.
76273         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
76274
76275 2005-09-22  Jim Meyering  <jim@meyering.net>
76276
76277         Sync from coreutils.
76278
76279         * m4/lstat.m4 (gl_FUNC_LSTAT):
76280         Use AC_LIBSOURCES to require lstat.c and lstat.h.
76281         Remove obsolete comment.
76282         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
76283         * m4/xstrtod.m4: Likewise.
76284
76285         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
76286
76287 2005-09-22  Jim Meyering  <jim@meyering.net>
76288
76289         Sync from coreutils.
76290
76291         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
76292
76293         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
76294         the .tm_year member, since otherwise gcc-4.0 would now warn about
76295         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
76296
76297         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
76298         order to avoid an unsuppressible warning from gcc on 64-bit systems.
76299
76300         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
76301         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
76302         when run in a time zone for which daylight savings time is in effect
76303         for the starting date.
76304
76305         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
76306         stop us from restricting permissions of just-created absolute-named
76307         directories.
76308         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
76309         to restore initial working directory.
76310         * lib/mkdir-p.c (make_dir_parents): New parameter:
76311         different_working_dir, to tell caller if/when we change the working
76312         directory and are unable to return to the initial one.
76313         * lib/mkdir-p.h (make_dir_parents): Update prototype.
76314         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
76315         `return false'.  This fixes a bug introduced on 2004-07-30.
76316
76317         * lib/openat.c (fdopendir): Be sure to close the supplied
76318         file descriptor before returning.  This makes our replacement
76319         implementation a little closer to Solaris's, where fdopendir
76320         ties the file descriptor to the returned DIR* pointer.
76321         * lib/openat.c (unlinkat): New function.
76322         * lib/openat.h (unlinkat): Add prototype.
76323         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
76324         (openat_restore_fail): Rename from openat_restore_die.
76325         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
76326
76327         Provide an alternative to exiting immediately upon save_cwd or
76328         restore_cwd failure.  Now, an application can arrange e.g.,
76329         to perform a longjump in that case.
76330         * lib/openat.c: Include dirname.h.
76331         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
76332         (rpl_openat, fdopendir, fstatat): Call openat_save_die
76333         and openat_restore_die rather than calling error directly.
76334         Don't include "error.h" or "exitfail.h"; they're no longer needed.
76335
76336         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
76337         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
76338         define.
76339
76340         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
76341         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
76342                             int utc, int nanoseconds);
76343         Background:
76344         date should not have to allocate a megabyte of virtual memory to
76345         handle a format argument like +%1048575T.  When implemented with
76346         strftime, it must allocate such a buffer, use strftime to fill it
76347         in, print it, then free it.
76348         With fprintftime, it simply prints everything and exits.
76349         With no need for memory allocation, that's one fewer way to fail.
76350         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
76351         optional field width, not before, so we accept %9:z, not %:9z.
76352         (my_strftime): Be sure to use L_('x') for literals.
76353
76354         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
76355         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
76356         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
76357         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
76358         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
76359         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
76360         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
76361         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
76362         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
76363         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
76364         * lib/xgethostname.c, lib/xreadlink.c:
76365         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
76366
76367         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
76368         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
76369         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
76370         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76371         and don't include <sys/file.h>).
76372
76373 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
76374
76375         Sync from coreutils.
76376
76377         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
76378         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
76379         [!LDAV_DONE]: Avoid unused variable warning.
76380
76381 2005-09-21  Bruno Haible  <bruno@clisp.org>
76382
76383         * lib/unicodeio.h (unicode_to_mb): New declaration.
76384
76385 2005-09-20  Derek Price  <derek@ximbiot.com>
76386
76387         * lib/getaddrinfo.c: Don't include <netdb.h> included from
76388         getaddrinfo.h.
76389
76390 2005-09-20  Bruno Haible  <bruno@clisp.org>
76391
76392         * gnulib-tool: Remove trailing slashes from the values specified for
76393         --source-base, --m4-base, --tests-base, --aux-dir.
76394         Suggested by Simon Josefsson <jas@extundo.com>.
76395
76396 2005-09-20  Bruno Haible  <bruno@clisp.org>
76397
76398         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
76399         func_modules_to_filelist, func_import, func_create_testdir): Make all
76400         sorting results locale-independent, so that gnulib-cache.m4 doesn't
76401         change when gnulib-tool is invoked in a different locale.
76402
76403 2005-09-19  Simon Josefsson  <jas@extundo.com>
76404
76405         * m4/socklen.m4: Fix typo.
76406
76407 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76408
76409         Use a consistent style for including <config.h>.
76410         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
76411         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
76412         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
76413         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
76414         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
76415         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
76416         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
76417         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
76418         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
76419         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
76420         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
76421         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
76422         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
76423         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
76424         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
76425         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
76426         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
76427         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
76428         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
76429         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
76430         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
76431         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
76432         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
76433         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
76434         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
76435         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
76436         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
76437         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
76438         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
76439         lib/xstrtoumax.c, lib/yesno.c:
76440         Standardize inclusion of config.h.
76441         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
76442         lib/inttostr.h:  Removed inclusion of config.h from header files.
76443         * lib/inttostr.c:  Adjusted in-tree users.
76444         * lib/timespec.h: Remove superfluous warning to include config.h.
76445         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
76446         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
76447         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
76448         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
76449         config.h with HAVE_CONFIG_H.
76450
76451 2005-09-19  Jim Meyering  <jim@meyering.net>
76452
76453         * modules/pathmax (License): Change to LGPL.
76454
76455 2005-09-19  Derek Price  <derek@ximbiot.com>
76456
76457         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
76458
76459 2005-09-19  Bruno Haible  <bruno@clisp.org>
76460
76461         * gnulib-tool (import): Provide default for --tests-base.
76462
76463 2005-09-19  Bruno Haible  <bruno@clisp.org>
76464
76465         * doc/quote.texi: New file, extracted from gnulib.texi.
76466         * doc/ctime.texi: New file, extracted from gnulib.texi.
76467         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
76468         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
76469         * doc/gnulib.texi: Include them.
76470
76471 2005-09-18  Bruno Haible  <bruno@clisp.org>
76472
76473         Portability fix.
76474         * gnulib-tool (func_readlink): New function.
76475         (func_ln_if_changed): Use it.
76476
76477 2005-09-18  Bruno Haible  <bruno@clisp.org>
76478
76479         * gnulib-tool: Support --with-tests also with --import.
76480         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
76481         (func_import): Use variables $testsbase and $inctests. Emit a
76482         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
76483         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
76484         SUBDIRS += $testsdir.
76485         (func_create_testdir): Update.
76486
76487 2005-09-18  Bruno Haible  <bruno@clisp.org>
76488
76489         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
76490         instead of $dry_run.
76491         (func_cp_if_changed, func_mv_if_changed): Remove functions.
76492         (func_ln_if_changed): Don't handle dry-run here.
76493         (func_import): In dry-run mode, detect more precisely which actions
76494         would be performed, and don't use "...ing" verbs.
76495
76496 2005-09-18  Bruno Haible  <bruno@clisp.org>
76497
76498         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
76499         (func_import): Use join on two temporary files instead of three nested
76500         loops, in order to determine which files are new or old.
76501
76502 2005-09-18  Bruno Haible  <bruno@clisp.org>
76503
76504         * gnulib-tool (func_import): Comment out code that spits out the
76505         new files with --dry-run.
76506
76507 2005-09-18  Bruno Haible  <bruno@clisp.org>
76508
76509         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
76510
76511 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76512
76513         * lib/stat-time.h: New file.
76514         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
76515         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
76516         in a different way.
76517         (timespec_cmp): New function.
76518         * lib/utimecmp.c: Include stat-time.h.
76519         (SYSCALL_RESOLUTION): Depend on whether various struct stat
76520         members exist, not on the obsolescent ST_MTIM_NSEC.
76521         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
76522
76523 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76524
76525         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
76526
76527 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76528
76529         * MODULES.html.sh (File system functions): Add stat-time.
76530         * modules/stat-time: New file.
76531         * modules/timespec (Files): Remove m4/st_mtim.m4; this
76532         is now done in a different way, by the stat-time module.
76533         * modules/utimecmp (Depends-on): Add stat-time.
76534
76535 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76536
76537         * m4/st_mtim.m4: Remove.  Superseded by...
76538         * m4/stat-time.m4: New file.
76539         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
76540         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
76541
76542 2005-09-15  Derek Price  <derek@ximbiot.com>
76543
76544         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
76545
76546 2005-09-15  Derek Price  <derek@ximbiot.com>
76547
76548         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
76549         * lib/regex_internal.c: Ditto, using this...
76550         (__GNUC_PREREQ): ...new macro.
76551         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
76552         using...
76553         (__GNUC_PREREQ): ...this new macro.
76554
76555         * lib/strstr.h: Include string.h. Define strstr as a macro here.
76556
76557 2005-09-15  Derek Price  <derek@ximbiot.com>
76558             Paul Eggert  <eggert@cs.ucla.edu>
76559
76560         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
76561         changes, consolidating in...
76562         * lib/regex_internal.h: ...this file.
76563
76564 2005-09-13  Jim Meyering  <jim@meyering.net>
76565
76566         * lib/canon-host.c: Filter through gnu indent and reword comments
76567         slightly.
76568         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
76569
76570 2005-09-13  Derek Price  <derek@ximbiot.com>
76571
76572         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
76573         failure.
76574         Reported by Jim Meyering  <jim@meyering.net>.
76575
76576 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76577
76578         * lib/base64.c: Typo.
76579         (base64_encode): Put b64str in initialized data section.
76580
76581 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
76582
76583         Merge glibc and coreutils changes into gnulib, plus a few
76584         extra fixes.
76585         * lib/md5.c: Use #error rather than a string.
76586         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
76587         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
76588         (__attribute__): Define to empty for non recent-GCC.
76589         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
76590         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
76591         Renamed from their non-__ counterparts, with new macros replacing
76592         them if not _LIBC.  Add __THROW attribute.
76593         (rol): Remove.
76594         (struct md5_ctx): Align buffer if using GCC.
76595         * lib/sha1.h (struct sha1_ctx): Likewise.
76596         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
76597         The old name was backwards.
76598         (NOTSWAP): Remove; not used.
76599         (rol): New macro, moved here from md5.h.
76600         (sha1_process_block): Remove a FIXME that doesn't make sense.
76601
76602 2005-09-12  Derek Price  <derek@ximbiot.com>
76603
76604         Return usable errors from canon-host.
76605         * lib/canon-host.h: New file.
76606         * lib/canon-host.c (canon_host): Wrap...
76607         (canon_host_r): ...this new function, which now relies exclusively on
76608         getaddrinfo.
76609         (ch_strerror): New function.
76610         (last_cherror): New global.
76611         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
76612         interface.
76613         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
76614         void *.
76615         (freeaddrinfo): Free ai->ai_canonname when set.
76616
76617 2005-09-12  Derek Price  <derek@ximbiot.com>
76618
76619         Make canon-host require getaddrinfo.
76620         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
76621         AC_LIBSOURCE canon-host.h.  Call...
76622         (gl_PREREQ_CANON_HOST): ...this new function, which requires
76623         gl_GETADDRINFO.
76624         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
76625
76626 2005-09-12  Derek Price  <derek@ximbiot.com>
76627
76628         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
76629         LGPL.
76630         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
76631
76632 2005-09-12  Derek Price  <derek@ximbiot.com>
76633
76634         * lib/gai_strerror.c: Include config.h when available.  Include
76635         getaddrinfo.h before other headers to test interface.
76636         Reported by Larry Jones <lawrence.jones@ugs.com>.
76637
76638 2005-09-12  Derek Price  <derek@ximbiot.com>
76639             Paul Eggert  <eggert@cs.ucla.edu>
76640
76641         * modules/glob (Files): Add glob-libc.h.
76642
76643 2005-09-12  Derek Price  <derek@ximbiot.com>
76644             Paul Eggert  <eggert@cs.ucla.edu>
76645
76646         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
76647         glob_.h, glob-libc.h.
76648         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
76649
76650 2005-09-12  Derek Price  <derek@ximbiot.com>
76651             Paul Eggert  <eggert@cs.ucla.edu>
76652
76653         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
76654         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
76655         protecting things that should be done only in gnulib contexts.
76656         * lib/glob_.h: New file, containing only the glob things needed for
76657         gnulib.
76658         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
76659         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
76660         (glob, globfree, glob_pattern_p): Now defined simply in terms of
76661         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
76662         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
76663         and to respect the namespace rules better.
76664
76665 2005-09-08  Simon Josefsson  <jas@extundo.com>
76666
76667         * modules/socklen: New file.
76668
76669 2005-09-08  Simon Josefsson  <jas@extundo.com>
76670
76671         * m4/socklen.m4: New file.
76672
76673 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76674
76675         * modules/utimens (Files): Add m4/utimbuf.m4, since
76676         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
76677         Reported by Sergey Poznyakoff.
76678
76679 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76680
76681         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
76682         definitions, since that's the preferred style in glibc.
76683         Fix a minor spacing issue, and update copyright notice to match
76684         glibc's.
76685
76686 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76687
76688         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
76689
76690 2005-09-06  Simon Josefsson  <jas@extundo.com>
76691
76692         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
76693         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
76694
76695 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76696
76697         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
76698         warning.
76699
76700 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76701
76702         * config/srclist.txt: Add glibc bug 1302.
76703
76704 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
76705
76706         Change bitset word type from unsigned int to unsigned long int,
76707         as this has better performance on typical 64-bit hosts.
76708         Port bitset code to hosts with unusual word sizes.
76709         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
76710         (build_collating_symbol):
76711         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
76712         argument is a bitset.  This is merely a style issue, but it makes
76713         it clearer that an entire array is expected.
76714         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
76715         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
76716         Port to the case where bitset_word is not the same as unsigned int.
76717         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76718         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
76719         Likewise.
76720         * lib/regexec.c (check_dst_limits_calc_pos_1,
76721         check_subexp_matching_top):
76722         (build_trtable, group_nodes_into_DFAstates):
76723         Likewise.
76724         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
76725         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
76726         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
76727         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
76728         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
76729         * lib/regcomp.c (optimize_subexps, lower_subexp):
76730         Work even if bitset_word has holes in its bitwise representation.
76731         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
76732         * lib/regexec.c (check_dst_limits_calc_pos_1,
76733         check_subexp_matching_top):
76734         Likewise.
76735         * lib/regex_internal.c (re_string_reconstruct):
76736         Don't assume UCHAR_MAX == 255.
76737         * lib/regex_internal.h (bitset_set_all): Likewise.
76738         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
76739         All uses changed.
76740         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
76741         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
76742         All uses changed.
76743         (BITSET_WORD_MAX): New macro.
76744         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
76745         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
76746         (bitset_empty, bitset_copy):
76747         Prefer sizeof (bitset) to multiplying it out ourselves.
76748         (bitset_not_merge): Remove; unused.
76749         (bitset_contain): Return bool, not unsigned int with one bit on.
76750         All callers changed.
76751         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
76752         alignment than re_node_set; do this by defining a new internal
76753         type struct dests_alloc and using it to allocate memory.
76754
76755 2005-09-05  Bruno Haible  <bruno@clisp.org>
76756
76757         * gnulib-tool (func_import): Fix comparison in handling of symbolic
76758         links.
76759
76760 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
76761
76762         * modules/size_max (Makefile.am): Add size_max.h
76763
76764 2005-09-04  Derek Price  <derek@ximbiot.com>
76765
76766         * gnulib-tool (func_import): Fix reversed $symbolic logic.
76767
76768 2005-09-03  Simon Josefsson  <jas@extundo.com>
76769
76770         * gnulib-tool: Fix typo.
76771
76772 2005-09-03  Simon Josefsson  <jas@extundo.com>
76773
76774         * config/srclist.txt: Add glibc bug 1293.
76775
76776 2005-09-03  Derek Price  <derek@ximbiot.com>
76777
76778         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
76779         From Larry Jones <lawrence.jones@ugs.com>.
76780
76781 2005-09-02  Simon Josefsson  <jas@extundo.com>
76782
76783         * modules/socklen: New file.
76784
76785 2005-09-02  Simon Josefsson  <jas@extundo.com>
76786
76787         * modules/havelib: New module.
76788
76789         * modules/gettext, modules/iconv, modules/lock, modules/readline:
76790         Use havelib.
76791
76792 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76793
76794         Check for arithmetic overflow when calculating sizes, to prevent
76795         some buffer-overflow issues.  These patches are conservative, in the
76796         sense that when I couldn't determine whether an overflow was possible,
76797         I inserted a run-time check.
76798         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
76799         macros.
76800         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
76801         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
76802         (re_xnrealloc, re_x2nrealloc): New inline functions.
76803         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
76804         parse_bracket_exp):
76805         (build_equiv_class, build_charclass): Check for arithmetic overflow
76806         in size expression calculations.
76807         * lib/regex_internal.c (re_string_realloc_buffers):
76808         (build_wcs_upper_buffer, re_node_set_add_intersect):
76809         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
76810         (re_dfa_add_node, register_state): Likewise.
76811         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
76812         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
76813         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
76814         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
76815
76816 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76817
76818         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76819         m4/ulonglong.m4.  Problem reported by Martin Lambers.
76820
76821 2005-09-02  Bruno Haible  <bruno@clisp.org>
76822
76823         Support for lib vs. lib64 distinction on biarch platforms.
76824         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
76825         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
76826         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
76827
76828 2005-09-02  Bruno Haible  <bruno@clisp.org>
76829
76830         * gnulib-tool (import): In the other first-use case, provide defaults
76831         as well.
76832
76833 2005-09-02  Bruno Haible  <bruno@clisp.org>
76834
76835         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
76836         patches not yet found in the latest gettext release.
76837
76838 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76839
76840         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
76841         to avoid a collision with bits/local_lim.h in glibc.
76842         All uses changed.  Problem reported by Dmitry V. Levin in
76843         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
76844
76845         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
76846         bugs in int versus size_t comparisons.
76847         (re_string_context_at): Fix bug where the code assumed that
76848         Idx is signed.
76849
76850         Use bool where appropriate.
76851         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
76852         All callers changed.
76853         (calc_eclosure_iter): Likewise, for ROOT arg.
76854         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
76855         (build_charclass_op): Likewise, for NON_MATCH arg.
76856         * lib/regex_internal.c (re_string_allocate, re_string_construct):
76857         (re_string_construct_common): Likewise, for ICASE arg.
76858         * lib/regexec.c (re_search_2_stub, re_search_stub):
76859         Likewise, for RET_LEN arg.
76860         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
76861         (set_regs): Likewise, for FL_BACKTRACK arg.
76862         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
76863         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
76864         (calc_eclosure_iter, parse_bracket_exp):
76865         Use bool for internal variables that are booleans.
76866         * lib/regexec.c (re_search_internal, check_matching,
76867         proceed_next_node):
76868         (set_regs, build_sifted_states, sift_states_bkref):
76869         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
76870         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76871         (find_collation_sequence_value):
76872         Likewise.
76873         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
76874         (re_node_set_compare):
76875         Return bool, not int. All callers changed.
76876         * lib/regexec.c (check_halt_node_context, check_dst_limits):
76877         (build_trtable, check_node_accept): Likewise.
76878         * lib/regex_internal.h: Include stdbool.h.
76879
76880         Fix bugs uncovered when converting to bool.
76881         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
76882         failure instead of charging ahead blindly.
76883         * lib/regex_internal.c (register_state): Likewise.
76884         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
76885         for freeing internal storage.
76886         (group_nodes_into_DFA_states): Use unsigned int, not int, for
76887         bitset pieces used as boolean, to avoid undefined behavior
76888         on hosts that do int overflow checking.
76889
76890 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76891
76892         * config/srclist.txt: Add glibc bugs 1285-1287.
76893
76894 2005-09-01  Jim Meyering  <jim@meyering.net>
76895
76896         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
76897         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
76898         Require gl_STAT_MACROS, too.
76899
76900 2005-09-01  Bruno Haible  <bruno@clisp.org>
76901
76902         * gnulib-tool (import): In the first-use case, provide defaults.
76903
76904 2005-09-01  Bruno Haible  <bruno@clisp.org>
76905
76906         * gnulib-tool (func_import): Remove the .tmp files.
76907
76908 2005-09-01  Bruno Haible  <bruno@clisp.org>
76909
76910         * gnulib-tool (func_import): Fix handling of symbolic links.
76911
76912 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76913
76914         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
76915         old glibc regex code mishandles strings longer than 2**31 bytes.
76916         This patch fixes this when the regex code is used in gnulib
76917         (i.e., outside glibc).
76918
76919         This patch should not affect the use of the regex code inside
76920         glibc.  No doubt this problem also needs to be handled for glibc
76921         as well, but the result will be an incompatible change to the
76922         glibc ABI, and the old ABI will have to be supported too.  That
76923         can be the the subject for another patch.
76924
76925         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
76926         governing whether the rest of this patch is active.  By default,
76927         the macro is disabled and the patch has no effect.
76928         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
76929         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
76930         (struct re_pattern_buffer, re_search, re_search_2, re_match):
76931         (re_match_2, re_set_registers): Use the new types.
76932         * lib/regex_internal.h (Idx, re_hashval_t): New types.
76933         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
76934         New macros.
76935         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
76936         (re_string_context_at, bin_tree_t, re_dfastate_t):
76937         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
76938         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
76939         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
76940         (re_string_char_size_at, re_string_wchar_at):
76941         (re_string_elem_size_at):
76942         Use the new types and macros to port to 64-bit hosts.
76943         Use unsigned types for internal values, so that the code
76944         mostly works even for arrays larger than SSIZE_MAX.
76945         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
76946         (search_duplicated_node, calc_eclosure_iter, fetch_number):
76947         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
76948         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
76949         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
76950         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
76951         (calc_inveclosure, parse_dup_op, build_range_exp):
76952         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
76953         (fetch_number, create_token_tree, mark_opt_subexp):
76954         Likewise.
76955         * lib/regex_internal.c (re_string_construct_common,
76956         create_ci_newstate):
76957         (create_cd_newstate, re_string_allocate, re_string_construct):
76958         (re_string_realloc_buffers, build_wcs_upper_buffer):
76959         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76960         (re_string_reconstruct, re_string_peek_byte_case):
76961         (re_string_fetch_byte_case, re_string_context_at):
76962         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76963         (re_node_set_init_copy, re_node_set_add_intersect):
76964         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76965         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76966         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76967         (re_acquire_state, re_acquire_state_context, register_state):
76968         Likewise.
76969         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
76970         search_cur_bkref_entry):
76971         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
76972         (re_search_internal, re_search_2_stub, re_search_stub)
76973         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
76974         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
76975         (update_cur_sifted_state, check_dst_limits):
76976         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76977         (check_subexp_limits, sift_states_bkref, merge_state_array):
76978         (check_subexp_matching_top, get_subexp, get_subexp_sub):
76979         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
76980         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76981         (expand_bkref_cache, check_node_accept_bytes):
76982         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
76983         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
76984         (acquire_init_state_context, check_halt_node_context):
76985         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
76986         (sift_states_backward, clean_state_log_if_needed):
76987         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
76988         (find_recover_state, transit_state_sb, transit_state_mb):
76989         (transit_state_bkref, build_trtable, match_ctx_clean):
76990         Likewise.
76991         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
76992         to work around an assumption that REG_MISSING is negative.
76993
76994         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
76995         (seek_collating_symbol_entry) [defined _LIBC]:
76996         (lookup_collation_sequence_value) [defined _LIBC]:
76997         (build_range_exp, build_collating_symbol) [defined _LIBC]:
76998         Use prototypes rather than old-style function definitions.
76999         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
77000         (transit_state_sb) [0]:
77001         (find_collation_sequence_value) [defined _LIBC]: Likewise.
77002
77003         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
77004         rm_eo.
77005
77006         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
77007         (optimize_subexps, lower_subexp):
77008         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
77009         since the signed shift might overflow.  Use 1u<<31 instead.
77010         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
77011         Likewise.
77012         * lib/regexec.c (check_dst_limits_calc_pos_1,
77013         check_subexp_matching_top): Likewise.
77014
77015         * lib/regcomp.c (optimize_subexps, lower_subexp):
77016         Use CHAR_BIT rather than 8, for clarity.
77017         * lib/regexec.c (check_dst_limits_calc_pos_1):
77018         (check_subexp_matching_top): Likewise.
77019         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
77020         have to worry about portability issues when shifting it left.
77021         Remove no-longer-needed test for table_size > 0.
77022         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
77023         in a word, as the resulting behavior is undefined.
77024         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
77025         in one case, a <= should have been an <, and in another case the
77026         whole test was missing.
77027         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
77028         the standard name CHAR_BIT.
77029         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
77030         this is not true on one's complement and signed-magnitude hosts.
77031
77032         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
77033         next_last_offset.
77034         (struct re_dfa_t): Remove unused member states_alloc.
77035         * lib/regcomp.c (init_dfa): Don't initialize unused members.
77036
77037 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77038
77039         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
77040         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
77041         and large-file glibc and in 32-bit large-file Solaris.
77042
77043 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77044
77045         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
77046         lengths fit in regoff_t; this isn't true if regoff_t is the same
77047         width as size_t.
77048         * lib/regex.c (re_search_internal): 5th arg is LAST_START
77049         (= START + RANGE) instead of RANGE.  This avoids overflow
77050         problems when regoff_t is the same width as size_t.
77051         All callers changed.
77052         (re_search_2_stub): Check for overflow when adding the
77053         sizes of the two strings.
77054         (re_search_stub): Check for overflow when adding START
77055         to RANGE; if it occurs, substitute the extreme value.
77056
77057 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77058
77059         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
77060
77061 2005-08-31  Jim Meyering  <jim@meyering.net>
77062
77063         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
77064         a pointer-to-const.
77065         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
77066         (register_state): Likewise.
77067         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
77068         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
77069         (group_nodes_into_DFAstates): Likewise.
77070
77071 2005-08-31  Jim Meyering  <jim@meyering.net>
77072
77073         * check-module: Add a FIXME comment.
77074
77075 2005-08-31  Eric Blake  <ebb9@byu.net>
77076
77077         * modules/unistd-safer (Files): Add unistd--.h.
77078         * modules/stdio-safer (Files): Add stdio--.h.
77079
77080 2005-08-31  Derek Price  <derek@ximbiot.com>
77081
77082         * lib/getdelim.c (getdelim): Return EOF on EOF.
77083         Reported by Larry Jones <lawrence.jones@ugs.com>.
77084
77085 2005-08-31  Bruno Haible  <bruno@clisp.org>
77086
77087         Avoid unnecessary diffs in the generated lib/Makefile.am.
77088         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
77089         the generated files.
77090         (func_import): Don't set cmd.
77091
77092 2005-08-31  Bruno Haible  <bruno@clisp.org>
77093
77094         * lib/strstr.c: Include <stddef.h>, for NULL.
77095         * lib/strcasestr.c: Likewise.
77096         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77097
77098 2005-08-31  Bruno Haible  <bruno@clisp.org>
77099
77100         * gnulib-tool: New option --macro-prefix.
77101         (func_import): Use macro_prefix.
77102         (import): Handle option --macro-prefix.
77103
77104 2005-08-31  Bruno Haible  <bruno@clisp.org>
77105
77106         * gnulib-tool (import): Rename most ac_* variables to cached_*.
77107         Also use new variables cached_lgpl, cached_libtool.
77108
77109 2005-08-31  Bruno Haible  <bruno@clisp.org>
77110
77111         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
77112         always instantiating them.
77113
77114 2005-08-31  Bruno Haible  <bruno@clisp.org>
77115
77116         * gnulib-tool (func_import): Read the previous cached settings
77117         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
77118         earlier added by gnulib but are now dropped. Warn when a gnulib file
77119         overwrites a non-gnulib file.
77120
77121 2005-08-31  Bruno Haible  <bruno@clisp.org>
77122
77123         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
77124         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
77125         projects that don't keep autogenerated files in CVS. Put into
77126         actioncmd only the specified modules, not the transitive closure.
77127
77128 2005-08-31  Bruno Haible  <bruno@clisp.org>
77129
77130         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
77131         Create directories that shall be filled.
77132         (import): Don't look for gl_* macros in configure.ac. Recurse across
77133         all directories containing a gnulib-cache.m4 files, if meaningful.
77134
77135 2005-08-31  Bruno Haible  <bruno@clisp.org>
77136
77137         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
77138         (import): Set seen_libtool when we see gl_LIBTOOL.
77139
77140 2005-08-31  Bruno Haible  <bruno@clisp.org>
77141
77142         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
77143         declaration macro definitions from generated gnulib.m4.
77144
77145 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
77146
77147         * lib/iconvme.h: Add prototype for iconv_alloc.
77148
77149 2005-08-29  Simon Josefsson  <jas@extundo.com>
77150
77151         * lib/iconvme.c: Fix errno.
77152
77153 2005-08-29  Bruno Haible  <bruno@clisp.org>
77154
77155         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
77156         that it works when the directory contains spaces.
77157
77158 2005-08-29  Bruno Haible  <bruno@clisp.org>
77159
77160         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
77161
77162 2005-08-29  Bruno Haible  <bruno@clisp.org>
77163
77164         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
77165         Emit more advice.
77166
77167 2005-08-29  Bruno Haible  <bruno@clisp.org>
77168         and Stepan Kasal  <kasal@ucw.cz>
77169
77170         * check-module: If more parameters are given, check each of them
77171         separately; add more exceptions, as noted by Jim Meyering.
77172         (check_module): New procedure.
77173         (%exempt_header): Now contains all exceptions.
77174
77175 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
77176
77177         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
77178
77179 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
77180
77181         * lib/iconvme.c: Split iconv_string into iconv_alloc.
77182
77183 2005-08-28  Bruno Haible  <bruno@clisp.org>
77184
77185         * m4/gnulib-tool.m4: New file.
77186
77187 2005-08-27  Jim Meyering  <jim@meyering.net>
77188
77189         * modules/unistd-safer (Files): Add pipe-safer.c.
77190         * modules/fcntl-safer (Files): Add creat-safer.c.
77191
77192 2005-08-27  Jim Meyering  <jim@meyering.net>
77193
77194         * m4/stdlib-safer.m4: New file.  From coreutils.
77195         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
77196         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
77197         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
77198         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
77199         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
77200
77201 2005-08-27  Jim Meyering  <jim@meyering.net>
77202
77203         * lib/fopen-safer.c: Merge minor changes from coreutils.
77204         * lib/dup-safer.c: Likewise.
77205         * lib/fd-safer.c: Likewise.
77206
77207         Merge from coreutils.
77208         * lib/stdio--.h: New file.
77209         * lib/stdlib--.h: New file.
77210         * lib/mkstemp-safer.c: New file.
77211
77212         GNU tar needs these.
77213         * lib/pipe-safer.c: New file.
77214         * lib/creat-safer.c: New file.
77215         * lib/fcntl--.h (creat): Define to creat_safer.
77216         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
77217         * lib/unistd--.h (pipe): Define to pipe_safer.
77218         * lib/unistd-safer.h: Declare pipe_safer.
77219
77220 2005-08-26  Simon Josefsson  <jas@extundo.com>
77221
77222         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
77223         Haible <bruno@clisp.org>.
77224
77225 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
77226
77227         * lib/regex_internal.h: Remove all references to
77228         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
77229         or better.
77230         (bitset_not, bitset_merge, bitset_not_merge):
77231         (bitset_mask, re_string_allocate, re_string_construct):
77232         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
77233         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
77234         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
77235         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
77236         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77237         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77238         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
77239         (re_acquire_state_context):
77240         Remove unnecessary forward decls.
77241         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
77242         Put __attribute at function definition,
77243         now that the function decl has been removed.
77244         * lib/regex_internal.c (re_string_peek_byte_case):
77245         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
77246         Likewise.
77247
77248 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
77249
77250         * m4/regex.m4: Add AC_PREREQ(2.50).
77251         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
77252
77253 2005-08-25  Simon Josefsson  <jas@extundo.com>
77254
77255         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
77256         __fsetlocking.
77257
77258 2005-08-25  Simon Josefsson  <jas@extundo.com>
77259
77260         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
77261         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
77262         GLIBC specific code.
77263
77264 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77265
77266         Make regex safe for g++.  This fixes one real bug (an "err"
77267         that should have been "*err").  g++ problem reported by
77268         Sam Steingold.
77269         * lib/regex_internal.h (re_calloc): New macro, consistent with
77270         re_malloc etc.  All callers of calloc changed to use re_calloc.
77271         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
77272         not int.  All callers changed.
77273         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
77274         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
77275         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
77276         (find_recover_state): Change "err" to "*err"; this fixes what
77277         appears to be a real bug.
77278         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
77279         versus int.
77280
77281 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77282
77283         * modules/regex (Depends-on): Add malloc, since the code
77284         assumes that !malloc(0) means failure.
77285
77286 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77287
77288         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
77289
77290         alloca modernization/simplification for regex.
77291         * lib/regex.c: Remove portability cruft for alloca.  This no longer
77292         needs to be at the start of the file, and can be moved into
77293         regex_internal.h and simplified.
77294         * lib/regex_internal.h: Include <alloca.h>.
77295         (__libc_use_alloca) [!defined _LIBC]: New macro.
77296         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
77297         now works outside glibc.
77298
77299 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77300
77301         * config/srclist.txt: Add glibc bugs 1241, 1245.
77302
77303 2005-08-25  Jim Meyering  <jim@meyering.net>
77304
77305         * lib/open-safer.c: Include <config.h>.
77306         Otherwise, we'd lose LARGEFILE support in any file using
77307         e.g. "fcntl--.h"
77308
77309 2005-08-25  Bruno Haible  <bruno@clisp.org>
77310
77311         * m4/minmax.m4: Require autoconf 2.52.
77312         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
77313         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
77314         alternatives of translit over the alphabet.
77315         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
77316
77317 2005-08-24  Simon Josefsson  <jas@extundo.com>
77318
77319         * tests/test-getpass.c: New file.
77320
77321 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77322
77323         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
77324         for GNU regex features.
77325
77326 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77327
77328         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
77329         * lib/regex.h (regerror): Likewise.
77330
77331         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
77332         requires this.  (The code never needed it.)
77333
77334         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
77335         All uses of recently-renamed identifiers changed to use the new,
77336         POSIX-compliant names.  The code will build and run just fine
77337         without these changes, but it's better to eat our own dog food
77338         and use the standard-conforming names.
77339
77340         * lib/regex.h: Fix a multitude of POSIX name space violations.
77341         These changes have an effect only for programs that define
77342         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
77343         do not change anything for programs compiled in the normal way.
77344         Also, there is no effect on the ABI.
77345
77346         (_REGEX_SOURCE): New macro.
77347         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
77348         defined and _GNU_SOURCE is not; this fixes a name space violation.
77349
77350         Rename the following macros to obey POSIX requirements.
77351         The old names are still visible as macros if _REGEX_SOURCE is defined.
77352         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
77353         RE_BACKSLASH_ESCAPE_IN_LISTS.
77354         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
77355         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
77356         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
77357         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
77358         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
77359         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
77360         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
77361         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
77362         (REG_INTERVALS): renamed from RE_INTERVALS.
77363         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
77364         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
77365         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
77366         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
77367         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
77368         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
77369         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
77370         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
77371         RE_UNMATCHED_RIGHT_PAREN_ORD.
77372         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
77373         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
77374         (REG_DEBUG): renamed from RE_DEBUG.
77375         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
77376         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
77377         unusual, since we can't clash with the POSIX REG_ICASE.
77378         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
77379         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
77380         (REG_NO_SUB): renamed from RE_NO_SUB.
77381         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
77382         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
77383         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
77384         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
77385         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
77386         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
77387         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
77388         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
77389         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
77390         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
77391         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
77392         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
77393         RE_SYNTAX_POSIX_MINIMAL_BASIC.
77394         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
77395         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
77396         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
77397         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
77398         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
77399         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
77400         (REG_FIXED): Renamed from REGS_FIXED.
77401         (REG_NREGS): Renamed from RE_NREGS.
77402
77403         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
77404         of other REG_* macros, since POSIX says the user is allowed to
77405         #undef these macros selectively.
77406
77407         (reg_errcode_t): Update comment stating what other tables need
77408         to be consistent.
77409
77410         Rename the following enum values to obey POSIX requirements.
77411         The old names are still visible as macros.
77412         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
77413         is not defined, since GNU is supposed to be a superset of POSIX as
77414         much as possible, and since we want reg_errcode_t to be a signed
77415         type for implementation consistency.
77416         (_REG_NOERROR): Renamed from REG_NOERROR.
77417         (_REG_NOMATCH): Renamed from REG_NOMATCH.
77418         (_REG_BADPAT): Renamed from REG_BADPAT.
77419         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
77420         (_REG_ECTYPE): Renamed from REG_ECTYPE.
77421         (_REG_EESCAPE): Renamed from REG_EESCAPE.
77422         (_REG_ESUBREG): Renamed from REG_ESUBREG.
77423         (_REG_EBRACK): Renamed from REG_EBRACK.
77424         (_REG_EPAREN): Renamed from REG_EPAREN.
77425         (_REG_EBRACE): Renamed from REG_EBRACE.
77426         (_REG_BADBR): Renamed from REG_BADBR.
77427         (_REG_ERANGE): Renamed from REG_ERANGE.
77428         (_REG_ESPACE): Renamed from REG_ESPACE.
77429         (_REG_BADRPT): Renamed from REG_BADRPT.
77430         (_REG_EEND): Renamed from REG_EEND.
77431         (_REG_ESIZE): Renamed from REG_ESIZE.
77432         (_REG_ERPAREN): Renamed from REG_ERPAREN.
77433         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
77434         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
77435         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
77436         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
77437
77438         (_REG_RE_NAME, _REG_RM_NAME): New macros.
77439         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
77440         changed.  But support the old name if the new one is not defined
77441         and if _REGEX_SOURCE.
77442
77443         Change the following member names in struct re_pattern_buffer.
77444         The old names are still supported if !_REGEX_SOURCE.
77445         The new names are always supported, regardless of _REGEX_SOURCE.
77446         (re_buffer): Renamed from buffer.
77447         (re_allocated): Renamed from allocated.
77448         (re_used): Renamed from used.
77449         (re_syntax): Renamed from syntax.
77450         (re_fastmap): Renamed from fastmap.
77451         (re_translate): Renamed from translate.
77452         (re_can_be_null): Renamed from can_be_null.
77453         (re_regs_allocated): Renamed from regs_allocated.
77454         (re_fastmap_accurate): Renamed from fastmap_accurate.
77455         (re_no_sub): Renamed from no_sub.
77456         (re_not_bol): Renamed from not_bol.
77457         (re_not_eol): Renamed from not_eol.
77458         (re_newline_anchor): Renamed from newline_anchor.
77459
77460         Change the following member names in struct re_registers.
77461         The old names are still supported if !_REGEX_SOURCE.
77462         The new names are always supported, regardless of _REGEX_SOURCE.
77463         (rm_num_regs): Renamed from num_regs.
77464         (rm_start): Renamed from start.
77465         (rm_end): Renamed from end.
77466
77467         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
77468         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
77469         Prepend __ to parameter names.
77470
77471         Undo yesterday's changes.
77472
77473 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77474
77475         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
77476         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
77477         lib/regex.c.
77478
77479 2005-08-24  Jim Meyering  <jim@meyering.net>
77480
77481         Sync from coreutils.
77482         * m4/fcntl-safer.m4: New file.
77483
77484         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
77485         and object files for this module.
77486
77487 2005-08-24  Jim Meyering  <jim@meyering.net>
77488
77489         Sync from coreutils.
77490         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
77491
77492 2005-08-24  Jim Meyering  <jim@meyering.net>
77493
77494         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
77495         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
77496
77497 2005-08-24  Jim Meyering  <jim@meyering.net>
77498
77499         * modules/fcntl-safer: New module.
77500         * modules/fts (Depends-on): Add fcntl-safer.
77501         * MODULES.html.sh (File descriptor based Input/Output):
77502         Add fcntl-safer.
77503
77504 2005-08-24  Bruno Haible  <bruno@clisp.org>
77505
77506         Support for unit test modules.
77507         * modules/README: Mention tests modules.
77508         * modules/TEMPLATE-TESTS: New file.
77509         * gnulib-tool: New options --extract-tests-module, --with-tests and
77510         --tests-base (unused for the moment).
77511         (testsbase, inctests): New variables.
77512         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
77513         (func_verify_module): Exclude TEMPLATE-TESTS.
77514         (func_verify_nontests_module, func_verify_tests_module): New functions.
77515         (func_get_dependencies): Add implicit dependency for tests modules.
77516         (func_get_tests_module): New function.
77517         (func_modules_transitive_closure): When --with-tests was specified,
77518         include the unit tests as well, unless explicitly avoided.
77519         (func_emit_lib_Makefile_am): Ignore the tests modules here.
77520         (func_emit_tests_Makefile_am): New function.
77521         (func_create_testdir): When --with-tests was specified, emit a
77522         tests/ directory.
77523         * MODULES.html.sh (Future developments): Update.
77524
77525 2005-08-24  Bruno Haible  <bruno@clisp.org>
77526
77527         * modules/tls-tests: New file.
77528         * tests/test-tls.c: New file, from GNU gettext.
77529
77530 2005-08-24  Bruno Haible  <bruno@clisp.org>
77531
77532         * modules/lock-tests: New file.
77533         * tests/test-lock.c: New file, from GNU gettext.
77534
77535 2005-08-24  Bruno Haible  <bruno@clisp.org>
77536
77537         * lib/lock.h: Add multiple inclusion guard.
77538         * lib/tls.h: Add multiple inclusion guard.
77539
77540 2005-08-24  Bruno Haible  <bruno@clisp.org>
77541
77542         * gnulib-tool: Add support for the --aux-dir option to
77543         --create-testdir, --create-megatestdir, --test, --megatest.
77544         (func_create_testdir, func_create_megatestdir): Optionally emit a
77545         AC_CONFIG_AUX_DIR directive.
77546         (create-testdir, create-megatestdir, test, megatest): Provide a
77547         default value for $auxdir.
77548
77549 2005-08-24  Bruno Haible  <bruno@clisp.org>
77550
77551         * gnulib-tool (import): Use compound statement instead of subshell
77552         where possible.
77553
77554 2005-08-24  Bruno Haible  <bruno@clisp.org>
77555
77556         * gnulib-tool (import): Change --aux-dir default to "build-aux".
77557
77558 2005-08-24  Bruno Haible  <bruno@clisp.org>
77559
77560         * gnulib-tool (func_version): Update.
77561
77562 2005-08-24  Bruno Haible  <bruno@clisp.org>
77563
77564         * gnulib-tool (func_import, func_create_testdir,
77565         func_create_megatestdir): Quote all autoconf macro arguments.
77566
77567 2005-08-24  Bruno Haible  <bruno@clisp.org>
77568
77569         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
77570         option --force, because --force causes the aclocal.m4 of each
77571         subdirectory to be newer than the corresponding config.h.in.
77572
77573 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77574
77575         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
77576         All contents moved to gl_REGEX.
77577         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
77578         assume that it does.
77579
77580 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77581
77582         * lib/regex.h (REG_NOSYS)
77583         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
77584         Define, since POSIX requires it as of 2001.
77585         (_REG_ENOSYS)
77586         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
77587         New private symbol, used to keep the enum signed in all cases.
77588         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
77589         Youngman in
77590         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
77591
77592         * lib/regex_internal.c (re_string_skip_chars, register_state):
77593         (calc_state_hash):
77594         Remove forward decls; no longer needed now that we use prototypes.
77595         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
77596         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
77597         (clean_state_log_if_needed): Likewise.
77598
77599 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77600
77601         * config/srclist.txt: Add glibc bugs 1231-1233.
77602
77603 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77604
77605         Fix problems reported by Sam Steingold in
77606         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
77607         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
77608         assumed that reg_errcode_t is a signed type, which is not
77609         necessarily true if _XOPEN_SOURCE is not defined.
77610         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
77611         since some compilers warn about it otherwise.
77612
77613 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77614
77615         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
77616         (init_word_char, create_initial_state, duplicate_node_closure):
77617         (fetch_token, peek_token_bracket, build_range_exp):
77618         (build_collating_symbol): Remove forward decls; no longer needed
77619         now that we use prototypes.
77620
77621         * lib/regcomp.c:
77622         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
77623         (re_compile_fastmap_iter, regcomp, regerror, regfree):
77624         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
77625         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
77626         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
77627         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
77628         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
77629         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
77630         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
77631         (build_range_exp, build_collating_symbol, parse_bracket_exp):
77632         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
77633         (build_charclass, build_charclass_op, fetch_number, create_tree):
77634         (create_token_tree, mark_opt_subexp, duplicate_tree):
77635         Use prototypes rather than old-style definitions.
77636
77637         * lib/regex_internal.c:
77638         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
77639         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
77640         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
77641         (re_string_reconstruct, re_string_peek_byte_case):
77642         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
77643         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
77644         (re_node_set_init_copy, re_node_set_add_intersect):
77645         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77646         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77647         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
77648         (re_acquire_state, re_acquire_state_context, register_state):
77649         (create_ci_newstate, create_cd_newstate, free_state):
77650         Likewise.
77651         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
77652         re_search_2):
77653         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
77654         (re_search_internal, prune_impossible_nodes):
77655         (acquire_init_state_context, check_matching, static):
77656         (check_halt_node_context, check_halt_state_context, proceed_next_node):
77657         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
77658         (update_regs, sift_states_backward, build_sifted_states):
77659         (clean_state_log_if_needed, merge_state_array):
77660         (update_cur_sifted_state, add_epsilon_src_nodes):
77661         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
77662         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
77663         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
77664         (find_recover_state, check_subexp_matching_top, transit_state_mb):
77665         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
77666         (check_arrival, check_arrival_add_next_nodes):
77667         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
77668         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
77669         (check_node_accept_bytes, check_node_accept, extend_buffers):
77670         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
77671         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
77672         (sift_ctx_init):
77673         Likewise.
77674
77675         * lib/regex_internal.h:
77676         (re_string_allocate, re_string_construct, re_string_reconstruct):
77677         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
77678         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
77679         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
77680         (re_string_context_at, re_string_peek_byte_case):
77681         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
77682         is defined, since we now use prototypes always.
77683
77684         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
77685         C89 or better.  All uses removed.
77686
77687 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77688
77689         * config/srclist.txt: Add glibc bugs 1220-1227.
77690
77691 2005-08-20  Jim Meyering  <jim@meyering.net>
77692
77693         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
77694         of unused local, dfa.
77695
77696 2005-08-20  Bruno Haible  <bruno@clisp.org>
77697
77698         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
77699
77700 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77701
77702         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
77703         (re_node_set_insert_last, re_dfa_add_node):
77704         Rename local variables to avoid GCC shadowing warnings.
77705
77706 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77707
77708         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
77709         [defined lint]: Suppress bogus uninitialized-variable warnings.
77710
77711         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
77712         and let the caller return REG_ESPACE if out of space.  This
77713         removes an uninitialied-variable warning with GCC 4.0.1, and also
77714         avoids taking the address of a local variable.  All callers
77715         changed.
77716
77717 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77718
77719         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
77720         $LIBCSRC/posix/regexec.c.
77721         Add glibc bug 1217 for regcomp.c.
77722
77723 2005-08-19  Jim Meyering  <jim@meyering.net>
77724
77725         * lib/regexec.c (proceed_next_node): Redo local variables to
77726         avoid GCC shadowing warnings.
77727
77728 2005-08-18  Bruno Haible  <bruno@clisp.org>
77729
77730         * lib/strstr.c (strstr): Fix return value in multibyte case.
77731         * lib/strcasestr.c (strcasestr): Likewise.
77732
77733 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77734
77735         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
77736
77737 2005-08-17  Jim Meyering  <jim@meyering.net>
77738
77739         Make the %s format (seconds since the epoch) work for a negative
77740         number and when used with a zero-padded field width, e.g. %015s.
77741
77742         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
77743         label so that it precedes the code to set `digits'.  Otherwise,
77744         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
77745         print `00-22'.  Now, it prints `-0022', as it should.
77746
77747 2005-08-17  Bruno Haible  <bruno@clisp.org>
77748
77749         * modules/strstr (Files): Add m4/mbrtowc.m4.
77750         (Depends-on): Add mbuiter.
77751
77752 2005-08-17  Bruno Haible  <bruno@clisp.org>
77753
77754         * modules/strcasestr: New file.
77755         * MODULES.html.sh (String handling, based on ANSI C 89): Add
77756         strcasestr.
77757
77758 2005-08-17  Bruno Haible  <bruno@clisp.org>
77759
77760         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
77761
77762 2005-08-17  Bruno Haible  <bruno@clisp.org>
77763
77764         * modules/mbuiter: New file.
77765         * MODULES.html.sh (Extended multibyte and wide character utilities):
77766         Add mbuiter.
77767
77768 2005-08-17  Bruno Haible  <bruno@clisp.org>
77769
77770         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
77771         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
77772
77773 2005-08-17  Bruno Haible  <bruno@clisp.org>
77774
77775         * m4/strcasestr.m4: New file.
77776
77777 2005-08-17  Bruno Haible  <bruno@clisp.org>
77778
77779         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
77780         * lib/strstr.c: Completely rewritten, with multibyte locale support.
77781
77782 2005-08-17  Bruno Haible  <bruno@clisp.org>
77783
77784         * lib/strcasestr.h: New file.
77785         * lib/strcasestr.c: New file.
77786
77787 2005-08-17  Bruno Haible  <bruno@clisp.org>
77788
77789         * lib/strcasecmp.c: Use mbuiter.h.
77790
77791 2005-08-17  Bruno Haible  <bruno@clisp.org>
77792
77793         * lib/mbuiter.h: New file.
77794
77795 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
77796
77797         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
77798         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
77799         and gl_GETOPT are both invoked via different paths (as happens
77800         with GNU tar CVS because it uses both argp and getopt), the former
77801         wins.
77802
77803 2005-08-16  Bruno Haible  <bruno@clisp.org>
77804
77805         * modules/tls: New file.
77806         * MODULES.html.sh (Multithreading): Add tls.
77807
77808 2005-08-16  Bruno Haible  <bruno@clisp.org>
77809
77810         * modules/strnlen1: New file.
77811         * MODULES.html.sh (String handling): Add strnlen1.
77812
77813 2005-08-16  Bruno Haible  <bruno@clisp.org>
77814
77815         * modules/strcase (Files): Add m4/mbrtowc.m4.
77816         (Depends-on): Add strnlen1, mbchar.
77817
77818 2005-08-16  Bruno Haible  <bruno@clisp.org>
77819
77820         * modules/mbiter: New file.
77821         * MODULES.html.sh (Extended multibyte and wide character utilities):
77822         Add mbiter.
77823
77824 2005-08-16  Bruno Haible  <bruno@clisp.org>
77825
77826         * modules/mbfile: New file.
77827         * MODULES.html.sh (Extended multibyte and wide character utilities):
77828         Add mbfile.
77829
77830 2005-08-16  Bruno Haible  <bruno@clisp.org>
77831
77832         * modules/mbchar: New file.
77833         * MODULES.html.sh (Extended multibyte and wide character utilities):
77834         New section.
77835
77836 2005-08-16  Bruno Haible  <bruno@clisp.org>
77837
77838         * m4/tls.m4: New file, from GNU gettext.
77839
77840 2005-08-16  Bruno Haible  <bruno@clisp.org>
77841
77842         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
77843         always.
77844         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
77845
77846 2005-08-16  Bruno Haible  <bruno@clisp.org>
77847
77848         * m4/mbiter.m4: New file.
77849
77850 2005-08-16  Bruno Haible  <bruno@clisp.org>
77851
77852         * m4/mbfile.m4: New file.
77853
77854 2005-08-16  Bruno Haible  <bruno@clisp.org>
77855
77856         * m4/mbchar.m4: New file.
77857
77858 2005-08-16  Bruno Haible  <bruno@clisp.org>
77859
77860         * lib/tls.h: New file, from GNU gettext.
77861         * lib/tls.c: New file, from GNU gettext.
77862
77863 2005-08-16  Bruno Haible  <bruno@clisp.org>
77864
77865         * lib/strnlen1.h: New file.
77866         * lib/strnlen1.c: New file.
77867
77868 2005-08-16  Bruno Haible  <bruno@clisp.org>
77869
77870         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
77871         (mbi_init): Update.
77872         (mbi_avail, mbi_advance): Let the iteration end before the terminating
77873         NUL byte, not after it.
77874
77875 2005-08-16  Bruno Haible  <bruno@clisp.org>
77876
77877         * lib/strcase.h (strcasecmp): Add note in comments.
77878         * lib/strncasecmp.c: Use code from strcasecmp.c.
77879         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
77880         (strcasecmp): Work correctly in multibyte locales.
77881
77882 2005-08-16  Bruno Haible  <bruno@clisp.org>
77883
77884         * lib/mbiter.h: New file.
77885
77886 2005-08-16  Bruno Haible  <bruno@clisp.org>
77887
77888         * lib/mbfile.h: New file.
77889
77890 2005-08-16  Bruno Haible  <bruno@clisp.org>
77891
77892         * lib/mbchar.h: New file.
77893         * lib/mbchar.c: New file.
77894
77895 2005-08-16  Bruno Haible  <bruno@clisp.org>
77896
77897         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
77898         the valid ones. Makes the comparison operations transitive:
77899         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
77900         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
77901
77902 2005-08-15  Simon Josefsson  <jas@extundo.com>
77903
77904         * modules/ssize_t (License): Change to 'unlimited'.
77905
77906         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
77907
77908 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77909
77910         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
77911         Add comments for each pending glibc patch.
77912
77913 2005-08-15  Bruno Haible  <bruno@clisp.org>
77914
77915         * lib/regex.h (__restrict_arr): Don't define to __restrict if
77916         __cplusplus is defined.
77917
77918 2005-08-14  Jim Meyering  <jim@meyering.net>
77919
77920         Sync from coreutils.
77921
77922         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
77923         Use the hash-table-based cycle-detection code not just when
77924         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
77925         Reported by James Youngman in
77926         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
77927         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
77928         FTS_TIGHT_CYCLE_CHECK.
77929         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
77930         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
77931         once again.
77932         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
77933         * lib/fts.c (fd_safer): Remove decl.
77934         Include fcntl--.h rather than unistd-safer.h
77935         (fts_safe_changedir): Don't call fd_safer; no longer needed
77936         now that we include fcntl--.h.
77937
77938 2005-08-12  Simon Josefsson  <jas@extundo.com>
77939
77940         * modules/getndelim2: Use ssize_t module.
77941         * modules/getnline: Likewise.
77942         * modules/safe-read: Likewise.
77943         * modules/xreadlink: Likewise.
77944
77945         * modules/ssize_t: New file.
77946
77947 2005-08-12  Simon Josefsson  <jas@extundo.com>
77948
77949         * m4/readline.m4: Look for termcap, curses or ncurses if required.
77950
77951 2005-08-12  Simon Josefsson  <jas@extundo.com>
77952
77953         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77954         ssize_t.
77955
77956 2005-08-12  Simon Josefsson  <jas@extundo.com>
77957
77958         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
77959         readline, getdelim and check_version.
77960         (Support for systems lacking ISO C 99: Sizes of integer types):
77961         Add size_max.
77962
77963 2005-08-12  Bruno Haible  <bruno@clisp.org>
77964
77965         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
77966
77967 2005-08-11  Simon Josefsson  <jas@extundo.com>
77968
77969         * modules/readline: New file.
77970
77971         * modules/strnlen (Files): Add strnlen.h.
77972
77973 2005-08-11  Simon Josefsson  <jas@extundo.com>
77974
77975         * m4/readline.m4: New file.
77976
77977 2005-08-11  Simon Josefsson  <jas@extundo.com>
77978
77979         * lib/readline.h, readline.c: New file.
77980
77981 2005-08-11  Simon Josefsson  <jas@extundo.com>
77982
77983         * doc/gnulib.texi (Initial import, Finishing touches): Mention
77984         gl_AVOID.
77985
77986 2005-08-11  Bruno Haible  <bruno@clisp.org>
77987
77988         * lib/strnlen.h (strnlen): Change parameter name to match comment.
77989
77990 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
77991
77992         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
77993
77994 2005-08-10  Simon Josefsson  <jas@extundo.com>
77995
77996         * tests/test-iconvme.c: New file.
77997
77998 2005-08-10  Simon Josefsson  <jas@extundo.com>
77999
78000         * m4/strnlen.m4: New file.
78001
78002         * m4/strndup.m4: Don't check for strnlen declaration, done in
78003         strnlen.m4.
78004
78005 2005-08-10  Simon Josefsson  <jas@extundo.com>
78006
78007         * lib/strndup.c: Use strnlen.h.
78008
78009         * lib/strnlen.h: New file.
78010
78011 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78012
78013         * README: Typos.
78014
78015 2005-08-02  Simon Josefsson  <jas@extundo.com>
78016
78017         * modules/readline: New file.
78018
78019 2005-08-02  Simon Josefsson  <jas@extundo.com>
78020
78021         * modules/getdelim: New file.
78022
78023         * modules/getline: Rewrite, don't use getndelim2.
78024
78025 2005-08-02  Simon Josefsson  <jas@extundo.com>
78026
78027         * m4/getline.m4: Separate out getdelim stuff into separate module.
78028
78029         * m4/getdelim.m4: New file.
78030
78031 2005-08-02  Simon Josefsson  <jas@extundo.com>
78032
78033         * lib/getline.h, getline.c: Rewrite.
78034
78035         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
78036
78037 2005-07-31  Bruno Haible  <bruno@clisp.org>
78038
78039         * lib/lock.h (gl_lock_initializer): New macro.
78040         (gl_lock_define_initialized): Use it.
78041         (gl_rwlock_initializer): New macro.
78042         (gl_rwlock_define_initialized): Use it.
78043         (gl_recursive_lock_initializer): New macro.
78044         (gl_recursive_lock_define_initialized): Use it.
78045
78046 2005-07-30  Karl Berry  <karl@gnu.org>
78047
78048         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
78049         Report from Ben Pfaff, regarding getopt.
78050
78051 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
78052
78053         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
78054         normal way.
78055         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
78056         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
78057         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
78058         (gl_GETOPT): Use the new macros.  Most of the implementation
78059         is moved to the new macros.  This is for programs like Emacs
78060         that don't want all the functionality of gl_GETOPT.
78061
78062 2005-07-26  Bruno Haible  <bruno@clisp.org>
78063
78064         * m4/lock.m4: Update from GNU gettext.
78065
78066 2005-07-26  Bruno Haible  <bruno@clisp.org>
78067
78068         * lib/lock.h: Update from GNU gettext.
78069         * lib/lock.c: Update from GNU gettext.
78070
78071 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
78072
78073         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
78074         obsolescent AC_TRY_RUN.  Include the default includes files, for
78075         'exit'.
78076
78077 2005-07-24  Bruno Haible  <bruno@clisp.org>
78078
78079         * modules/visibility: New file.
78080         * MODULES.html.sh (Misc): Add visibility.
78081
78082 2005-07-24  Bruno Haible  <bruno@clisp.org>
78083
78084         * m4/visibility.m4: New file.
78085
78086 2005-07-24  Bruno Haible  <bruno@clisp.org>
78087
78088         * doc/visibility.texi: New file.
78089
78090 2005-07-22  Bruno Haible  <bruno@clisp.org>
78091
78092         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
78093         $(ALLOCA_H), redundant through BUILT_SOURCES.
78094         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
78095         redundant through BUILT_SOURCES.
78096         * modules/byteswap (Makefile.am): Remove explicit dependency on
78097         $(BYTESWAP_H), redundant through BUILT_SOURCES.
78098         * modules/fnmatch (Makefile.am): Remove explicit dependency on
78099         $(FNMATCH_H), redundant through BUILT_SOURCES.
78100         * modules/getopt (Makefile.am): Remove explicit dependency on
78101         $(GETOPT_H), redundant through BUILT_SOURCES.
78102         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
78103         redundant through BUILT_SOURCES.
78104         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
78105         redundant through BUILT_SOURCES.
78106         * modules/stdbool (Makefile.am): Remove explicit dependency on
78107         $(STDBOOL_H), redundant through BUILT_SOURCES.
78108         * modules/stdint (Makefile.am): Remove explicit dependency on
78109         $(STDINT_H), redundant through BUILT_SOURCES.
78110         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
78111         Remove explicit dependency on $(SYSEXITS_H).
78112         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
78113
78114 2005-07-18  Simon Josefsson  <jas@extundo.com>
78115
78116         * lib/check-version.c (check_version): Accept identical versions too.
78117
78118 2005-07-18  Bruno Haible  <bruno@clisp.org>
78119
78120         * modules/lock: New file.
78121         * MODULES.html.sh (Multithreading): New section.
78122
78123 2005-07-18  Bruno Haible  <bruno@clisp.org>
78124
78125         * m4/lock.m4: New file, from GNU gettext.
78126
78127 2005-07-18  Bruno Haible  <bruno@clisp.org>
78128
78129         * lib/lock.h: New file, from GNU gettext.
78130         * lib/lock.c: New file, from GNU gettext.
78131
78132 2005-07-18  Bruno Haible  <bruno@clisp.org>
78133
78134         * lib/lock.h (gl_once_t): New type.
78135         (gl_once_define, gl_once): New macros.
78136         * lib/lock.c (fresh_once): New variable.
78137         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
78138         functions.
78139
78140 2005-07-16  Simon Josefsson  <jas@extundo.com>
78141
78142         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
78143         workaround, suggested by Bruno.
78144
78145 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
78146
78147         * modules/xalloc (Depends-on): Add xalloc-die.
78148         * modules/xvasprintf (Depends-on): Add xalloc-die.
78149
78150 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
78151
78152         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
78153         with a minor change.
78154
78155 2005-07-15  Bruno Haible  <bruno@clisp.org>
78156
78157         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
78158         When using lib/poll.c, define poll as rpl_poll.
78159
78160 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
78161
78162         * modules/argp (Depends-on): Remove unlocked-io.
78163
78164 2005-07-14  Derek Price  <derek@ximbiot.com>
78165
78166         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
78167         for glob symlink bug.
78168
78169 2005-07-14  Bruno Haible  <bruno@clisp.org>
78170
78171         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
78172         Instead, test for *_unlocked function declarations directly.
78173
78174 2005-07-11  Simon Josefsson  <jas@extundo.com>
78175
78176         * modules/size_max: New file.
78177
78178         * modules/xsize: Depend on size_max module for size_max.m4.
78179
78180 2005-07-11  Simon Josefsson  <jas@extundo.com>
78181
78182         * lib/size_max.h: New file.
78183
78184 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
78185
78186         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
78187         copyright symbol and the year.
78188         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
78189         (version_etc_va): Use parameterized copyright notice.
78190         Reword to conform to the current GNU coding standards.
78191
78192 2005-07-11  Karl Berry  <karl@gnu.org>
78193
78194         * doc/gnulib.texi (Quoting): new node.
78195         (Initial import): more info, from Patrice.
78196
78197 2005-07-11  Bruno Haible  <bruno@clisp.org>
78198
78199         * gnulib-tool (func_usage): Document option --avoid.
78200         (Command line options): Handle --avoid.
78201         (func_acceptable): New function.
78202         (func_modules_transitive_closure): Use it.
78203
78204 2005-07-11  Bruno Haible  <bruno@clisp.org>
78205
78206         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
78207         Reported by Jim Meyering.
78208
78209 2005-07-10  Bruno Haible  <bruno@clisp.org>
78210
78211         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
78212         Needed when size_t is smaller than 'unsigned int'.
78213         Reported by Paul Eggert.
78214
78215 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78216
78217         * modules/argp (Depends-on): Add unlocked-io
78218
78219 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78220
78221         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
78222         block of defines.
78223
78224 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
78225
78226         * config/srclist.txt: Comment out regcomp.c, since we have a porting
78227         fix now.
78228
78229 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
78230         and Paul Eggert  <eggert@cs.ucla.edu>
78231
78232         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
78233         in wint_t, not wchar_t.  Remove now-unnecessary cast.
78234
78235 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78236
78237         * modules/regex (Files): Add lib/regex_internal.c,
78238         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
78239         (Depends-on): Add extensions.
78240         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
78241
78242 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78243
78244         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
78245         pathconf.
78246         * m4/same.m4 (gl_SAME): Likewise.
78247         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
78248
78249         * m4/regex.m4: Adjust to new libc regex implementation.
78250         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
78251         all the .c and .h parts of (the new) regex.
78252         Quote the m4 stuff better.
78253         Check for RE_ICASE bug of old gnulib.
78254         Check for REG_STARTEND of recent libc.
78255         Rename local variables from jm_* to gl_*.
78256         Quote operand of "test -f".
78257         Say "recent enough" version of libc, not "version 2".
78258         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
78259         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
78260         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
78261         Remove check for btowc, isascii.
78262         Require AM_LANGINFO_CODESET.
78263
78264 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78265
78266         * lib/regex.c, regex.h: Sync from libc.
78267         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
78268         * lib/regexec.c:
78269         New files, synced from libc, except that regex_internal.h
78270         currently has a small porting fix.
78271
78272 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78273
78274         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
78275         regex_internal.c, regexec.c.
78276         Add regex_internal.h too, but as a comment, since the libc version
78277         is currently broken in gnulib mode.
78278
78279 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78280
78281         Support programs like Emacs that use gnulib but not gettext.
78282         * MODULES.html.sh (Internationalization functions): Add gettext-h.
78283         * modules/gettext-h: New file.
78284         * modules/gettext (Files): Remove lib/gettext.h.
78285         (Depends-on): Add gettext-h.
78286         (Makefile.am): Remove lib_SOURCES.
78287         * modules/argmatch, modules/c-stack, modules/closeout:
78288         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
78289         * modules/execute, modules/file-type, modules/getaddrinfo:
78290         * modules/getopt, modules/human, modules/javacomp:
78291         * modules/javaexec, modules/mkdir-p, modules/obstack:
78292         * modules/openat, modules/pagealign_alloc, modules/pipe:
78293         * modules/quotearg, modules/regex, modules/rpmatch:
78294         * modules/unicodeio, modules/userspec, modules/version-etc:
78295         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
78296         * modules/xsetenv:
78297         Depend on gettext-h, not gettext.
78298
78299 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78300
78301         * gnulib-tool (func_import): Add support for 'public domain' license.
78302         * modules/alloca, modules/atexit, modules/memmove:
78303         Now public domain, not GPL.
78304         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
78305         * modules/realloc, modules/strerror, modules/strtod:
78306         Now LGPL, not GPL.
78307
78308 2005-07-05  Bruno Haible  <bruno@clisp.org>
78309
78310         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
78311         autoconf CVS. Needed for mingw.
78312
78313 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78314
78315         Remove the dependency of the strftime module on the tzset module.
78316         * modules/strftime (Depends-on): Remove dependency on tzset.
78317
78318 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78319
78320         Remove the dependency of the strftime module on the tzset module.
78321         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
78322         gl_FUNC_TZSET_CLOBBER.
78323
78324 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78325
78326         Remove the dependency of the strftime module on the tzset module.
78327         * lib/strftime.c (my_strftime)
78328         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
78329         Copy the input structure, to work around some of the bug with
78330         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
78331         Solaris releases, you should also use the tzset module, but we won't
78332         require it as a dependency any more since we don't want LGPLed code
78333         to depend on GPLed code.
78334
78335 2005-07-02  Jim Meyering  <jim@meyering.net>
78336
78337         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
78338         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
78339         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
78340         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
78341
78342 2005-07-02  Jim Meyering  <jim@meyering.net>
78343
78344         * lib/backupfile.c (backup_args): Change a `0' to NULL.
78345
78346 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78347
78348         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
78349         declares only 'struct timespec;' (!).
78350
78351 2005-07-01  Jim Meyering  <jim@meyering.net>
78352
78353         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
78354         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
78355         * lib/save-cwd.c, tempname.c:
78356         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
78357         and don't include <sys/file.h>).
78358
78359 2005-06-29  Jim Meyering  <jim@meyering.net>
78360
78361         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
78362         type name.  Use the variable name instead.
78363         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
78364         Likewise.
78365
78366 2005-06-28  Simon Josefsson  <jas@extundo.com>
78367
78368         * modules/check-version (Files): Add check-version.m4.
78369
78370 2005-06-28  Simon Josefsson  <jas@extundo.com>
78371
78372         * m4/check-version.m4: New file, suggested by Jim Meyering
78373         <jim@meyering.net>.
78374
78375 2005-06-28  Simon Josefsson  <jas@extundo.com>
78376
78377         * lib/check-version.h, lib/check-version.c: New files.
78378
78379 2005-06-28  Simon Josefsson  <jas@extundo.com>
78380
78381         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
78382         collision with global variable.  Better indentation.  Don't
78383         increment buffer pointer beyond buffer end.  Based on comments
78384         from Paul Eggert <eggert@cs.ucla.edu>.
78385
78386         * lib/base64.h: Indent.
78387
78388 2005-06-28  Simon Josefsson  <jas@extundo.com>
78389
78390         * doc/gnulib.texi (Library version handling): New section.
78391
78392 2005-06-28  Jim Meyering  <jim@meyering.net>
78393
78394         * check-module (find_included_lib_files): Hard-code another
78395         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
78396         but modules/fts-lgpl (correctly) does not list those files.
78397
78398         * modules/canonicalize (Files): Add lib/pathmax.h.
78399
78400 2005-06-25  Simon Josefsson  <jas@extundo.com>
78401
78402         * modules/check-version: New file.
78403
78404 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
78405
78406         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
78407         initializer of struct addrinfo, as an indication that we don't
78408         care how many members the structure has.
78409
78410 2005-06-24  Derek Price  <derek@ximbiot.com>
78411         and Bruno Haible  <bruno@clisp.org>
78412
78413         Remove stat module & update lstat.
78414         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
78415         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78416         * m4/stat.m4: Remove this file.
78417
78418 2005-06-24  Derek Price  <derek@ximbiot.com>
78419         and Bruno Haible  <bruno@clisp.org>
78420
78421         Remove stat module & update lstat.
78422         * lib/stat.c: Remove this file...
78423         (slash_aware_lstat): ...moving this content and its support...
78424         * lib/lstat.c (rpl_lstat): ...into here.
78425         * lib/lstat.h: New file.
78426
78427 2005-06-24  Derek Price  <derek@ximbiot.com>
78428         and Bruno Haible  <bruno@clisp.org>
78429
78430         Remove stat module & update lstat.
78431         * config/srclist.txt (libc sources): Remove stat.
78432
78433 2005-06-24  Derek Price  <derek@ximbiot.com>
78434         and Bruno Haible  <bruno@clisp.org>
78435
78436         Remove stat module & update lstat.
78437         * MODULES.html.sh (stat): Remove.
78438         * MODULES.html: Regenerated.
78439         * modules/lstat (Description): Correct function name.
78440         (Files): Add "lstat.h".
78441         (Depends-on): Remove stat, add xalloc, stat-macros.
78442         * modules/stat: Remove this file.
78443         (Include): Add "lstat.h", remove <sys/stat.h>.
78444
78445 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
78446
78447         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
78448         (ranged_convert): Don't save conversion in a temporary struct.
78449         This causes a warning with GCC 4.0.0, and anyway in the typical
78450         case it's not worth the extra 100 bytes or so of code.
78451         (ranged_convert, __mktime_internal): When calling a function via a
78452         pointer P, use P () rather than (*P) (), as we now assume C89 or
78453         better.
78454
78455 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78456
78457         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
78458         "who -r" failed to give output.  Problem reported by Tim Waugh.
78459
78460         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
78461         (xcalloc): Use it to avoid needless tests.
78462         Problem reported by Jim Meyering.
78463
78464 2005-06-20  Derek Price  <derek@ximbiot.com>
78465
78466         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
78467         unnecessary for Autoconfs > 2.59c.
78468
78469 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78470
78471         * lib/argp.h (__option_is_short): Check upper limit of
78472         __key. Isprint() requires its argument to have the value
78473         of an unsigned char or EOF.
78474
78475 2005-06-16  Jim Meyering  <jim@meyering.net>
78476
78477         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
78478         when either N or S is zero.
78479
78480 2005-06-16  Derek Price  <derek@ximbiot.com>
78481
78482         * m4/bison.m4: Declare YACC & YFLAGS precious.
78483
78484 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
78485
78486         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
78487         multibyte string or pattern, fall back on unibyte matching.
78488         Problem reported by James Youngman.
78489
78490 2005-06-08  Bruno Haible  <bruno@clisp.org>
78491
78492         * modules/csharpcomp: New file.
78493         * MODULES.html.sh (C#): Add csharpcomp.
78494
78495 2005-06-08  Bruno Haible  <bruno@clisp.org>
78496
78497         * m4/csharpcomp.m4: New file, from GNU gettext.
78498
78499 2005-06-08  Bruno Haible  <bruno@clisp.org>
78500
78501         * lib/csharpcomp.h: New file, from GNU gettext.
78502         * lib/csharpcomp.c: New file, from GNU gettext.
78503         * lib/csharpcomp.sh.in: New file, from GNU gettext.
78504
78505 2005-06-08  Bruno Haible  <bruno@clisp.org>
78506
78507         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
78508         warning on mingw.
78509
78510 2005-06-07  Derek Price  <derek@ximbiot.com>
78511
78512         Sync from CVS.
78513         * lib/glob_.h: Indent nested #ifdef.
78514
78515 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78516
78517         Sync from coreutils.
78518         Use "file name" when talking about file names, instead of "filename"
78519         or "path", as per the GNU coding standards.
78520         * lib/mkdir-p.c: Renamed from makepath.c.
78521         (make_dir_parents): Renamed from make_path.  All callers changed.
78522         * lib/mkdir-p.h: Likewise.  All includers changed.
78523         * lib/filenamecat.c: Renamed from path-concat.c.
78524         (file_name_concat): Renamed from path_concat.  All callers changed.
78525         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
78526         * lib/filenamecat.h: Likewise.  All includers changed.
78527         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
78528         in comments or local variable names.
78529         * lib/basename.c: Likewise.
78530         * lib/canonicalize.c, canonicalize.h: Likewise.
78531         * lib/dirname.c, dirname.h: Likewise.
78532         * lib/euidaccess.c: Likewise.
78533         * lib/exclude.c: Likewise
78534         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
78535         * lib/fsusage.c, fsuage.h: Likewise.
78536         * lib/fts.c, fts_.h: Likewise.
78537         * lib/getcwd.c: Likewise.
78538         * lib/getloadavg.c: Likewise.
78539         * lib/mkstemp.c: Likewise.
78540         * lib/mountlist.c, mountlist.h: Likewise.
78541         * lib/openat.c, openat.h: Likewise.
78542         * lib/readlink-stub.c: Likewise.
78543         * lib/readutmp.c, readutmp.h: Likewise.
78544         * lib/rename.c: Likewise.
78545         * lib/rmdir.c: Likewise.
78546         * lib/same.c: Likewise.
78547         * lib/savedir.c: Likewise.
78548         * lib/stripslash.c: Likewise.
78549         * lib/tempname.c: Likewise.
78550         * lib/xreadlink.c: Likewise.
78551         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
78552         All uses changed.
78553         * lib/exclude.h: Likewise.
78554
78555         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
78556         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78557         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
78558         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78559         * lib/pathmax.h: Include <limits.h> unconditionally, since other
78560         files have been getting away with it for years (MORE/BSD 4.3
78561         is extinct now).
78562         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
78563         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78564
78565         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
78566         Define to 256, not 255, as per modern POSIX.
78567
78568 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78569
78570         Sync from coreutils.
78571         Use "file name" when talking about file names, instead of "filename"
78572         or "path", as per the GNU coding standards.
78573         * MODULES.html.sh: mkdir-p renamed from makepath.
78574         filenamecat renamed from path-concat.
78575         * modules/filenamecat: Renamed from modules/path-concat.
78576         (Files): filenamecat.h and filenamecat.c renamed from
78577         path-concat.h and path-concat.c.
78578         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
78579         (Include): filenamecat.h, not path-concat.h.
78580         * modules/mkdir-p: Renamed from modules/makepath.
78581         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
78582         makepath.c.
78583         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
78584         (Include): mkdir-p.h, not makepath.h.
78585
78586 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78587
78588         Sync from coreutils.
78589         * m4/mkdir-p.m4: Renamed from makepath.m4.
78590         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
78591         Rename files from makepath.c to mkdir-p.c, and from
78592         makepath.h to mkdir-p.h.
78593         * m4/filenamecat.m4: Renamed from path-concat.m4.
78594         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
78595         Rename files from path-concat.c to filenamecat.c,
78596         and from path-concat.h to filenamecat.h.
78597         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
78598         "file name" in local variables or comments.
78599         * m4/rename.m4: Likewise.
78600
78601 2005-06-01  Bruno Haible  <bruno@clisp.org>
78602
78603         * modules/csharpexec: New file.
78604         * MODULES.html.sh (C#): New section.
78605
78606 2005-06-01  Bruno Haible  <bruno@clisp.org>
78607
78608         * m4/csharp.m4: New file, from GNU gettext.
78609         * m4/csharpexec.m4: New file, from GNU gettext.
78610
78611 2005-06-01  Bruno Haible  <bruno@clisp.org>
78612
78613         * lib/csharpexec.h: New file, from GNU gettext.
78614         * lib/csharpexec.c: New file, from GNU gettext.
78615         * lib/csharpexec.sh.in: New file, from GNU gettext.
78616
78617 2005-05-31  Derek Price  <derek@ximbiot.com>
78618             Paul Eggert  <eggert@cs.ucla.edu>
78619
78620         Sync from cvs.
78621         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78622
78623 2005-05-31  Derek Price  <derek@ximbiot.com>
78624             Paul Eggert  <eggert@cs.ucla.edu>
78625
78626         Sync from cvs.
78627         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78628
78629 2005-05-29  Derek Price  <derek@ximbiot.com>
78630
78631         * config/srclist.txt (glob_.h, glob.c): Add these files.
78632
78633 2005-05-29  Derek Price  <derek@ximbiot.com>
78634
78635         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
78636         * modules/glob: New file.
78637         * modules/getlogin_r: Add link to POSIX spec in description.
78638
78639 2005-05-29  Derek Price  <derek@ximbiot.com>
78640             Paul Eggert  <eggert@cs.ucla.edu>
78641
78642         * m4/glob.m4: New file.
78643
78644 2005-05-29  Derek Price  <derek@ximbiot.com>
78645             Paul Eggert  <eggert@cs.ucla.edu>
78646
78647         * lib/glob_.h, lib/glob.c: New files.
78648
78649 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78650
78651         * modules/fts (Files): Remove m4/inttypes-pri.m4.
78652         * modules/fts-lgpl (Depends-on): Remove gettext.
78653
78654 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78655
78656         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
78657         and don't require gt_INTTYPES_PRI.
78658
78659 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78660
78661         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
78662
78663         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
78664         the configuration hassle isn't worth it.
78665         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
78666         (LONGEST_MODIFIER, PRIuMAX): Remove.
78667
78668 2005-05-27  Bruno Haible  <bruno@clisp.org>
78669
78670         * lib/getlogin_r.h: Remove second include of <stddef.h>.
78671
78672 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
78673
78674         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
78675         _POSIX_PTHREAD_SEMANTICS for Solaris.
78676
78677 2005-05-25  Derek Price  <derek@ximbiot.com>
78678
78679         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
78680
78681 2005-05-25  Derek Price  <derek@ximbiot.com>
78682             Paul Eggert  <eggert@cs.ucla.edu>
78683
78684         * modules/getlogin_r, m4/getlogin_r.m4: New files.
78685         * lib/getlogin_r.c, getlogin_r.h: New files.
78686
78687 2005-05-25  Bruno Haible  <bruno@clisp.org>
78688             Derek Price  <derek@ximbiot.com>
78689
78690         * lib/getlogin_r.h: Simplify API documentation.
78691
78692 2005-05-23  Derek Price  <derek@ximbiot.com>
78693
78694         * modules/minmax (Files): Add m4/minmax.m4.
78695         (configure.ac): Add gl_MINMAX.
78696
78697 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
78698
78699         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
78700         so that unistd-safer.h (GPL'ed code) need not be included.
78701
78702 2005-05-22  Bruno Haible  <bruno@clisp.org>
78703
78704         * m4/minmax.m4: New file.
78705         Based on a patch by Derek Price <derek@ximbiot.com>.
78706
78707 2005-05-22  Bruno Haible  <bruno@clisp.org>
78708
78709         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
78710         (INT64_MIN): Fix definition.
78711         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
78712
78713         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
78714         NEED_SIGNED_INT_TYPES.
78715
78716         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
78717         HAVE_SYSTEM_INTTYPES.
78718
78719 2005-05-22  Bruno Haible  <bruno@clisp.org>
78720
78721         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
78722         Also include <sys/param.h> if it defines MIN, MAX.
78723         Based on a patch by Derek Price <derek@ximbiot.com>.
78724
78725 2005-05-21  Jim Meyering  <jim@meyering.net>
78726
78727         * modules/fts (Files): Add m4/inttypes-pri.m4.
78728         (Depends-on): Add lstat and remove gettext.  Alphabetize.
78729
78730 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78731
78732         New fts module.
78733         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
78734         (setup_dir, free_dir): New functions.
78735         (enter_dir, leave_dir): Define trivial
78736         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
78737         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
78738         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
78739         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
78740         Move to fts-cycle.c.
78741         (fts_open): Use setup_dir.
78742         (fts_close): Use free_dir.
78743         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
78744         This adds a label and some gotos, but the alternatives were messier.
78745         Check for memory allocation failure when entering a dir.
78746         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
78747         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
78748         (FTS): New member fts_cycle, that is a union that contains the
78749         old active_dir_ht and cycle_state.  All uses changed to mention
78750         fts_cycle.ht and fts_cycle.state.
78751         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
78752         fts.c, with the following changes:
78753         (setup_dir, free_dir): New functions.
78754         (enter_dir): Now returns bool.  Return true if successful, false
78755         if memory exhausted.  All callers changed.
78756         Do not bother partly cleaning up on
78757         memory allocation failure; that is free_dir's job.
78758         However, free ad if hash_insert fails, to avoid memory leak.
78759         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
78760         fts->fts_options to see which union member to use.
78761
78762 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78763
78764         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
78765         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
78766
78767 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78768
78769         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
78770
78771 2005-05-20  Jim Meyering  <jim@meyering.net>
78772
78773         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
78774         Now a macro, to pacify GCC.
78775
78776 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78777
78778         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
78779         of -1.
78780
78781 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78782
78783         * lib/chown.c (rpl_chown): Return -1 on failure.
78784
78785 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78786
78787         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
78788         Don't check for stddef.h.
78789         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
78790         don't use its results.
78791         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
78792         since we include them unconditionally.  Don't require
78793         AM_STDBOOL_H, since stdbool is a prerequisite.
78794         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
78795         since we assume C89 or better.
78796         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
78797         as we don't use their results.
78798         Don't check for fchdir, memmove, memset, strrchr, as we use
78799         them unconditionally.
78800         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
78801         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
78802
78803 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78804
78805         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
78806         Include <stddef.h> unconditionally, since we assume C89 now.
78807         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
78808         * lib/fts.c: Include fts_.h first, to check interface.
78809         Do not include intprops.h; no longer needed.
78810         Include cycle-check.h and hash.h, since fts_.h no longer does.
78811         Remove unnecessary casts of closedir to void.
78812         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
78813         decide whether to decrement nlinks.
78814         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
78815         (FTS): Use struct hash_table * instead of Hash_table, so that
78816         we no longer need to include hash.h here.
78817
78818 2005-05-18  Jim Meyering  <jim@meyering.net>
78819
78820         * modules/dirfd (License): Change to LGPL.  Most of the code
78821         is already in the public domain.
78822
78823 2005-05-18  Jim Meyering  <jim@meyering.net>
78824
78825         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
78826         Reported by Yoann Vandoorselaere.
78827
78828 2005-05-17  Jim Meyering  <jim@meyering.net>
78829
78830         * m4/fts.m4: New file, from coreutils.
78831
78832 2005-05-17  Jim Meyering  <jim@meyering.net>
78833
78834         * lib/fts.c, lib/fts_.h: New files, from coreutils.
78835
78836 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78837
78838         Sync from coreutils.
78839         * m4/unlinkdir.m4: New file.
78840
78841 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78842
78843         Sync from coreutils.
78844         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
78845         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
78846         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
78847         White space changes only.
78848         * lib/makepath.c (make_path): Port to hosts where leading "//" is
78849         special.
78850         * lib/yesno.c: Include getline.h, not ctype.h.
78851         (yesno): Don't remove leading white space; POSIX doesn't allow it.
78852         Use getline to remove arbitrary restriction on response length.
78853
78854 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78855
78856         * config/srclist-update: Spell out "Street" in FSF postal
78857         mail address; this is the style the FSF seems to prefer.
78858
78859         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
78860         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
78861         this updates FSF postal mail address.
78862
78863         Sync from coreutils.
78864         * modules/unlinkdir: New file.
78865         * modules/yesno (Depends-on): Add getline.
78866         * MODULES.html.sh (File system functions): Add unlinkdir.
78867
78868 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78869
78870         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
78871         lib/strsep.h:
78872         Change the initial comment to refer to GPL, not LGPL.
78873         gnulib-tool will change it to LGPL as needed.
78874
78875         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
78876         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
78877         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
78878         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
78879         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
78880         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
78881         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
78882         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
78883         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
78884         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
78885         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
78886         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
78887         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
78888         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
78889         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
78890         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
78891         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
78892         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
78893         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
78894         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
78895         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
78896         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
78897         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
78898         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
78899         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
78900         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
78901         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
78902         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
78903         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
78904         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
78905         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
78906         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
78907         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
78908         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
78909         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
78910         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
78911         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
78912         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
78913         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
78914         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
78915         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
78916         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
78917         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
78918         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
78919         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
78920         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
78921         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
78922         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
78923         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
78924         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
78925         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78926         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
78927         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
78928         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
78929         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
78930         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
78931         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
78932         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
78933         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
78934         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
78935         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
78936         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
78937         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
78938         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
78939         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
78940         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
78941         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
78942         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
78943         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
78944         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
78945         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
78946         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
78947         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
78948         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
78949         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
78950         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
78951         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
78952         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
78953         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
78954         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
78955         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
78956         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
78957         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
78958         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
78959         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
78960         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
78961         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
78962         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
78963         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
78964         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
78965         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
78966         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
78967         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
78968         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
78969         lib/yesno.c, lib/yesno.h:
78970         Update FSF postal mail address.
78971
78972 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78973
78974         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
78975         tests/test-memmem.c, tests/test-stpncpy.c:
78976         Update FSF postal mail address.
78977
78978 2005-05-13  Bruno Haible  <bruno@clisp.org>
78979
78980         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
78981         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
78982         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
78983         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
78984         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
78985         Add support for 64-bit integers in the MSVC compiler.
78986
78987 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78988
78989         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
78990
78991 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
78992
78993         * gnulib-tool (func_import): Sort and uniquify recommended includes.
78994
78995 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
78996
78997         * doc/getdate.texi (General date syntax): Don't say that date
78998         date --iso-8601=ns generates acceptable dates; it doesn't yet.
78999         Problem reported by Nic Ferrier.
79000
79001 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79002
79003         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
79004         specified in ai_socktype. Fix invalid ai_protocol
79005         check. ai_protocol is usually set to 0 or depending on
79006         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
79007         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
79008         ai_socktype / ai_protocol in the returned addrinfo structure.
79009
79010 2005-05-10  Simon Josefsson  <jas@extundo.com>
79011
79012         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
79013         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79014
79015 2005-05-10  Karl Berry  <karl@gnu.org>
79016
79017         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
79018         (from http://www.gnu.org/licenses).
79019         * doc/COPYING.LIB: also rename to COPYING.LESSER.
79020         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
79021         fdl.texi suffices.
79022
79023 2005-05-10  Karl Berry  <karl@gnu.org>
79024
79025         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
79026         (COPYING.DOC): remove.
79027
79028         * config/srclist-update: new FSF address.
79029
79030 2005-05-10  Derek Price  <derek@ximbiot.com>
79031
79032         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
79033         possible.
79034
79035 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79036             Bruno Haible  <bruno@clisp.org>
79037
79038         * modules/inet_ntop: New file.
79039         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79040         inet_ntop.
79041
79042 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79043             Bruno Haible  <bruno@clisp.org>
79044
79045         * m4/inet_ntop.m4: New file.
79046
79047 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79048             Bruno Haible  <bruno@clisp.org>
79049
79050         * lib/inet_ntop.h: New file.
79051         * lib/inet_ntop.c: New file, from glibc with modifications.
79052
79053 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
79054
79055         * modules/time_r (License): Change to LGPL.
79056         * modules/extensions (License): Change to LGPL.  Actually,
79057         the license is more permissive than that, but currently gnulib-tool
79058         doesn't know how to handle more-permissive licenses.
79059
79060         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
79061         Problem reported by Dave Love.
79062
79063 2005-05-08  Jim Meyering  <jim@meyering.net>
79064
79065         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
79066         blank.
79067
79068 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
79069
79070         * modules/argmatch (Depends-on): Add stdbool.
79071         * modules/backupfile (Depends-on): Likewise.
79072         * modules/chdir-long (Depends-on): Likewise.
79073         * modules/closeout (Depends-on): Likewise.
79074         * modules/cycle-check (Depends-on): Likewise.
79075         * modules/dirname (Depends-on): Likewise.
79076         * modules/fnmatch (Depends-on): Likewise.
79077         * modules/fsusage (Depends-on): Likewise.
79078         * modules/fwriteerror (Depends-on): Likewise.
79079         * modules/getcwd (Depends-on): Likewise.
79080         * modules/getloadavg (Depends-on): Likewise.
79081         * modules/hard-locale (Depends-on): Likewise.
79082         * modules/makepath (Depends-on): Likewise.
79083         * modules/mountlist (Depends-on): Likewise.
79084         * modules/nanosleep (Depends-on): Likewise.
79085         * modules/posixtm (Depends-on): Likewise.
79086         * modules/quotearg (Depends-on): Likewise.
79087         * modules/readtokens (Depends-on): Likewise.
79088         * modules/readtokens0 (Depends-on): Likewise.
79089         * modules/readutmp (Depends-on): Likewise.
79090         * modules/save-cwd (Depends-on): Likewise.
79091         * modules/strftime (Depends-on): Likewise.
79092         * modules/userspec (Depends-on): Likewise.
79093         * modules/utimecmp (Depends-on): Likewise.
79094         * modules/xgetcwd (Depends-on): Likewise.
79095         * modules/xnanosleep (Depends-on): Likewise.
79096         * modules/xstrtod (Depends-on): Likewise.
79097         * modules/yesno (Depends-on): Likewise.
79098
79099 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
79100
79101         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
79102         needless checks.
79103
79104 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79105
79106         Merge from coreutils.  Among other things,
79107         add bulletproofing for cases where stdin, stdout, or stderr are closed.
79108         * lib/fd-safer.c: New file.
79109         * lib/fcntl-safer.h, open-safer.c: Remove.
79110         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
79111         * lib/dup-safer.c: Include unistd-safer.h first.
79112         Don't include errno.h.
79113         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
79114         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
79115         * lib/file-type.c: Rely on file-type.h change.
79116         * lib/getloadavg.c: Include unistd-safer.h.
79117         (getloadavg): Use safer open.
79118         * lib/getusershell.c: Include "stdio-safer.h".
79119         (getusershell): Use safer fopen.
79120         * lib/long-options.c (long_options): Use NULL rather than 0.
79121         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
79122         'free'.
79123         * lib/modechange.c: Likewise.
79124         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
79125         (MODE_DONE): New constant.
79126         (struct mode_change): Remove 'next' member.
79127         (make_node_op_equals): New function; like the old one of the
79128         same name, except it allocates an array.
79129         (mode_compile, mode_create_from_ref): Use it.
79130         (mode_compile): Allocate result as an array, not a linked list.
79131         Parse octal string ourself, so that we catch mistakes like "+0".
79132         (mode_adjust): Arg is an array, not a linked list.
79133         * lib/modechange.c: Include stat-macros.h, xalloc.h.
79134         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
79135         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
79136         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
79137         Remove.  This is now stat-macros.h's job.
79138         (talloc): Remove.  All callers replaced by xalloc, so that
79139         our invokers don't have to worry about reporting memory failures.
79140         (make_node_op_equals): Remove.
79141         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
79142         New constants.
79143         (struct mode_change): Moved here from modechange.h.
79144         (mode_append_entry): Remove.
79145         (mode_compile): Remove MASKED_OPS arg, since it encouraged
79146         apps to have incorrect behavior.  Use simpler algorithm for head
79147         and tail.  Don't futz with umask; that's now the job of mode_adjust.
79148         Detect more invalid usages rather than having somewhat-random behavior.
79149         Don't insert an "a=" action, as that leads to incorrect behavior.
79150         (mode_compile, mode_create_from_ref): Return NULL on error instead
79151         of an enum, since now there's only one way to have an error.  All
79152         callers changed.
79153         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
79154         at the correct time.  Simplify calculation of "+u" and its ilk.
79155         Don't mishandle "+X".
79156         (mode_free): Remove "register" and localize decls.
79157         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
79158         (struct mode_change): Move to modechange.c; callers don't
79159         need to see this stuff.
79160         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
79161         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
79162         (mode_change, mode_adjust): Reflect the new signatures noted above.
79163         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
79164         that might redefine system include files.
79165         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
79166         (my_usleep): Use NULL rather than (void *) 0.
79167         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
79168         Use siginterrupt to specify that system calls should be interrupted.
79169         (rpl_nanosleep): Move initialization of suspended closer to call of
79170         my_usleep.
79171         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
79172         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
79173         (desirable_utmp_entry): New function.
79174         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
79175         using x2nrealloc, to simplify logic.
79176         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
79177         size calculation.  Do not assume utmp file is a regular file.
79178         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
79179         (READ_UTMP_CHECK_PIDS): New constant.
79180         * lib/save-cwd.c: Include unistd-safer.h.
79181         (save_cwd): Use fd_safer.
79182         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
79183         [!_LIBC] Include "stat-macros.h" instead.
79184         * lib/unistd-safer.h (fd_safer): New decl.
79185
79186 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79187
79188         * modules/getloadavg (Depends-on): Add unistd-safer.
79189         * modules/getusershell (Depends-on): Add stdio-safer.
79190         * modules/lstat (Depends-on): Remove xalloc.
79191         * modules/mkstemp (Depends-on): Add stat-macros.
79192         * modules/modechange (Depends-on): Remove xstrtol.
79193         Add stat-macros, xalloc.
79194         * modules/save-cwd (Depends-on): Add unistd-safer.
79195         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
79196         * modules/unistd-safer (Files): Add lib/fd-safer.c
79197         (Makefile.am): Remove lib_SOURCES.
79198
79199         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
79200         Remove fcntl-safer; unistd-safer supersedes it.
79201
79202 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79203
79204         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
79205         AC_HEADER_STAT.
79206         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
79207         (gl_PREREQ_CHOWN): Remove.
79208         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
79209         it.  Don't require AC_HEADER_STAT.
79210         (gl_PREREQ_LSTAT): Remove.
79211         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
79212         Don't require AC_HEADER_STAT.
79213         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
79214         (gl_PREREQ_RMDIR): Remove.
79215         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
79216         mention stat-macros.h or AC_HEADER_STAT, since we'll make
79217         the stat-macros module a prerequisite.
79218         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
79219         * m4/filemode.m4 (gl_FILEMODE): Likewise.
79220         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
79221         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
79222         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
79223         variable names.
79224         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
79225         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
79226         variable prefixes.
79227         * m4/fcntl-safer.m4: Remove.
79228         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
79229         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
79230         Invoke gl_PREREQ_FD_SAFER.
79231         (gl_PREREQ_FD_SAFER): New macro.
79232         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
79233         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
79234         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
79235         Remove duplicate call to AC_LIBOBJ(readutmp).
79236         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
79237
79238         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
79239         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
79240
79241 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79242
79243         * MODULES.html.sh (Misc): Add byteswap.
79244
79245 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79246
79247         * modules/getcwd (Depends-on): Add extensions.
79248         * modules/openat (Depends-on): Likewise.
79249
79250 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79251
79252         * modules/byteswap: New file.
79253
79254 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79255
79256         * m4/byteswap.m4: New file.
79257
79258 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79259
79260         * lib/byteswap_.h: New file.
79261
79262 2005-04-25  Karl Berry  <karl@gnu.org>
79263
79264         * m4/gettext.m4: Update from GNU gettext 0.14.4.
79265
79266 2005-04-25  Albert Chin  <china@thewrittenword.com>
79267
79268         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
79269         Toolkit C bug.
79270
79271 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
79272
79273         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
79274         (func_ln_if_changed): Remove forcibly for no error message
79275         in case file does not exist.
79276
79277 2005-04-19  Simon Josefsson  <jas@extundo.com>
79278
79279         * gnulib-tool (Options): Make --symlink mean --symbolic.
79280
79281 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
79282
79283         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
79284
79285 2005-04-16  Simon Josefsson  <jas@extundo.com>
79286
79287         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
79288
79289 2005-04-15  Simon Josefsson  <jas@extundo.com>
79290
79291         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
79292
79293 2005-04-15  Simon Josefsson  <jas@extundo.com>
79294
79295         * gnulib-tool: Rename --symlink to --symbolic.
79296
79297 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
79298
79299         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
79300         symbolic links to files instead of copying/moving.  Add --aux-dir,
79301         specifying directory relative --dir where auxiliary build tools
79302         are placed.
79303
79304 2005-04-14  Bruno Haible  <bruno@clisp.org>
79305
79306         * modules/allocsa (License): Change to LGPL.
79307         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
79308
79309 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
79310
79311         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
79312         that "UTC +1 second" continues to work.  Problem reported
79313         by Dmitry V. Levin.
79314         (relunit_snumber): New rule.
79315         (relunit): Use it.
79316
79317 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
79318
79319         * lib/getdate.y (universal_time_zone_table): New constant.
79320         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
79321         universal_time_zone_table.
79322         (lookup_zone): Prefer universal_time_zone_table to
79323         local_time_zone_table, so that "GMT" time stamps are allowed in
79324         London during the summer.  Problem reported by Ian Abbott.
79325
79326 2005-04-12  Jim Meyering  <jim@meyering.net>
79327
79328         * lib/human.c (humblock): Set *options even when returning due to
79329         xstrtoumax conversion failure.  Thanks to a used-uninitialized
79330         warning from gcc-4.
79331
79332 2005-04-09  Jim Meyering  <jim@meyering.net>
79333
79334         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
79335         -Wuninitialized: initialize tm0.tm_year.
79336
79337 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
79338
79339         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
79340         count, since there's no maximum.  All uses changed.
79341         Add member dsts_seen.
79342         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
79343         not being INT_MAX.
79344         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
79345         Use pc_rels_seen to decide whther a date is absolute.
79346
79347         * lib/getdate.y (number): Don't overwrite year.
79348         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
79349         check.
79350
79351 2005-04-02  Simon Josefsson  <jas@extundo.com>
79352
79353         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
79354         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
79355
79356 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
79357
79358         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
79359         where no absolute path name can be longer than PATH_MAX.
79360
79361 2005-03-27  Jim Meyering  <jim@meyering.net>
79362
79363         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
79364
79365 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
79366
79367         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
79368         "one's complement" -> "ones' complement" in comment, as per Knuth.
79369         "value of type" -> "type or expression" in comment.
79370         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
79371
79372 2005-03-26  Jim Meyering  <jim@meyering.net>
79373
79374         Comment nits.
79375         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
79376         Correct typos: s/or/of/.
79377
79378 2005-03-26  Jim Meyering  <jim@meyering.net>
79379
79380         * modules/check-include-files: Move to ../ and rename to...
79381         * check-module: ...this.
79382
79383 2005-03-25  Jim Meyering  <jim@meyering.net>
79384
79385         * modules/xvasprintf (Files): Add xalloc.h.
79386
79387 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
79388
79389         * modules/gettext (Files): config/config.rpath ->
79390         build-aux/config.rpath
79391         * modules/iconv (Files): Likewise.
79392         Problem reported by Oskar Liljeblad.
79393
79394 2005-03-23  Jim Meyering  <jim@meyering.net>
79395
79396         * modules/check-include-files: New script to check for
79397         missing dependencies, multiple includes, etc.
79398
79399         * modules/c-strtold (Depends-on): Add xalloc.
79400         * modules/c-strtod (Depends-on): Add xalloc.
79401         * modules/hash (Depends-on): Add xalloc.
79402         (Files): Remove lib/xalloc.h.
79403
79404         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
79405         * modules/userspec (Files): Add lib/inttostr.h.
79406
79407 2005-03-23  Jim Meyering  <jim@meyering.net>
79408
79409         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
79410
79411 2005-03-22  Jim Meyering  <jim@meyering.net>
79412
79413         * modules/stat-macros: New module.
79414         * modules/canonicalize, modules/euidaccess, modules/file-type,
79415         * modules/filemode, modules/lchown, modules/makepath,
79416         * modules/rmdir, modules/stat: Depend on new stat-macros module
79417         rather than listing lib/stat-macros.h manually.
79418         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
79419
79420 2005-03-22  Jim Meyering  <jim@meyering.net>
79421
79422         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
79423
79424 2005-03-22  Bruno Haible  <bruno@clisp.org>
79425
79426         * config/srclist.txt: Replace target directory 'config' with
79427         'build-aux'.
79428         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
79429         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
79430         ../build-aux/.
79431
79432 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
79433
79434         * modules/chdir-long (Depends-on): Add mempcpy.
79435
79436         * modules/acl, modules/backupfile, modules/c-strtod,
79437         modules/c-strtold, modules/canon-host, modules/canonicalize,
79438         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
79439         modules/exclude, modules/exitfail, modules/file-type,
79440         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
79441         modules/getdate, modules/getline, modules/getpagesize,
79442         modules/getpass, modules/getugroups, modules/group-member,
79443         modules/hard-locale, modules/hash, modules/human, modules/idcache,
79444         modules/inttostr, modules/long-options, modules/makepath,
79445         modules/md5, modules/memcasecmp, modules/memcoll,
79446         modules/modechange, modules/mountlist, modules/path-concat,
79447         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
79448         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
79449         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
79450         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
79451         modules/strftime, modules/strndup, modules/strverscmp,
79452         modules/timespec, modules/unlocked-io, modules/userspec,
79453         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
79454         modules/yesno:
79455         Remove lib_SOURCES line from Makefile.am section, as this is now
79456         done automatically by the corresponding Autoconf macro.
79457
79458 2005-03-21  Jim Meyering  <jim@meyering.net>
79459
79460         Changes imported from coreutils.
79461
79462         * lib/cycle-check.c: Don't include xalloc.h.
79463
79464         * lib/path-concat.c: Don't include assert.h.
79465         (path_concat): Remove assertion that would have triggered
79466         for ABASE starting with more than one slash.
79467         Reported by Andreas Schwab.
79468
79469         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
79470         properly when ABASE is an absolute file name.
79471         Correct the description of this function.
79472         Include <assert.h>.
79473         Add an assertion and a test driver.
79474         This fixes a bug introduced on 2004-07-02.
79475         Andreas Schwab reported the resulting failure of cp --parents:
79476         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
79477
79478 2005-03-21  Jim Meyering  <jim@meyering.net>
79479
79480         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
79481         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
79482
79483 2005-03-21  Jim Meyering  <jim@meyering.net>
79484         and  Paul Eggert  <eggert@cs.ucla.edu>
79485
79486         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
79487         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
79488         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
79489         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
79490         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
79491         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
79492         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
79493         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
79494         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
79495         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
79496         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
79497         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
79498         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
79499         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
79500         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
79501         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
79502         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
79503         for these modules.
79504
79505 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
79506
79507         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
79508         (which shouldn't happen), generate nothing instead of returning 0
79509         immediately, so that nstrftime (NULL, ...) doesn't return 0.
79510
79511 2005-03-16  Bruno Haible  <bruno@clisp.org>
79512
79513         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
79514         HAVE_LONGLONG_64BIT.
79515
79516 2005-03-16  Bruno Haible  <bruno@clisp.org>
79517
79518         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
79519         HAVE_LONGLONG_64BIT.
79520
79521 2005-03-16  Bruno Haible  <bruno@clisp.org>
79522
79523         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
79524         HAVE_LONGLONG_64BIT.
79525
79526 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79527
79528         * lib/strftime.c (my_strftime): Prepend space to format so that we can
79529         reliably distinguish strftime failure from empty output on POSIX
79530         hosts.
79531
79532 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79533
79534         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
79535         (iconv_string): Don't guess a size-zero buffer, as that might cause
79536         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
79537         result would be 'too large', where 'too large' is (heuristically)
79538         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
79539         overflow concerns.  This will prevent some unwanted malloc failures
79540         when the inputs are very large.
79541
79542 2005-03-15  Karl Berry  <karl@gnu.org>
79543
79544         * config/srclist.txt (config.rpath): from gettext.
79545         * config/config.rpath: update.
79546
79547 2005-03-15  Bruno Haible  <bruno@clisp.org>
79548
79549         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
79550         to 'negate'.
79551
79552         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
79553         variable.
79554
79555         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
79556         results.
79557
79558 2005-03-14  Simon Josefsson  <jas@extundo.com>
79559
79560         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
79561         <fx@gnu.org>.
79562
79563 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
79564
79565         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
79566         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
79567         intprops.h.
79568         * lib/strtol.c: Likewise.
79569
79570 2005-03-14  Jim Meyering  <jim@meyering.net>
79571
79572         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
79573         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
79574         to be nonzero so that we (and caller) can detect the difference
79575         between a valid zero-length expansion and an error return, even
79576         when the underlying strftime fails before writing anything into
79577         that location.
79578
79579 2005-03-14  Bruno Haible  <bruno@clisp.org>
79580
79581         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
79582         Update from GNU gettext 0.14.3.
79583
79584 2005-03-10  Jim Meyering  <jim@meyering.net>
79585
79586         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
79587
79588 2005-03-10  Jim Meyering  <jim@meyering.net>
79589
79590         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
79591         so that this module works on systems without fchdir.
79592
79593 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
79594
79595         Factor int-properties macros into a single file, except for
79596         glibc-related files.
79597         * lib/intprops.h: New file.
79598         * lib/getloadavg.c: Include it instead of limits.h.
79599         (INT_STRLEN_BOUND): Remove.
79600         * lib/human.c: Include intprops.h.
79601         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
79602         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
79603         302/1000.
79604         * lib/inttostr.h: Include intprops.h instead of limits.h.
79605         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
79606         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
79607         for consistency with intprops.h.
79608         (time_t_is_integer, twos_complement_arithmetic): Use them.
79609         * lib/sig2str.h: Include <signal.h>, intprops.h.
79610         (INT_STRLEN_BOUND): Remove.
79611         * lib/strftime.c (TYPE_SIGNED): Remove.
79612         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
79613         * lib/strtol.c: Adjust comments to match intprops.h.
79614         * lib/userspec.c: Include intprops.h.
79615         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
79616         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
79617         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
79618         instead of rolling our own expressions.
79619         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
79620
79621         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
79622         instead of int.
79623         (my_strftime): Do not mishandle years close to INT_MAX, by doing
79624         the right thing even if adding 1900 would overflow.  Similarly
79625         for tm_mon + 1 and tm_yday + 1.
79626         Make %Y always equivalent to %C%y, and similarly for %G and %g.
79627         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
79628         (DO_SIGNED_NUMBER): New macro.
79629         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
79630
79631 2005-03-07  Bruno Haible  <bruno@clisp.org>
79632
79633         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
79634
79635 2005-03-07  Bruno Haible  <bruno@clisp.org>
79636
79637         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
79638
79639 2005-03-04  Derek R. Price  <derek@ximbiot.com>
79640
79641         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
79642         (func_import): Only replace files via --import when they have actually
79643         changed.
79644
79645 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79646
79647         * m4/mmap-anon.m4: New file.
79648         * m4/pagealign_alloc.m4: New file.
79649
79650 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79651             Bruno Haible  <bruno@clisp.org>
79652
79653         * modules/pagealign_alloc: New file.
79654         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
79655
79656 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79657             Bruno Haible  <bruno@clisp.org>
79658
79659         * lib/pagealign_alloc.h: New file.
79660         * lib/pagealign_alloc.c: New file.
79661
79662 2005-03-03  Bruno Haible  <bruno@clisp.org>
79663
79664         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
79665         Use an all-permissive copyright notice, recommended by RMS.
79666
79667 2005-03-02  Bruno Haible  <bruno@clisp.org>
79668
79669         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
79670         of AIX, the replacement has to be done only after <string.h> is
79671         included, therefore not in config.h. stpncpy.h does the replacement,
79672         and stpncpy.c uses it.
79673
79674 2005-03-02  Bruno Haible  <bruno@clisp.org>
79675
79676         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
79677         stpncpy.c uses it.
79678
79679 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79680
79681         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
79682         The workaround isn't strictly needed for POSIX conformance, and
79683         it's too much of a pain to configure and maintain.  We'll ask
79684         people to fix their kernels instead.
79685         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
79686         (NANOSLEEP_BUG_WORKAROUND): Remove.
79687         (xnanosleep): Remove the workaround.
79688
79689 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79690
79691         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
79692         Reported by Derek Price.
79693         (Include): Add "timespec.h".
79694
79695         * modules/xnanosleep (Depends-on): Remove gethrxtime.
79696
79697 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79698
79699         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
79700         to detect nanosleep bug.
79701
79702 2005-03-01  Bruno Haible  <bruno@clisp.org>
79703
79704         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
79705
79706 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79707
79708         * modules/gethrxtime: New file.
79709         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
79710         (Depends-on): Add gethrxtime.
79711         (configure.ac): Add gl_XNANOSLEEP.
79712         (Makefile.am): Remove lib_SOURCES line.
79713
79714 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79715
79716         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
79717         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
79718
79719 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79720
79721         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
79722         * lib/timespec.h (gettime): Return void, since it always
79723         succeeds now.  All uses changed.
79724         * lib/gettime.c (gettime): Likewise.
79725         [HAVE_NANOTIME]: Prefer nanotime.
79726         Assume gettimeofday succeeds, as POSIX requires.
79727         Assime time () succeeds, since other code already does.
79728         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
79729         (timespec_subtract): Remove.
79730         (NANOSLEEP_BUG_WORKAROUND): New constant.
79731         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
79732         things considerably.  Use it only on GNU/Linux hosts, since the
79733         workaround shouldn't be needed elsewhere.
79734
79735 2005-02-24  Bruno Haible  <bruno@clisp.org>
79736
79737         * modules/gettext (Files): Add m4/glibc2.m4.
79738
79739 2005-02-24  Bruno Haible  <bruno@clisp.org>
79740
79741         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
79742         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
79743         * m4/progtest.m4:
79744         Update from GNU gettext 0.14.2.
79745         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
79746
79747 2005-02-24  Bruno Haible  <bruno@clisp.org>
79748
79749         * lib/localcharset.c: Update from GNU gettext 0.14.2.
79750         * lib/config.charset: Update from GNU gettext 0.14.2.
79751
79752 2005-02-24  Bruno Haible  <bruno@clisp.org>
79753
79754         * lib/gettext.h: Update from GNU gettext 0.14.2.
79755
79756 2005-02-23  Simon Josefsson  <jas@extundo.com>
79757
79758         * m4/iconvme.m4: New file.
79759
79760 2005-02-23  Jim Meyering  <jim@meyering.net>
79761
79762         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
79763         change.
79764         Thanks to Bruno Haible for catching it.
79765
79766 2005-02-22  Simon Josefsson  <jas@extundo.com>
79767
79768         * modules/iconvme: New file.
79769
79770         * MODULES.html.sh: Add iconvme.
79771
79772 2005-02-22  Simon Josefsson  <jas@extundo.com>
79773
79774         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
79775
79776 2005-02-22  Simon Josefsson  <jas@extundo.com>
79777
79778         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
79779
79780 2005-02-22  Jim Meyering  <jim@meyering.net>
79781
79782         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
79783         s/ifndef/ifdef/.
79784
79785 2005-02-20  Neil Conway  <neilc@samurai.com>
79786
79787         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
79788         returned by OSX/Darwin if the specified buffer is not large
79789         enough for the hostname.
79790
79791 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79792
79793         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
79794         pass it to _help, otherwise the latter coredumps trying to
79795         dereference state.root_argp.
79796
79797 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79798
79799         * modules/chdir-long (Depends-on): Add memrchr.
79800         * modules/memrchr (Files): Add lib/memrchr.h.
79801         (Include): "memrchr.h".
79802
79803 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79804
79805         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
79806
79807 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79808
79809         * lib/memrchr.h: New file.
79810         * lib/chdir-long.c: Include it.
79811         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
79812         Don't bother including stddef.h.
79813
79814 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
79815
79816         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
79817         inclusion.
79818         Include <sys/types.h>, for dev_t.
79819         (ME_DUMMY, ME_REMOTE): Move from here....
79820         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
79821         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
79822         Dmitry V. Levin.
79823         Include mountlist.h first, to test the interface.
79824
79825 2005-01-29  Bruno Haible  <bruno@clisp.org>
79826
79827         * lib/progname.c (program_name): Initialize.
79828         Needed when linking statically on MacOS X.
79829
79830 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79831
79832         Sync from coreutils.
79833         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
79834         (Depends-on): Add c-strtod.
79835         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
79836
79837 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79838
79839         Sync from coreutils.
79840         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
79841
79842         Remove files that are specific to coreutils.
79843         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
79844
79845 2005-01-28  Bruno Haible  <bruno@clisp.org>
79846
79847         * modules/javacomp: New file.
79848         * MODULES.html.sh (Java): Add javacomp.
79849
79850 2005-01-28  Bruno Haible  <bruno@clisp.org>
79851
79852         * m4/javacomp.m4: New file, from GNU gettext.
79853
79854 2005-01-28  Bruno Haible  <bruno@clisp.org>
79855
79856         * lib/javacomp.sh.in: New file, from GNU gettext.
79857         * lib/javacomp.h: New file, from GNU gettext.
79858         * lib/javacomp.c: New file, from GNU gettext.
79859
79860 2005-01-26  Simon Josefsson  <jas@extundo.com>
79861
79862         * lib/gai_strerror.c: Use GPL in header.
79863
79864 2005-01-26  Bruno Haible  <bruno@clisp.org>
79865
79866         * modules/javaexec: New file.
79867         * MODULES.html.sh (Java): Add javaexec.
79868
79869 2005-01-26  Bruno Haible  <bruno@clisp.org>
79870
79871         * m4/javaexec.m4: New file, from GNU gettext.
79872
79873 2005-01-26  Bruno Haible  <bruno@clisp.org>
79874
79875         * lib/javaexec.sh.in: New file, from GNU gettext.
79876         * lib/javaexec.h: New file, from GNU gettext.
79877         * lib/javaexec.c: New file, from GNU gettext.
79878
79879 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79880
79881         * modules/lchown (Depends-on): Remove lchown.h
79882
79883 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79884
79885         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
79886         must be defined if the header file was not found, in order
79887         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
79888
79889 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79890
79891         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
79892         initializers for struct pentry_state.
79893         (__argp_error): Check return value of __asprintf
79894         (__argp_failure): Translate error message
79895
79896         * lib/argp-parse.c: Removed braces around the expansion of N_()
79897
79898 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79899
79900         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
79901         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
79902         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
79903         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
79904         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
79905         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
79906         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
79907         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
79908         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
79909         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
79910         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
79911         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
79912         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
79913         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
79914         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
79915         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
79916         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
79917         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
79918         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
79919         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
79920         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
79921         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
79922         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
79923         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
79924         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
79925         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
79926         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
79927         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
79928         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
79929         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
79930         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
79931         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
79932         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
79933         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
79934         xstrtol.m4, xstrtoumax.m4, yesno.m4:
79935         Use an all-permissive copyright notice, recommended by RMS.
79936
79937 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
79938
79939         * modules/chdir-long (Depends-on): Remove mempcpy.
79940
79941 2005-01-21  Jim Meyering  <jim@meyering.net>
79942
79943         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
79944         same value as for Solaris 9.
79945
79946         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
79947         component length.  This included changing the parameter to be
79948         of type `char *' rather than `char const *'.
79949         * lib/chdir-long.h (chdir_long): Update prototype.
79950
79951         * lib/openat.c (fdopendir, fstatat): New functions.
79952         * lib/openat.h: Include headers required for use of DIR and struct
79953         stat.
79954         [AT_SYMLINK_NOFOLLOW]: Define.
79955         (fdopendir, fstatat): Add prototypes.
79956
79957 2005-01-21  Bruno Haible  <bruno@clisp.org>
79958
79959         * modules/classpath: New file.
79960         * MODULES.html.sh (Java): Add classpath.
79961
79962 2005-01-21  Bruno Haible  <bruno@clisp.org>
79963
79964         * lib/classpath.h: New file, from GNU gettext.
79965         * lib/classpath.c: New file, from GNU gettext.
79966
79967 2005-01-20  Simon Josefsson  <jas@extundo.com>
79968
79969         * modules/version-etc-fsf: New file.
79970
79971 2005-01-20  Simon Josefsson  <jas@extundo.com>
79972
79973         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
79974         * lib/version-etc.c: Remove version_etc_copyright.
79975         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
79976         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
79977
79978 2005-01-20  Simon Josefsson  <jas@extundo.com>
79979
79980         * lib/base64.h (isbase64): Add.
79981
79982         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
79983         using a unsigned prototype, don't inline.
79984         (base64_decode): Use it.
79985
79986 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79987
79988         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
79989         it.
79990
79991 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79992
79993         * lib/save-cwd.c (save_cwd): Remove code to support the case
79994         where fchdir is missing or flaky.
79995
79996 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79997
79998         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
79999
80000 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
80001
80002         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
80003         AC_LIBSOURCES now does this.
80004         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
80005         with new ullong_max module.
80006
80007 2005-01-19  Bruno Haible  <bruno@clisp.org>
80008
80009         * modules/sh-quote: New file.
80010         * MODULES.html.sh (Executing programs): Add sh-quote.
80011
80012 2005-01-19  Bruno Haible  <bruno@clisp.org>
80013
80014         * lib/sh-quote.h: New file, from GNU gettext.
80015         * lib/sh-quote.c: New file, from GNU gettext.
80016
80017 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80018
80019         Merge from coreutils.
80020         * m4/ullong_max.m4: New file.
80021         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
80022         (gl_MACROS): Assume localeconv exists.
80023
80024 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80025
80026         Merge changes from coreutils, as described below in several
80027         changelogs dated today.
80028
80029         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
80030         (O_DIRECTORY): Remove; not needed here, since "." must be
80031         a directory.  All uses removed.
80032         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
80033         universal on Suns, and we also need to test for IRIX.
80034         Revamp code to use 'if' rather than '#if'.
80035         Avoid unnecessary comparison of cwd->desc to 0.
80036
80037         * lib/utimens.c (futimens): Robustify the previous patch, by checking
80038         for known valid error numbers rather than observed invalid ones.
80039
80040 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80041
80042         * modules/ullong_max: New file.
80043
80044         * modules/chdir-long, modules/openat: New files.
80045         * modules/save-cwd (Depends-on): Depend on chdir-long.
80046         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
80047
80048 2005-01-18  Jim Meyering  <jim@meyering.net>
80049
80050         Merge from coreutils.
80051         * m4/chdir-long.m4, m4/openat.m4: New files.
80052         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
80053         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
80054         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
80055         is sane and DOES follow symlinks.  Besides, testing 20 different
80056         systems found no broken chown implementations.
80057         Prompted by a change in rsync's copy of this macro.
80058         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
80059
80060         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
80061
80062         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
80063         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
80064         NULL-means-set-to-current-time semantics.
80065         Remove temporary file immediately, rather than waiting
80066         for configure's at-exit trap code to do it.
80067
80068 2005-01-18  Jim Meyering  <jim@meyering.net>
80069
80070         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80071
80072         * lib/utimens.c (futimens): Account for the fact that futimes
80073         can also fail with errno == ENOSYS or errno == ENOENT.
80074         Patch from Dmitry V. Levin.
80075
80076         Change the name of the robust chdir function from chdir to chdir_long.
80077         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
80078         (restore_cwd): Use chdir_long, not chdir.
80079         * lib/chdir-long.c: Renamed from chdir.c.
80080         * lib/chdir-long.h: Renamed from chdir.h.
80081         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
80082         Hurd.
80083
80084 2005-01-18  Bruno Haible  <bruno@clisp.org>
80085
80086         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
80087         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
80088         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
80089         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
80090         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
80091         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
80092         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
80093         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
80094         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
80095         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
80096         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
80097         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
80098         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
80099         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
80100         Use an all-permissive copyright notice, recommended by RMS.
80101
80102 2005-01-18  Bob Proulx  <bob@proulx.com>
80103
80104         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
80105         simplify offsetof() macro construct to avoid compile failure with
80106         native HP-UX 11.0 ANSI C compiler.
80107
80108 2005-01-17  Bruno Haible  <bruno@clisp.org>
80109
80110         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
80111         redundant because stpncpy.m4 takes care of it.
80112
80113 2005-01-17  Bruno Haible  <bruno@clisp.org>
80114
80115         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
80116
80117 2005-01-17  Bruno Haible  <bruno@clisp.org>
80118
80119         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
80120         used.
80121
80122 2005-01-17  Bruno Haible  <bruno@clisp.org>
80123
80124         * lib/fwriteerror.h (fwriteerror): Change specification to include
80125         fclose.
80126         * lib/fwriteerror.c: Include <stdbool.h>.
80127         (fwriteerror): At the end, close the file stream. Record whether
80128         stdout was already closed.
80129
80130 2005-01-17  Bruno Haible  <bruno@clisp.org>
80131
80132         * lib/execute.c (environ): Declare if needed.
80133         * lib/pipe.c (environ): Likewise.
80134         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
80135
80136 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80137
80138         * modules/argp: Depend on vsnprintf
80139
80140 2005-01-10  Jim Meyering  <jim@meyering.net>
80141
80142         * modules/closeout (Depends-on): Add atexit.
80143
80144 2005-01-06  Bruno Haible  <bruno@clisp.org>
80145
80146         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
80147
80148 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80149
80150         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
80151         definitions to be after all include files, to avoid collisions.
80152         Problem reported by Bob Proulx.
80153
80154 2005-01-04  Jim Meyering  <jim@meyering.net>
80155
80156         Changes imported from coreutils.
80157         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
80158         as the mkstemp template, use a temporary directory and an
80159         8.3-friendly template to avoid trouble on systems like DJGPP.
80160         Reported by Juan M. Guerrero via Stepan Kasal.
80161         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
80162         close. Remove the temporary directory right away, rather than waiting
80163         for configure's at-exit trap code to do it.
80164         Suggestion from Stepan Kasal.
80165
80166 2005-01-01  Simon Josefsson  <jas@extundo.com>
80167
80168         * gnulib-tool: Print #include directives when --import'ing.
80169
80170 2004-12-28  Simon Josefsson  <jas@extundo.com>
80171
80172         * tests/test-base64.c: Include required header files.  Remove
80173         unused variables.
80174
80175 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
80176
80177         * modules/error (Depends-on): Remove gettext.
80178
80179 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
80180
80181         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
80182         not needed.  This removes a dependency on the gettext module.
80183         [defined _LIBC]: Do not include <libintl.h>; not needed.
80184
80185 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
80186
80187         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
80188         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
80189
80190 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
80191
80192         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
80193         HAVE_DECL_STRTOLD.
80194
80195 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80196
80197         * modules/getdate (Depends-on): Remove alloca-opt.
80198
80199 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80200
80201         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
80202
80203 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80204
80205         * lib/argp-parse.c: Include <stddef.h>.
80206         (alignof, alignto): New macros.
80207         (parser_init): Don't assume that void * is aligned sufficiently
80208         for struct option.
80209
80210         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
80211         need to extend the stack.
80212         (YYINITDEPTH): New macro, so that the initial stack isn't overly
80213         large.
80214
80215 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80216
80217         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
80218
80219 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
80220
80221         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
80222         (2004-10-24) change.  Apparently this was a false alarm.
80223
80224         * modules/getdate: Depend on alloca-opt, not alloca.
80225
80226 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
80227
80228         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
80229         Remove now-obsolete comment about AIX.
80230         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
80231         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
80232         (YYMAXDEPTH): New macro.
80233
80234 2004-12-18  Simon Josefsson  <jas@extundo.com>
80235
80236         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
80237
80238 2004-12-18  Bruno Haible  <bruno@clisp.org>
80239
80240         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
80241
80242 2004-12-18  Bruno Haible  <bruno@clisp.org>
80243
80244         * lib/fatal-signal.c (fatal_signals): Make non-const.
80245         (init_fatal_signals): New function.
80246         (uninstall_handlers, install_handlers): Ignore signals that were set to
80247         SIG_IGN.
80248         (at_fatal_signal): Call init_fatal_signals.
80249         (init_fatal_signal_set): Likewise. Ignore signals that were set to
80250         SIG_IGN.
80251         Reported by Paul Eggert.
80252
80253 2004-12-18  Bruno Haible  <bruno@clisp.org>
80254
80255         * doc/alloca.texi: New file.
80256         * doc/alloca-opt.texi: New file.
80257
80258 2004-12-17  Jim Meyering  <jim@meyering.net>
80259
80260         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
80261         Otherwise, install-sh could exit with improper exit status when
80262         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
80263
80264 2004-12-16  Simon Josefsson  <jas@extundo.com>
80265
80266         * tests/test-base64.c: Add license.
80267
80268 2004-12-15  Stepan Kasal  <address@hidden>
80269
80270         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
80271
80272 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
80273
80274         * modules/getcwd (Files): Add m4/d-ino.m4.
80275         Suggested by Mark D. Baushke.
80276
80277 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
80278
80279         * lib/getdate.y (textint): New member "negative".
80280         (time_zone_hhmm): New function.
80281         Expect 14 shift-reduce conflicts, not 13.
80282         (o_colon_minutes): New rule.
80283         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
80284         (yylex): Set the "negative" member of signed numbers.
80285
80286 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
80287
80288         * doc/getdate.texi (Time of day items, Time zone items):
80289         Describe new formats +00:00, UTC+00:00.
80290
80291 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80292
80293         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
80294         spurious "-l"s.  Problem reported by Stepan Kasal.
80295
80296 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
80297
80298         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
80299         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
80300
80301 2004-12-04  Simon Josefsson  <jas@extundo.com>
80302
80303         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
80304         Vandoorselaere <yoann@prelude-ids.org>.
80305
80306 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80307
80308         Changes imported from coreutils.
80309         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
80310         exist.
80311         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
80312
80313 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80314
80315         Changes imported from coreutils.
80316         * lib/hard-locale.c: Assume <locale.h> exists.
80317         Include "strdup.h".
80318         (GLIBC_VERSION): New macro.
80319         (hard_locale): Assume setlocale exists.
80320         Rewrite to avoid #ifdef.
80321         Use strdup rather than malloc + strcpy.
80322         * lib/human.c: Assume <locale.h> exists.
80323         (human_readable): Assume localeconv exists.
80324
80325 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80326
80327         * modules/hard-locale (Depends-on): Add strdup.
80328
80329 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
80330
80331         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
80332         convert T2, not T.  (Imported from libc.)
80333
80334 2004-11-30  Simon Josefsson  <jas@extundo.com>
80335
80336         * modules/restrict (License): Change to LGPL.
80337
80338 2004-11-30  Simon Josefsson  <jas@extundo.com>
80339
80340         * m4/restrict.m4: Add copyright and copying conditions.
80341
80342 2004-11-30  Simon Josefsson  <jas@extundo.com>
80343
80344         * m4/base64.m4: New file.
80345
80346 2004-11-30  Simon Josefsson  <jas@extundo.com>
80347
80348         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
80349         base64.
80350
80351         * tests/test-base64.c: New file.
80352
80353         * modules/base64: New file.
80354
80355 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
80356
80357         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
80358         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
80359
80360         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
80361
80362 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
80363
80364         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
80365         (__getcwd.c): Don't restore errno; glibc doesn't.
80366         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
80367         first, falling back to our code only if its results look suspicious.
80368         Ensure that the resulting buffer is only as large as necessary.
80369
80370         * lib/readutmp.c: Include readutmp.h first.
80371         Include <errno.h>, since readutmp.h no longer does that.
80372         * lib/readutmp.h: Don't include <errno.h>,
80373         <sys/param.h>, <time.h>; not needed to establish interface.
80374         (errno): Remove decl.
80375         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
80376         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
80377         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
80378
80379 2004-11-28  Simon Josefsson  <jas@extundo.com>
80380
80381         * lib/base64.h, base64.c: New file.
80382
80383 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
80384
80385         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
80386
80387 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
80388
80389         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
80390         (Depends-on): Remove pathmax, same.  Add mempcpy.
80391         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
80392         (Makefile.am): Append getcwd.h to lib_SOURCES.
80393         (Include): Add getcwd.h.
80394         (Maintainer): Change from Jim Meyering to "all, glibc",
80395         since getdate now uses intended-for-glibc code.
80396         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
80397         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
80398
80399 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80400
80401         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
80402         HP's ANSI C compiler.
80403         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
80404         Declaring int functions causes warnings on some modern systems and
80405         shouldn't be needed to compile on ancient ones.
80406         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
80407         defined.
80408
80409         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
80410         with the following changes.
80411         (__set_errno): Parenthesize properly.
80412         Include <stdbool.h>.
80413         (MIN, MAX, MATCHING_INO): New macros.
80414         (__getcwd): Define with prototype, not K&R form.
80415         Use heuristics to allocate default buffer on stack if possible.
80416         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
80417         behavior, and to avoid the PATH_MAX limit when computing
80418         ../../../../...
80419         Use MATCHING_INO to compare inode number to file.
80420         Check for arithmetic overflow in size calculations.
80421         Fix bug in reallocation of dot array that caused getcwd to fail
80422         on directories nested deeper than 75.
80423         Be more careful about saving errno on error.
80424         Do not use realloc; use only free+malloc, as this is a bit
80425         more flexible and avoids a needless copy operation.
80426         Do not inspect st_dev and st_ino for symbolic links; POSIX
80427         doesn't specify the latter.
80428         Check for closedir errors.
80429         Avoid needless casts.
80430         Use "#ifdef weak_alias" around weak_alias, to be like other
80431         glibc code.
80432         The following changes to getcwd.c have effect only when used in
80433         gnulib; they have no effect inside glibc proper.
80434         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
80435         as alloca isn't used.
80436         (alloca, __alloca): Likewise.
80437         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
80438         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
80439         unconditionally, as gnulib assumes C89 or better.
80440         Do not include <sys/param.h>.
80441         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
80442         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
80443         better.
80444         (NULL) [!defined NULL]: Remove; we assume C89 or better.
80445         Include <dirent.h> in a way that is compatible with modern Autoconf.
80446         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
80447         New macros, if not already defined.
80448         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
80449         Use "_LIBC", not "defined _LIBC", for consistency.
80450         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
80451         a mempcpy module.
80452         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
80453         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
80454         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
80455         credit only to Jim Meyering and adjust the copyright dates.
80456         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
80457         <stdlib.h>, <unistd.h>, "pathmax.h".
80458         Instead, include "xgetcwd.h" (first) and "getcwd.h".
80459         (INITIAL_BUFFER_SIZE): Remove.
80460         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
80461
80462 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80463
80464         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
80465         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
80466         Use the _ONCE methods, for efficiency.
80467         Check for fcntl.h.  In test program, include <errno.h>
80468         and <fcntl.h> if available.  Remove old K&R cruft from
80469         test program.  Check for common errors in GNU/Linux,
80470         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
80471         don't do AC_LIBOBJ, as that's getcwd.m4's job.
80472         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
80473         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
80474         name accordingly.
80475         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
80476         accommodate new getcwd.c.
80477         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
80478         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
80479         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
80480         that's all we need now.
80481
80482 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80483
80484         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
80485         argp-parse.c depends on getopt internals, that means we should
80486         always use our getopt, to be on the safe side.
80487         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
80488         order not to spoil the result of an eventual previous invocation
80489         of gl_GETOPT_SUBSTITUTE.
80490
80491 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80492
80493         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
80494         redefinition warnings. To avoid them, include the defines
80495         in `#if !defined __need_getopt ... #endif'. The only place
80496         where __getopt_argv_const is used is in definitions
80497         of getopt_long and getopt_long_only below, which are as well
80498         protected by `#ifndef __need_getopt'.
80499         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
80500         __need_getopt after including <stdio.h> and <unistd.h> These
80501         headers might have defined it.
80502
80503 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80504
80505         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
80506
80507 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80508
80509         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
80510         (futimens): New function, which uses futimes if available.
80511         (futimens, utimens): Support timespec==NULL, with same semantics
80512         as utime and utimens.
80513         * lib/utimens.h (futimens): New decl.
80514
80515 2004-11-23  Jim Meyering  <jim@meyering.net>
80516
80517         * lib/getopt_.h: Remove trailing blanks.
80518
80519 2004-11-23  Jim Meyering  <jim@meyering.net>
80520
80521         * lib/__fpending.c: Add comment.
80522
80523 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
80524
80525         * modules/canonicalize (Depends-on): Add xreadlink.
80526         Problem reported by James Youngman.
80527
80528 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
80529
80530         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
80531         New macros.
80532         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
80533         optopt): Use them instead of invoking ## directly; otherwise, the
80534         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
80535
80536 2004-11-19  Bruno Haible  <bruno@clisp.org>
80537
80538         * lib/strtok_r.c: Move comments from here...
80539         * lib/strtok_r.h: ... to here.
80540
80541 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
80542
80543         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
80544         implementations that mishandle size_t overflow.
80545
80546 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
80547
80548         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
80549         might fail.  Problem reported by Yoann Vandoorselaere.
80550         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
80551         implementations that mishandle size_t overflow.
80552
80553 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80554
80555         * modules/canon-host (Depends-on): Add strdup.
80556
80557 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80558
80559         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
80560
80561 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80562
80563         * lib/canon-host.c: Include "strdup.h".
80564         (canon_host): Use getaddrinfo if available, so that IPv6 works.
80565         Use strdup instead of malloc/strcpy to duplicate strings.
80566
80567         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
80568         (human_space_before_unit): New constant.
80569         * lib/human.c (human_readable): Support it.
80570
80571         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
80572         (xgetcwd): Set errno correctly when failing.
80573         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
80574         the failure is actually due to a PATH_MAX problem.
80575
80576         Further getopt changes to make it more likely that glibc will
80577         buy the changes back.
80578         * lib/getopt.c (POSIXLY_CORRECT): New constant.
80579         (getopt): Use it, so to preserve glibc semantic
80580         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
80581         when compiling for libc.
80582         * lib/getopt_.h (__getopt_argv_const): Bring it back.
80583         (getopt_long, getopt_long_only): Use it.
80584
80585         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80586         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
80587         (getopt): Argv is now char * const *, as per standard.
80588         (_getopt_internal_r, _getopt_internal): Argv is now char **,
80589         not char *__getopt_argv_const *.
80590         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80591         _getopt_long_only_r): Likewise.
80592         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
80593         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80594         _getopt_long_r, _getopt_long_only_r): Likewise.
80595         * lib/getopt_.h (__getopt_argv_const): Remove.
80596         (getopt): Argv is now char * const *, as per standard.
80597
80598         * lib/getdate.y (tORDINAL): New token.
80599         (day, relunit): Allow it for relative times.
80600         (relative_time_table): Use tORDINAL for ordinals.
80601
80602 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80603
80604         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
80605         Document that "second" isn't allowed as an ordinal number.
80606
80607 2004-11-16  Jim Meyering  <jim@meyering.net>
80608
80609         * modules/closeout (Depends-on): Add fpending.
80610
80611 2004-11-15  Jim Meyering  <jim@meyering.net>
80612
80613         * lib/closeout.c: Include "__fpending.h" once again.
80614         Include <stdbool.h>.
80615         (close_stdout): Don't fail just because stdout was closed initially,
80616         since some programs don't write to stdout in the normal course of
80617         operation (other than --version and --help), and we don't want this
80618         function to make e.g. `touch file >&-' fail.
80619         But do fail if it was closed and someone has tried to write to it.
80620         E.g., `printf foo >&-' must fail.
80621
80622 2004-11-13  Jim Meyering  <jim@meyering.net>
80623
80624         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
80625
80626 2004-11-12  Simon Josefsson  <jas@extundo.com>
80627
80628         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
80629         small doc fix is still pending.
80630
80631 2004-11-11  Simon Josefsson  <jas@extundo.com>
80632
80633         * modules/strtok_r: New file.
80634
80635         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80636         strtok_r.
80637
80638 2004-11-11  Simon Josefsson  <jas@extundo.com>
80639
80640         * m4/strtok_r.m4: New file.
80641
80642         * m4/getopt.m4: Replace opterr.
80643
80644 2004-11-11  Simon Josefsson  <jas@extundo.com>
80645
80646         * lib/strtok_r.h, strtok_r.c: New file.
80647
80648 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80649
80650         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
80651         of replacing opterr, getopt, etc.  This should handle the
80652         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
80653
80654 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80655
80656         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
80657         we can stop lying to compilers about the constness of argv when we
80658         are compiled outside glibc.
80659         (getopt, getopt_long, getopt_long_only): Use it.
80660         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80661         _getopt_internal, getopt): Likewise.
80662         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80663         _getopt_long_only_r): Likewise.
80664         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80665         _getopt_long_r, _getopt_long_only_r): Likewise.
80666
80667         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
80668         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
80669         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
80670         the other external symbols.
80671         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
80672         declaration, since the above renaming now works around collisions.
80673
80674 2004-11-11  Jim Meyering  <jim@meyering.net>
80675
80676         * lib/linebreak.c: Remove trailing blanks.
80677         * lib/alloca_.h: Likewise.
80678         * lib/acosl.c: Likewise.
80679         * lib/euidaccess.c: Likewise.
80680         * lib/allocsa.h: Likewise.
80681
80682 2004-11-10  Simon Josefsson  <jas@extundo.com>
80683
80684         * m4/getaddrinfo.m4: New file.
80685
80686 2004-11-10  Simon Josefsson  <jas@extundo.com>
80687
80688         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
80689
80690 2004-11-10  Simon Josefsson  <jas@extundo.com>
80691
80692         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80693         getaddrinfo.
80694
80695         * modules/getaddrinfo: New file.
80696
80697 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80698
80699         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
80700
80701 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80702
80703         * lib/mktime.c (SHR): New macro, which is a portable
80704         substitute for >> that should work even on Crays.
80705         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
80706         Problem reported by Mark D. Baushke in
80707         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
80708         * lib/getdate.y (SHR): Likewise.
80709         (tm_diff): Use it.
80710         * lib/strftime.c (SHR): Likewise.
80711         (tm_diff): Use it.
80712         * lib/quotearg.c (struct quoting_options): Use unsigned int for
80713         quote_these_too, so that right shifts are well defined.  All uses
80714         changed.
80715
80716 2004-11-10  Jim Meyering  <jim@meyering.net>
80717
80718         Ensure that no close failure goes unreported.
80719         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
80720         return early when it seems there's nothing to flush.
80721         Don't include __fpending.h.
80722
80723 2004-11-10  Jim Meyering  <jim@meyering.net>
80724
80725         * modules/closeout (Depends-on): Remove fpending.
80726
80727 2004-11-10  Jim Meyering  <jim@meyering.net>
80728
80729         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
80730
80731 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80732
80733         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
80734         gl_FUNC_STRFTIME.
80735         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
80736         and AC_REQUIRE when possible, to avoid duplicate checks.
80737         Check for <wchar.h>.
80738
80739 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80740
80741         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
80742
80743 2004-11-09  Bruno Haible  <bruno@clisp.org>
80744
80745         * m4/sockpfaf.m4: New file.
80746
80747 2004-11-05  Bruno Haible  <bruno@clisp.org>
80748
80749         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
80750         Reported by Mark D. Baushke <mdb@cvshome.org>.
80751
80752 2004-11-04  Bruno Haible  <bruno@clisp.org>
80753
80754         2004-09-11  Bruno Haible  <bruno@clisp.org>
80755                 * allocsa.valgrind: New file.
80756         2004-02-06  Bruno Haible  <bruno@clisp.org>
80757                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
80758                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
80759                 Reported by Christopher Seip <chris.seip@hp.com>.
80760
80761 2004-11-04  Bruno Haible  <bruno@clisp.org>
80762
80763         * modules/allocsa (Files): Add lib/allocsa.valgrind.
80764         (Makefile.am): Distribute it.
80765
80766 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
80767
80768         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
80769         with errno == ERANGE if the buffer is too small.
80770         Problem reported by Mark D. Baushke.
80771
80772 2004-11-03  Albert Chin  <china@thewrittenword.com>
80773             Paul Eggert  <eggert@cs.ucla.edu>
80774
80775         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
80776         equivalent, substitute $ac_type for equivalent type rather than
80777         blindly using uint32_t *always* which won't work if uint32_t is not
80778         available.  Define _UINT32_T to work around typedef of uint32_t if
80779         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
80780         2.5.1.
80781
80782 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80783
80784         * m4/jm-macros.m4: Sync from coreutils.
80785         (gl_MACROS): Check for mbrlen, for pathchk.
80786         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
80787
80788 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80789
80790         * lib/xreadlink.c (MAXSIZE): New macro.
80791         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
80792         size does not exceed MAXSIZE.  Avoid cast.
80793         As suggested by Mark D. Baushke in
80794         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
80795         if readlink fails with buffer size just under MAXSIZE, try again
80796         with MAXSIZE.
80797
80798 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80799
80800         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
80801
80802 2004-11-02  Derek R. Price  <derek@ximbiot.com>
80803         and  Paul Eggert  <eggert@cs.ucla.edu>
80804
80805         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
80806         (get_date): Overparenthesize to avoid GCC warning.
80807
80808 2004-11-02  Bruno Haible  <bruno@clisp.org>
80809
80810         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
80811         returns void.
80812
80813 2004-11-02  Bruno Haible  <bruno@clisp.org>
80814
80815         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
80816         function returns void.
80817
80818 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80819
80820         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
80821         fflush_unlocked, flockfile, funlockfile, funlockfile,
80822         fputs_unlocked, putc_unlocked.
80823
80824 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80825
80826         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80827         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
80828         already declared.
80829
80830 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80831
80832         * modules/getdate (Files): Add doc/getdate.texi.
80833         (Depends-on): Add setenv, xalloc.
80834
80835 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80836
80837         * lib/getdate.y: Add support for TZ="foo" within a date string.
80838         Fix some bugs near time_t boundaries.  Reject dates with
80839         out-of-range components, e.g., "Sept 31".
80840         Include <stdlib.h>, "setenv.h", "xalloc.h".
80841         (ISDIGIT_LOCALE): Remove; unused.
80842         Note that the TZ and time functions used here are not reentrant.
80843         (mktime_ok, get_tz): New functions.
80844         (TZBUFSIZE): New constant.
80845         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
80846         This requires that we sometimes generate our own TZ="XXX..." setting.
80847
80848 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80849
80850         * doc/getdate.texi: New file, from coreutils with modifications for
80851         the new TZ parsing.
80852
80853 2004-10-27  Derek R. Price  <derek@ximbiot.com>
80854
80855         * lib/mktime.c (not_equal_tm): Remove redundant check.
80856
80857 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80858
80859         * modules/regex (lib_SOURCES): Add regex.c.
80860         Reported by James Youngman in
80861         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
80862
80863 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80864
80865         * lib/getdate.y: Use Bison 1.875 features, and some minor
80866         code cleanups.  This change does not affect semantics.
80867         Don't include <stdlib.h>; no longer needed.
80868         Don't include unlocked-io.h; only the "#if TEST" code uses
80869         stdio, and performance isn't crucial there.
80870         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
80871         Bison 1.875 features as described below.
80872         All uses of "PC." replaced by "pc->".
80873         (YYSTYPE): Add a forward declaration.
80874         (yylex, yyerror): Use full prototypes in forward decls.
80875         Use "%pure-parser" rather than obsolescent "%pure_parser".
80876         Use %parse-param and %lex-param instead of obsolescent
80877         YYPARSE_PARAM and YYLEX_PARAM.
80878         (meridian_table, month_and_day_table, time_units_table,
80879         relative_time_table, time_zone_table, military_table,
80880         lookup_zone, lookup_word, get_date):
80881         Use NULL instead of 0 where appropriate.
80882         (to_hour): Avoid abort (), to avoid a dependency on
80883         stdlib.h.
80884         (yyerror, yylex): Now accepts parser_control * arg.
80885         (main) [TEST]: Use '\0' rather than 0 for char.
80886
80887 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80888
80889         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
80890
80891 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80892
80893         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
80894         It's now the caller's responsibility to handle the case where
80895         !HAVE_GETPAGESIZE && !defined getpagesize.
80896
80897         * lib/mktime.c (leapyear): Arg is long int, not int.
80898
80899 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
80900
80901         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
80902
80903 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
80904
80905         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
80906         missing.  Problem reported by James Youngman.
80907
80908 2004-10-16  Simon Josefsson  <jas@extundo.com>
80909
80910         * gnulib-tool: Fix comments.  Fix parse problem.
80911         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
80912
80913 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
80914
80915         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
80916         implementation of getopt_long.  Problem reported by Alexander Taler in:
80917         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
80918
80919 2004-10-15  Bruno Haible  <bruno@clisp.org>
80920
80921         * gnulib-tool: Untabify. Initialize supplied_libname.
80922         (func_usage): More homogenous output.
80923         (func_modules_transitive_closure, func_modules_to_filelist,
80924         func_emit_lib_Makefile_am): New functions.
80925         (func_import): New function, extracted from big case statement. Use
80926         func_get_license, func_modules_transitive_closure,
80927         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
80928         opt_lgpl. Don't use test -a, as it's not portable.
80929         (func_create_testdir): Use func_modules_transitive_closure,
80930         func_modules_to_filelist, func_emit_lib_Makefile_am.
80931
80932 2004-10-15  Bruno Haible  <bruno@clisp.org>
80933
80934         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
80935
80936 2004-10-15  Bruno Haible  <bruno@clisp.org>
80937
80938         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
80939         the portions belonging to each module.
80940         Suggested by Derek Robert Price <derek@ximbiot.com>.
80941
80942 2004-10-12  Simon Josefsson  <jas@extundo.com>
80943
80944         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80945         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
80946         to real functions.
80947
80948 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80949
80950         * modules/vsnprintf: New file.
80951
80952 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80953
80954         * m4/vsnprintf.m4: New file.
80955
80956 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80957
80958         * lib/vsnprintf.h: New file.
80959         * lib/vsnprintf.c: New file.
80960
80961 2004-10-11  Bruno Haible  <bruno@clisp.org>
80962
80963         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
80964         vsnprintf.
80965
80966 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80967
80968         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
80969
80970 2004-10-07  Bruno Haible  <bruno@clisp.org>
80971
80972         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
80973         fits into the provided buffer.
80974
80975 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80976
80977         * lib/diacrit.c, diacrit.h: Add GPL notice.
80978
80979         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
80980         notice.
80981         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
80982         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
80983         This avoids a potential constant-folding bug.
80984
80985 2004-10-05  Bruno Haible  <bruno@clisp.org>
80986
80987         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
80988         for the declaration of strsep.
80989
80990 2004-10-05  Bruno Haible  <bruno@clisp.org>
80991
80992         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
80993
80994 2004-10-04  Simon Josefsson  <jas@extundo.com>
80995
80996         * modules/memmem: New file.
80997         * tests/test-memmem.c: New file.
80998         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
80999
81000 2004-10-04  Simon Josefsson  <jas@extundo.com>
81001
81002         * m4/memmem.m4: New file.
81003
81004 2004-10-04  Simon Josefsson  <jas@extundo.com>
81005
81006         * lib/memmem.h: New file.
81007         * lib/memmem.c: New file, taken from glibc.
81008
81009 2004-10-04  Simon Josefsson  <jas@extundo.com>
81010
81011         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
81012         '#ifdef USE_UNLOCKED_IO'.
81013
81014 2004-10-04  Simon Josefsson  <jas@extundo.com>
81015
81016         * config/srclist.txt: Add memmem from glibc.
81017
81018 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81019
81020         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
81021
81022         * modules/argmatch, modules/argp, modules/closeout, modules/error,
81023         modules/exclude, modules/getdate, modules/getline,
81024         modules/getndelim2, modules/getpass, modules/getpass-gnu,
81025         modules/getusershell, modules/linebuffer, modules/md5,
81026         modules/mountlist, modules/posixtm, modules/readtokens,
81027         modules/readutmp, modules/regex, modules/sha1,
81028         modules/version-etc, modules/yesno:
81029         Remove dependency on unlocked-io.
81030
81031 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81032
81033         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
81034
81035         * m4/unlocked-io.m4: Add copyright notice.
81036         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
81037
81038 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81039
81040         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
81041         * lib/xmalloc.c (xmemdup): Likewise.
81042         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
81043         XFREE): Remove these long-obsolescent macros.
81044         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
81045         * lib/xstrdup.c: Remove.
81046
81047         * lib/regex.c (re_comp): Cast gettext return value to char *,
81048         Problem reported by Martin Neitzel via Mark D. Baushke.
81049
81050 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81051
81052         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
81053         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
81054         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
81055         regex.c, sha1.c, version-etc.c, yesno.c:
81056         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
81057         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
81058         the includer's responsibility.
81059
81060         Sync from coreutils.
81061
81062         * lib/modechange.c (mode_compile): Don't decrement a pointer that
81063         points to the start of a string, as the C Standard says the
81064         resulting behavior is undefined.
81065
81066         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
81067         simple -> simple_backups, numbered_existing ->
81068         numbered_existing_backups, numbered -> numbered_backups
81069         to avoid shadowing problems.  All uses changed.
81070         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
81071         * lib/backupfile.c (check_extension, numbered_backup):
81072         Rename locals to avoid shadowing 'basename'.
81073         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
81074         once.
81075
81076         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
81077         * lib/.cvsignore: Add getopt.h.
81078
81079 2004-10-04  Bruno Haible  <bruno@clisp.org>
81080
81081         * modules/README: New file.
81082         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
81083         not a module.
81084
81085 2004-10-02  Jim Meyering  <jim@meyering.net>
81086
81087         * lib/dirfd.h, getpagesize.h: Add copyright notice.
81088
81089 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81090
81091         * modules/strsep: New file.
81092
81093 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81094
81095         * m4/strsep.m4: New file.
81096
81097 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81098
81099         * lib/strsep.h: New file.
81100         * lib/strsep.c: New file.
81101
81102 2004-10-01  Simon Josefsson  <jas@extundo.com>
81103
81104         * lib/snprintf.c (snprintf): Handle size==0.
81105
81106 2004-10-01  Simon Josefsson  <jas@extundo.com>
81107             Bruno Haible  <bruno@clisp.org>
81108
81109         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
81110         (snprintf): Declare 'args'.
81111
81112 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
81113
81114         * lib/snprintf.c: Remove comments as to why each header is needed.
81115
81116 2004-10-01  Bruno Haible  <bruno@clisp.org>
81117
81118         * MODULES.html.sh: Add strsep.
81119
81120 2004-09-30  Simon Josefsson  <jas@extundo.com>
81121
81122         * modules/snprintf: New file.
81123
81124 2004-09-30  Simon Josefsson  <jas@extundo.com>
81125
81126         * m4/snprintf.m4: New file.
81127
81128 2004-09-30  Simon Josefsson  <jas@extundo.com>
81129
81130         * lib/snprintf.h, lib/snprintf.c: New files.
81131
81132 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81133
81134         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
81135         (hol_entry_help): Never translate an empty string.
81136         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
81137         * lib/argp.h (OPTION_NO_TRANS): New option.
81138
81139 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81140
81141         * modules/argp (Maintainer): Replace Simon Josefsson
81142         by Sergey Poznyakoff.
81143
81144 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81145
81146         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
81147         changes merged back into glibc.
81148
81149 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81150
81151         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
81152
81153 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81154
81155         * lib/xvasprintf.c: Include xalloc.h.
81156         (xvasprintf): Use xalloc_die, not xmalloc_die.
81157
81158 2004-09-29  Bruno Haible  <bruno@clisp.org>
81159
81160         * modules/alloca-opt: New file, derived from modules/alloca.
81161         * modules/allocsa: Depend on alloca-opt instead of alloca.
81162         * modules/setenv: Likewise.
81163         * modules/vasnprintf: Likewise.
81164         * MODULES.html.sh: Add alloca-opt.
81165
81166 2004-09-28  Simon Josefsson  <jas@extundo.com>
81167
81168         * gnulib-tool: New parameter --lgpl, to asseert that modules are
81169         LGPL, and to replace license template from GPL to LGPL.
81170
81171 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
81172
81173         * modules/dummy: Change license to LGPL.
81174
81175 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
81176
81177         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
81178
81179 2004-09-24  Simon Josefsson  <jas@extundo.com>
81180
81181         * modules/minmax (License): Change from GPL to LGPL.
81182
81183 2004-09-23  Simon Josefsson  <jas@extundo.com>
81184
81185         * gnulib-tool (--import): Typo.
81186
81187 2004-09-23  Simon Josefsson  <jas@extundo.com>
81188
81189         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
81190
81191 2004-09-22  Bruno Haible  <bruno@clisp.org>
81192
81193         * modules/*: Add 'License' field.
81194         * gnulib-tool: Accept --extract-license option.
81195         (func_get_license): New function.
81196
81197 2004-09-21  Bruno Haible  <bruno@clisp.org>
81198
81199         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
81200         Reported by Simon Josefsson.
81201
81202 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
81203
81204         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
81205         gl_AC_TYPE_LONG_LONG.
81206
81207 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
81208
81209         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
81210
81211 2004-09-18  Simon Josefsson  <jas@extundo.com>
81212         and  Paul Eggert  <eggert@cs.ucla.edu>
81213
81214         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
81215         calls with autoreconf.  Define GL_LIB.
81216
81217 2004-09-14  Karl Berry  <karl@gnu.org>
81218
81219         * config/srclist.txt: unsync setenv.c, sigh.
81220
81221 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
81222
81223         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
81224         Problem reported by Bruno Haible in:
81225         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
81226
81227 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
81228
81229         * config/srclist.txt: Comment out argp-pvh.c.
81230
81231 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
81232
81233         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
81234         in case some system header has #define'd it.  Problem reported by
81235         Soeren D. Schulze in
81236         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
81237
81238 2004-09-09  Karl Berry  <karl@gnu.org>
81239
81240         * regex.[ch]: delete from the root.  These were supposed to be
81241                 synced with emacs cvs, but this has not happened for about
81242                 a year, and anyway nothing else uses emacs regex.[ch].
81243                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
81244                 lib/regex[.ch] is untouched.
81245
81246 2004-09-09  Bruno Haible  <bruno@clisp.org>
81247
81248         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
81249
81250 2004-09-09  Bruno Haible  <bruno@clisp.org>
81251
81252         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
81253         modifications.
81254         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
81255
81256 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
81257
81258         * modules/xvasprintf: New file.
81259         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
81260
81261 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
81262
81263         * lib/xvasprintf.h: New file.
81264         * lib/xvasprintf.c: New file.
81265         * lib/xasprintf.c: New file.
81266
81267 2004-09-08  Bruno Haible  <bruno@clisp.org>
81268
81269         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
81270
81271 2004-09-08  Bruno Haible  <bruno@clisp.org>
81272
81273         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
81274         length is > INT_MAX.
81275         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
81276         more.
81277
81278 2004-09-08  Bruno Haible  <bruno@clisp.org>
81279
81280         * lib/stdint_.h: New file, taken from GNU clisp.
81281
81282 2004-09-08  Bruno Haible  <bruno@clisp.org>
81283             Oskar Liljeblad  <oskar@osk.mine.nu>
81284
81285         * modules/stdint: New file.
81286         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
81287
81288 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81289
81290         Import from coreutils.
81291         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
81292         strings on unbounded length.  alloca's performance benefits aren't
81293         that important here.
81294         (V_STRDUP): Remove.
81295         (parse_with_separator): New function, with most of the internals
81296         of the old parse_user_spec.  Allow user to omit both user and group,
81297         for compatibility with FreeBSD.
81298         Clone only the user name, not the entire spec.
81299         Do not set *uid, *gid unless entirely successful.
81300         Avoid memory leak in some failing cases.
81301         Fix regression for USER.GROUP reported by Dmitry V. Levin in
81302         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
81303         (parse_user_spec): Rewrite to use parse_with_separator.
81304
81305 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81306
81307         * modules/userspec: Don't depend on alloca.
81308
81309 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81310
81311         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
81312
81313 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81314
81315         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
81316         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
81317         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
81318
81319 2004-08-16  Simon Josefsson  <jas@extundo.com>
81320
81321         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
81322         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
81323         Add --dry-run for --import.
81324         Let user provided command line parameters override configure.ac
81325         settings.
81326
81327 2004-08-12  Simon Josefsson  <jas@extundo.com>
81328
81329         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
81330         as discussed with Paul Eggert in threads rooted at
81331         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
81332         and
81333         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
81334         Before, the test was empty, and relied on ELIDE_CODE in source
81335         code.)
81336         (gl_PREREQ_GETOPT): New macro.
81337         (gl_GETOPT): Use them.
81338
81339 2004-08-12  Simon Josefsson  <jas@extundo.com>
81340
81341         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
81342         * lib/getopt_.h: Renamed from getopt.h.
81343
81344 2004-08-12  Simon Josefsson  <jas@extundo.com>
81345
81346         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
81347         Change default library name from libfoo to libgnu.
81348         Now, if you have a configure.ac that says:
81349                 gl_SOURCE_BASE(gl)
81350                 gl_M4_BASE(gl/m4)
81351                 gl_MODULES(error getopt etcetera)
81352                 gl_INIT
81353         you can import all you need by running:
81354                 ../gnulib/gnulib-tool --import
81355
81356         * modules/getopt (Files): Rename getopt.h to getopt_.h.
81357         (Makefile.am): Rewrite, use logic from argz.
81358         (Include): Use <getopt.h> instead of "getopt.h".
81359
81360 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81361
81362         * modules/argp (Files): Add m4/unlocked-io.m4.
81363         (Depends-on): Add extensions.
81364
81365 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81366
81367         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
81368         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
81369         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
81370         Check for program_invocation_name, program_invocation_short_name,
81371         flockfile, funlockfile, features.h, _getopt_long_only_r.
81372
81373 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81374
81375         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
81376         its complicated substitute.
81377         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
81378         and program_invocation_name.
81379         (__argp_basename) [!_LIBC]: Remove; the only use was
81380         replaced by its body.
81381         (__argp_short_program_name): Change condition from
81382         !defined __argp_short_program_name to
81383         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
81384         to match argp-namefrob.h.
81385         (__argp_failure): Don't assume strerror_r returns char *.
81386         * lib/argp-parse.c (N_): Define unconditionally.
81387         (argp_default_options): Fill out initializers with 0 to avoid
81388         gcc warnings.
81389
81390 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81391
81392         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
81393         getopt1.c.
81394
81395 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81396
81397         Merge from coreutils.
81398
81399         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
81400
81401         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
81402         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
81403
81404 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81405
81406         Merge from coreutils.
81407
81408         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
81409         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
81410         for Reliant Unix 5.43.
81411
81412         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
81413         (union fooround): Use uintmax_t, not long int.
81414         The rest is a merge from libc:
81415         [defined _LIBC]: Include <shlib-compat.h>.
81416         (_obstack) [defined _LIBC]: Remove after 2.3.4.
81417
81418         * lib/settime.c (settime): Recode to avoid warning with
81419         Sun Forte C 6U2.
81420
81421         * lib/strverscmp.c: Convert to UTF-8.
81422
81423 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81424
81425         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81426         m4/uintmax_t.m4.
81427
81428 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81429
81430         * modules/xalloc-die: New file.
81431         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
81432
81433         * modules/md5 (Files): Add m4/uint32_t.m4.
81434         * modules/sha1: Renamed from modules/sha.
81435         (Files):
81436         Rename lib/sha.h to lib/sha1.h.
81437         Rename lib/sha.c to lib/sha1.c.
81438         Rename m4/sha.m4 to m4/sha1.m4.
81439         (lib_SOURCES): Likewise.
81440         (configure.ac): Rename gl_SHA to gl_SHA1.
81441         (Include): sha.h -> sha1.h.
81442
81443 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81444
81445         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
81446         * m4/sha1.m4: Renamed from sha.m4.
81447         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
81448
81449 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81450
81451         * lib/obstack.h (obstack_empty_p):
81452         Don't assume that chunk->contents is suitably aligned.
81453         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
81454         Likewise. Problem reported by Benno in
81455         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
81456
81457         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
81458         readable.  This could be improved further but it'd take some work.
81459
81460 2004-08-08  Simon Josefsson  <jas@extundo.com>
81461
81462         * modules/xgethostname (Depends-on): Remove exit and error (not
81463         used).
81464
81465         * modules/getpass-gnu: Add getpass.h.
81466         (Depends-on): Add stdbool.
81467         * modules/getpass: Add getpass.h.
81468
81469 2004-08-08  Simon Josefsson  <jas@extundo.com>
81470
81471         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
81472         Check getpass declaration.
81473
81474 2004-08-08  Simon Josefsson  <jas@extundo.com>
81475
81476         * lib/xgethostname.c: Don't include error.h (not used).
81477
81478         * lib/getpass.h: Add.
81479         * lib/getpass.c: Include getpass.h first.
81480
81481 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
81482
81483         * lib/xalloc-die.c: New file.
81484         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
81485         All uses removed.
81486         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
81487         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
81488         xalloc-die.c.
81489         (_, N_, xalloc_die): Move to xalloc-die.c.
81490         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
81491         so that we needn't mess with xalloc_msg_memory_exhausted.
81492
81493         * lib/sha1.h: Renamed from sha.h.
81494         (SHA1_H): Renamed from _SHA_H.
81495         (sha1_ctx): Renamed from sha_ctx.
81496         (sha1_init_ctx): Renamed from sha_init_ctx.
81497         (sha1_process_block): Renamed from sha_process_block.
81498         (sha1_process_bytes): Renamed from sha_process_bytes.
81499         (sha1_finish_ctx): Renamed from sha_finish_ctx.
81500         (sha1_read_ctx): Renamed from sha_read_ctx.
81501         (sha1_stream): Renamed from sha_stream.
81502         (sha1_buffer): Renamed from sha_buffer.
81503         * lib/sha1.c: Likewise; renamed from sha.c.
81504         Do not include <sys/types.h>.
81505         Include <stddef.h> rather than <stdlib.h>.
81506
81507 2004-08-08  Bruno Haible  <bruno@clisp.org>
81508
81509         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
81510         FILESYSTEM_PREFIX_LEN.
81511         * lib/progreloc.c: Likewise.
81512         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
81513
81514 2004-08-06  Simon Josefsson  <jas@extundo.com>
81515
81516         * modules/progname (Depends-on): Don't depend on stdbool.
81517
81518 2004-08-06  Simon Josefsson  <jas@extundo.com>
81519
81520         * modules/getsubopt: New file.
81521         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81522         getsubopt.
81523
81524 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81525
81526         More merge from coreutils.
81527
81528         * m4/utimens.m4, m4/utimecmp.m4: New files.
81529         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
81530         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
81531         prereq.m4, sha.m4: Import changes from coreutils.
81532
81533 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81534
81535         More merge from coreutils.
81536         * modules/raise, modules/readtokens0, modules/utimens:
81537         * modules/utimecmp, module/xnanosleep: New files.
81538         * modules/strftime: Add lib/strftime.h.
81539         Change include from <time.h> to "strftime.h".
81540         * modules/yesno: Add lib/yesno.h.
81541         * modules/backupfile: Remove lib/addext.c.
81542         * modules/euidaccess: Add stat-macros.h.
81543         * modules/canonicalize, modules/euidaccess,
81544         modules/filemode, modules/lchown, modules/makepath,
81545         modules/rmdir, modules/stat: Likewise.
81546
81547 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81548
81549         Merge from tar.
81550         * lib/argp-help.c (make_hol, hol_append): Don't assume that
81551         SIZE_MAX is a valid preprocessor constant.
81552         (__argp_basename): Change from "#ifndef _LIBC"
81553         to "#ifndef __argp_short_program_name", so that
81554         we don't compile these functions for tar.
81555
81556         More merges from coreutils.
81557         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
81558         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
81559         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
81560         * lib/addext.c: Remove; no longer needed.
81561         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
81562         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
81563         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
81564         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
81565         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
81566         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
81567         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
81568         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
81569         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
81570         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
81571         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
81572         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
81573         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
81574         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
81575         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
81576         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
81577         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
81578         Import changes from coreutils.
81579
81580 2004-08-05  Simon Josefsson  <jas@extundo.com>
81581
81582         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
81583
81584 2004-08-05  Simon Josefsson  <jas@extundo.com>
81585
81586         * m4/getsubopt.m4: New file.
81587
81588 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81589
81590         Merge from coreutils.
81591
81592         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
81593         * m4/getcwd-path-max.m4: New files.
81594
81595         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
81596         FILESYSTEM_PREFIX_LEN ->
81597         FILE_SYSTEM_PREFIX_LEN.
81598         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
81599         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
81600         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
81601         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
81602
81603         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
81604         prerequisite modules now handle the DOS stuff.
81605         Don't check for unistd.h.
81606
81607 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81608
81609         Merge from coreutils.
81610
81611         * lib/.gdb-history: Remove; this doesn't belong here.
81612
81613         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
81614         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
81615         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
81616         * lib/getcwd.c: New files.
81617
81618         * lib/dirname.h: Include <stdbool.h>.
81619         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
81620         for consistency with POSIX terminology.  All uses changed.
81621         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
81622         (strip_trailing_slashes): Use bool for booleans.
81623         * lib/stripslash.c (strip_trailing_slashes): Likewise.
81624
81625         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
81626         sometimes returns a positive errno value even when it succeeds.
81627         (print_errno_message) [!LIBC]: Fall back on strerror if
81628         __strerror_r fails.
81629
81630         * lib/path-concat.c (mempcpy): Don't define if a system header defines
81631         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
81632         (longest_relative_suffix): New function.
81633         (path_concat): Use it.  Assume first argument is not NULL.
81634         Port to DOS.  Omit redundant separators.
81635         Report an error instead of returning NULL.
81636         Use mempcpy instead of memcpy.
81637         (xpath_concat): Remove: not declared or used.
81638
81639         * lib/same.h: Include <stdbool.h>
81640         (same_name): Return bool, not int.
81641         * lib/same.c (same_name): Likewise.
81642         (errno): Don't declare; we assume C89 or better now.
81643
81644         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
81645         if not already defined.
81646
81647         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
81648         * lib/dup-safer.c (errno): Likewise.
81649
81650 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81651
81652         Merge from coreutils.
81653         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
81654         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
81655         * modules/path-concat: Don't depend on strdup.
81656
81657 2004-08-03  Simon Josefsson  <jas@extundo.com>
81658
81659         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
81660         * lib/progname.h: Don't include stdbool.h.
81661
81662 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81663
81664         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
81665         * MODULES.html.sh (func_all_modules): Remove fatal.
81666
81667 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81668
81669         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
81670
81671 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81672
81673         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
81674         working.
81675
81676 2004-08-02  Simon Josefsson  <jas@extundo.com>
81677
81678         * lib/getsubopt.h: New file, with comments from Bruno Haible.
81679         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
81680         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
81681
81682 2004-08-01  Simon Josefsson  <jas@extundo.com>
81683
81684         * lib/xgetdomainname.c: Include stdlib.h, for free().
81685
81686 2004-07-19  Bruno Haible  <bruno@clisp.org>
81687
81688         * MODULES.html.sh (func_all_modules): Add dummy.
81689
81690 2004-07-16  Simon Josefsson  <jas@extundo.com>
81691
81692         * modules/dummy: New file.
81693
81694 2004-07-16  Simon Josefsson  <jas@extundo.com>
81695
81696         * lib/dummy.c: New file.
81697
81698 2004-07-16  Bruno Haible  <bruno@clisp.org>
81699
81700         * lib/backupfile.h: Add extern "C" for C++.
81701         * lib/closeout.h: Likewise.
81702         * lib/copy-file.h: Likewise.
81703         * lib/findprog.h: Likewise.
81704         * lib/full-write.h: Likewise.
81705         * lib/pathname.h: Likewise.
81706         * lib/progname.h: Likewise.
81707         * lib/stpcpy.h: Likewise.
81708         * lib/stpncpy.h: Likewise.
81709         * lib/strcase.h: Likewise.
81710         * lib/strstr.h: Likewise.
81711         * lib/xalloc.h: Likewise.
81712
81713         * lib/mbswidth.h: Add extern "C" for C++.
81714         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
81715
81716 2004-07-13  Robert Millan  <robertmh@gnu.org>
81717
81718         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
81719
81720 2004-07-09  Simon Josefsson  <jas@extundo.com>
81721
81722         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
81723         failed without this.)
81724
81725 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81726
81727         * modules/chown (Files): Add lib/fchown-stub.c, since
81728         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
81729
81730 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81731
81732         * lib/fchown-stub.c: New file.
81733
81734 2004-06-24  Jim Meyering  <jim@meyering.net>
81735
81736         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
81737
81738 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81739
81740         * modules/argz: Omit "#include".
81741
81742         * MODULES.html.sh (func_all_modules): Add calloc, to match
81743         2004-06-01 addition of calloc module.
81744
81745 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81746
81747         * m4/argz.m4: New file, which is autoupdated from libtool.
81748
81749 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81750
81751         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
81752         libtool.
81753
81754 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81755
81756         * config/srclist-update: Don't insist on "USA." before the
81757         close-comment, as libtool omits the period and puts the */ on a
81758         separate line.
81759         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
81760         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
81761
81762 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
81763
81764         * modules/argz: New file.
81765         * MODULES.html.sh (func_all_modules): Add argz.
81766
81767 2004-06-12  Jim Meyering  <jim@meyering.net>
81768         and  Paul Eggert  <eggert@cs.ucla.edu>
81769
81770         * modules/hash (Files): Add lib/xalloc.h.
81771         * modules/pipe (Depends-on): Add wait-process.
81772         * modules/stat (Depends-on): Add xalloc.
81773         * modules/userspec (Files): Add lib/userspec.h.
81774         * modules/xstrto
81775
81776         Upgrade from gettext-0.13.
81777         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
81778         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
81779         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
81780
81781 2004-06-10  Jim Meyering  <jim@meyering.net>
81782
81783         * lib/calloc.c: New file.
81784
81785 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
81786
81787         * lib/getdate.y (yylex): Allow space between sign and number.
81788         Problem reported by Dan Jacobson.
81789
81790 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81791
81792         Merge from coreutils CVS.
81793
81794         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
81795         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
81796         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
81797         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
81798         xstrtol.m4: Fix copyright date and/or serial number.
81799
81800         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
81801         See if we need an fchown replacement.
81802         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
81803         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
81804         and use the replacement function if we detect either defect.
81805
81806         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
81807         gl_UTIMECMP.
81808
81809 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81810         and  Jim Meyering  <jim@meyering.net>
81811
81812         Merge from coreutils CVS.
81813
81814         * lib/stat-macros.h: New file, with contents from file-type.h
81815         and coreutils' system.h.
81816         * lib/file-type.c: Include "stat-macros.h".
81817         * lib/file-type.h (file_type): Move all macro definitions to new file,
81818         stat-macros.h.
81819
81820         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
81821         Wrap old code with this conditional.
81822         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
81823         function that does not dereference symlinks.
81824         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
81825
81826         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
81827         dependency problems.
81828         (xreadlink): Accept new arg SIZE, for efficiency.
81829         All decls and uses changed.
81830         * lib/xreadlink.h: Include <stddef.h>, for size_t.
81831
81832         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
81833         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
81834
81835         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
81836         sysexits.h.
81837
81838 2004-06-01  Jim Meyering  <jim@meyering.net>
81839
81840         * m4/calloc.m4: New file.
81841
81842 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
81843
81844         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
81845         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
81846         Also, fix a typo in a diagnostic.
81847
81848 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81849
81850         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
81851         or AC_FUNC_REALLOC.
81852
81853 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81854
81855         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
81856         macros to be defined.
81857         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
81858         the allocator returns NULL because the requested size is zero.
81859
81860 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81861
81862         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
81863         var.  Add comment explaining why libc still defines it.  This
81864         merges the following patch from glibc:
81865         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
81866
81867 2004-05-20  Andreas Schwab  <schwab@suse.de>
81868
81869         * m4/free.m4: Replace free if it not known to work, not the other
81870         way round.
81871
81872 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81873
81874         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
81875         present in glibc since revision 1.1 of this file.
81876         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
81877         obstack_alignment_mask, obstack_alloc, obstack_base,
81878         obstack_blank, obstack_blank_fast, obstack_chunk_size,
81879         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
81880         obstack_grow0, obstack_init, obstack_int_grow,
81881         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
81882         obstack_next_free, obstack_object_size, obstack_ptr_grow,
81883         obstack_ptr_grow_fast, obstack_room): Remove declarations of
81884         nonexistent functions.
81885
81886 2004-05-18  Karl Berry  <karl@gnu.org>
81887
81888         * config/srclist.txt: break link for vasnprintf.c.
81889
81890 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81891
81892         Port obstack to the AS/400, where pointers are 16 bytes wide and
81893         you cannot cast an integer to a valid pointer.  This patch is
81894         currently waiting to be integrated into glibc; see
81895         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
81896
81897         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
81898         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
81899         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
81900         (struct obstack): temp member is now a union of a pointer and
81901         an integer, instead of an integer.  All integer uses changed.
81902         This does not affect the physical layout of struct obstack,
81903         except on hosts (like the AS/400) where the size or alignment of
81904         void * is greater than that of ptrdiff_t.
81905         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
81906         __STDC__)]: Store temporary in pointer member of union, not
81907         integer member.
81908         * lib/obstack.c: Include <stddef.h>, for offsetof.
81909         (struct fooalign): Remove; it doesn't need a name.
81910         (union fooround): Change double to long double, and add void *.
81911         (DEFAULT_ALIGNMENT): Use offsetof to compute.
81912         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
81913         not a macro.  Hence the values are always int; so remove all
81914         casts-to-int in uses.
81915
81916 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81917
81918         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
81919         we can get this patch merged into glibc.
81920
81921 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81922             Paul Eggert  <eggert@cs.ucla.edu>
81923
81924         * m4/argp: Depend on alloca.
81925
81926 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81927             Paul Eggert  <eggert@cs.ucla.edu>
81928
81929         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
81930         freecoding.
81931
81932 2004-05-17  Bruno Haible  <bruno@clisp.org>
81933
81934         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
81935         precision that consists of a '.' followed by an empty digit string.
81936         Patch by Tor Lillqvist <tml@iki.fi>.
81937
81938 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81939
81940         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
81941         for backward compatibility with older code.  We need our own
81942         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
81943         it under some other name, and our alloca.h will define it.
81944
81945 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81946             Derek Price  <derek@ximbiot.com>
81947
81948         * lib/alloca.c: Include <alloca.h>, to get our interface.
81949         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
81950         include <alloca.h> first.  Use C89 prototype for alloca; this
81951         requires including <stddef.h> for size_t.  Use extern "C" if C++.
81952         Use #elif for simplicity, since we can assume C89 now.
81953         Don't try to source the system alloca.h since it will not be found
81954         and to prevent recursively including its replacement.
81955         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
81956         * lib/regex.c: Likewise.
81957
81958 2004-05-16  Derek Price  <derek@ximbiot.com>
81959             Paul Eggert  <eggert@cs.ucla.edu>
81960
81961         getline cleanup.  This changes the getndelim2 API: both order of
81962         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
81963         no delimiter).
81964
81965         * lib/getline.c: Don't include stddef.h or stdio.h, since our
81966         interface does that.
81967         (getline): Always use getdelim, so that we don't have two
81968         copies of this code.
81969         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
81970         if available.
81971         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
81972         (GETNDELIM2_MAXIMUM): New macro.
81973         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
81974         instead of the old practice of delim2==0.  All callers changed.
81975         Return -1 on overflow, instead of returning junk.
81976         Do not set *linesize unless allocation succeeds.
81977         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
81978         that we include sys/types.h.
81979         * lib/getnline.h: Likewise.
81980         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
81981         (getndelim2): Reorder arguments.
81982         * lib/getnline.c (getnline, getndelim):
81983         Don't discard the NMAX argument.
81984         (getnline): Invoke getndelim, to avoid code duplication.
81985         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
81986         of (size_t) -1 by callers of the getnline family.
81987
81988 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81989
81990         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
81991         Check for gettimeofday.
81992         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
81993         Check for settimeofday, stime.
81994
81995 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81996
81997         * lib/nanosleep.c (suspended): Change its type from int to
81998         sig_atomic_t volatile.
81999         (first_call): Make it private to rpl_nanosleep, and have it
82000         be zero initially as that's a bit faster.
82001         (my_usleep): Round up fractional times instead of truncating them,
82002         as this is the usual meaning for 'sleep'.
82003
82004         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
82005         doesn't work.
82006         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
82007         (ENOSYS): Define if not defined.
82008         (settime): Fall back on stime if it exists and settimeofday fails.
82009         But don't bother with fallbacks if a method fails with errno == EPERM.
82010
82011 2004-05-11  Jim Meyering  <jim@meyering.net>
82012
82013         Prior to this change, the save_cwd caller required read access to the
82014         current directory on most systems (ones with the fchdir function).
82015
82016         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
82017         fails, try write-only, and finally, resort to using xgetcwd.
82018
82019 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82020
82021         * lib/obstack.c, obstack.h: Import changes from libc.
82022
82023 2004-04-28  Bruno Haible  <bruno@clisp.org>
82024
82025         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
82026         also implicitly appends .exe to executables.
82027         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
82028         accepts Windows pathnames.
82029         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
82030         Treat Cygwin like Windows, since it now accepts Windows pathnames.
82031         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
82032         Treat Cygwin like Windows, since it now accepts Windows pathnames.
82033         Reported by Derek Robert Price <derek@ximbiot.com>.
82034
82035 2004-04-21  Karl Berry  <karl@gnu.org>
82036
82037         * config/srclist.txt (localcharset.c): break sync.
82038
82039 2004-04-20  Paul Eggert  <eggert@twinsun.com>
82040
82041         * m4/host-os.m4: Add a copyright notice.
82042
82043 2004-04-20  Jim Meyering  <jim@meyering.net>
82044
82045         Change UTILS_ to gl_ in AC_DEFINE'd names.
82046         Change utils_- and jm_-prefixed variables, too.
82047         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
82048         UTILS_FUNC_MKDIR_TRAILING_SLASH.
82049         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
82050
82051         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
82052         Don't emit trailing blanks.
82053         Also rename jm_-prefixed variables to have gl_ prefix.
82054
82055         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
82056         Also rename jm_-prefixed variables to have gl_ prefix.
82057
82058         * m4/jm-macros.m4: Reflect the renamings.
82059         * m4/prereq.m4: Likewise.
82060
82061 2004-04-20  Jim Meyering  <jim@meyering.net>
82062
82063         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
82064         memory.
82065
82066 2004-04-20  Jim Meyering  <jim@meyering.net>
82067             Bruno Haible  <bruno@clisp.org>
82068
82069         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
82070         memory when realloc fails.
82071
82072 2004-04-19  Jim Meyering  <jim@meyering.net>
82073
82074         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
82075         now that readutmp.c may call `free (0)'.
82076
82077 2004-04-19  Bruno Haible  <bruno@clisp.org>
82078
82079         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
82080         * m4/inttypes_h.m4: Likewise.
82081         * m4/stdint_h.m4: Likewise.
82082         * m4/intmax_t.m4: Likewise.
82083         * m4/uintmax_t.m4: Likewise.
82084
82085 2004-04-18  Jim Meyering  <jim@meyering.net>
82086
82087         * m4/prereq.m4: Don't forbid jm_ prefix.
82088
82089         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
82090         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
82091         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
82092         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
82093         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
82094         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
82095         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
82096         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
82097         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
82098         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
82099         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
82100         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
82101         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
82102         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
82103         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
82104         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
82105         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
82106         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
82107         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
82108
82109 2004-04-18  Jim Meyering  <jim@meyering.net>
82110
82111         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
82112         failure, don't leak memory and do call END_UTMP_ENT.
82113
82114 2004-04-16  Jim Meyering  <jim@meyering.net>
82115
82116         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
82117         coreutils' stat program.
82118         (gl_PREREQ): Don't require jm_PREREQ_STAT.
82119
82120 2004-04-11  Paul Eggert  <eggert@twinsun.com>
82121
82122         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
82123         C89.
82124         (CHAR_BIT): Remove, since we assume C89.
82125         Include <stdint.h> if available, as per current Autoconf CVS advice.
82126
82127 2004-03-31  Jim Meyering  <jim@meyering.net>
82128
82129         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
82130         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
82131         * m4/xalloc.m4: Likewise.
82132
82133 2004-03-30  Paul Eggert  <eggert@twinsun.com>
82134
82135         Merge from coreutils.
82136
82137         * m4/inttostr.m4: New file.
82138         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
82139         Require AM_STDBOOL_H and gl_TIMESPEC instead.
82140         Require gl_CLOCK_TIME.
82141         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
82142
82143 2004-03-30  Paul Eggert  <eggert@twinsun.com>
82144
82145         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
82146         not bool, to be more consistent with Unix conventions.
82147         Suggested by Bruno Haible.
82148
82149         Merge from coreutils.
82150
82151         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
82152         * lib/umaxtostr.c: New files.
82153
82154         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
82155         the usual <time.h> dance.
82156         (get_date): Change signature to support fractional time stamps.
82157         All callers changed.
82158         * lib/getdate.y: Include "getdate.h" first, as we can now
82159         assume C89 and don't need to worry about 'const'.
82160         Similarly, include "unlocked-io.h" near start, not in middle.
82161         Include <limits.h>.
82162         (textint.value): Use long int rather than int.
82163         (textint.digits): Use size_t rather than int.
82164         (BILLION, LOG10_BILLION): New constants.
82165         (parser_control): New member rel_ns.  Members day_ordinal,
82166         time_zone, month, day, hour, minutes, rel_year, rel_month,
82167         rel_day, rel_hour, rel_minutes, rel_seconds
82168         are now long int, not int.  Member seconds is now struct timespec,
82169         not int.  New member timespec_seen.  Members dates_seen, days_seen,
82170         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
82171         not int.
82172         (%union.intval): Now long int, not int.
82173         New member timespec.
82174         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
82175         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
82176         (spec): Now is a timespec or an item list.
82177         (timespec, items): New nonterminals.
82178         (time, rel, relunit, number, get_date):
82179         Add support for fractional seconds.
82180         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
82181         (gmtime, localtime, mktime): Remove decls; not needed with C89.
82182         (to_hour): First arg is now long int, not int.
82183         (to_year): Returns long int, not int.
82184         Don't treat year -70 like 70.
82185         (tm_diff): Returns long int, not int.
82186         (lookup_word): Use bool instead of int when appropriate.
82187         (yylex): Use size_t for count, not int.
82188         Detect overflow when parsing large integer constants.
82189         Add support for fractions.
82190         (get_date): Make pointers 'const' if possible.
82191         Use more-portable code to detect integer overflow.
82192         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
82193         Don't use ctime; it's not reliable if the year has >4 digits.
82194
82195         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
82196         This is for compatibility with BSD.
82197
82198         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
82199         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
82200         From coreutils' system.h.
82201
82202         * lib/userspec.c: Don't include "posixver.h".
82203         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
82204         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
82205         compatible extension.  Simplify code by removing a boolean int
82206         that was always nonzero if a string was nonnull.
82207
82208 2004-03-30  Jim Meyering  <jim@meyering.net>
82209
82210         Merge from coreutils.
82211
82212         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
82213         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
82214         on some systems one must include <grp.h> before it.
82215         Reported by Christian Krackowizer.
82216
82217 2004-03-30  Jim Meyering  <jim@meyering.net>
82218
82219         Merge from coreutils.
82220
82221         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
82222
82223         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
82224         an empty input stream.
82225
82226         * lib/readtokens.c: Include <stdbool.h>.
82227         (readtoken): Use `size_t' rather than int/long.
82228         All callers adjusted.
82229         Use `bool' rather than `int' where appropriate.
82230         Use memset rather than an explicit loop.
82231         Use x2nrealloc rather than xrealloc.
82232         Allow the use of `\0' as a delimiter.
82233         (readtokens): Likewise.
82234         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
82235
82236 2004-03-30  Jim Meyering  <jim@meyering.net>
82237
82238         * m4/realloc.m4: Remove file, since now it does no more than
82239         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
82240         the `configure.ac' section of module/realloc.
82241         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
82242
82243 2004-03-30  Bruno Haible  <bruno@clisp.org>
82244
82245         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
82246         nonnull.
82247
82248 2004-03-29  Paul Eggert  <eggert@twinsun.com>
82249
82250         Merge changes to getloadavg.c from coreutils and Emacs.
82251
82252         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
82253         Define to an expression, not to the empty string.
82254         Include cloexec.h and xalloc.h.
82255         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
82256         Use set_cloexec_flag rather than rolling our own.
82257         * lib/cloexec.c, lib/cloexec.h: New files.
82258
82259 2004-03-29  Paul Eggert  <eggert@twinsun.com>
82260
82261         * m4/cloexec.m4: New file.
82262
82263 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82264
82265         * lib/getopt.h: Sync with libc CVS.
82266
82267 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82268             Bruno Haible  <bruno@clisp.org>
82269
82270         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
82271         mbswidth.
82272
82273 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82274             Bruno Haible  <bruno@clisp.org>
82275
82276         * lib/mbswidth.h: Include <wchar.h> only if
82277         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
82278         <wchar.h>.
82279         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
82280
82281 2004-03-09  Paul Eggert  <eggert@twinsun.com>
82282
82283         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
82284         Sync with libc CVS.
82285         * lib/getopt_int.h: New file, also synced from libc.
82286
82287 2004-03-09  Paul Eggert  <eggert@twinsun.com>
82288
82289         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
82290         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
82291         Bring back getopt.c, getopt.h, getopt1.c.
82292
82293 2004-03-07  Paul Eggert  <eggert@twinsun.com>
82294
82295         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
82296         All uses changed.  Check for sa_sigaction member; this fixes
82297         a bug first reported by Jason Andrade in
82298         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
82299
82300 2004-03-07  Paul Eggert  <eggert@twinsun.com>
82301
82302         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
82303         '#if' expressions.  Unlike the code it replaces, it does not
82304         depend on (defined _SC_PAGESIZE).  However, it does depend on
82305         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
82306         first reported by Jason Andrade in
82307         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
82308
82309 2004-02-25  Simon Josefsson  <jas@extundo.com>
82310
82311         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
82312
82313 2004-02-25  Simon Josefsson  <jas@extundo.com>
82314
82315         * lib/strdup.h: New file.
82316         * lib/strdup.c: Include it.
82317         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
82318         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
82319
82320 2004-02-23  Karl Berry  <karl@gnu.org>
82321
82322         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
82323         (from fencepost.gnu.org:/gd/gnuorg).
82324
82325 2004-02-23  Karl Berry  <karl@gnu.org>
82326
82327         * config/srclistvars.sh (GNUORG) [karl]: redefine.
82328         * config/srclist.txt: add maintain/standards documents.
82329
82330 2004-02-18  Bruno Haible  <bruno@clisp.org>
82331
82332         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
82333         Reported by Derek Robert Price <derek@ximbiot.com>.
82334
82335 2004-02-16  Karl Berry  <karl@gnu.org>
82336
82337         * config/mkinstalldirs, install-sh: update from automake.
82338
82339 2004-02-06  Karl Berry  <karl@gnu.org>
82340
82341         * m4/po.m4: update from gettext 0.14.1.
82342
82343 2004-02-06  Karl Berry  <karl@gnu.org>
82344
82345         * lib/config.charset: update from gettext 0.14.1.
82346
82347 2004-02-05  Paul Eggert  <eggert@twinsun.com>
82348
82349         Add comments and code, prompted by suggestions from Bruno Haible
82350         for sh-quote.
82351         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
82352         describing the enum quoting_style values.
82353         * lib/quotearg.c (quotearg_alloc): New function.
82354         (quotearg_buffer_restyled): Treat lone { and } as special.
82355         Treat = as special.  Work around bug with older shells
82356         that "see" a '\' that is really the 2nd byte of a multibyte char.
82357         Quote empty string with shell_quoting_style.
82358
82359 2004-02-03  Bruno Haible  <bruno@clisp.org>
82360
82361         * m4/pipe.m4: New file, from GNU gettext.
82362
82363 2004-02-03  Bruno Haible  <bruno@clisp.org>
82364
82365         * lib/pipe.h: New file, from GNU gettext.
82366         * lib/pipe.c: New file, from GNU gettext.
82367
82368 2004-01-27  Bruno Haible  <bruno@clisp.org>
82369
82370         * m4/execute.m4: New file, from GNU gettext.
82371
82372 2004-01-27  Bruno Haible  <bruno@clisp.org>
82373
82374         * lib/execute.h: New file, from GNU gettext.
82375         * lib/execute.c: New file, from GNU gettext.
82376         * lib/w32spawn.h: New file, from GNU gettext.
82377
82378 2004-01-24  Paul Eggert  <eggert@twinsun.com>
82379
82380         Merge from diffutils.
82381
82382         * lib/file-type.c (file_type): Add typed memory objects.
82383         * lib/file-type.h (S_TYPEISTMO): New macro.
82384
82385         * lib/c-stack.h (c_stack_action): Remove argv argument.
82386         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
82387         (die): Don't calculate message unless segv_action returns.
82388         (get_stack_location, min_address_from_argv, max_address_from_argv,
82389         volatile stack_base, volatile_stack_size): Remove.
82390         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
82391         that every segmentation violation is a stack overflow.  (Ouch!)
82392         See Debian bug 136249 (still outstanding) for more info about why
82393         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
82394
82395 2004-01-24  Paul Eggert  <eggert@twinsun.com>
82396
82397         Exit-status fix from coreutils.
82398
82399         Use exit_failure consistently in place of EXIT_FAILURE,
82400         so that program exit statuses are consistent on failure.
82401
82402         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
82403         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
82404         * lib/argmatch.h: Comment fix to match the above.
82405         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
82406         Now a macro referring to exit_failure, instead of a separate
82407         variable.  Include "exitfail.h" to get it.
82408         * lib/xstrtol.h: Include "exitfail.h".
82409         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
82410
82411         * lib/long-options.c (parse_long_options): Use prototype
82412         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
82413         for clarity.
82414
82415 2004-01-21  Jim Meyering  <jim@meyering.net>
82416
82417         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
82418         so as not to conflict with a different-sized __mktime_internal
82419         function in GNU libc.
82420         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
82421         Problem building statically-linked `ls' reported by Michael Brunnbauer.
82422
82423 2004-01-20  Karl Berry  <karl@gnu.org>
82424
82425         * config/config.guess: update from config.
82426
82427         * config/srclistvars.sh: GNUWWWLICENSES for karl.
82428
82429 2004-01-20  Bruno Haible  <bruno@clisp.org>
82430
82431         Safer stack allocation.
82432         * lib/setenv.c: Include allocsa.h.
82433         (alloca): Remove fallback definition.
82434         (freea): Remove macro.
82435         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
82436         instead of freea.
82437
82438 2004-01-20  Bruno Haible  <bruno@clisp.org>
82439
82440         * m4/eealloc.m4: New file, from GNU gettext.
82441
82442 2004-01-20  Bruno Haible  <bruno@clisp.org>
82443
82444         * m4/allocsa.m4: New file, from GNU gettext.
82445
82446 2004-01-20  Bruno Haible  <bruno@clisp.org>
82447
82448         * lib/xallocsa.h: New file, from GNU gettext.
82449         * lib/xallocsa.c: New file, from GNU gettext.
82450
82451 2004-01-20  Bruno Haible  <bruno@clisp.org>
82452
82453         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
82454
82455 2004-01-20  Bruno Haible  <bruno@clisp.org>
82456
82457         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
82458         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
82459         specially.
82460
82461 2004-01-20  Bruno Haible  <bruno@clisp.org>
82462
82463         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
82464         patch.
82465
82466 2004-01-20  Bruno Haible  <bruno@clisp.org>
82467
82468         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
82469
82470 2004-01-20  Bruno Haible  <bruno@clisp.org>
82471
82472         * lib/eealloc.h: New file.
82473
82474 2004-01-20  Bruno Haible  <bruno@clisp.org>
82475
82476         * lib/binary-io.h: Avoid warnings on Cygwin.
82477
82478 2004-01-20  Bruno Haible  <bruno@clisp.org>
82479
82480         * lib/allocsa.h: New file, from GNU gettext.
82481         * lib/allocsa.c: New file, from GNU gettext.
82482
82483 2004-01-18  Karl Berry  <karl@gnu.org>
82484
82485         * doc/gpl.texi, doc/lgpl.texi: new files.
82486
82487 2004-01-18  Karl Berry  <karl@gnu.org>
82488
82489         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
82490         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
82491
82492 2004-01-15  Paul Eggert  <eggert@twinsun.com>
82493
82494         Merge from coreutils.
82495
82496         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
82497         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
82498         (gl_DEFAULT_POSIX2_VERSION): Move
82499         the documentation from 'configure' into 'config.hin',
82500         so that 'configure --help' isn't burdened by it and
82501         we don't have to worry about its formatting there.
82502         Reword the documentation so that it's more succinct
82503         and can be run together into a single paragraph.
82504         * m4/same.m4 (gl_SAME): Check for pathconf.
82505
82506 2004-01-15  Paul Eggert  <eggert@twinsun.com>
82507
82508         Merge from coreutils.
82509
82510         * lib/posixver.c: Include posixver.h.
82511
82512         * lib/same.c: Include <stdbool.h>, <limits.h>.
82513         (_POSIX_NAME_MAX): Define if not defined.
82514         (MIN): New macro.
82515         (same_name): If file names are silently truncated, report
82516         that the file names are the same if they are the same after
82517         the silent truncation.
82518
82519         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
82520         conversion function.
82521         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
82522         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
82523         longer needed.
82524
82525 2004-01-15  Jim Meyering  <jim@meyering.net>
82526
82527         Merge from coreutils.
82528
82529         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
82530         if no library is required.
82531         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
82532         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
82533         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
82534         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
82535         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
82536         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
82537         value, $ac_cv_search_crypt, if it's "none required".
82538         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
82539         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
82540         not gl_FUNC_GETLOADAVG.
82541         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
82542         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
82543
82544 2004-01-15  Jim Meyering  <jim@meyering.net>
82545
82546         Merge from coreutils.
82547
82548         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
82549         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
82550         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
82551
82552         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
82553         optional configure-time default.
82554
82555         * lib/version-etc.c (version_etc_copyright): Update copyright date.
82556
82557         * lib/xreadlink.c (xreadlink): Correct outdated comment.
82558
82559 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
82560
82561         Merge from coreutils.
82562
82563         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
82564         value, $ac_cv_search_nanosleep, if it's "none required".
82565
82566 2004-01-14  Paul Eggert  <eggert@twinsun.com>
82567
82568         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
82569         with like-named macro in fnmatch.c.
82570         (EXT): Use an internal constant instead.
82571
82572         Merge fnmatch patches from glibc.
82573         * lib/fnmatch.c (mbsinit): Remove define.
82574         Add libc_hidden_ver (__fnmatch, fnmatch).
82575         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
82576         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
82577
82578 2004-01-14  Karl Berry  <karl@gnu.org>
82579
82580         * config/install-sh: update from automake.
82581
82582 2004-01-13  Karl Berry  <karl@gnu.org>
82583
82584         * config/install-sh: update from automake.
82585
82586 2004-01-09  Karl Berry  <karl@gnu.org>
82587
82588         * config/install-sh: update from automake.
82589
82590 2004-01-05  Karl Berry  <karl@gnu.org>
82591
82592         * config/config.{sub,guess}: update from config.
82593
82594 2003-12-31  Karl Berry  <karl@gnu.org>
82595
82596         * config/depcomp: update from automake.
82597
82598 2003-12-14  Karl Berry  <karl@gnu.org>
82599
82600         * lib/config.charset: update from gettext-runtime.
82601
82602 2003-12-03  Paul Eggert  <eggert@twinsun.com>
82603
82604         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
82605         Bug reported by Alfred M. Szmidt.
82606
82607 2003-12-03  Bruno Haible  <bruno@clisp.org>
82608
82609         * m4/gettext.m4: Upgrade from gettext-0.13.
82610         * m4/po.m4: Upgrade from gettext-0.13.
82611         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
82612         * m4/intmax.m4: New file, from gettext-0.13.
82613         * m4/printf-posix.m4: New file, from gettext-0.13.
82614
82615 2003-11-29  Karl Berry  <karl@gnu.org>
82616
82617         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
82618
82619 2003-11-25  Paul Eggert  <eggert@twinsun.com>
82620             Bruno Haible  <bruno@clisp.org>
82621
82622         * lib/printf-parse.h: Don't include sys/types.h.
82623         (ARG_NONE): New macro.
82624         (char_directive): Change type of *arg_index fields to size_t.
82625         * lib/printf-parse.c: Don't include sys/types.h.
82626         (SSIZE_MAX): Remove macro.
82627         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
82628         Remove unnecessary overflow check.
82629         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
82630         fields.
82631
82632 2003-11-25  Bruno Haible  <bruno@clisp.org>
82633
82634         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
82635
82636 2003-11-25  Bruno Haible  <bruno@clisp.org>
82637
82638         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
82639         gt_TYPE_SSIZE_T.
82640
82641 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82642
82643         * modules/alloca: Remove dependency on xalloc.
82644
82645 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82646
82647         * lib/alloca.c: Remove dependency on xalloc module.
82648         (xalloc_die): Remove.
82649         (memory_full) [!defined emacs]: New macro.
82650         [!defined emacs]: Don't include xalloc.h.
82651         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
82652         address arithmetic overflows.  Change datatypes a bit to avoid
82653         unnecessary casts.
82654
82655 2003-11-22  Jim Meyering  <jim@meyering.net>
82656
82657         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
82658         s/size/size_t/.
82659
82660 2003-11-21  Karl Berry  <karl@gnu.org>
82661
82662         * config/config.{sub,guess}: update from config.
82663
82664 2003-11-18  Karl Berry  <karl@gnu.org>
82665
82666         * config/config.{sub,guess}: update from config.
82667
82668         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
82669
82670 2003-11-17  Paul Eggert  <eggert@twinsun.com>
82671
82672         * README: Mention that S+T cannot overflow if S is the size of
82673         an existing object and T is sufficiently small.
82674
82675 2003-11-17  Jim Meyering  <jim@meyering.net>
82676
82677         On systems without utime and without a utimes function capable of
82678         dealing with a NULL struct utimbuf* argument, this utime replacement
82679         could -- in unusual circumstances -- leak a file descriptor.
82680         * lib/utime.c: Include <unistd.h> and <errno.h>.
82681         (utime_null): Be sure to close `fd' and to preserve errno.
82682         Reported by Geoff Collyer via Arnold Robbins.
82683
82684 2003-11-17  Bruno Haible  <bruno@clisp.org>
82685
82686         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
82687         (Depends-on): Add xsize.
82688
82689 2003-11-17  Bruno Haible  <bruno@clisp.org>
82690
82691         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
82692
82693 2003-11-17  Bruno Haible  <bruno@clisp.org>
82694
82695         * lib/vasnprintf.c (alloca): Remove fallback definition.
82696         (freea): Remove definition.
82697         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
82698         Reported by Paul Eggert.
82699
82700 2003-11-16  Paul Eggert  <eggert@twinsun.com>
82701             Bruno Haible  <bruno@clisp.org>
82702
82703         Protect against address arithmetic overflow.
82704         * lib/printf-args.h: Include stddef.h.
82705         (arguments): Change type of field 'count' to size_t.
82706         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
82707         'unsigned int' where appropriate.
82708         * lib/printf-parse.h: Include sys/types.h.
82709         (char_directive): Change type of *arg_index fields to ssize_t.
82710         (char_directives): Change type of fields 'count', max_*_length to
82711         size_t.
82712         * lib/printf-parse.c: Include sys/types.h and xsize.h.
82713         (SSIZE_MAX): Define fallback value.
82714         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
82715         instead of 'int' where appropriate. Check a_allocated, d_allocated
82716         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
82717         * lib/vasnprintf.c: Include xsize.h.
82718         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
82719         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
82720         overflow. Avoid wraparound when converting a width or precision from
82721         decimal to binary.
82722
82723 2003-11-16  Bruno Haible  <bruno@clisp.org>
82724
82725         Update from GNU gettext.
82726         * lib/printf-parse.c: Generalize to it can be compiled for wide
82727         strings.
82728         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
82729         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
82730         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
82731         SNPRINTF): New macros.
82732         Don't include <alloca.h> if the file is used inside libintl.
82733         (local_wcslen): New function, for Solaris 2.5.1.
82734         (VASNPRINTF): Use it instead of wcslen.
82735
82736 2003-11-16  Bruno Haible  <bruno@clisp.org>
82737
82738         * lib/xsize.h (xmax): New function.
82739         (xsum, xsum3, xsum4): Declare as "pure" functions.
82740
82741 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82742
82743         * modules/xalloc (Files): Undo latest change, since xalloc.h
82744         no longer needs SIZE_MAX or PTRDIFF_MAX.
82745
82746 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82747
82748         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
82749         gl_PTRDIFF_MAX.
82750
82751 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82752
82753         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
82754         "return", to pacify some unknown compiler.  Problem reported
82755         by Joerg Schilling.
82756
82757 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82758
82759         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
82760         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
82761         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
82762         heuristic is just as accurate as far as we know, and it removes a
82763         dependency on size_max.m4 and ptrdiff_max.m4.
82764
82765 2003-11-11  Bruno Haible  <bruno@clisp.org>
82766
82767         * modules/xsize (Files): Add m4/size_max.m4.
82768         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
82769
82770 2003-11-11  Bruno Haible  <bruno@clisp.org>
82771
82772         * m4/size_max.m4: New file.
82773         * m4/ptrdiff_max.m4: New file.
82774         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
82775         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
82776         (gl_XALLOC): Invoke it.
82777
82778 2003-11-11  Bruno Haible  <bruno@clisp.org>
82779
82780         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
82781         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
82782         defined.
82783
82784 2003-11-10  Paul Eggert  <eggert@twinsun.com>
82785
82786         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
82787         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
82788         rejected some allocations of exactly SIZE_MAX - 2 bytes.
82789         From Bruno Haible.
82790         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
82791         not (size_t) -1, since it's defined here.
82792
82793 2003-11-09  Karl Berry  <karl@gnu.org>
82794
82795         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
82796
82797 2003-11-06  Paul Eggert  <eggert@twinsun.com>
82798
82799         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
82800         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
82801         Reject sizes of exactly SIZE_MAX bytes.
82802         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
82803         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
82804
82805 2003-11-05  Bruno Haible  <bruno@clisp.org>
82806
82807         * lib/xsize.h: Include limits.h, to avoid a possible collision with
82808         SIZE_MAX defined in <limits.h> on Solaris.
82809
82810 2003-11-04  Jim Meyering  <jim@meyering.net>
82811
82812         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
82813         variable names, rather than @VAR@.
82814         * modules/poll: Likewise.
82815
82816 2003-11-04  Bruno Haible  <bruno@clisp.org>
82817
82818         * modules/xsize: New file.
82819         * modules/linebreak: Depend on xsize.
82820         * MODULES.html.sh (func_all_modules): Add xsize.
82821
82822 2003-11-04  Bruno Haible  <bruno@clisp.org>
82823
82824         * m4/xsize.m4: New file.
82825
82826 2003-11-04  Bruno Haible  <bruno@clisp.org>
82827
82828         * lib/xsize.h: New file.
82829         * lib/linebreak.c: Include xsize.h.
82830         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
82831         argument for overflow.
82832         Suggested by Paul Eggert.
82833
82834 2003-11-03  Karl Berry  <karl@gnu.org>
82835
82836         * config/config.{guess,sub}: update from config.
82837
82838 2003-11-03  Jim Meyering  <jim@meyering.net>
82839
82840         * modules/userspec (lib_SOURCES): Add userspec.h.
82841         (Include): Add "userspec.h".
82842         Improve description.
82843
82844 2003-11-03  Jim Meyering  <jim@meyering.net>
82845
82846         * lib/userspec.c: Include "userspec.h".
82847         * lib/userspec.h: New file.
82848
82849 2003-11-03  Bruno Haible  <bruno@clisp.org>
82850
82851         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
82852
82853 2003-11-03  Bruno Haible  <bruno@clisp.org>
82854
82855         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
82856         available, to avoid (extremely rare) race condition.
82857         Suggested by Paul Eggert.
82858
82859 2003-11-02  Karl Berry  <karl@gnu.org>
82860
82861         * config/srclist.txt (vasprintf.c): sync broken, sigh.
82862
82863 2003-10-31  Paul Eggert  <eggert@twinsun.com>
82864
82865         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
82866         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
82867         (read_filesystem_list): Set and use me_type_malloced.
82868         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
82869         whatever the type happens to be), for brevity and consistency.
82870         Check for size calculation overflow on Alphas running OSF/1.
82871
82872 2003-10-31  Jim Meyering  <jim@meyering.net>
82873
82874         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
82875
82876         * lib/linebuffer.c: Include <string.h> for declaration of memset.
82877
82878 2003-10-30  Paul Eggert  <eggert@twinsun.com>
82879             Bruno Haible  <bruno@clisp.org>
82880
82881         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
82882         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
82883
82884 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82885
82886         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
82887         netbsd*-gnu*.  Suggested by Robert Millan.
82888
82889 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82890
82891         * modules/group-member: Depend on stdbool.
82892
82893 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82894
82895         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
82896
82897 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82898
82899         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
82900         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
82901         after the 'gnu' in these cases.  This fixes some bugs in the
82902         previous change, and is based on suggestions by Robert Millan.
82903
82904 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82905
82906         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
82907         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
82908         no longer needed.
82909         * lib/quotearg.c (quotearg_n_options): Use it.
82910         * lib/group-member.c: Include <stdbool.h>.
82911         (free_group_info): Arg is now const *; don't free arg.
82912         (get_group_info): Now returns bool and accepts struct group_info *,
82913         rather than returning a malloc'ed struct group_info *.
82914         All uses changed.  Check for overflow in internal size calculation.
82915
82916         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
82917         rather than xmalloc/xrealloc.
82918         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
82919         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
82920         conformance bug: the old code used a pointer after freeing the
82921         storage that it addressed.
82922         * lib/hash.c (hash_initialize): Simplify the code by using
82923         xalloc_oversized rather than doing it by hand.
82924         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
82925         the buffer preserved.  Use free and xmalloc instead.
82926         * lib/quotearg.c (quotearg_n_options): Likewise.
82927         Use a simpler test for size overflow.  Don't use xalloc_oversized
82928         because unsigned int might be wider than size_t (!); this suggests
82929         that we should switch from unsigned int to size_t for slot numbers.
82930
82931 2003-10-28  Paul Eggert  <eggert@twinsun.com>
82932
82933         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
82934         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
82935         NetBSD kernels.  Requested by Richard Stallman.
82936
82937 2003-10-27  Paul Eggert  <eggert@twinsun.com>
82938
82939         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
82940         to allocate the returned structure.  Do not allocate a subarray,
82941         as x2nrealloc will do that.
82942         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
82943         instead of xnrealloc.
82944         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
82945
82946 2003-10-27  Bruno Haible  <bruno@clisp.org>
82947
82948         * lib/stdbool_.h: Better support for BeOS.
82949
82950 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82951
82952         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
82953         now uses inline.
82954
82955 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82956
82957         * lib/xalloc.h (xalloc_oversized): New static inline function, for
82958         callers that want to do their own size-overflow checking.  Include
82959         <stdbool.h>, since xalloc_oversized returns bool.
82960         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
82961         to use xalloc_oversized.
82962
82963         Add two functions x2realloc, x2nrealloc, for programs that grow
82964         arrays dynamically by doubling their sizes.
82965         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
82966         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
82967         New functions.
82968
82969         Port to C99 semantics for 'inline' of external functions.
82970         Bug reported by Bruno Haible.
82971         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
82972         with the old contents of xnmalloc.
82973         (xnmalloc, xmalloc): Use it.
82974         (xnrealloc_inline): New static inline function,
82975         with the old contents of xnrealloc.
82976         (xnrealloc, xrealloc): Use it.
82977
82978         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
82979         that.
82980
82981 2003-10-26  Karl Berry  <karl@gnu.org>
82982
82983         * config/srclist.txt (COPYING.DOC): no longer available from
82984         /gd/gnuorg; don't know where the ultimate source is.
82985
82986 2003-10-25  Paul Eggert  <eggert@twinsun.com>
82987
82988         Fix several address-calculation bugs in the hash modules,
82989         plus some minor code cleanup.
82990
82991         * lib/hash.h: Include <stdbool.h>, for bool.
82992         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
82993         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
82994         hash_get_n_entries, hash_get_max_bucket_length,
82995         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
82996         hash_rehash): Use size_t rather than unsigned.
82997         * lib/hash.c (struct hash_table, hash_get_n_buckets,
82998         hash_get_n_buckets_used, hash_get_n_entries,
82999         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
83000         hash_get_entries, hash_do_for_each, hash_string, is_prime,
83001         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
83002         Likewise.
83003         (SIZE_MAX): Define if not defined.
83004         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
83005         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
83006         hash_print):
83007         Use const * when possible.
83008         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
83009         (check_tuning): Fix bug: if tuning parameters were very close to
83010         0 or 1, rounding errors could have caused subscript violations.
83011         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
83012         (hash_initialize): Add 'fail:' label
83013         to free table and return NULL, and use it to simplify code.
83014         Use calloc rather than clearing the storage ourself.
83015         (hash_initialize, hash_rehash): Check for arithmetic overflow in
83016         buffer size calculations.
83017         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
83018         Include <stddef.h>, for size_t.
83019         * lib/hash-pjw.c (hash_pjw): Likewise.
83020         Switch to method described by Bruno Haible.
83021         Include <limits.h>, for CHAR_BIT.
83022         (SIZE_BITS): New macro.
83023
83024 2003-10-23  Paul Eggert  <eggert@twinsun.com>
83025
83026         * m4/getline.m4 (AM_FUNC_GETLINE):
83027         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
83028         hosts.  Problem reported by Derek Robert Price in
83029         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
83030         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
83031         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
83032
83033 2003-10-21  Paul Eggert  <eggert@twinsun.com>
83034
83035         * lib/getndelim2.c (getndelim2): When size calculation overflows,
83036         ceiling the allocation at NMAX bytes rather than silently
83037         discarding input bytes before NMAX is reached.  This makes
83038         a difference only if NMAX exceeds SIZE_MAX / 2.
83039
83040         * lib/obstack.c: Merge from glibc.
83041         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
83042         Add libc_hidden_def (_obstack_newchunk).
83043         (_obstack_free) [! defined _LIBC]: Remove.
83044         [defined _LIBC]: Make a strong alias from obstack_free, rather than
83045         a clone of the function body.
83046         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
83047         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
83048
83049         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
83050         glibc.
83051         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
83052         arg to memcpy.
83053
83054         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
83055         (obstack_ptr_grow_fast, obstack_int_grow_fast):
83056         Don't use lvalue casts, as GCC plans to remove support for them
83057         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
83058         was also present in the non-GCC version, indicating that this
83059         code had always been buggy and had never been widely used.
83060         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
83061         Use the fast variant of each macro, rather than copying the
83062         definiens of the fast variant; that way, we'll be more likely to
83063         catch future bugs in the fast variants.
83064
83065 2003-10-20  Bruno Haible  <bruno@clisp.org>
83066
83067         * modules/wait-process: New file.
83068         * MODULES.html.sh (func_all_modules): Add wait-process.
83069
83070 2003-10-20  Bruno Haible  <bruno@clisp.org>
83071
83072         * m4/wait-process.m4: New file.
83073
83074 2003-10-20  Bruno Haible  <bruno@clisp.org>
83075
83076         * lib/wait-process.h: New file, from GNU gettext.
83077         * lib/wait-process.c: New file, from GNU gettext.
83078
83079 2003-10-19  Jim Meyering  <jim@meyering.net>
83080
83081         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
83082         HPUX 10.20.
83083
83084 2003-10-18  Karl Berry  <karl@gnu.org>
83085
83086         * config/config.guess: update from config.
83087
83088 2003-10-16  Paul Eggert  <eggert@twinsun.com>
83089
83090         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
83091         (getgroups): First arg is int, not size_t.
83092         Don't let 'free' mangle errno.
83093
83094 2003-10-16  Paul Eggert  <eggert@twinsun.com>
83095
83096         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
83097
83098 2003-10-16  Karl Berry  <karl@gnu.org>
83099
83100         * config/config.{guess,sub}: update from config.
83101
83102 2003-10-16  Jim Meyering  <jim@meyering.net>
83103
83104         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
83105         memcpy.
83106
83107 2003-10-15  Paul Eggert  <eggert@twinsun.com>
83108
83109         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
83110         (SIZE_MAX): Remove.
83111         (new_exclude, add_exclude_file): Initial size no longer needs to
83112         be a power of 2.
83113         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
83114         our own address arithmetic overflow checking.
83115
83116         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
83117         (fnmatch): Do not alloca more than 2000 wide characters;
83118         instead, use malloc for large buffers.
83119         Check for address arithmetic overflow, and return -1
83120         with errno set to ENOMEM in that case.
83121         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
83122         (NEW_PATTERN): Do not alloca more than 8000 bytes;
83123         instead, return -1.  Check for address arithmetic overflow.
83124
83125 2003-10-14  Paul Eggert  <eggert@twinsun.com>
83126
83127         Handle invalid suffixes and overflow independently, so that
83128         callers can treat them independently as needed.  Fix some bugs in
83129         suffix handling, e.g., "100k@" was not diagnosed as an invalid
83130         suffix for a human-readable blocksize.  The major caller-visible
83131         change is the addition of a new
83132         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
83133         that both overflow and suffix chars were found.
83134
83135         * lib/human.c (humblock): Don't check separately for invalid suffix
83136         char; that is xstrtoumax's job (now that its bug is fixed).
83137         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
83138         INTMAX_MAX]: New macros.
83139         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
83140         TYPE_MAXIMUM): New macros.
83141         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
83142         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
83143         if overflow occurs, as it's what __strtol does and it's more useful
83144         in practice.
83145         (__xstrtol): If __strtol reports some error other than ERANGE,
83146         reflect it to the caller as LONGINT_INVALID.  If it reports
83147         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
83148         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
83149         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
83150         value.
83151         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
83152         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
83153         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
83154         [defined UINTMAX_MAX]: New macros.
83155
83156 2003-10-14  Bruno Haible  <bruno@clisp.org>
83157
83158         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
83159
83160 2003-10-14  Bruno Haible  <bruno@clisp.org>
83161
83162         * m4/sig_atomic_t: New file, from GNU gettext.
83163         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
83164
83165 2003-10-14  Bruno Haible  <bruno@clisp.org>
83166
83167         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
83168         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
83169         Also use volatile where needed.
83170
83171 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83172
83173         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
83174         Change maintainer from Bruno Haible to 'all'.
83175
83176 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83177
83178         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
83179
83180 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83181
83182         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
83183         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
83184         and define in terms of the other primitives.
83185         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
83186         (SIZE_MAX): Define if not already defined.
83187         (array_size_overflow): New function.
83188         (xalloc_die): Abort instead of exiting if 'error' returns.
83189         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
83190         (xmalloc, xrealloc): Use them.
83191         (xcalloc): Check for address arithmetic overflow.
83192         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
83193         a bit faster than strcpy.
83194
83195 2003-10-10  Simon Josefsson  <jas@extundo.com>
83196
83197         * modules/argp (Depends-on): Add restrict and strcase.
83198
83199 2003-10-10  Simon Josefsson  <jas@extundo.com>
83200
83201         * m4/argp.m4: Add AC_C_INLINE.
83202
83203 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83204
83205         Merge getpass from libc, plus a few fixes.
83206
83207         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
83208         Include <stdbool.h>.
83209         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
83210         __fsetlocking to empty.
83211         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
83212         do include <bits/libc-lock.h>.
83213         Do not include <fcntl.h>; not needed.
83214         [_LIBC]: Include <wchar.h>.
83215         (NOTCANCEL_MODE): New macro.
83216         (flockfile, funlockfile) [_LIBC]: New macros.
83217         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
83218         [!_LIBC]: New macros.
83219         (call_fclose): New function.
83220         (getpass): Use it.  Save tty stream separately; this simplifies the
83221         code and makes it more reliable if stdin happens to equal stdout.
83222         Invoke __fsetlocking on tty.
83223         Handle thread cancellation if needed.
83224         Namespace cleanup (use __tcgetattr, __getline).
83225         Use bool for Booleans.
83226         [USE_IN_LIBIO]: Handle wide streams.
83227         [!_LIBC]: Unconditionally do the fseek, since we don't know what
83228         stream might go where.
83229
83230         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
83231         doesn't have to include <stdio.h> before us.
83232         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
83233         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
83234         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
83235         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
83236         if not declared, so that we can use getpass.c code from libc without
83237         rewriting it.
83238         (flockfile, ftrylockfile, funlockfile): New macros.
83239
83240 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83241
83242         * modules/getpass: Depend on stdbool.
83243
83244 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83245
83246         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
83247
83248 2003-10-07  Karl Berry  <karl@gnu.org>
83249
83250         * config/config.{guess,sub}: update from config.
83251
83252 2003-10-06  Jim Meyering  <jim@meyering.net>
83253             Bruno Haible  <bruno@clisp.org>
83254
83255         This lets translators provide better translations for the
83256         "Written by ..." part of --version output.
83257         * lib/version-etc.h: Include stdarg.h.
83258         (version_etc_copyright): Declare as readonly.
83259         (version_etc): Make this function variadic with a NULL-terminated list
83260         of author name strings.
83261         (version_etc_va): New declaration.
83262         * lib/version-etc.c: Include stdarg.h, stdlib.h.
83263         (version_etc_copyright): Declare as readonly.
83264         (version_etc_va): New function. Provide a different translatable string
83265         for each possible number of authors < 10. Abbreviate when there are 10
83266         authors or more.
83267         (version_etc): Make this function variadic. Call version_etc_va.
83268         Suggestion from Gary V. Vaughan.
83269
83270         * lib/long-options.h (parse_long_options): Change prototype: the
83271         authors string is moved to the end and becomes variadic.
83272         * lib/long-options.c: Include stdarg.h.
83273         (parse_long_options): Make this function variadic, too.
83274         Call version_etc_va, not version_etc.
83275
83276 2003-10-06  Bruno Haible  <bruno@clisp.org>
83277
83278         * modules/version-etc-2: Remove file.
83279         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
83280
83281 2003-10-06  Bruno Haible  <bruno@clisp.org>
83282
83283         * modules/fatal-signal: New file.
83284         * MODULES.html.sh (func_all_modules): Add fatal-signal.
83285
83286 2003-10-06  Bruno Haible  <bruno@clisp.org>
83287
83288         * m4/fatal-signal.m4: New file.
83289         * m4/signalblocking.m4: New file, from GNU gettext.
83290
83291 2003-10-06  Bruno Haible  <bruno@clisp.org>
83292
83293         * lib/version-etc-2.h: Remove file.
83294         * lib/version-etc-2.c: Remove file.
83295
83296 2003-10-06  Bruno Haible  <bruno@clisp.org>
83297
83298         * lib/fatal-signal.h: New file, from GNU gettext.
83299         * lib/fatal-signal.c: New file, from GNU gettext.
83300
83301 2003-10-05  Paul Eggert  <eggert@twinsun.com>
83302
83303         * README: Rework advice for preventing empty .o files.
83304         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
83305         not <sys/types.h>.
83306
83307 2003-10-04  Karl Berry  <karl@gnu.org>
83308
83309         * lib/argp*: update from libc.
83310
83311 2003-10-04  Karl Berry  <karl@gnu.org>
83312
83313         * config/config.{guess,sub}: update from config.
83314
83315 2003-10-02  Bruno Haible  <bruno@clisp.org>
83316
83317         * modules/lchown (Include): Add lchown.h.
83318         * modules/time_r (Include): Use "..." syntax.
83319         * modules/xgetdomainname (Include): Add xgetdomainname.h.
83320
83321 2003-10-01  Simon Josefsson  <jas@extundo.com>
83322
83323         * MODULES.html.sh (func_all_modules): Move gethostname from section
83324         'based on' to section 'lacking' POSIX:2001.
83325
83326 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
83327
83328         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
83329         to output mode on the same stream.
83330
83331 2003-09-29  Paul Eggert  <eggert@twinsun.com>
83332
83333         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
83334         Fix arg typo in previous patch.
83335
83336 2003-09-28  Jim Meyering  <jim@meyering.net>
83337
83338         * lib/error.c: Correct cpp indentation.
83339
83340 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83341
83342         * modules/free: New file.
83343
83344 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83345
83346         * m4/free.m4: New file.
83347
83348 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83349
83350         * lib/minmax.h (MIN, MAX)
83351         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
83352         Omit the special code that used __typeof__, since we worry that
83353         it could be more trouble than it's worth.  See:
83354         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
83355         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
83356
83357         * lib/free.c: New file.
83358
83359 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
83360
83361         Trivial fixes to Makefile.am parts of module listings.
83362         * modules/strstr: Append strstr.h to lib_SOURCES.
83363         * modules/strcase: Likewise, for strcase.h.
83364
83365 2003-09-27  Karl Berry  <karl@gnu.org>
83366
83367         * config/mkinstalldirs: update from automake.
83368
83369 2003-09-26  Paul Eggert  <eggert@twinsun.com>
83370
83371         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
83372         (error_tail): Do not loop, reallocating temporary buffer, since
83373         the output cannot contain more wide characters than the input
83374         contains bytes, the size must be big enough already.  This avoids
83375         one potential size overflow calculation.  Check for size overflow
83376         when calculating temporary buffer size.  Free temporary buffer
83377         when done, if it was allocated with malloc; this plugs a memory
83378         leak.  Remove casts from void * to pointers, that are no longer
83379         needed now that we're assuming C89 or better.
83380
83381         Merge error changes from glibc.
83382
83383         * lib/error.c, error.h: Update copyright notice header to match glibc.
83384         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
83385         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
83386         Disable cancellation while printing error.
83387         * lib/error.h: Prepend __ to parameter names.
83388
83389 2003-09-26  Jim Meyering  <jim@meyering.net>
83390
83391         * lib/error.c (error_tail): Move some declarations
83392         into inner scope where the local variables are used.
83393
83394 2003-09-26  Bruno Haible  <bruno@clisp.org>
83395
83396         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
83397         stpncpy().
83398         Don't define stpncpy through config.h; it's now done through stpncpy.h.
83399
83400 2003-09-26  Bruno Haible  <bruno@clisp.org>
83401
83402         * lib/stpncpy.h (gnu_stpncpy): New declaration.
83403         (stpncpy): Define as alias for gnu_stpncpy.
83404         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
83405
83406 2003-09-25  Simon Josefsson  <jas@extundo.com>
83407
83408         * lib/xgetdomainname.h: New file.
83409         * lib/xgetdomainname.c: New file.
83410
83411 2003-09-25  Simon Josefsson  <jas@extundo.com>
83412             Bruno Haible  <bruno@clisp.org>
83413
83414         * modules/getdomainname: New file.
83415         * modules/xgetdomainname: New file.
83416         * MODULES.html.sh (func_all_modules): Add getdomainname,
83417         xgetdomainname.
83418
83419 2003-09-25  Simon Josefsson  <jas@extundo.com>
83420             Bruno Haible  <bruno@clisp.org>
83421
83422         * m4/getdomainname.m4: New file.
83423
83424 2003-09-25  Simon Josefsson  <jas@extundo.com>
83425             Bruno Haible  <bruno@clisp.org>
83426
83427         * lib/getdomainname.h: New file.
83428         * lib/getdomainname.c: New file.
83429
83430 2003-09-25  Karl Berry  <karl@gnu.org>
83431
83432         * lib/argp-fmtstream.c, argp-help.c: update from libc.
83433
83434 2003-09-25  Karl Berry  <karl@gnu.org>
83435
83436         * config/install-sh: update from automake.
83437
83438 2003-09-25  Bruno Haible  <bruno@clisp.org>
83439
83440         * modules/version-etc-2: New file, from modules/version-etc with
83441         modifications.
83442         * MODULES.html.sh (func_all_modules): Add version-etc-2.
83443
83444 2003-09-25  Bruno Haible  <bruno@clisp.org>
83445
83446         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
83447         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
83448
83449 2003-09-24  Simon Josefsson  <jas@extundo.com>
83450
83451         * modules/xgethostname: Add xgethostname.h.
83452
83453 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83454
83455         * lib/linebuffer.c (freebuffer): Don't free the argument, just
83456         the buffer associated with the argument.  Bug reported by
83457         Simon Josefsson.
83458
83459 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83460
83461         * README: Document assumptions that 'int' is at least 32 bits
83462         wide, that integer arithmetic is 2's complement without overflow,
83463         that there are no holes in integer values, that adding sizes of
83464         two nonoverlapping objects can't overflow, and that all-bits-zero
83465         yields scalar zero.  Fix spelling and capitalization typos.
83466
83467 2003-09-19  Karl Berry  <karl@gnu.org>
83468
83469         * lib/argp.h: update from libc.
83470
83471 2003-09-17  Paul Eggert  <eggert@twinsun.com>
83472
83473         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
83474         to avoid spurious warnings like "AC_RUN_IFELSE was called before
83475         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
83476
83477 2003-09-17  Paul Eggert  <eggert@twinsun.com>
83478
83479         * gnulib-tool: Use "test -h", not "test -L", for portability
83480         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
83481         (tags_regexp): Remove, since \| doesn't conform to POSIX.
83482         (sed_extract_prog): Issue s commands one-by-one, rather than
83483         using \| in one s command.
83484
83485 2003-09-16  Paul Eggert  <eggert@twinsun.com>
83486
83487         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
83488         input error, instead of returning NULL the next time we are called
83489         (and therefore losing track of errno).
83490
83491 2003-09-16  Bruno Haible  <bruno@clisp.org>
83492
83493         * gnulib-tool (func_create_testdir): Warn about duplicated
83494         dependencies.
83495
83496 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83497
83498         * modules/argmatch, modules/fatal, modules/obstack,
83499         modules/xalloc, modules/xgethostname: Sort dependencies by
83500         importance, not alphabetically.
83501
83502 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83503
83504         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
83505         fails, so that the caller gets the proper errno.
83506
83507         * lib/readutmp.c (read_utmp): Likewise.
83508         Check for fstat error.  Close stream and free storage
83509         when failing.
83510
83511 2003-09-14  Karl Berry  <karl@gnu.org>
83512
83513         * config/srclist.txt (strdup.c): disable for c89 changes.
83514
83515 2003-09-14  Jim Meyering  <jim@meyering.net>
83516
83517         * lib/getloadavg.c: Correct cpp indentation.
83518         * lib/strdup.c: Likewise.
83519         * lib/vasnprintf.c: Likewise.
83520
83521 2003-09-14  Bruno Haible  <bruno@clisp.org>
83522
83523         * modules/fwriteerror: New file.
83524         * MODULES.html.sh (func_all_modules): Add fwriteerror.
83525
83526 2003-09-14  Bruno Haible  <bruno@clisp.org>
83527
83528         * lib/fwriteerror.h: New file.
83529         * lib/fwriteerror.c: New file.
83530
83531 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83532
83533         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
83534         modules/xgethostname, modules/xalloc: Depend on exit.
83535
83536 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83537
83538         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
83539
83540         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
83541         and AC_MINIX, too, so that their extensions are available.
83542
83543         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
83544         This macro has been superseded by gl_BACKUPFILE.
83545
83546         More patches to assume C89 or better.
83547
83548         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
83549
83550         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
83551         unconditionally.
83552         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
83553         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
83554         Include <string.h>, <stdlib.h> unconditionally.
83555         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
83556         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
83557         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
83558         headers or for string.h.
83559         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
83560         or strtoul.
83561
83562         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
83563         headers.
83564         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
83565         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83566         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
83567         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
83568         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83569         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
83570         memcpy, memset.
83571         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
83572         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
83573         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
83574         strtol.
83575         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
83576         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
83577         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
83578         strtoul.
83579
83580 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83581
83582         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
83583         * lib/obstack.c [!defined _LIBC]: Likewise.
83584         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
83585         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
83586         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
83587
83588         More changes to assume C89 or better.
83589
83590         * lib/error.c (error_tail): Assume vprintf.
83591
83592         * lib/argmatch.c (getenv): Remove decl.
83593         * lib/progreloc.c (get_full_program_name): Define via prototype.
83594         * lib/setenv.c (clearenv): Likewise.
83595         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
83596         needed.
83597         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
83598         (malloc, memcpy): Remove decls.
83599         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
83600         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
83601         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83602         (memcpy): Remove macro.
83603         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
83604         (__P): Remove.  All uses removed.
83605         (PTR): Remove.  All uses changed to void *.
83606         (CHAR_BIT, NULL): Remove.
83607         (spaces, zeros, memset_space, memset_zero)
83608         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
83609         Remove.
83610         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
83611         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
83612         Define with prototype.
83613         Remove now-unnecessary prototype decl.
83614         (extra_args_spec): Assume ANSI C.  All uses changed.
83615         (extra_args_spec_iso): Remove.
83616         (my_strftime, emacs_strftimeu): Define via prototype.
83617         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
83618         unconditionally.
83619         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
83620         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
83621         (strtoul, strtol): Remove decls.
83622         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
83623         LONG_MAX): Remove.
83624         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83625         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
83626         (LOCALE_PARAM_PROTO): New macro.
83627         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
83628         (INTERNAL (strtol), strtol): Define with a prototype.
83629         (PARAMS): Remove.  All uses removed.
83630         * lib/tempname.c: Include <string.h> unconditionally.
83631         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
83632         * lib/xgethostname.c (main): Define with a prototype.
83633         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
83634         Include <stdlib.h> unconditionally.
83635         (calloc, malloc, realloc, free): Remove decls.
83636         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
83637         Include <stdlib.h> unconditionally.  Sort include file names.
83638         (strtod): Remove.
83639         (xstrtod): Define with a prototype.
83640         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
83641         (strtol, strtoul): Remove decls.
83642
83643 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83644
83645         More patches to assume C89 or better.
83646         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
83647         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
83648         string.h, memchr, STDC_HEADERS.
83649
83650 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83651
83652         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
83653         Include <stdlib.h>, <string.h> unconditionally.
83654         Remove now-unnecessary cast to char *.
83655         * lib/strnlen.c: Include <string.h> unconditionally.
83656         * lib/yesno.c (yesno): Define with a prototype.
83657
83658 2003-09-11  Bruno Haible  <bruno@clisp.org>
83659
83660         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
83661
83662 2003-09-10  Jim Meyering  <jim@meyering.net>
83663
83664         * lib/error.c: Correct indentation of cpp directives.
83665
83666 2003-09-10  Bruno Haible  <bruno@clisp.org>
83667
83668         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
83669         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
83670         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
83671         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
83672         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
83673         <stdlib.h> and <string.h> checks.
83674         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
83675         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
83676
83677 2003-09-10  Bruno Haible  <bruno@clisp.org>
83678
83679         * lib/strcspn.c: Include <string.h> unconditionally.
83680         * lib/strpbrk.c: Include <string.h> unconditionally.
83681         * lib/strstr.c: Include <string.h> unconditionally.
83682         * lib/unicodeio.c: Include <string.h> unconditionally.
83683         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
83684         * lib/unsetenv.c: Likewise.
83685         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
83686         * lib/yesno.c: Include <stdlib.h> unconditionally.
83687         (rpmatch): Add prototype.
83688
83689 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83690
83691         More patches to assume C89 or better.
83692         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
83693         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
83694         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
83695         or for string.h.
83696         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
83697         stdlib.h.
83698         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
83699         C headers.
83700         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
83701         string.h.
83702         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
83703         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
83704         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
83705         or for string.h.
83706         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
83707         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
83708         C headers.
83709         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
83710         memcpy.
83711         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
83712         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
83713         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
83714         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
83715         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
83716         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
83717         string.h, free.
83718         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
83719         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
83720         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
83721         C headers, or for string.h.
83722         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
83723         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
83724         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
83725         headers, memory.h, stdlib.h, string.h, strings.h.
83726         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
83727         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
83728         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
83729         strchr.
83730         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
83731         headers, memory.h, string.h.
83732         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
83733         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
83734         free.
83735         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
83736         headers.
83737         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
83738         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
83739         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
83740         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
83741         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
83742
83743 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83744
83745         More K&R removal.
83746
83747         * lib/acosl.c (main): Use a prototype.
83748         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
83749         tanl.c: Likewise.
83750
83751         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
83752
83753         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
83754         (getopt, etopt_long, getopt_long_only, _getopt_internal)
83755         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
83756         with a prototype.
83757         * lib/getopt.c (const): Remove macro.
83758         Include <string.h> unconditionally.
83759         (my_index): Remove; all uses changed to strchr.
83760         (strlen): Remove decl.
83761         (exchange): Remove forward decl; no longer needed.
83762         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
83763         Define with prototype.
83764         * lib/getopt1.c (const): Remove macro.
83765         (getopt_long, getopt_long_only, main): Define with prototype.
83766
83767         * lib/getugroups.c: Include <string.h> unconditionally.
83768
83769         * lib/getusershell.c: Include <stdlib.h> unconditionally.
83770         (getusershell, setusershell, endusershell, readname, main):
83771         Define with prototypes.
83772
83773         * lib/group-member.c: Include group-member.h first.
83774         Include <stdlib.h> unconditionally.
83775
83776         * lib/hard-locale.c: Include hard-locale.h first.
83777         Include <stdlib.h>, <string.h> unconditionally.
83778
83779         * lib/hash.c (free, malloc): Remove decls.
83780         Include <stdlib.h> unconditionally.
83781
83782         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
83783         (getenv): Do not declare.
83784
83785         * lib/idcache.c: Include <string.h> unconditionally.
83786
83787         * lib/long-options.c: Include long-options.h first, to test interface.
83788         Include <stdlib.h> unconditionally.
83789
83790         * lib/makepath.c: Include makepath.h first, to test interface.
83791         Include <stdlib.h> and <string.h> unconditionally.
83792
83793         * lib/linebuffer.c: Include <stdlib.h>.
83794         (free): Remove decl.
83795
83796         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
83797         stddef.h. rpl_malloc returns void *, not char *.
83798         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
83799         prototype.
83800
83801         * lib/md5.h: Include <limits.h> unconditionally.
83802         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
83803         (__P): Remove; all uses removed.
83804         * lib/md5.c: Include "md5.h" first.
83805         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
83806         md5_buffer, md5_process_bytes, md5_process_block):
83807         Define with prototypes.
83808         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
83809         * lib/sha.c: Include "sha.h" first.
83810         Include <stdlib.h>, <string.h> unconditionally.
83811
83812         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
83813         * lib/memcmp.c (__ptr_t): Likewise.
83814         * lib/memrchr.c (__ptr_t): Likewise.
83815         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
83816         Include <string.h> unconditionally.
83817         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
83818         * lib/memchr.c: Include <stdlib.h> unconditionally.
83819         * lib/memchr.c (LONG_MAX): Remove.
83820         * lib/memrchr.c (LONG_MAX): Likewise.
83821         * lib/memchr.c (__memchr): Define via a prototype.
83822         * lib/memrchr.c (__memrchr): Likewise.
83823         * lib/memcmp.c (__P): Remove, and remove all uses.
83824         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
83825         Remove forward decls; no longer needed.
83826         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
83827         Use types required by C89 in prototype.
83828
83829         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
83830         * lib/savedir.c: Likewise.
83831         * lib/mkdir.c (free): Remove decl.
83832         * lib/rmdir.c (rmdir): Define with a prototype.
83833         * lib/savedir.c: Include savedir.h first, to test interface.
83834
83835         * lib/mktime.c (STDC_HEADERS): Remove.
83836         Include <stdlib.h>, <string.h> unconditionally.
83837
83838         * lib/modechange.c: Include <stdlib.h> unconditionally.
83839         (malloc): Remove decl.
83840
83841         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
83842         (free): Remove decl.
83843
83844         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
83845         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
83846         (This type really should be intptr_t, but that's a C99ism.)
83847         (_obstack_memcpy): Remove: all uses changed to memcpy.
83848         Include <string.h> unconditionally.
83849         (struct obstack): Assume __STDC__ for types of members
83850         chunkfun, freefun, extra_arg.
83851         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
83852         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
83853         obstack_begin, obstack_specify_allocation,
83854         obstack_specify_allocation_with_arg, obstack_chunkfun,
83855         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
83856         Remove unprototyped decls and the macros that use them.
83857         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
83858         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
83859         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
83860         (defined __STDC__ && __STDC__)]:
83861         Remove nonprototyped code.
83862         Include <stdlib.h> unconditionally.
83863         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
83864         _obstack_allocated_p, _obstack_free, obstack_free,
83865         _obstack_memory_used, print_and_abort):
83866         Define using prototypes.
83867         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
83868         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
83869         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
83870         obstack_next_free, obstack_object_size, obstack_room) [0]:
83871         Remove unused, unprototyped code.
83872
83873         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
83874
83875         * lib/physmem.c (physmem_total, physmem_available, main): Define
83876         with prototypes.
83877
83878         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
83879         (main): Define with a prototype.
83880
83881         * lib/posixver.c (getenv): Remove decl.
83882
83883         * lib/putenv.c (malloc): Returns void *, not char *.
83884         Include <string.h> unconditionally.
83885         (strchr, memcpy, NULL): Do not define.
83886
83887         * lib/readtokens.c: Include readtokens.h first, to test interface.
83888         Include <stdlib.h>, <string.h> unconditionally.
83889         (init_tokenbuffer): Define with a prototype.
83890
83891         * lib/regex.c (PARAMS): Remove.  All uses removed.
83892         All uses of _RE_ARGS removed, too.
83893         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83894         unconditionally.
83895         (bzero): Assume memset exists.
83896         (memcmp, memcpy, NULL): Remove.
83897         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
83898         char, or assignments to local vars of type signed char.
83899         (init_syntax_once, PREFIX(extract_number_and_incr),
83900         PREFIX(print_partial_compiled_pattern),
83901         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
83902         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
83903         PREFIX(regex_grow_registers), PREFIX(regex_compile),
83904         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
83905         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
83906         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
83907         wcs_compile_range, byte_compile_range, truncate_wchar,
83908         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
83909         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
83910         count_mbs_length, wcs_re_match_2_internal,
83911         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
83912         PREFIX(alt_match_null_string_p),
83913         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
83914         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
83915         regfree, PREFIX(extract_number)): Define with prototype.  Remove
83916         now-unnecessary declaration, if any.
83917         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
83918         regcomp, regexec):
83919         Remove now-unnecessary casts among pointer types.
83920         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
83921
83922         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
83923         (free): Remove decl.
83924
83925         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
83926
83927         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
83928         (free): Remove decl.
83929
83930         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
83931         * lib/xgetcwd.c: Likewise.
83932
83933         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
83934         (free): Remove decl.
83935
83936         * lib/strchrnul.c (strchrnul): Define with a prototype.
83937         Fix bug: c_in was not converted to char before searching.
83938
83939         The following changes are not K&R related:
83940
83941         * lib/group-member.h: Include <sys/types.h>, so that this file is
83942         self-contained.
83943         * lib/makepath.h: Likewise.
83944
83945         * lib/getusershell.c (readname, default_index, line_size, readname):
83946         Use size_t, not int, for sizes.
83947         (readname): If the size overflows, report an error instead of
83948         looping forever.
83949
83950 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83951
83952         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
83953         libc.
83954
83955 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83956
83957         * README: New section: portability guidelines.
83958
83959 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83960
83961         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
83962         C89 spec.
83963
83964 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83965
83966         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
83967
83968 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83969
83970         Assume C89 or better; remove K&R cruft.
83971         A few of these changes were first proposed by Derek Robert Price
83972         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
83973
83974         * lib/addext.c: Include <string.h> unconditionally.
83975         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
83976         Don't declare getenv or malloc.
83977
83978         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
83979         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
83980         (NULL): Remove.
83981         (find_stack_direction, alloca): Use prototypes.
83982
83983         * lib/atexit.c (atexit): Define using a prototype.
83984
83985         * lib/basename.c, dirname.c, stripslash.c:
83986         Include <string.h> unconditionally.
83987
83988         * lib/bcopy.c: Include <stddef.h>.
83989         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
83990
83991         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
83992
83993         * lib/error.h (error, error_at_line, error_print_progname)
83994         [! (defined (__STDC__) && __STDC__)]: Remove decls.
83995         * lib/error.c: Include error.h first, to check interface.
83996         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83997         (VA_START): Remove; all uses changeed to va_start.
83998         (exit, strerror): Remove decls.
83999         (error_print_progname): Prototype uncondionally.
84000         Don't include <errno.h>; no longer needed.
84001         (private_strerror): Remove.
84002         (error_tail): Always define.
84003         (error, error_at_line): Assume C89 or better; always use prototypes.
84004         * lib/fatal.c: Include "fatal.h" first, to test interface.
84005         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
84006         (VA_START): Remove; all uses changed to va_start.
84007         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
84008         this case.
84009         (exit): Remove decl.
84010         (fatal): Prototype unconditionally.  Assume va_start works.
84011         Abort at end, to pacify gcc.
84012
84013         * lib/euidaccess.c (main): Define with a prototype.
84014
84015         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
84016
84017         * lib/exitfail.c: Include <stdlib.h> unconditionally.
84018
84019         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
84020         prototypes.
84021         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
84022         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
84023         (getenv): Remove decl.
84024         (fnmatch): Define using a prototype.
84025         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
84026         (FCT): Define using a prototype.
84027
84028         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
84029
84030         * lib/gethostname.c: Include <stddef.h>.
84031         (gethostname): Define with prototype.  Length is size_t, not int.
84032
84033 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84034
84035         Assume C89 or better; remove K&R cruft.
84036         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
84037         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
84038         string.h, getenv, malloc.
84039         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
84040         headers.
84041         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
84042         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
84043         do not check for strerror.
84044         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
84045         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
84046         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
84047         do not check for doprnt or vprintf.
84048         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
84049         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
84050
84051 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84052
84053         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
84054         getversion.c should have been removed then, but was accidentally
84055         preserved.
84056
84057         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
84058         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
84059
84060 2003-09-08  Karl Berry  <karl@gnu.org>
84061
84062         * config/config.sub, config.guess, srclistvars.sh: update from savannah
84063                 config, forget about prep.
84064
84065         * config/depcomp, missing: update from automake.
84066
84067 2003-09-07  Paul Eggert  <eggert@twinsun.com>
84068
84069         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
84070         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
84071
84072 2003-09-07  Paul Eggert  <eggert@twinsun.com>
84073
84074         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
84075         copy_tm_result.  Bug reported by Simon Josefsson in
84076         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
84077
84078 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84079
84080         * m4/time_r.m4: New file.
84081         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
84082         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
84083         is. Check for timegm declaration.
84084         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
84085         Do not check for gmtime_r.
84086         Replace mktime if __mktime_internal does not exist and if mktime
84087         hasn't been replaced already.
84088
84089 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84090
84091         * lib/time_r.c, lib/time_r.h: New files.
84092
84093         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
84094         __localtime_r.
84095         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
84096         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
84097
84098         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
84099         __gmtime_r.
84100         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
84101         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
84102         Include <time_r.h>.
84103
84104         * lib/timegm.c: Switch to glibc implementation, with the following
84105         changes:
84106         [defined HAVE_CONFIG_H]: Include <config.h>.
84107         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
84108         (__mktime_internal) [!defined _LIBC]: New decl.
84109         (__gmtime_r) [!defined _LIBC]: New macro and function.
84110         (timegm): Use a prototype, since gnulib assumes C89.
84111         Do not bother declaring tmp to be const, as it's not really usefu.
84112         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
84113         (timegm): Declare only if HAVE_DECL_TIMEGM.
84114
84115 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84116
84117         * MODULES.html.sh (func_all_modules): Add time_r.
84118         * modules/time_r: New file.
84119         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
84120         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
84121
84122 2003-09-03  Paul Eggert  <eggert@twinsun.com>
84123
84124         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
84125         Bug reported by Lute Kamstra in
84126         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
84127
84128         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
84129         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
84130         course with correspondingly smaller numbers for tomorrow and
84131         yesterday.  From Tadayoshi Funaba.  Originally installed into
84132         sh-utils on 1999-08-07, but the patch got lost (I guess during the
84133         coreutils merge?).
84134
84135 2003-08-31  Simon Josefsson  <jas@extundo.com>
84136
84137         * modules/timegm: New file.
84138         * MODULES.html.sh (func_all_modules): Add timegm.
84139
84140 2003-08-31  Simon Josefsson  <jas@extundo.com>
84141
84142         * m4/timegm.m4: New file.
84143
84144 2003-08-31  Simon Josefsson  <jas@extundo.com>
84145
84146         * lib/timegm.h: New file.
84147         * lib/timegm.c: New file.  Based on
84148         wget-1.8.2/src/http.c:mktime_from_utc.
84149
84150 2003-08-31  Karl Berry  <karl@gnu.org>
84151
84152         * lib/argp.h: update from libc.
84153
84154 2003-08-28  Bruno Haible  <bruno@clisp.org>
84155
84156         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
84157         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
84158         followed by '#define fnmatch fnmatch_posix' gives an error.
84159
84160 2003-08-28  Bruno Haible  <bruno@clisp.org>
84161
84162         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
84163         warning on QNX, which defines O_BINARY to 000000.
84164
84165 2003-08-27  Jim Meyering  <jim@meyering.net>
84166
84167         * m4/mkstemp.m4: Require that the system mkstemp be able to create
84168         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
84169         would fail after 32.  Reported by Danny Levinson.  Details here:
84170         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
84171
84172 2003-08-24  Bruno Haible  <bruno@clisp.org>
84173
84174         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
84175         MSVC7 <stdio.h> is included later.
84176
84177 2003-08-22  Simon Josefsson  <jas@extundo.com>
84178
84179         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
84180
84181 2003-08-20  Karl Berry  <karl@gnu.org>
84182
84183         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
84184
84185 2003-08-20  Bruno Haible  <bruno@clisp.org>
84186
84187         * modules/progname: New file.
84188         * MODULES.html.sh (func_all_modules): Add progname.
84189
84190 2003-08-20  Bruno Haible  <bruno@clisp.org>
84191
84192         * lib/progname.h: New file, from GNU gettext.
84193         * lib/progname.c: New file, from GNU gettext.
84194         * lib/progreloc.c: New file, from GNU gettext.
84195
84196 2003-08-19  Jim Meyering  <jim@meyering.net>
84197
84198         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
84199         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
84200
84201 2003-08-19  Bruno Haible  <bruno@clisp.org>
84202
84203         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
84204         more.
84205
84206 2003-08-19  Bruno Haible  <bruno@clisp.org>
84207
84208         * lib/xstrdup.c: Assume <string.h> exists.
84209
84210 2003-08-18  Paul Eggert  <eggert@twinsun.com>
84211
84212         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
84213         in makefile rules.
84214
84215 2003-08-18  Jim Meyering  <jim@meyering.net>
84216
84217         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
84218         * m4/lib-ld.m4: Likewise.
84219
84220 2003-08-18  Jim Meyering  <jim@meyering.net>
84221
84222         * lib/setenv.h: Indent nested cpp directive.
84223         * lib/vasnprintf.c: Remove trailing blanks.
84224
84225 2003-08-17  Simon Josefsson  <jas@extundo.com>
84226
84227         * modules/xstrndup: New file.
84228         * MODULES.html.sh (func_all_modules): Add xstrndup.
84229
84230 2003-08-17  Simon Josefsson  <jas@extundo.com>
84231
84232         * modules/argp: Fix autoconf macro name. Add more dependencies.
84233
84234 2003-08-17  Simon Josefsson  <jas@extundo.com>
84235
84236         * m4/xstrndup.m4: New file.
84237
84238 2003-08-17  Simon Josefsson  <jas@extundo.com>
84239
84240         * m4/argp.m4: New file.
84241
84242 2003-08-17  Simon Josefsson  <jas@extundo.com>
84243             Bruno Haible  <bruno@clisp.org>
84244
84245         * lib/xstrndup.h: New file.
84246         * lib/xstrndup.c: New file.
84247
84248 2003-08-17  Bruno Haible  <bruno@clisp.org>
84249
84250         * modules/strndup (Files, Include): Add lib/strndup.h.
84251
84252 2003-08-17  Bruno Haible  <bruno@clisp.org>
84253
84254         * modules/euidaccess (Files): Add lib/euidaccess.h.
84255
84256 2003-08-17  Bruno Haible  <bruno@clisp.org>
84257
84258         * lib/strndup.h: New file.
84259
84260 2003-08-17  Bruno Haible  <bruno@clisp.org>
84261
84262         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
84263         like AC_GNU_SOURCE.
84264         * modules/extensions (configure.ac): Comment out the invocation of
84265         gl_USE_SYSTEM_EXTENSIONS.
84266
84267 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84268
84269         Merges from coreutils, etc.
84270         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
84271         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
84272         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
84273         fixing a typo.
84274         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
84275         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
84276
84277 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84278
84279         Document merge from coreutils.
84280         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
84281         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
84282         * modules/utime: Add m4/utimes-null.m4.
84283
84284 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84285
84286         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
84287         space, undoing this 2003-08-12 change:
84288         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
84289
84290 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84291
84292         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
84293         strtoul.c from libc, undoing this 2003-08-12 change:
84294         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
84295
84296 2003-08-16  Jim Meyering  <jim@meyering.net>
84297
84298         Merges from coreutils.
84299         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
84300         prefix.  Adjust cache variables similarly.  Create 500 rather than
84301         just 300 files, to exercise bug on Darwin6.5, too.
84302         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
84303         $missing_dir.
84304         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
84305         AM_SYS_POSIX_TERMIOS.
84306         Reported by mkc@mathdogs.com.
84307         Also change use of $am_cv_sys_posix_termios
84308         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
84309         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
84310         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
84311         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
84312         in /proc/mounts until it finds one with matching device number.  This
84313         is unnecessary when the FILE argument *is* a mount point.  No stat call
84314         is necessary in that case.  So, disable the statvfs-testing code on
84315         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
84316         as RedHat bug# 84846.
84317         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
84318         to 1MB, so as not to render systems with no stack size limit (e.g.,
84319         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
84320         Include <unistd.h>.  On some systems,
84321         it is required for the definition of _SC_PAGESIZE.
84322
84323 2003-08-16  Jim Meyering  <jim@meyering.net>
84324
84325         Merge from coreutils.
84326         * lib/xstrtoimax.c: #else #if -> #elif.
84327         * lib/xstrtoumax.c: Likewise.
84328
84329 2003-08-16  Jim Meyering  <jim@meyering.net>
84330
84331         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
84332         * m4/utimes.m4: Removed.
84333         * m4/utimes-null.m4: Renamed from utimes.m4.
84334
84335         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
84336         to 1MB, so as not to render systems with no stack size limit (e.g.,
84337         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
84338         Include <unistd.h>.  On some systems,
84339         it is required for the definition of _SC_PAGESIZE.
84340
84341 2003-08-16  Jim Meyering  <jim@meyering.net>
84342         and Paul Eggert  <eggert@cs.ucla.edu>
84343
84344         Merges from coreutils, etc.
84345
84346         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
84347         using the latest version from cvs.  This avoids problems with #line
84348         directives using a vendor (Sun) compiler.
84349         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
84350         Don't set GETGROUPS_LIB here; now it's
84351         done via getgroups.m4's wrapper function.
84352         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
84353         rather than just in sh-util/configure.in, so that the
84354         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
84355         same.
84356         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
84357         AC_FUNC_GETLOADAVG where to find getloadavg.c.
84358         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
84359         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
84360         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
84361         Remove code that is now done by the newly-required macros.
84362         Append $(EXEEXT) to DF_PROG.
84363         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
84364         Do not invoke or require the following here,
84365         since prereq.m4 or some gnulib .m4 now does this for us:
84366         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
84367         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
84368         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
84369         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
84370         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
84371         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
84372         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
84373         AC_FUNC_OBSTACK.
84374         Do not replace the following functions, as this is now the job
84375         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
84376         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
84377         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
84378         atexit getpass, strdup, getpagesize.
84379         Replace 'raise'.
84380         Do not check for the following functions, as this is now the job
84381         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
84382         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
84383         setregid.
84384         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
84385         Check for sys/sysctl.h.
84386         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
84387         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
84388         of checking for ssize_t ourselves.
84389
84390         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
84391         Require every macro that gnulib/modules/* suggests for us.
84392         (jm_PREREQ_ADDEXT): New macro.
84393         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
84394         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
84395
84396         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
84397         (gl_PHYSMEM): Use it.
84398         Also check for `table' function.
84399         Check for new headers and functions.
84400         Add check for sys/sysmp.h.
84401         With suggestions from Kaveh Ghazi.
84402         Ignore headers that are present but cannot be compiled.  This
84403         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
84404         C 5.4.
84405
84406 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84407
84408         Document merge from coreutils.
84409         * modules/userspec: Depend on posixver.
84410         * modules/strftime: Depend on tzset.
84411
84412 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84413
84414         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
84415         rather than tab, after '#' in shell-script copyright notices.
84416         Suggested by Bruno Haible.
84417
84418 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84419
84420         * config/srclist-update: Use three spaces, rather than tab, after '#'
84421         in shell-script copyright notices.  Suggested by Bruno Haible.
84422         Remove unnecessary parenthesization in regular expression.
84423
84424 2003-08-15  Jim Meyering  <jim@meyering.net>
84425
84426         Merge from coreutils.
84427         * lib/xgethostname.c: Include <stdlib.h>.
84428         (xghostname): Don't exit for anything other than memory-related
84429         failure; just return NULL.
84430         * lib/userspec.c: Include "posixver.h".
84431         (parse_user_spec): Accept `.' as a separator only
84432         in pre-POSIX-200112 mode.
84433         * lib/strtoimax.c: Use #elif rather than #else #if.
84434         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
84435         Remove function, now that we can rely on a working tzset function.
84436         [!_LIBC]: Ensure that the required autoconf test has been run.
84437         [!defined _NL_CURRENT && HAVE_STRFTIME]:
84438         Use underlying_strftime for %r.
84439         * lib/sha.c: Merge in some clean-up and optimization changes from
84440         glibc.
84441         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
84442         Ensure that it is a multiple of 64.
84443         Rearrange loop exit tests so as to avoid performing an
84444         additional fread after encountering an error or EOF.
84445         * lib/realloc.c: Update copyright date.
84446
84447 2003-08-15  Jim Meyering  <jim@meyering.net>
84448         and Paul Eggert  <eggert@twinsun.com>
84449
84450         Merge from coreutils.
84451         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
84452         member but strut utmpx does not.  Needed for AIX 4.3.3.
84453         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
84454
84455 2003-08-15  Jim Meyering  <jim@meyering.net>
84456         and Paul Eggert  <eggert@cs.ucla.edu>
84457
84458         Merges from coreutils, etc.
84459         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
84460         Require gl_FUNC_TZSET_CLOBBER.
84461         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
84462         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
84463         members.
84464
84465 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84466
84467         Help the merge from coreutils.
84468         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
84469         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
84470         * m4/tzset.m4: Use it too.
84471
84472 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84473
84474         * modules/tzset: New file.
84475
84476 2003-08-14  Jim Meyering  <jim@meyering.net>
84477
84478         Merges from coreutils.
84479         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
84480         variable names, rather than @FNMATCH_H@.
84481         * modules/alloca: Likewise for $(ALLOCA_H).
84482
84483         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
84484         the three copies of the literal target, `fnmatch.h'.
84485         * modules/alloca (alloca.h): Likewise.
84486
84487 2003-08-14  Jim Meyering  <jim@meyering.net>
84488
84489         Merge from coreutils.
84490         * m4/tzset.m4: New file.
84491         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
84492         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
84493         otherwise, AIX 5.1 systems would end up using the latter.
84494         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
84495         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
84496         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
84497         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
84498
84499 2003-08-14  Jim Meyering  <jim@meyering.net>
84500
84501         Merge from coreutils.
84502         * lib/obstack.h: Whitespace changes.
84503         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
84504         and xcalloc return values.
84505         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
84506         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
84507         hang on OSF/1 5.1 for DIR on both local and remote file systems.
84508         Reported by (and fix confirmed by) Nelson H. F. Beebe.
84509         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84510         error from mntctl.
84511         Use mntctl's return value to drive the entry-processing loop, since
84512         we can't rely on the value of the vmt_length member in the last
84513         entry.  On some systems doing so could result in exhausting
84514         virtual memory.  Based in part on a patch from Mike Jetzer.
84515
84516 2003-08-14  Jim Meyering  <jim@meyering.net>
84517         and Paul Eggert  <eggert@twinsun.com>
84518
84519         Merges from coreutils, plus other fixes.
84520         * lib/physmem.c: Merge in portability changes from gcc/libiberty
84521         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
84522         for credits and details.  Thanks to Kaveh Ghazi for helping
84523         to keep these files in sync.
84524         (ARRAY_SIZE): Define it.
84525         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
84526         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
84527         (memcasecmp): Don't assume size_t fits in unsigned int.
84528         Remove casts and duplicate code.
84529         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
84530         (memcpy): Remove definition.
84531         Merge in some clean-up and optimization changes from glibc.
84532         [BLOCKSIZE]: Move definition to top of file.
84533         Ensure that it is a multiple of 64.
84534         Rearrange loop exit tests so as to avoid performing an
84535         additional fread after encountering an error or EOF.
84536         * lib/md5.h (md5_uintptr): Define.
84537         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
84538         return to the initial working directory.  Preserve errno
84539         for caller.
84540         * lib/idcache.c: Include "xalloc.h".
84541         (xmalloc, xrealloc): Remove decls.
84542         (getuser): Remove casts no longer required in C89.
84543         * lib/human.c: Include stdio.h, for sprintf.
84544         * lib/group-member.c: Include "xalloc.h".
84545         (xmalloc, xrealloc): Remove decls.
84546         (get_group_info): Remove casts no longer required in C89.
84547         * lib/getusershell.c (readname): Remove casts no longer required in
84548         C89.
84549         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
84550         * lib/getline.c: Whitespace fix, from coreutils.
84551
84552 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84553
84554         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
84555         Check for isascii.
84556
84557         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
84558         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
84559         Undo previous (whitespace-only) change.
84560
84561 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84562
84563         * lib/exclude.c: Include <ctype.h>
84564         (IN_CTYPE_DOMAIN): New macro.
84565         (is_space): New fn.
84566         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
84567         and empty lines.
84568
84569         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84570         Undo previous (whitespace-only) change.
84571
84572 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84573
84574         * config/srclist-update: Change update back to the old behavior,
84575         leaving whitespace alone.  Use one 'sed' command rather than a
84576         pipeline.
84577         (fixlicense): Now a variable, not a function.
84578         (remove_trailing_blanks): Remove.
84579         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
84580         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
84581         Undo previous (whitespace-only) change.
84582
84583 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84584
84585         Merge from coreutils.
84586         * modules/euidaccess: Add lib_SOURCES, include for new
84587         file euidaccess.h
84588
84589 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84590
84591         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
84592         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
84593         Normalize leading white space and remove trailing white space.
84594
84595         Merge from coreutils
84596         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
84597
84598         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
84599         0.12.1.  These files are now being upgraded automatically by
84600         ../config/srclist-update.
84601
84602 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84603
84604         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84605         Normalize leading white space and remove trailing white space.
84606         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
84607         notice, as per ../config/srclist-update.
84608
84609         Merge from coreutils.
84610         * lib/euidaccess.h: New file.
84611         * lib/euidaccess.c: Include it.
84612         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
84613         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
84614         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
84615
84616 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84617
84618         * config/srclist-update: Add copyright notice.
84619         (remove_id_lines, remove_trailing_blanks): New constants.
84620         (fixfile): Use them to normalize spacing a bit in copied files.
84621         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
84622         Normalize leading white space and remove trailing white space.
84623
84624         * config/texinfo.tex: Sync with texinfo.
84625
84626         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
84627         strtoul.c from libc, to merge coreutils whitespace changes.
84628
84629         * config/srclist.txt: Get the following m4 files from gettext:
84630         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
84631         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
84632         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
84633         wint_t.m4.
84634
84635 2003-08-12  Karl Berry  <karl@gnu.org>
84636
84637         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
84638         been made.
84639
84640 2003-08-11  Paul Eggert  <eggert@twinsun.com>
84641
84642         * modules/gnu-source, m4/gnu-source.m4:
84643         Remove; we're assuming Autoconf 2.54 or later now.
84644         Suggested by Bruno Haible.
84645         * MODULES.html.sh (func_all_modules): Remove gnu-source.
84646
84647 2003-08-11  Bruno Haible  <bruno@clisp.org>
84648
84649         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
84650
84651 2003-08-11  Bruno Haible  <bruno@clisp.org>
84652
84653         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
84654         (vasnprintf): Use it instead of wcslen.
84655
84656 2003-08-11  Bruno Haible  <bruno@clisp.org>
84657
84658         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
84659         value to ensure that _Bool promotes to int. Use #define for _Bool when
84660         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
84661
84662 2003-08-10  Karl Berry  <karl@gnu.org>
84663
84664         * lib/regex.h: update from libc (whitespace fix).
84665
84666 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84667
84668         Merge some files from coreutils.  These changes were
84669         originally made by Jim Meyering.
84670         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
84671         many older Unixes require this.
84672         * lib/alloca.c (alloca): Remove cast to argument of free;
84673         no longer needed in C89.
84674         * lib/alloca_.h, regex.h: Fix white space to match
84675         what GNU indent does.
84676
84677 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84678
84679         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
84680         apparently Emacs's Unicode mode got confused before my 2003-08-05
84681         checkin.
84682
84683 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84684
84685         * m4/extensions.m4: New file.
84686         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
84687         Require gl_USE_SYSTEM_EXTENSIONS.
84688         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
84689         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
84690
84691 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84692
84693         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
84694         * modules/extensions, modules/gnu-source: New files.
84695         * modules/timespec, modules/unlocked-io: Depend on extensions.
84696
84697 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84698
84699         * modules/restrict: New file.
84700         * MODULES.html.sh (func_all_modules): Add restrict.
84701         * modules/regex: Depend on restrict.
84702
84703 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84704
84705         * m4/restrict.m4: New file.
84706         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
84707
84708 2003-08-07  Bruno Haible  <bruno@clisp.org>
84709
84710         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
84711         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
84712
84713 2003-08-07  Bruno Haible  <bruno@clisp.org>
84714
84715         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
84716         makes the module 'getndelim2' compatible with the module 'getline'.
84717
84718 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84719
84720         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
84721         byte with "\201" to avoid glitches when editing that source file
84722         with multi-gnome-terminal.
84723
84724 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84725
84726         * lib/bumpalloc.h: Remove.
84727
84728 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84729
84730         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
84731         * modules/bumpalloc: Remove.
84732
84733 2003-08-04  Paul Eggert  <eggert@twinsun.com>
84734
84735         * lib/getloadavg.c: Change copyright notice and spacing to conform to
84736         GNU coding style.
84737
84738         Merge from coreutils.
84739         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
84740         1. From glibc.
84741         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
84742         from Karl Berry, implemented by Jim Meyering.
84743         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
84744         from Dmitry V. Levin.
84745         Remove anachronistic cast of xrealloc.
84746         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
84747         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
84748         type. Otherwise, it wouldn't compile with at least /bin/cc on
84749         ymp-cray-unicos9.0.2.X.
84750         Combine two mostly-identical uses of alloca into one.
84751         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
84752
84753 2003-08-04  Dave Love  <d.love@dl.ac.uk>
84754
84755         [From Emacs.]
84756
84757         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
84758         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
84759         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
84760         obsolete NLIST_NAME_UNION.
84761         [__GNU__]: Undef BSD and FSCALE.
84762         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
84763
84764 2003-08-03  Paul Eggert  <eggert@twinsun.com>
84765
84766         * lib/stdbool_.h (_Bool): Make it signed char, instead of
84767         an enum type, so that it's guaranteed to promote to int.  See:
84768         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
84769
84770 2003-08-03  Karl Berry  <karl@gnu.org>
84771
84772         * config/depcomp: update from automake.
84773
84774 2003-07-31  Paul Eggert  <eggert@twinsun.com>
84775
84776         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
84777         (strerror): Don't assume that a printable int fits in 14 bytes.
84778
84779 2003-07-31  Bruno Haible  <bruno@clisp.org>
84780
84781         * modules/getpass-gnu: New file.
84782         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
84783
84784 2003-07-31  Bruno Haible  <bruno@clisp.org>
84785
84786         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
84787
84788 2003-07-24  Karl Berry  <karl@gnu.org>
84789
84790         * config/missing: update from automake.
84791
84792 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
84793             Bruno Haible  <bruno@clisp.org>
84794
84795         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
84796         * lib/getline.c (getline, getdelim): Likewise.
84797         Remove _GNU_SOURCE define; now it's defined in config.h through
84798         m4/getline.m4.
84799
84800 2003-07-23  Karl Berry  <karl@gnu.org>
84801
84802         * config/config.sub: update from prep.
84803
84804 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84805
84806         * modules/xalloc (Depends-on): Add exitfail.
84807         * modules/xmemcoll: Likewise.
84808
84809 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84810
84811         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
84812         over-parenthesization in macros.
84813
84814         Sync with coreutils.
84815
84816         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
84817         required by C99.
84818
84819         Use `exit_failure' for xalloc and xmemcoll instead of their own
84820         private exit-failure variables.
84821         * lib/xalloc.h (xalloc_exit_failure): Remove.
84822         * lib/xmalloc.c: Likewise.  Include exitfail.h.
84823         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
84824         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
84825         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
84826         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
84827
84828 2003-07-20  Jim Meyering  <jim@meyering.net>
84829
84830         * modules/closeout (Depends-on): Add exitfail.
84831         Suggestion from Bruno Haible.
84832
84833 2003-07-19  Karl Berry  <karl@gnu.org>
84834
84835         * config/config.sub: update from prep.
84836
84837 2003-07-18  Paul Eggert  <eggert@twinsun.com>
84838
84839         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
84840         Remove.
84841         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
84842         to test that it can stand by itself.  Include "exitfail.h".
84843         Clients should set exit_failure instead.
84844         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
84845
84846 2003-07-18  Bruno Haible  <bruno@clisp.org>
84847
84848         * modules/getndelim2: New file.
84849         * modules/getline: Share files with module getndelim2.
84850         * modules/getnline: Depend on getndelim2 instead of sharing files with
84851         it. Add getnline.c to lib_SOURCES.
84852         * MODULES.html.sh (func_all_modules): Add getndelim2.
84853
84854 2003-07-18  Bruno Haible  <bruno@clisp.org>
84855
84856         * m4/getndelim2.m4: New file.
84857         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
84858         invoke gl_PREREQ_GETNDELIM2.
84859         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
84860         gl_PREREQ_GETNDELIM2.
84861         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
84862         gl_GETNDELIM2.
84863
84864 2003-07-18  Bruno Haible  <bruno@clisp.org>
84865
84866         * lib/getndelim2.h: New file.
84867         * lib/getndelim2.c: Make into a module of its own. Include config.h,
84868         getndelim2.h.
84869         (getndelim2): Make non-static. Change return type to ssize_t.
84870         * lib/getline.h: Change argument names.
84871         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
84872         * lib/getnline.c: Include getndelim2.h.
84873
84874 2003-07-18  Andreas Schwab  <schwab@suse.de>
84875
84876         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
84877
84878 2003-07-17  Karl Berry  <karl@gnu.org>
84879
84880         * config/config.sub: update from prep.
84881
84882 2003-07-17  Bruno Haible  <bruno@clisp.org>
84883
84884         * modules/getnline: New file.
84885         * modules/getline: Add lib/getndelim2.c to source file list.
84886         * MODULES.html.sh (func_all_modules): Add getnline.
84887
84888 2003-07-17  Bruno Haible  <bruno@clisp.org>
84889
84890         * m4/getnline.m4: New file.
84891
84892 2003-07-17  Bruno Haible  <bruno@clisp.org>
84893
84894         * m4/Makefile.am.in: Remove file.
84895         * m4/Makefile.am: Remove file.
84896         * m4/Makefile.in: Remove file.
84897
84898 2003-07-17  Bruno Haible  <bruno@clisp.org>
84899
84900         * lib/getnline.h: New file.
84901         * lib/getnline.c: New file.
84902         * lib/getndelim2.c: New file, extracted from getline.c.
84903         (getndelim2): Renamed from getdelim2, with added nmax argument.
84904         * lib/getline.c: Include getndelim2.c.
84905         (getdelim2): Moved out to getndelim2.c.
84906         (getline, getdelim): Update.
84907
84908 2003-07-17  Bruno Haible  <bruno@clisp.org>
84909
84910         * lib/Makefile.am: Remove file.
84911         * lib/Makefile.in: Remove file.
84912
84913 2003-07-17  Bruno Haible  <bruno@clisp.org>
84914
84915         * configure.in: Remove file.
84916         * Makefile.in: Remove file.
84917
84918 2003-07-17  Bruno Haible  <bruno@clisp.org>
84919
84920         * MODULES.html.sh: Put the </BODY> right before </HTML>.
84921
84922 2003-07-16  Karl Berry  <karl@gnu.org>
84923
84924         * config/srclist-update: was running fixlicense twice, which caused
84925                 texinfo.tex to be nullified for some reason.  Simplify,
84926                 $gplsrc is no longer needed as far as I can see?
84927
84928 2003-07-16  Jim Meyering  <jim@meyering.net>
84929
84930         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
84931
84932 2003-07-15  Paul Eggert  <eggert@twinsun.com>
84933
84934         * config/srclist.txt: Get the following files from gettext-runtime/intl
84935         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
84936         ref-del.sin.  From Bruno Haible.
84937         * config/srclist-update (fixfile): Change grep pattern again, since the
84938         previous fix didn't work (there was another trailing $).  Use
84939         '[$]' to escape the $s.
84940
84941 2003-07-15  Karl Berry  <karl@gnu.org>
84942
84943         * lib/vasnprintf.c: update from gettext.
84944
84945 2003-07-15  Karl Berry  <karl@gnu.org>
84946
84947         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
84948         gets expanded when surrounded by '$'.
84949
84950 2003-07-15  Jim Meyering  <jim@meyering.net>
84951
84952         * modules/save-cwd: Don't depend on error.  From Derek Price.
84953
84954 2003-07-15  Jim Meyering  <jim@meyering.net>
84955
84956         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
84957
84958 2003-07-14  Simon Josefsson  <jas@extundo.com>
84959
84960         * modules/mempcpy: New file.
84961         * MODULES.html.sh (func_all_modules): Add mempcpy.
84962
84963 2003-07-14  Simon Josefsson  <jas@extundo.com>
84964
84965         * m4/mempcpy.m4: New file.
84966
84967 2003-07-14  Simon Josefsson  <jas@extundo.com>
84968
84969         * lib/mempcpy.h: New file.
84970         * lib/mempcpy.c: New file.
84971
84972 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84973
84974         * modules/getdate, modules/posixtm: Depend on mktime.
84975
84976 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84977
84978         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
84979         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
84980         unicodeio.c, unicodeio.h, unlocked-io.h:
84981         Switch from LGPL to GPL.
84982
84983 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84984
84985         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
84986         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
84987         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
84988         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
84989         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
84990         updated automatically by ../config/srclist-update.  This changes
84991         their license from LPGL to GPL.
84992
84993 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84994
84995         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
84996         assumed to refer to the root of the most recent stable gettext version.
84997         * config/srclistvars.sh: Add defaults for eggert.
84998         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
84999         Match "This program" as well as "The program".  This is needed
85000         for gettext.
85001
85002 2003-07-14  Jim Meyering  <jim@meyering.net>
85003
85004         Don't emit diagnostics.  Let callers do that.
85005         * lib/save-cwd.c: Don't include "error.h".
85006         (save_cwd): Don't call error.  Ensure that errno is valid
85007         when returning nonzero.
85008
85009         * lib/save-cwd.h (restore_cwd): Update prototype.
85010         * lib/save-cwd.c (restore_cwd): Remove two parameters.
85011         Simplify.  Don't call error upon failure.  Let callers do that.
85012         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
85013         when auditing is enabled.  But don't bother updating the #if.
85014
85015 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
85016
85017         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
85018         it breaks C++ compilation.
85019         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
85020
85021 2003-07-10  Simon Josefsson  <jas@extundo.com>
85022
85023         * modules/strchrnul (Makefile.am): Add strchrnul.h.
85024
85025 2003-07-10  Jim Meyering  <jim@meyering.net>
85026
85027         * m4/clock_time.m4: Remove trailing blank.
85028         * m4/intmax_t.m4: Likewise.
85029
85030 2003-07-10  Jim Meyering  <jim@meyering.net>
85031
85032         * lib/vasnprintf.c: Remove trailing blanks.
85033         Make cpp indentation consistent.
85034
85035 2003-07-09  Paul Eggert  <eggert@twinsun.com>
85036
85037         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
85038         posixver.c, strftime.c, strnlen.c, strverscmp.c:
85039         Switch from LGPL to GPL.
85040
85041 2003-07-09  Paul Eggert  <eggert@twinsun.com>
85042
85043         * config/srclist.txt: Sort sublists.  Add
85044         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
85045         that differ from gnulib for one reason or another; we'd like this list
85046         to be smaller but for now let's document what we have.
85047
85048 2003-07-08  Paul Eggert  <eggert@twinsun.com>
85049
85050         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
85051         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
85052         and sweeter "eval x=$x".
85053         * config/srclist.txt: Get lib/argp* from glibc.
85054
85055 2003-07-07  Paul Eggert  <eggert@twinsun.com>
85056
85057         * lib/mktime.c: Fix some boundary cases and remove need for floating
85058         point.
85059
85060         Issue a compile-time diagnostic if time_t is floating point, or if
85061         two's complement arithmetic is not in effect, or if arithmetic
85062         right shift does not propagate the sign.  These assumptions were
85063         all in the original code but they weren't checked.
85064
85065         (TIME_T_MIDPOINT, verify): New macros.
85066         (__isleap): Remove; it has integer overflow problems.
85067         (leapyear): New function, without those problems.
85068         (ydhms_tm_diff): Remove; splitting into two parts.
85069         (ydhms_diff): New function, containing the arithmetic part of
85070         the old ydhms_tm_diff function.  Issue a compile-time
85071         diagnostic if we are not using C99 integer division.
85072         Avoid casts when possible.
85073         (guess_time_tm): New function, containing the checking part of
85074         the old ydhms_tm_diff function.  Return the new value, rather than
85075         the difference between it and the old.  Accept a new argument T
85076         so that *T specifies the old value.  Check for overflow in the result.
85077
85078         (__mktime_internal): Use a time_t offset, not a long int offset.
85079         This undoes the 2003-06-04 change, which is no longer needed now
85080         that we have better overflow checking.
85081         (localtime_offset): Likewise.
85082
85083         (__mktime_internal): Avoid harmful overflow on hosts where time_t
85084         and long are 64-bit but int is only 32-bit.
85085         (ydhms_diff): Use long int to store year1 and yday1.
85086         Issue a compile-time diagnostic if long int is not wide enough.
85087
85088         (__mktime_internal): Use long int to store adjusted year and yday.
85089         Use plain C rather than preprocessor commands, if that doesn't
85090         affect efficiency.
85091         Check for overflow (and try to repair) after each probe
85092         rather than checking only at the very end.  This avoids some bugs
85093         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
85094         does not equal GMT offset at maximum time).
85095         Use integer to check for overflow rather than floating point; this
85096         is more portable to non-IEEE hosts, and is a tad faster.
85097         When we detect that we are oscillating between two values,
85098         don't check whether tm_isdst has the requested value, since
85099         we already know the answer.  When tm_isdst has the wrong value,
85100         use a different heuristic to find the right one, based on the
85101         extreme values actually observed in practice in tz2003a,
85102         rather than the (overly optimistic) "previous 3 calendar quarters".
85103
85104         (not_equal_tm, print_tm, check_result): Use "const T" rather than
85105         "T const" to accommodate glibc style.
85106         (check_result): Use less-confusing report format.  "long" -> "long int.
85107         (main): Likewise.
85108         Don't loop if the iteration overflows time_t.
85109         Allow a negative step in the iteration.
85110
85111 2003-07-06  Karl Berry  <karl@gnu.org>
85112
85113         * config/depcomp: update from automake.
85114         * config/config.sub: update from prep.
85115
85116 2003-07-03  Karl Berry  <karl@gnu.org>
85117
85118         * config/config.guess: update from prep.
85119
85120 2003-07-01  Paul Eggert  <eggert@twinsun.com>
85121
85122         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
85123         xreadlink.c now includes it unconditionally.
85124
85125 2003-07-01  Paul Eggert  <eggert@twinsun.com>
85126
85127         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
85128         having it depend on HAVE_SYS_TYPES_H.
85129
85130 2003-07-01  Bruno Haible  <bruno@clisp.org>
85131
85132         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
85133         <sys/types.h> should be sufficient.
85134         Reported by Paul Eggert.
85135
85136 2003-06-26  Karl Berry  <karl@gnu.org>
85137
85138         * config/depcomp: update from automake.
85139
85140 2003-06-26  Bruno Haible  <bruno@clisp.org>
85141
85142         * modules/human: Depend on module stdbool.
85143
85144 2003-06-25  Bruno Haible  <bruno@clisp.org>
85145
85146         * modules/readlink: New file.
85147         * modules/xreadlink: Depend on it.
85148         * MODULES.html.sh (func_all_modules): Add readlink.
85149
85150 2003-06-25  Bruno Haible  <bruno@clisp.org>
85151
85152         * m4/readlink.m4: New file.
85153
85154 2003-06-25  Bruno Haible  <bruno@clisp.org>
85155
85156         * lib/readlink.c: New file.
85157
85158 2003-06-22  Karl Berry  <karl@gnu.org>
85159
85160         * config/srclist.txt: update mkinstalldirs from automake.
85161         * config/mkinstalldirs: update.
85162
85163 2003-06-22  Bruno Haible  <bruno@clisp.org>
85164
85165         Portability to mingw32.
85166         * m4/ssize_t.m4: New file, from GNU gettext.
85167         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
85168         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
85169
85170 2003-06-22  Bruno Haible  <bruno@clisp.org>
85171
85172         * modules/safe-read: Add m4/ssize_t.m4.
85173         * modules/xreadlink: Add m4/ssize_t.m4.
85174
85175 2003-06-20  Bruno Haible  <bruno@clisp.org>
85176
85177         Assume C89, so PARAMS isn't needed.
85178         * lib/unicodeio.h (PARAMS): Remove.
85179         * lib/unicodeio.c: Don't use PARAMS.
85180
85181 2003-06-18  Karl Berry  <karl@gnu.org>
85182
85183         * config/config.{guess,sub}: update from prep.
85184
85185 2003-06-18  Jim Meyering  <jim@meyering.net>
85186
85187         Merge changes from coreutils.
85188         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
85189         Remove explicit declarations of xmalloc and realloc.
85190         Include xalloc.h.
85191         (read_utmp): Remove anachronistic cast of xmalloc.
85192
85193 2003-06-17  Paul Eggert  <eggert@twinsun.com>
85194
85195         Assume C89, so PARAMS isn't needed.
85196         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
85197         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
85198         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
85199         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
85200         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
85201         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
85202         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
85203         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
85204         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
85205         lib/xstrtod.h, lib/xstrtol.h: Likewise.
85206         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
85207         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
85208         no longer needed. Anyway, config.h should always be included before any
85209         other file.
85210
85211 2003-06-11  Simon Josefsson  <jas@extundo.com>
85212
85213         * modules/sysexits: New file.
85214         * MODULES.html.sh (func_all_modules): Add sysexits.
85215
85216 2003-06-11  Simon Josefsson  <jas@extundo.com>
85217
85218         * lib/sysexit_.h: New file.
85219
85220 2003-06-11  Derek Price  <derek@ximbiot.com>
85221
85222         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
85223         necessary.
85224
85225 2003-06-11  Bruno Haible  <bruno@clisp.org>
85226
85227         * m4/sysexits.m4: New file.
85228
85229 2003-06-10  Simon Josefsson  <jas@extundo.com>
85230
85231         * lib/argp.h: New file, from glibc.
85232         * lib/argp-ba.c: New file, from glibc.
85233         * lib/argp-eexst.c: New file, from glibc.
85234         * lib/argp-fmtstream.c: New file, from glibc.
85235         * lib/argp-fmtstream.h: New file, from glibc.
85236         * lib/argp-fs-xinl.c: New file, from glibc.
85237         * lib/argp-help.c: New file, from glibc.
85238         * lib/argp-namefrob.h: New file, from glibc.
85239         * lib/argp-parse.c: New file, from glibc.
85240         * lib/argp-pv.c: New file, from glibc.
85241         * lib/argp-pvh.c: New file, from glibc.
85242         * lib/argp-xinl.c: New file, from glibc.
85243
85244 2003-06-10  Simon Josefsson  <jas@extundo.com>
85245
85246         * modules/strchrnul: New file.
85247
85248 2003-06-10  Simon Josefsson  <jas@extundo.com>
85249
85250         * modules/argp: New file.
85251
85252 2003-06-10  Simon Josefsson  <jas@extundo.com>
85253
85254         * m4/strchrnul.m4: New file.
85255
85256 2003-06-10  Simon Josefsson  <jas@extundo.com>
85257
85258         * lib/strchrnul.h: New file.
85259         * lib/strchrnul.c: New file.
85260
85261 2003-06-10  Bruno Haible  <bruno@clisp.org>
85262
85263         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
85264
85265 2003-06-07  Karl Berry  <karl@gnu.org>
85266
85267         * config/config.{guess,sub}: update from prep.
85268
85269 2003-06-07  Jim Meyering  <jim@meyering.net>
85270
85271         * modules/strtod: Use $(...) notation, not @...@ for
85272         AC_REPLACE'd variables.
85273         * modules/localcharset: Likewise.
85274
85275 2003-06-07  Jim Meyering  <jim@meyering.net>
85276
85277         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
85278         in place of my name in the copyright comment.
85279         Remove definition and uses of __P.
85280
85281         From coreutils.
85282         * lib/stat.c: Don't declare xmalloc explicitly.
85283         Instead, include "xalloc.h".
85284         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
85285         xrealloc, and xcalloc return values.
85286         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
85287         Improve comment.
85288         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
85289
85290 2003-06-07  Bruno Haible  <bruno@clisp.org>
85291
85292         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
85293         avoid AC_CONFIG_LINKS.
85294         * modules/fnmatch (Makefile.am): Use explicit creation rule for
85295         fnmatch.h, to avoid AC_CONFIG_LINKS.
85296         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
85297
85298 2003-06-07  Bruno Haible  <bruno@clisp.org>
85299
85300         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
85301         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
85302         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
85303         directory.
85304         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
85305         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
85306         directory.
85307
85308 2003-06-06  Jim Meyering  <jim@meyering.net>
85309
85310         Merge from coreutils.
85311         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
85312         Consolidate declarations and initializations of *_base* locals.
85313
85314         Merge from coreutils.
85315         This avoids a core dump on systems without GNU putenv,
85316         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
85317         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
85318         (unsetenv): New static function, from GNU libc.
85319         (rpl_putenv): Use it.
85320
85321         * lib/modechange.c: Remove trailing blanks.
85322
85323         Merge from coreutils.
85324         * lib/fsusage.c: Remove declaration of statfs.
85325         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
85326
85327         * lib/posixtm.c: Include <stdbool.h> unconditionally.
85328
85329 2003-06-06  Jim Meyering  <jim@meyering.net>
85330
85331         * lib/stdbool_.h: Renamed from stdbool.h.in.
85332
85333 2003-06-06  Jim Meyering  <jim@meyering.net>
85334             Bruno Haible  <bruno@clisp.org>
85335
85336         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
85337         Adjust Makefile.am snippet not to redirect directly to target.
85338         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
85339
85340 2003-06-05  Paul Eggert  <eggert@twinsun.com>
85341
85342         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
85343         mismatch, look in future quarters as well as past.  This fixes a
85344         bug when processing fall-backwards gaps immediately after a long
85345         period of daylight-saving time.
85346
85347         * lib/mktime.c: Assume freestanding C89 or better.
85348         (HAVE_LIMITS_H): Remove.  Assume it's 1.
85349         (__P): Remove; not used.
85350         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
85351         (mktime, not_equal_tm, print_tm, check_result,
85352         main): Use prototypes.  Use const * where appropriate.
85353         (main): Fix typo in testing code that uncovered by above changes.
85354         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
85355
85356 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85357
85358         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
85359         locale.h, localeconv.  This merges changes from coreutils.
85360
85361         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
85362         It can be removed after the next Autoconf is released.
85363         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
85364         needed.
85365
85366 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85367
85368         * lib/mktime.c: Fix Debian bug 177940
85369         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
85370         (localtime_offset): Now long int, not time_t, because we want it
85371         to be guaranteed to be signed.  All uses changed.
85372         (__mktime_internal): If overflow would occur when adding offset,
85373         don't add it.
85374
85375         Merge 'human' changes from coreutils.  Rewrite to support
85376         locale-specific notations like thousands separators.
85377         * lib/human.c: Simplify authorship notice.
85378         Include human.h immediately after config.h.
85379         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
85380         <limits.h>: Do not include, since human.h does.
85381         (SIZE_MAX, UINTMAX_MAX): New macros.
85382         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
85383         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
85384         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
85385         (power_letter): Renamed from suffixes.
85386         (generate_suffix_backwards): Remove.
85387         (adjust_value): Now takes int style (because of human.h changes)
85388         and long double value (for greater precision on some platforms).
85389         (group_number): New function.
85390         (human_readable): Use it.  Use integer options, not enum.
85391         Put the options before the sizes in the arg list.
85392         Support all the new options.
85393         The old human_readable function has been removed;
85394         use inttostr.h instead.
85395         (human_readable, default_block_size, humblock):
85396         Use uintmax_t, not int, for block sizes.
85397         (human_readable_inexact, block_size_types): Remove.
85398         (block_size_opts): New constant.
85399         (human_options): Renamed from human_block_size, with new signature
85400         that allows block sizes up to UINTMAX_MAX.  All callers changed.
85401         * lib/human.h: Add copyright and authorship notice.
85402         Include <limits.h> and <stdbool.h> unconditionally.
85403         (PARAMS): Remove.  All uses removed.
85404         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
85405         (enum human_inexact_style): Remove tag; now a nameless enum.
85406         (human_floor, human_ceiling, human_round_to_even): Now have
85407         values 2, 0, 1 rather than -1, 1, 0.
85408         (human_group_digits, human_suppress_point_zero, human_autoscale,
85409         human_base_1024, human_SI, human_B): New constants.
85410         (human_readable_inexact, human_block_size): Remove.
85411         (human_readable): Size args are now uintmax_t, not int.
85412         (human_options): New decl.
85413
85414         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
85415         unnecessary now that we assume C89 or better.  This change
85416         imported from coreutils.
85417
85418         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
85419         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
85420         in the 2003-05-30 sync from glibc.
85421
85422         .h files should stand alone, but we shouldn't include <sys/types.h>
85423         if we can get away with just <stddef.h>.
85424
85425         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
85426         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
85427         rather than <sys/types.h>, as we merely need size_t.
85428         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
85429         to get size_t.
85430         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
85431         Include <stdio.h>, to get FILE.
85432         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
85433         memcasecmp.h has included <stddef.h> and all we need is size_t.
85434         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
85435         our interface, instead of including <sys/types.h>
85436
85437 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85438
85439         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
85440         now, as glibc mktime is buggy on non-glibc systems.
85441
85442 2003-06-03  Karl Berry  <karl@gnu.org>
85443
85444         * config/config.sub: update from prep.
85445
85446 2003-06-02  Paul Eggert  <eggert@twinsun.com>
85447
85448         [from coreutils]
85449         Fix some minor time-related bugs with POSIX time arguments.
85450         Some valid time stamps were being rejected (notably -1, and
85451         time stamps before 1900 on 64-bit hosts).  And some invalid
85452         time stamps were being accepted, e.g. September 31.
85453
85454         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
85455         that we can return (time_t) -1 successfully.
85456         * lib/posixtm.c: Likewise.
85457         [HAVE_STDBOOL_H]: Include <stdbool.h>.
85458         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
85459         (t): Remove static var.
85460         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
85461         of static var.  All uses changed.
85462         (year): Do not reject years before 1900; they can occur with
85463         64-bit time_t.
85464         (posix_time_parse): Do not check for out-of-range components;
85465         that is now the caller's responsibility, since our checks were
85466         only approximations.
85467         (posixtime): Use mktime to check for out-of-range components,
85468         since it knows them exactly.
85469         If mktime returns (time_t) -1, check whether an error actually occurred
85470         by invoking localtime on -1.
85471         (main) [TEST_POSIXTIME]: Check for input data errors, and report
85472         posixtime failures better.
85473         Improve the test data (in comments only).
85474
85475 2003-06-02  Karl Berry  <karl@gnu.org>
85476
85477         * config/mkinstalldirs (version): new variable.
85478         (--version): new option.
85479         (usage): improve message.
85480
85481 2003-05-30  Karl Berry  <karl@gnu.org>
85482
85483         * lib/mktime.c: update from libc.
85484
85485 2003-05-30  Bruno Haible  <bruno@clisp.org>
85486
85487         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
85488         * config/config.rpath: Upgrade to gettext-0.12.1.
85489
85490 2003-05-30  Bruno Haible  <bruno@clisp.org>
85491
85492         * m4/gettext.m4: Upgrade to gettext-0.12.1.
85493         * m4/nls.m4: New file, from gettext-0.12.1.
85494         * m4/po.m4: New file, from gettext-0.12.1.
85495         * m4/progtest.m4: Upgrade to gettext-0.12.1.
85496
85497 2003-05-30  Bruno Haible  <bruno@clisp.org>
85498
85499         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
85500         * lib/localcharset.h: Likewise.
85501         * lib/localcharset.c: Likewise.
85502
85503 2003-05-29  Karl Berry  <karl@gnu.org>
85504
85505         * config/config.rpath: update from gettext.
85506
85507 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85508
85509         Assume the headers required for C89 freestanding compilers.
85510         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
85511         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
85512         * m4/human.m4 (gl_HUMAN): Likewise.
85513         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
85514         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
85515         * m4/userspec.m4 (gl_USERSPEC): Likewise.
85516         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
85517         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
85518         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
85519
85520 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85521
85522         Assume the headers required for C89 freestanding compilers.
85523         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
85524         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
85525         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
85526         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
85527         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
85528         define, since <limits.h> is guaranteed to do that.
85529         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
85530         * lib/exclude.c: Include <stdbool.h> unconditionally.
85531         * lib/tempname.c: Include <stddef.h> unconditionally.
85532         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
85533         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
85534         <stddef.h> does that.
85535         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
85536         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
85537         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
85538         needed.
85539         * lib/xstrtol.c: Likewise.
85540         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
85541         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
85542
85543         * lib/addext.c (addext): Use assignment rather than cast, to avoid
85544         warnings on some platforms.
85545
85546         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
85547         arbitrarily.
85548
85549 2003-05-26  Jim Meyering  <jim@meyering.net>
85550
85551         Merge in a change from coreutils:
85552         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
85553         that is guaranteed to be `no'.  Use `no_such_member' to indicate
85554         that condition, rather than `-1' which is slightly misleading.
85555         Change the name of the cache variable to have the gl_ prefix.
85556         Prompted by a patch from Richard Dawe for DJGPP.
85557
85558 2003-05-24  Karl Berry  <karl@gnu.org>
85559
85560         * config/config.guess: update from prep.
85561
85562 2003-05-22  Karl Berry  <karl@gnu.org>
85563
85564         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
85565
85566 2003-05-20  Karl Berry  <karl@gnu.org>
85567
85568         * config/config.guess: update from prep.
85569
85570 2003-05-18  Karl Berry  <karl@gnu.org>
85571
85572         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
85573         might actually be set by the user.
85574
85575         * config/depcomp, install-sh, mdate-sh: update from automake.
85576
85577 2003-05-17  Bruno Haible  <bruno@clisp.org>
85578
85579         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
85580         invalid expansion for AC_EGREP_CPP.
85581         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
85582         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
85583         Suggested by Akim Demaille <akim@epita.fr> in
85584         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
85585
85586 2003-05-12  Jim Meyering  <jim@meyering.net>
85587
85588         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
85589         the space-padded-by-default conversion specifiers, %e, %k, %l.
85590
85591 2003-05-12  Bruno Haible  <bruno@clisp.org>
85592
85593         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
85594         the string is longer than 4 KB.
85595
85596 2003-05-11  Karl Berry  <karl@gnu.org>
85597
85598         * config/config.{guess,sub}: update from prep.
85599
85600 2003-05-09  Bruno Haible  <bruno@clisp.org>
85601
85602         * modules/error: Add m4/strerror_r.m4 to file list.
85603
85604 2003-05-03  Bruno Haible  <bruno@clisp.org>
85605
85606         Upgrade to Unicode-4.0.
85607         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
85608         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
85609         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
85610         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
85611         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
85612         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
85613         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
85614         Change width of U+E0100..U+E01EF from 1 to 0.
85615
85616 2003-04-25  Jim Meyering  <jim@meyering.net>
85617
85618         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
85619         of type size_t, not int.
85620
85621 2003-04-25  Bruno Haible  <bruno@clisp.org>
85622
85623         * lib/copy-file.c: Include <stddef.h>, for size_t.
85624
85625 2003-04-21  Paul Eggert  <eggert@twinsun.com>
85626
85627         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
85628         code which expansion is under static control.  Patch imported from
85629         Akim Demaille's patch to Bison; see
85630         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
85631
85632 2003-04-14  Bruno Haible  <bruno@clisp.org>
85633
85634         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
85635
85636 2003-04-11  Jim Meyering  <jim@meyering.net>
85637
85638         Merge changes from Coreutils.
85639
85640         2003-03-22  Jim Meyering  <jim@meyering.net>
85641
85642         * lib/strftime.c (widen): Cast alloca return value to proper type.
85643
85644         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
85645
85646         From GNU libc.
85647         * lib/strftime.c (my_strftime): Handle very large width
85648         specifications for numeric values correctly.  Improve checks for
85649         overflow.
85650
85651         2003-01-19  Jim Meyering  <jim@meyering.net>
85652
85653         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
85654         definitions.
85655         (nl_get_alt_digit) [! defined my_strftime]: Define.
85656         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
85657         _nl_get_alt_digit and _nl_get_walt_digit.
85658
85659         * lib/strftime.c (my_strftime): Merge in locale-related changes from
85660         libc. These changes have no effect outside of _LIBC.
85661
85662 2003-04-10  Bruno Haible  <bruno@clisp.org>
85663
85664         * modules/findprog: New file.
85665         * MODULES.html.sh (func_all_modules): Add it.
85666
85667 2003-04-10  Bruno Haible  <bruno@clisp.org>
85668
85669         * m4/findprog.m4: New file.
85670         * m4/eaccess.m4: New file.
85671
85672 2003-04-10  Bruno Haible  <bruno@clisp.org>
85673
85674         * lib/findprog.h: New file, from GNU gettext.
85675         * lib/findprog.c: New file, from GNU gettext.
85676
85677 2003-04-05  Jim Meyering  <jim@meyering.net>
85678
85679         Merge changes from Coreutils.
85680
85681         * lib/exclude.h (PARAMS): Remove definition and uses.
85682         * lib/exclude.c: Remove uses of `PARAMS'.
85683
85684         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
85685         Add test-cases for DOS filenames. Declare program_name.
85686         (main): Set up program_name.  Patch by Rich Dawe.
85687
85688         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
85689         error from mntctl.
85690         Use mntctl's return value to drive the entry-processing loop, since
85691         we can't rely on the value of the vmt_length member in the last
85692         entry.  On some systems doing so could result in exhausting
85693         virtual memory.  Based in part on a patch from Mike Jetzer.
85694
85695 2003-04-04  Bruno Haible  <bruno@clisp.org>
85696
85697         * modules/linebreak: New file.
85698         * MODULES.html.sh (func_all_modules): Add it.
85699
85700 2003-04-04  Bruno Haible  <bruno@clisp.org>
85701
85702         * m4/linebreak.m4: New file.
85703
85704 2003-04-04  Bruno Haible  <bruno@clisp.org>
85705
85706         * lib/linebreak.h: New file, from GNU gettext.
85707         * lib/linebreak.c: New file, from GNU gettext with slight
85708         modifications.
85709         * lib/lbrkprop.h: New file, from GNU gettext.
85710
85711 2003-04-03  Bruno Haible  <bruno@clisp.org>
85712
85713         * modules/utf8-ucs4: New file.
85714         * modules/utf16-ucs4: New file.
85715         * modules/ucs4-utf8: New file.
85716         * modules/ucs4-utf16: New file.
85717         * MODULES.html.sh (func_all_modules): Add them.
85718
85719 2003-04-03  Bruno Haible  <bruno@clisp.org>
85720
85721         * m4/utf-ucs4.m4: New file.
85722         * m4/ucs4-utf.m4: New file.
85723
85724 2003-04-03  Bruno Haible  <bruno@clisp.org>
85725
85726         * lib/utf8-ucs4.h: New file, from GNU gettext.
85727         * lib/utf16-ucs4.h: New file, from GNU gettext.
85728         * lib/ucs4-utf8.h: New file, from GNU gettext.
85729         * lib/ucs4-utf16.h: New file, from GNU gettext.
85730
85731 2003-04-02  Bruno Haible  <bruno@clisp.org>
85732
85733         * modules/binary-io: New file.
85734         * MODULES.html.sh (func_all_modules): Add it.
85735
85736 2003-04-02  Bruno Haible  <bruno@clisp.org>
85737
85738         * lib/binary-io.h: New file, from GNU gettext.
85739
85740 2003-04-01  Bruno Haible  <bruno@clisp.org>
85741
85742         * modules/pathname: New file.
85743         * MODULES.html.sh (func_all_modules): Add it.
85744
85745 2003-04-01  Bruno Haible  <bruno@clisp.org>
85746
85747         * lib/pathname.h: New file, from GNU gettext.
85748         * lib/concatpath.c: New file, from GNU gettext.
85749
85750 2003-03-30  Bruno Haible  <bruno@clisp.org>
85751
85752         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
85753
85754 2003-03-30  Bruno Haible  <bruno@clisp.org>
85755
85756         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
85757         function chown() doesn't exist.
85758
85759 2003-03-28  Bruno Haible  <bruno@clisp.org>
85760
85761         * modules/copy-file: New file.
85762         * MODULES.html.sh (func_all_modules): Add it.
85763
85764 2003-03-28  Bruno Haible  <bruno@clisp.org>
85765
85766         * m4/copy-file.m4: New file.
85767
85768 2003-03-28  Bruno Haible  <bruno@clisp.org>
85769
85770         * lib/copy-file.h: New file, from GNU gettext.
85771         * lib/copy-file.c: New file, from GNU gettext.
85772
85773 2003-03-18  Jim Meyering  <jim@meyering.net>
85774
85775         * lib/quote.c (quote_n): Fix typo in comment.
85776
85777 2003-03-18  Bruno Haible  <bruno@clisp.org>
85778
85779         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
85780         checking.
85781         * m4/onceonly_2_57.m4: Likewise.
85782
85783 2003-03-17  Bruno Haible  <bruno@clisp.org>
85784
85785         * m4/onceonly.m4: Require autoconf 2.54 or newer.
85786         (m4_quote): Remove macro.
85787         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
85788
85789 2003-03-14  Jim Meyering  <jim@meyering.net>
85790
85791         Merge changes from Coreutils.
85792         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
85793         to be const, in order to avoid warnings.
85794         (obstack_room): Likewise.
85795         (obstack_empty_p): Likewise.
85796
85797 2003-03-14  Bruno Haible  <bruno@clisp.org>
85798
85799         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
85800         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
85801
85802 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85803
85804         Merge changes from Bison.
85805         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
85806         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
85807         when compiling Bison 1.875's `bitset bset = obstack_alloc
85808         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
85809         * lib/hash.c: Include <stdbool.h> unconditionally.
85810
85811 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85812
85813         * m4/onceonly.m4 (m4_quote): New macro.
85814         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
85815         Quote AC_FOREACH variable-expansions properly.
85816
85817 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85818
85819         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
85820
85821 2003-03-09  Paul Eggert  <eggert@twinsun.com>
85822
85823         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
85824         Reported by Bruce Becker; see:
85825         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
85826
85827 2003-03-03  Paul Eggert  <eggert@twinsun.com>
85828             Bruno Haible  <bruno@clisp.org>
85829
85830         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
85831         Reported by John Hughes, see
85832         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
85833
85834 2003-02-20  Bruno Haible  <bruno@clisp.org>
85835
85836         * MODULES.html.sh (func_all_modules): Add poll.
85837
85838 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85839
85840         * modules/poll: New file.
85841
85842 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85843
85844         * lib/poll_.h: New file.
85845         * lib/poll.c: New file.
85846
85847 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85848
85849         * m4/poll.m4: New file.
85850
85851 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85852
85853         * modules/mathl: New file.
85854
85855 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85856
85857         * lib/mathl.h: New file.
85858         * lib/acosl.c: New file.
85859         * lib/asinl.c: New file.
85860         * lib/atanl.c: New file.
85861         * lib/ceill.c: New file.
85862         * lib/cosl.c: New file.
85863         * lib/expl.c: New file.
85864         * lib/floorl.c: New file.
85865         * lib/frexpl.c: New file.
85866         * lib/ldexpl.c: New file.
85867         * lib/logl.c: New file.
85868         * lib/sincosl.c: New file.
85869         * lib/sinl.c: New file.
85870         * lib/sqrtl.c: New file.
85871         * lib/tanl.c: New file.
85872         * lib/trigl.c: New file.
85873         * lib/trigl.h: New file.
85874
85875 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85876
85877         * m4/mathl.m4: New file.
85878
85879 2003-02-18  Bruno Haible  <bruno@clisp.org>
85880
85881         * MODULES.html.sh (func_all_modules): Add mathl.
85882
85883 2003-02-17  Bruno Haible  <bruno@clisp.org>
85884
85885         * modules/mkdtemp: New module.
85886         * MODULES.html.sh (func_all_modules): Add it.
85887
85888 2003-02-17  Bruno Haible  <bruno@clisp.org>
85889
85890         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
85891
85892 2003-02-17  Bruno Haible  <bruno@clisp.org>
85893
85894         * lib/mkdtemp.h: New file, from GNU gettext.
85895         * lib/mkdtemp.c: New file, from GNU gettext.
85896
85897 2003-02-02  Jim Meyering  <jim@meyering.net>
85898
85899         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
85900         e.g. glibc-2.2.93.
85901
85902 2003-01-31  Bruno Haible  <bruno@clisp.org>
85903
85904         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
85905         'rpl_rename'.
85906         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
85907         'rpl_strnlen'.
85908         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
85909         'rpl_strtod'.
85910         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
85911         'rpl_utime'.
85912
85913 2003-01-31  Bruno Haible  <bruno@clisp.org>
85914
85915         * lib/rename.c: #undef rename before defining rpl_rename.
85916         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
85917
85918 2003-01-30  Bruno Haible  <bruno@clisp.org>
85919
85920         * modules/vasnprintf, modules/vasprintf: New modules.
85921         * MODULES.html.sh (func_all_modules): Add them.
85922
85923 2003-01-30  Bruno Haible  <bruno@clisp.org>
85924
85925         * m4/signed.m4: New file, from GNU gettext.
85926         * m4/longdouble.m4: New file, from GNU gettext.
85927         * m4/wchar_t.m4: New file, from GNU gettext.
85928         * m4/wint_t.m4: New file, from GNU gettext.
85929         * m4/vasnprintf.m4: New file.
85930         * m4/vasprintf.m4: New file.
85931
85932 2003-01-30  Bruno Haible  <bruno@clisp.org>
85933
85934         * lib/printf-args.h: New file, from GNU gettext.
85935         * lib/printf-args.c: New file, from GNU gettext.
85936         * lib/printf-parse.h: New file, from GNU gettext.
85937         * lib/printf-parse.c: New file, from GNU gettext.
85938         * lib/vasnprintf.h: New file, from GNU gettext.
85939         * lib/vasnprintf.c: New file, from GNU gettext.
85940         * lib/asnprintf.c: New file, from GNU gettext.
85941         * lib/vasprintf.h: New file, from GNU gettext with modifications.
85942         * lib/vasprintf.c: New file, from GNU gettext.
85943         * lib/asprintf.c: New file, from GNU gettext.
85944
85945 2003-01-29  Bruno Haible  <bruno@clisp.org>
85946
85947         * modules/stpncpy: New module.
85948         * MODULES.html.sh (func_all_modules): Add it.
85949
85950 2003-01-29  Bruno Haible  <bruno@clisp.org>
85951
85952         * m4/stpncpy.m4: New file.
85953
85954 2003-01-29  Bruno Haible  <bruno@clisp.org>
85955
85956         * lib/stpncpy.h: New file, from GNU gettext with modifications.
85957         * lib/stpncpy.c: New file, from GNU gettext with modifications.
85958
85959 2003-01-28  Bruno Haible  <bruno@clisp.org>
85960
85961         * modules/c-ctype: New module.
85962         * MODULES.html.sh (func_all_modules): Add it.
85963
85964 2003-01-28  Bruno Haible  <bruno@clisp.org>
85965
85966         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
85967         Paul Eggert.
85968         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
85969         Paul Eggert.
85970
85971 2003-01-27  Bruno Haible  <bruno@clisp.org>
85972
85973         * modules/xsetenv: New module.
85974         * MODULES.html.sh (func_all_modules): Add it.
85975
85976 2003-01-27  Bruno Haible  <bruno@clisp.org>
85977
85978         * lib/xsetenv.h: New file, from GNU gettext.
85979         * lib/xsetenv.c: New file, from GNU gettext.
85980
85981 2003-01-23  Jim Meyering  <jim@meyering.net>
85982
85983         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
85984         from working on systems without dirfd (at least Irix and OSF1/Tru64).
85985
85986 2003-01-23  Bruno Haible  <bruno@clisp.org>
85987
85988         * modules/minmax: New module.
85989         * MODULES.html.sh (func_all_modules): Add it.
85990
85991 2003-01-23  Bruno Haible  <bruno@clisp.org>
85992
85993         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
85994         Eggert.
85995
85996 2003-01-22  Bruno Haible  <bruno@clisp.org>
85997
85998         * modules/exit: New module.
85999         * MODULES.html.sh (func_all_modules): Add it.
86000
86001 2003-01-22  Bruno Haible  <bruno@clisp.org>
86002
86003         * lib/exit.h: New file, from GNU gettext.
86004
86005 2003-01-19  Bruno Haible  <bruno@clisp.org>
86006
86007         * gnulib-tool: Recognize option --extract-maintainer.
86008         (func_get_maintainer): New function.
86009         * modules/*: Add Maintainer entry.
86010
86011 2003-01-16  Jim Meyering  <jim@meyering.net>
86012
86013         * m4/regex.m4: The `regex' struct is both input and output.
86014         Initialize it before each use.  Patch by Tim Waugh.
86015
86016 2003-01-16  Bruno Haible  <bruno@clisp.org>
86017
86018         * MODULES.html.sh: Add a table of contents. Add the module name as
86019         leftmost column. Add hyperlinks.
86020
86021 2003-01-15  Bruno Haible  <bruno@clisp.org>
86022
86023         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
86024
86025 2003-01-15  Bruno Haible  <bruno@clisp.org>
86026
86027         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
86028         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
86029         suffix.
86030
86031 2003-01-15  Bruno Haible  <bruno@clisp.org>
86032
86033         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
86034
86035 2003-01-15  Bruno Haible  <bruno@clisp.org>
86036
86037         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
86038         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
86039
86040 2003-01-14  Jim Meyering  <jim@meyering.net>
86041
86042         * lib/same.c (same_name): Tweak a comment.
86043
86044 2003-01-14  Bruno Haible  <bruno@clisp.org>
86045
86046         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
86047         when a string comparison is sufficient.
86048
86049 2003-01-14  Bruno Haible  <bruno@clisp.org>
86050
86051         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
86052         'unsigned int'.
86053
86054 2003-01-14  Bruno Haible  <bruno@clisp.org>
86055
86056         * lib/hash-pjw.c: Add comment about low quality of this function.
86057
86058 2003-01-13  Bruno Haible  <bruno@clisp.org>
86059
86060         * modules/stpcpy: Distribute lib/stpcpy.h.
86061         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
86062
86063 2003-01-13  Bruno Haible  <bruno@clisp.org>
86064
86065         * modules/*: Add a description.
86066         * modules/strpbrk: Fix Makefile.am snippet.
86067         * modules/strtoimax: Fix dependencies.
86068         * modules/strtoumax: Likewise.
86069
86070 2003-01-13  Bruno Haible  <bruno@clisp.org>
86071
86072         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
86073         * modules/alloca (Makefile.am): All object files depend on alloca.h.
86074         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
86075
86076 2003-01-13  Bruno Haible  <bruno@clisp.org>
86077
86078         * gnulib-tool (func_create_testdir): Store config/* files in the main
86079         directory.
86080         * config.rpath: Move to ...
86081         * config/config.rpath: ... here.
86082         * modules/gettext: Contains config/config.rpath, not config.rpath.
86083         * modules/iconv: Likewise.
86084
86085 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86086
86087         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86088         to avoid collisions with libcurses and libreadline.
86089
86090         * m4/getstr.m4: Remove.
86091         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
86092
86093 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86094
86095         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86096         to avoid collisions with libcurses and libreadline.
86097
86098         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
86099         * lib/getstr.h, getstr.c: Remove.
86100         * lib/getline.c: Include "getline.h", to check interface.
86101         Move body of old getstr.c here: this defines MIN_CHUNK and
86102         declares getdelim2, which is renamed from getstr.
86103         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
86104
86105         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
86106         All uses changed.
86107         * lib/linebuffer.h: Likewise.
86108         (readline): Remove backward-compatibility macro.
86109
86110 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86111
86112         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86113         to avoid collisions with libcurses and libreadline.
86114         * getstr: Remove.
86115         * MODULES.html.sh: Remove getstr.
86116         * modules/getline: Depend on unlocked-io, not getstr.
86117
86118 2003-01-12  Jim Meyering  <jim@meyering.net>
86119
86120         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
86121
86122 2003-01-10  Bruno Haible  <bruno@clisp.org>
86123
86124         * modules/alloca: Change Makefile.am requirements. Simplify Include
86125         requirements. Add lib/alloca_.h to file list.
86126
86127 2003-01-10  Bruno Haible  <bruno@clisp.org>
86128
86129         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
86130
86131 2003-01-10  Bruno Haible  <bruno@clisp.org>
86132
86133         * lib/alloca_.h: New file.
86134         * lib/getdate.y: Unconditionally include alloca.h.
86135         * lib/makepath.c: Likewise.
86136         * lib/setenv.c: Likewise.
86137         * lib/userspec.c: Likewise.
86138
86139 2003-01-09  Karl Berry  <karl@gnu.org>
86140
86141         * MODULES.html.sh: include `dirname $0` in PATH, to find
86142         gnulib-tool.
86143
86144 2003-01-09  Bruno Haible  <bruno@clisp.org>
86145
86146         * modules/stdbool: Change configure.ac, Makefile.am requirements.
86147         Simplify Include requirements. Add lib/stdbool.h.in to file list.
86148
86149 2003-01-09  Bruno Haible  <bruno@clisp.org>
86150
86151         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
86152
86153 2003-01-09  Bruno Haible  <bruno@clisp.org>
86154
86155         * lib/stdbool.h.in: New file.
86156
86157 2003-01-09  Bruno Haible  <bruno@clisp.org>
86158
86159         * gnulib-tool (func_all_modules): Ignore files ending in ~.
86160         * MODULES.html.sh: Likewise.
86161
86162 2003-01-08  Jim Meyering  <jim@meyering.net>
86163
86164         * lib/full-write.c: Undefine and define-away `const' after inclusion
86165         of errno.h, not before.  Suggestion from Bruno Haible.
86166
86167 2003-01-08  Bruno Haible  <bruno@clisp.org>
86168
86169         * modules/full-read: Depend on full-write.
86170
86171 2003-01-08  Bruno Haible  <bruno@clisp.org>
86172
86173         * lib/safe-read.c: Include specification header first, to ensure its
86174         selfcontainedness.
86175         * lib/full-write.c: Likewise.
86176
86177 2003-01-07  Jim Meyering  <jim@meyering.net>
86178
86179         * lib/full-write.c: Rework so that it may serve to define full_read,
86180         too.
86181         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
86182
86183 2003-01-07  Bruno Haible  <bruno@clisp.org>
86184
86185         * lib/strtoimax.c: Include <stdint.h> as an alternative to
86186         <inttypes.h>.
86187         * lib/xstrtol.h: Likewise.
86188         * lib/xstrtoimax.c: Likewise.
86189         * lib/xstrtoumax.c: Likewise.
86190         * lib/human.h: Likewise.
86191
86192         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
86193         on systems that have <inttypes.h> but not <stdint.h>.
86194
86195 2003-01-07  Bruno Haible  <bruno@clisp.org>
86196
86197         * MODULES.html.sh: Add copyright notice.
86198         (missed_files): Omit CVS directory entries.
86199         (func_module): Make it work with sed-3.02.
86200         * MODULES.txt: Remove file.
86201
86202 2003-01-06  Jim Meyering  <jim@meyering.net>
86203
86204         * lib/version-etc.c: Update year in translatable copyright string.
86205
86206 2003-01-03  Karl Berry  <karl@gnu.org>
86207
86208         * config/config.{guess,sub}: update from prep.
86209
86210 2003-01-02  Karl Berry  <karl@gnu.org>
86211
86212         * doc/COPYING.DOC: belatedly updated to 1.2.
86213
86214 2003-01-01  Karl Berry  <karl@gnu.org>
86215
86216         * gnulib-tool (func_verify_module): report module name $module in
86217         error message, not $1.
86218         * gnulib-tool (create-testdir): don't complain if destdir couldn't
86219         be created, only if it doesn't exist.
86220         * gnulib-tool (last_checkin_date): don't expand the $Date here.
86221
86222 2002-12-31  Paul Eggert  <eggert@twinsun.com>
86223
86224         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
86225
86226 2002-12-31  Paul Eggert  <eggert@twinsun.com>
86227
86228         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
86229         memcmp if strcoll doesn't work.
86230
86231 2002-12-31  Bruno Haible  <bruno@clisp.org>
86232
86233         * lib/utime.c (utime_null): No need to call ftruncate if the file was
86234         nonempty.
86235
86236 2002-12-31  Bruno Haible  <bruno@clisp.org>
86237
86238         * lib/memcoll.c (STRCOLL): New macro.
86239         (memcoll): Use it.
86240
86241 2002-12-31  Bruno Haible  <bruno@clisp.org>
86242
86243         * lib/localcharset.h: New file.
86244         * lib/localcharset.c: Include it.
86245         * lib/unicodeio.c: Likewise.
86246
86247 2002-12-31  Bruno Haible  <bruno@clisp.org>
86248
86249         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
86250         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
86251
86252 2002-12-31  Bruno Haible  <bruno@clisp.org>
86253
86254         * lib/getline.h: Include <stddef.h>, for size_t.
86255
86256         * lib/unicodeio.h: Include <stddef.h>, for size_t.
86257         * lib/unicodeio.c: Don't include <stddef.h>.
86258
86259 2002-12-31  Bruno Haible  <bruno@clisp.org>
86260
86261         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
86262         HAVE_TM_ZONE.
86263
86264 2002-12-24  Karl Berry  <karl@gnu.org>
86265
86266         * config/config.guess: update from prep.
86267
86268 2002-12-24  Bruno Haible  <bruno@clisp.org>
86269
86270         General infrasructure.
86271         * m4/README: Rewritten.
86272         * m4/onceonly.m4: New file.
86273         * m4/onceonly_2_57.m4: New file.
86274
86275         Module atexit.
86276         * m4/atexit.m4: New file.
86277
86278         Module strtod.
86279         * m4/strtod.m4: New file.
86280
86281         Module strtol.
86282         * m4/strtol.m4: New file.
86283
86284         Module strtoul.
86285         * m4/strtoul.m4: New file.
86286
86287         Module memchr.
86288         * m4/memchr.m4: New file.
86289
86290         Module memcmp.
86291         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
86292         (jm_FUNC_MEMCMP): Invoke it.
86293
86294         Module memcpy.
86295         * m4/memcpy.m4: New file.
86296
86297         Module memmove.
86298         * m4/memmove.m4: New file.
86299
86300         Module memset.
86301         * m4/memset.m4: New file.
86302
86303         Module strcspn.
86304         * m4/strcspn.m4: New file.
86305
86306         Module strpbrk.
86307         * m4/strpbrk.m4: New file.
86308
86309         Module strstr.
86310         * m4/strstr.m4: New file.
86311
86312         Module strerror.
86313         * m4/strerror.m4: New file.
86314
86315         Module mktime.
86316         * m4/mktime.m4: Renamed from jm-mktime.m4.
86317         (gl_PREREQ_MKTIME): New macro.
86318         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
86319
86320         Module malloc.
86321         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
86322         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
86323         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
86324
86325         Module realloc.
86326         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
86327         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
86328         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
86329
86330         Module strftime.
86331         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
86332         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
86333         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
86334         gl_TM_GMTOFF.
86335         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
86336
86337         Module xalloc.
86338         * m4/xalloc.m4: New file.
86339
86340         Module alloca.
86341         * m4/alloca.m4: New file.
86342
86343         Module putenv.
86344         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
86345         (jm_FUNC_PUTENV): Invoke it.
86346
86347         Module setenv.
86348         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
86349         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
86350         when invoked twice.
86351         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
86352         gt_FUNC_SETENV.
86353
86354         Module memrchr.
86355         * m4/memrchr.m4: New file.
86356
86357         Module stpcpy.
86358         * m4/stpcpy.m4: New file.
86359
86360         Module strcase.
86361         * m4/strcase.m4: New file.
86362
86363         Module strdup.
86364         * m4/strdup.m4: New file.
86365
86366         Module strnlen.
86367         * m4/strnlen.m4: New file.
86368
86369         Module strndup.
86370         * m4/strndup.m4: New file.
86371
86372         Module xstrtod.
86373         * m4/xstrtod.m4: New file.
86374
86375         Module xstrtol.
86376         * m4/xstrtol.m4: New file.
86377
86378         Module getdate.
86379         * m4/getdate.m4: New file.
86380
86381         Module unlocked-io.
86382         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
86383         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
86384         * m4/jm-glibc-io.m4n: Remove file.
86385
86386         Module long-options.
86387         * m4/long-options.m4: New file.
86388
86389         Module md5.
86390         * m4/md5.m4: New file.
86391
86392         Module sha.
86393         * m4/sha.m4: New file.
86394
86395         Module getstr.
86396         * m4/getstr.m4: New file.
86397
86398         Module getline.
86399         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
86400         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
86401         <sys/types.h>, for size_t. Use the function name gnu_getline, not
86402         simply getline. Infoke gl_PREREQ_GETLINE.
86403
86404         Module obstack.
86405         * m4/obstack.m4: New file.
86406
86407         Module hash.
86408         * m4/hash.m4: New file.
86409
86410         Module readtokens.
86411         * m4/readtokens.m4: New file.
86412
86413         Module strverscmp.
86414         * m4/strverscmp.m4: New file.
86415
86416         Module stdbool.
86417         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
86418         OSF/1.
86419
86420         Module strtoll.
86421         * m4/strtoll.m4: New file.
86422
86423         Module strtoull.
86424         * m4/strtoull.m4: New file.
86425
86426         Module strtoimax.
86427         * m4/strtoimax.m4: New file.
86428
86429         Module strtoumax.
86430         * m4/strtoumax.m4: New file.
86431
86432         Module xstrtoimax.
86433         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
86434         jm_AC_PREREQ_XSTRTOIMAX.
86435         Moved the strtol prerequisites to strtol.m4.
86436         Moved the strtoll prerequisites to strtoll.m4.
86437         Moved the strtoimax prerequisites to strtoimax.m4.
86438
86439         Module xstrtoumax.
86440         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
86441         jm_AC_PREREQ_XSTRTOUMAX.
86442         Moved the strtoul prerequisites to strtoul.m4.
86443         Moved the strtoull prerequisites to strtoull.m4.
86444         Moved the strtoumax prerequisites to strtoumax.m4.
86445
86446         Module chown.
86447         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
86448         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
86449
86450         Module dup2.
86451         * m4/dup2.m4: New file.
86452
86453         Module ftruncate.
86454         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
86455         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
86456
86457         Module getgroups.
86458         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
86459         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
86460
86461         Module gettimeofday.
86462         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
86463         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
86464         gl_PREREQ_GETTIMEOFDAY.
86465
86466         Module mkdir.
86467         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
86468         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
86469
86470         Module mkstemp.
86471         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
86472         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
86473         jm_AC_TYPE_UINTMAX_T.
86474         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
86475
86476         Module stat.
86477         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
86478         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
86479
86480         Module lstat.
86481         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
86482         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
86483
86484         Module timespec.
86485         * m4/timespec.m4 (gl_TIMESPEC): New macro.
86486         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
86487         * m4/st_mtim.m4: Indentation.
86488
86489         Module nanosleep.
86490         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
86491         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
86492         gl_PREREQ_NANOSLEEP.
86493
86494         Module regex.
86495         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
86496         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
86497         (gl_REGEX): New macro.
86498
86499         Module rename.
86500         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
86501         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
86502
86503         Module rmdir.
86504         * m4/rmdir.m4: New file.
86505
86506         Module utime.
86507         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
86508         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
86509         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
86510
86511         Module dirname.
86512         * m4/dirname.m4: New file.
86513
86514         Module getopt.
86515         * m4/getopt.m4: New file.
86516
86517         Module unistd-safer.
86518         * m4/unistd-safer.m4: New file.
86519
86520         Module fnmatch.
86521         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
86522         declaration.
86523         (gl_PREREQ_FNMATCH_EXTRA): New macro.
86524         (gl_FUNC_FNMATCH_POSIX): New macro.
86525         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
86526         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
86527         simply fnmatch.
86528
86529         Module exclude.
86530         * m4/exclude.m4: New file.
86531
86532         Module human.
86533         * m4/human.m4: New file.
86534
86535         Module acl.
86536         * m4/acl.m4: Nop.
86537
86538         Module backupfile.
86539         * m4/backupfile.m4: New file.
86540         * m4/d-ino.m4: Indentation.
86541
86542         Module fsusage.
86543         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
86544         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
86545         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
86546
86547         Module dirfd.
86548         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
86549         requirements.
86550
86551         Module euidaccess.
86552         * m4/euidaccess.m4: New file.
86553
86554         Module file-type.
86555         * m4/file-type.m4: New file.
86556
86557         Module fileblocks.
86558         * m4/fileblocks.m4: New file.
86559
86560         Module filemode.
86561         * m4/filemode.m4: New file.
86562
86563         Module isdir.
86564         * m4/isdir.m4: New file.
86565
86566         Module lchown.
86567         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
86568         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
86569
86570         Module makepath.
86571         * m4/makepath.m4: New file.
86572
86573         Module modechange.
86574         * m4/modechange.m4: New file.
86575
86576         Module mountlist.
86577         * m4/mountlist.m4: New file.
86578         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
86579         Indentation.
86580
86581         Module path-concat.
86582         * m4/path-concat.m4: New file.
86583
86584         Module pathmax.
86585         * m4/pathmax.m4: New file.
86586
86587         Module same.
86588         * m4/same.m4: New file.
86589
86590         Module save-cwd.
86591         * m4/save-cwd.m4: New file.
86592
86593         Module savedir.
86594         * m4/savedir.m4: New file.
86595
86596         Module xgetcwd.
86597         * m4/xgetcwd.m4: New file.
86598         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
86599
86600         Module xreadlink.
86601         * m4/xreadlink.m4: New file.
86602
86603         Module safe-read.
86604         * m4/safe-read.m4: New file.
86605
86606         Module safe-write.
86607         * m4/safe-write.m4: New file.
86608
86609         Module closeout.
86610         * m4/closeout.m4: New file.
86611
86612         Module stdio-safer.
86613         * m4/stdio-safer.m4: New file.
86614
86615         Module getpass.
86616         * m4/getpass.m4: New file.
86617
86618         Module getugroups.
86619         * m4/getugroups.m4: New file.
86620
86621         Module group-member.
86622         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
86623         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
86624
86625         Module idcache.
86626         * m4/idcache.m4: New file.
86627
86628         Module userspec.
86629         * m4/userspec.m4: New file.
86630
86631         Module gettime.
86632         * m4/clock_time.m4: New file.
86633         * m4/gettime.m4: New file.
86634
86635         Module settime.
86636         * m4/settime.m4: New file.
86637
86638         Module posixtm.
86639         * m4/posixtm.m4: New file.
86640
86641         Module gethostname.
86642         * m4/gethostname.m4: New file.
86643
86644         Module canon-host.
86645         * m4/canon-host.m4: New file.
86646
86647         Module gettext.
86648         * m4/codeset.m4: New file, from gettext-0.11.5.
86649         * m4/gettext.m4: New file, from gettext-0.11.5.
86650         * m4/glibc21.m4: New file, from gettext-0.11.5.
86651         * m4/iconv.m4: New file, from gettext-0.11.5.
86652         * m4/intdiv0.m4: New file, from gettext-0.11.5.
86653         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
86654         * m4/inttypes.m4: New file, from gettext-0.11.5.
86655         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
86656         * m4/isc-posix.m4: New file, from gettext-0.11.5.
86657         * m4/lcmessage.m4: New file, from gettext-0.11.5.
86658         * m4/lib-ld.m4: New file, from gettext-0.11.5.
86659         * m4/lib-link.m4: New file, from gettext-0.11.5.
86660         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
86661         * m4/progtest.m4: New file, from gettext-0.11.5.
86662         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
86663         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
86664         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
86665
86666         Module localcharset.
86667         * m4/localcharset.m4: New file.
86668
86669         Module hard-locale.
86670         * m4/hard-locale.m4: New file.
86671
86672         Module mbswidth.
86673         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
86674         onceonly macros.
86675         * m4/mbrtowc.m4: Add comment.
86676
86677         Module memcasecmp.
86678         * m4/memcasecmp.m4: New file.
86679
86680         Module memcoll.
86681         * m4/memcoll.m4: New file.
86682
86683         Module unicodeio.
86684         * m4/unicodeio.m4: New file.
86685
86686         Module rpmatch.
86687         * m4/rpmatch.m4: New file.
86688
86689         Module yesno.
86690         * m4/yesno.m4: New file.
86691
86692         Module exitfail.
86693         * m4/exitfail.m4: New file.
86694
86695         Module c-stack.
86696         * m4/c-stack.m4 (gl_C_STACK): New macro.
86697         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
86698
86699         Module error.
86700         * m4/error.m4 (gl_ERROR): New macro.
86701         (jm_PREREQ_ERROR): Use onceonly macros.
86702
86703         Module fatal.
86704         * m4/fatal.m4: New file.
86705
86706         Module getloadavg.
86707         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
86708         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
86709
86710         Module getpagesize.
86711         * m4/getpagesize.m4: New file.
86712
86713         Module getusershell.
86714         * m4/getusershell.m4: New file.
86715
86716         Module physmem.
86717         * m4/physmem.m4: New file.
86718
86719         Module posixver.
86720         * m4/posixver.m4: New file.
86721
86722         Module quotearg.
86723         * m4/quotearg.m4: New file.
86724
86725         Module quote.
86726         * m4/quote.m4: New file.
86727
86728         Module readutmp.
86729         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
86730
86731         Module sig2str.
86732         * m4/sig2str.m4: New file.
86733
86734         Other.
86735         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
86736         ulonglong.m4.
86737         * m4/intmax_t.m4: New file.
86738         * m4/d-type.m4: Indentation.
86739         * m4/jm-macros.m4: Update.
86740         * m4/prereq.m4 (jm_PREREQ): Update.
86741         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
86742         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
86743         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
86744         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
86745         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
86746         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
86747         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
86748         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
86749         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
86750         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
86751         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
86752         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
86753         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
86754         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
86755         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
86756         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
86757         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
86758         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
86759         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
86760
86761 2002-12-24  Bruno Haible  <bruno@clisp.org>
86762
86763         * MODULES.txt: Update according to m4/ changes.
86764
86765         Module gettext.
86766         * config.rpath: New file, from gettext-0.11.5.
86767
86768         * modules/*: New module descriptions.
86769         * gnulib-tool: New file.
86770         * MODULES.html.sh: New file.
86771
86772 2002-12-21  Karl Berry  <karl@gnu.org>
86773
86774         * doc/fdl.texi: update to version 1.2.
86775
86776 2002-12-19  Karl Berry  <karl@gnu.org>
86777
86778         * config/config.guess: update from prep.
86779
86780 2002-12-18  Bruno Haible  <bruno@clisp.org>
86781
86782         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
86783         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
86784
86785 2002-12-17  Bruno Haible  <bruno@clisp.org>
86786
86787         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
86788         stdlib.h, string.h.
86789
86790 2002-12-17  Bruno Haible  <bruno@clisp.org>
86791
86792         * lib/canon-host.c (strdup): Remove unused declaration.
86793
86794         * lib/fsusage.c: Include full_read.h.
86795         (get_fs_usage): Use full_read instead of safe_read.
86796
86797         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
86798
86799 2002-12-12  Karl Berry  <karl@gnu.org>
86800
86801         * config/config.guess: update from prep.
86802
86803 2002-12-11  Bruno Haible  <bruno@clisp.org>
86804
86805         * m4/setenv.m4: New file, from gettext-0.11.5.
86806
86807 2002-12-11  Bruno Haible  <bruno@clisp.org>
86808
86809         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
86810         not unsetenv().
86811         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
86812         modifications:
86813
86814         2002-12-11  Bruno Haible  <bruno@clisp.org>
86815
86816                 * setenv.c (alloca): Fall back to malloc.
86817                 (freea): New macro.
86818                 (setenv): Use freea() to free memory allocated with alloca().
86819
86820         2002-11-13  Bruno Haible  <bruno@clisp.org>
86821
86822                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
86823                 function declarations.
86824                 * unsetenv.c (unsetenv): Likewise.
86825
86826         2002-03-04  Bruno Haible  <bruno@clisp.org>
86827
86828                 Portability to AIX 4.3.3.
86829                 * unsetenv.c: New file, extracted from setenv.c.
86830                 * setenv.c: Move the unsetenv() function to unsetenv.c.
86831
86832         2001-12-20  Bruno Haible  <bruno@clisp.org>
86833
86834                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
86835                 use malloc instead. For SunOS 4.
86836
86837         2001-12-11  Bruno Haible  <bruno@clisp.org>
86838
86839                 * setenv.c: Declare alloca.
86840                 (compar_fn_t): New typedef.
86841                 (KNOWN_VALUE, STORE_VALUE): Use it.
86842
86843         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
86844         setenv.h.
86845
86846 2002-12-10  Paul Eggert  <eggert@twinsun.com>
86847
86848         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
86849         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
86850         Choose values that are less likely to collide with system fnmatch
86851         options.
86852         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
86853         defined (e.g., a pure POSIX system).
86854         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
86855         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
86856
86857 2002-12-06  Paul Eggert  <eggert@twinsun.com>
86858
86859         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
86860         a pain in practice to deal with generated m4 files.  This change
86861         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
86862
86863         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
86864         and jm-glibc-io.m4, as they are no longer a special case.
86865         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
86866         kludge and the auto-generation stuff.  Check only whether the
86867         functions are declared, not whether they exist, since older hosts
86868         that don't declare the functions can't use the optimization anyway.
86869
86870 2002-12-06  Jim Meyering  <jim@meyering.net>
86871
86872         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
86873
86874         Merge in changes from libc's misc/error.c, in preparation
86875         for the merge of gnulib's changes back into libc.
86876
86877         * lib/error.c (_): Define only if not already defined.
86878         Move definition to follow all #include directives.
86879         Include unlocked-io.h only if !_LIBC.
86880         [_LIBC]: Include <libio/libioP.h>.
86881         [USE_IN_LIBIO]: Include <libio/iolibio.h>
86882         (fflush): Tweak definition to use INTUSE.
86883         (putc): Define.
86884
86885 2002-12-05  Paul Eggert  <eggert@twinsun.com>
86886
86887         * lib/alloca.c [defined emacs]: Include "lisp.h".
86888         (xalloc_die) [defined emacs]: New macro.
86889         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
86890         [! defined emacs]: Include <xalloc.h>.
86891         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
86892         (pointer): Typedef to POINTER_TYPE *.
86893         (malloc): Remove decl; we now always use xmalloc.
86894         (alloca): Use old-style definition, since Emacs needs this.
86895         Check for arithmetic overflow when computing combined size.
86896
86897 2002-12-04  Paul Eggert  <eggert@twinsun.com>
86898
86899         Do not generate unlocked-io.h automatically, since it's easier to
86900         maintain it by hand.
86901
86902         * lib/unlocked-io.h: New file, from GNU diffutils,
86903         but with proper copyright notice and attribution.
86904         * lib/gen-uio: Remove.
86905         * lib/Makefile.am: Add copyright notice.
86906         (libfetish_a_SOURCES): Add unlocked-io.h.
86907         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
86908         (DISTCLEANFILES, io_functions): Remove macros.
86909         (EXTRA_DIST): Remove gen_uio.
86910         (unlocked-io.h): Remove rule.
86911
86912 2002-12-04  Jim Meyering  <jim@meyering.net>
86913
86914         Reflect the fact that stat.c and lstat.c are no longer generated.
86915         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
86916         (DISTCLEANFILES): Likewise.
86917         (EXTRA_DIST): Likewise.
86918         (all_local): Don't depend on stat.c or lstat.c.
86919         (stat.c, lstat.c): Remove rules.
86920         (EXTRA_DIST): Remove xstat.in.
86921
86922         * lib/xstat.in: Remove file.  Contents moved into stat.c.
86923         * lib/stat.c: New file.  Contents mostly from xstat.in.
86924         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
86925         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
86926
86927         * lib/safe-read.c: Rework so that it may serve to define safe_write,
86928         too.
86929         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
86930
86931 2002-12-03  Jim Meyering  <jim@meyering.net>
86932
86933         * lib/safe-read.c, safe-write.c: Change variable names and comments,
86934         but not semantics, to minimize the differences between these two files.
86935         (safe_read): Change comment to mention SAFE_READ_ERROR.
86936
86937         * lib/safe-read.c (IS_EINTR): Define.
86938         (safe_read): Use IS_EINTR in place of in-function cpp directives.
86939
86940 2002-12-02  Jim Meyering  <jim@meyering.net>
86941
86942         * lib/safe-read.c (EINTR): Define.
86943         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86944         (INT_MAX): Provide fallback.
86945         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
86946
86947         * lib/safe-read.h (SAFE_READ_ERROR): Define.
86948
86949 2002-12-02  Bruno Haible  <bruno@clisp.org>
86950
86951         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
86952         Define, taken from safe-read.c.
86953         (INT_MAX): Provide fallback.
86954         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
86955         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
86956
86957         * lib/safe-read.c (EINTR): Remove definition.
86958         (safe_read): Don't use EINTR if it is absent.
86959
86960 2002-12-01  Jim Meyering  <jim@meyering.net>
86961
86962         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
86963         zero.
86964         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
86965
86966 2002-11-27  Paul Eggert  <eggert@twinsun.com>
86967
86968         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
86969         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
86970         with `if (! (value < limit)) abort ();', for readability.
86971
86972 2002-11-26  Karl Berry  <karl@gnu.org>
86973
86974         * lib/strdup.c: copy from libc again, with jim's ok.
86975         * lib/.cppi-disable: re-add strdup.c
86976
86977 2002-11-25  Karl Berry  <karl@gnu.org>
86978
86979         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
86980         instead of "strtol.c".
86981
86982 2002-11-25  Karl Berry  <karl@gnu.org>
86983
86984         * config/install-sh: update from automake for variable quoting, $0 in
86985         error msgs, etc.
86986
86987         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
86988         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
86989         entry.
86990
86991 2002-11-25  Jim Meyering  <jim@meyering.net>
86992
86993         * lib/mktime.c: Sync from libc, now that it has the latest fix.
86994
86995 2002-11-24  Karl Berry  <karl@gnu.org>
86996
86997         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
86998         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
86999
87000 2002-11-24  Jim Meyering  <jim@meyering.net>
87001
87002         Update from coreutils:
87003
87004         * lib/mktime.c: Merge in changes from libc.
87005
87006         Avoid a link-time failure on some Linux systems.
87007         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
87008         (otherwise).
87009         (__mon_yday): Declare with the STATIC attribute.
87010         (__mktime_internal): Likewise.
87011         Based on a report from Greg Schafer.
87012
87013 2002-11-23  Jim Meyering  <jim@meyering.net>
87014
87015         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
87016         Use `unsigned', not `int', as type of index.
87017
87018         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
87019
87020         * lib/fsusage.c: Remove unneeded parentheses around operands of
87021         `defined'.
87022
87023 2002-11-22  Paul Eggert  <eggert@twinsun.com>
87024
87025         * lib/quotearg.h: Allow multiple inclusion by surrounding with
87026         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
87027         so that we can be included first.
87028         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
87029         * lib/quotearg.c: Include quotearg.h immediately after config.h.
87030         No need to include stddef.h or sys/types.h any more.
87031         Surround local include files with "", not "<>".
87032         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
87033         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
87034         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
87035         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
87036         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
87037         (ISPRINT): Remove; no longer needed now that we assume C89.
87038
87039         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
87040         Preserve errno.
87041
87042         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
87043         quotearg_char): Use SIZE_MAX rather than
87044         (size_t) -1 when we are talking about "infinity".
87045
87046         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
87047
87048 2002-11-22  Paul Eggert  <eggert@twinsun.com>
87049
87050         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
87051         hint that one should use `if (! x) abort ();' rather than `assert
87052         (x);', and anyway it's one less thing to worry about configuring.
87053         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
87054         hash_rehash, hash_insert): Use abort rather than assert.
87055
87056 2002-11-22  Bruno Haible  <bruno@clisp.org>
87057
87058         * lib/safe-read.h: Assume C89. Add comments.
87059         (safe_read): Change return type to size_t.
87060         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
87061         byte counts > SSIZE_MAX correctly.
87062         * lib/safe-write.h: New file.
87063         * lib/safe-write.c: New file.
87064         * lib/full-read.h: New file.
87065         * lib/full-read.c: New file.
87066         * lib/full-write.h: Assume C89. Add comments.
87067         * lib/full-write.c: Include safe-write.h.
87068         (full_write): Rewritten to use safe_write.
87069         Suggested by Jim Meyering and Paul Eggert.
87070
87071 2002-11-21  Jim Meyering  <jim@meyering.net>
87072
87073         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
87074
87075         Merge in changes from the coreutils.
87076
87077         2002-09-25  Paul Eggert  <eggert@twinsun.com>
87078         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
87079         <stdint.h>.
87080         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
87081         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
87082         int.  Work more efficiently if X is the same width as uintmax_t.
87083         Do not compare X to -1, to avoid bogus compiler warning.
87084         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
87085         Don't assume that f_frsize and f_bsize are the same type.
87086
87087         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
87088         warning on FreeBSD.
87089
87090         * lib/makepath.c (make_path): Restore umask *before* creating the final
87091         component.
87092         (make_path): Minor reformatting.
87093
87094         * lib/xmalloc.c: Adjust to work with new autoconf macros,
87095         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
87096         HAVE_MALLOC/HAVE_REALLOC.
87097
87098         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
87099         dummy ones.  At least on GNU/Linux systems, `auto' means something
87100         else.
87101         From Michael Stone.
87102
87103 2002-11-21  Bruno Haible  <bruno@clisp.org>
87104
87105         Remove case insensitive option matching.
87106         * lib/argmatch.h (argcasematch): Remove declaration.
87107         (ARGCASEMATCH): Remove macro.
87108         (__xargmatch_internal): Remove case_sensitive argument.
87109         (XARGMATCH): Update.
87110         (XARGCASEMATCH): Remove macro.
87111         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
87112         case_sensitive argument.
87113         (argcasematch): Remove function.
87114         (__xargmatch_internal): Remove case_sensitive argument.
87115         (main): Use XARGMATCH instead of XARGCASEMATCH.
87116
87117         * lib/xmalloc.c: Change compile-time error message. Add comment about
87118         required autoconf version.
87119
87120 2002-11-20  Paul Eggert  <eggert@twinsun.com>
87121
87122         Merge argmatch cleanups from Bison.  Assume C89.
87123
87124         * lib/argmatch.c: Include config.h here, not in argmatch.h.
87125         Include stdlib.h, for EXIT_FAILURE.
87126         Always include <string.h>, since we assume C89.
87127         (EXIT_FAILURE): Remove pre-C89 bug workaround.
87128         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
87129         Include <stddef.h> instead, since it's all we need for size_t.
87130         (PARAMS): Remove.  All uses removed.
87131         (ARRAY_CARDINALITY): Do not bother to #undef.
87132         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
87133         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
87134         Remove unnecessary parentheses.
87135         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
87136         Insert necessary parentheses.
87137         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
87138         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
87139
87140 2002-11-19  Bruno Haible  <bruno@clisp.org>
87141
87142         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
87143         * lib/mbswidth.h: Include <stddef.h>, for size_t.
87144
87145         * lib/mbswidth.h (PARAMS): Remove macro.
87146         (mbswidth, mbsnwidth): Use ANSI C function declarations.
87147         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
87148
87149         * lib/gcd.h (PARAMS): Remove macro.
87150         (gcd): Use ANSI C function declarations.
87151         * lib/gcd.c (gcd): Likewise.
87152
87153 2002-11-15  Bruno Haible  <bruno@clisp.org>
87154
87155         * lib/strcspn.c: Include <stddef.h>.
87156         (strcspn): Use ANSI C function declaration. Change return type to
87157         size_t. Use NULL.
87158         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
87159         (strpbrk): Use NULL.
87160         * lib/strpbrk.h (PARAMS): Remove macro.
87161         (strpbrk): Use ANSI C function declaration.
87162         * lib/strstr.c: Don't include <sys/types.h>.
87163         * lib/strstr.h (PARAMS): Remove macro.
87164         (strstr): Use ANSI C function declarations.
87165
87166 2002-11-14  Karl Berry  <karl@gnu.org>
87167
87168         * config/mkinstalldirs: `do' on separate line, instead of
87169         `for var; do'.
87170
87171 2002-11-06  Bruno Haible  <bruno@clisp.org>
87172
87173         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
87174         * lib/gcd.c (gcd): Likewise.
87175
87176 2002-11-05  Bruno Haible  <bruno@clisp.org>
87177
87178         * lib/gcd.h: New file, from gettext-0.11.5.
87179         * lib/gcd.c: New file, from gettext-0.11.5.
87180
87181 2002-11-05  Bruno Haible  <bruno@clisp.org>
87182
87183         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87184         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87185         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87186         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87187
87188         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
87189         <libintl.h>.
87190         * lib/makepath.c: Include gettext.h instead of <locale.h> and
87191         <libintl.h>.
87192
87193         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
87194         * lib/human.c: Include gettext.h instead of <libintl.h>.
87195         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
87196         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
87197         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
87198         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
87199         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
87200         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
87201         (textdomain): Remove definition.
87202         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
87203
87204         * lib/long-options.c: Remove include of <libintl.h> and definition of
87205         _.
87206         * lib/same.c: Remove include of <libintl.h> and definition of _.
87207
87208 2002-11-04  Owen Taylor  <otaylor@redhat.com>
87209
87210         * lib/config.charset: A few additions for Solaris.
87211
87212 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
87213
87214         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
87215         * lib/localcharset.c (locale_charset): Declare as extern "C".
87216
87217 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
87218
87219         * lib/config.charset: msdos in uk_UA uses CP1125.
87220
87221 2002-11-04  Bruno Haible  <bruno@clisp.org>
87222
87223         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
87224         * lib/strcase.h: New file, from GNU gettext-0.11.5.
87225         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
87226         * lib/strstr.h: New file, from GNU gettext-0.11.5.
87227         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
87228
87229 2002-11-04  Bruno Haible  <bruno@clisp.org>
87230
87231         * lib/localcharset.c (locale_charset): Don't return an empty string.
87232
87233 2002-11-04  Bruno Haible  <bruno@clisp.org>
87234
87235         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
87236         aliases.
87237
87238 2002-11-04  Bruno Haible  <bruno@clisp.org>
87239
87240         * lib/config.charset: Update for newest glibc. Add canonical names
87241         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
87242
87243 2002-11-04  Bruno Haible  <bruno@clisp.org>
87244
87245         * lib/config.charset: Add support for NetBSD.
87246
87247 2002-11-04  Bruno Haible  <bruno@clisp.org>
87248
87249         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
87250
87251 2002-11-01  Bruno Haible  <bruno@clisp.org>
87252
87253         * configure.in: Add AC_CONFIG_AUX_DIR call.
87254         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
87255         test/Makefile.
87256         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
87257
87258 2002-09-28  Karl Berry  <karl@gnu.org>
87259
87260         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
87261         installed automake until the next release, since changes have been
87262         made.
87263
87264 2002-09-25  Karl Berry  <karl@gnu.org>
87265
87266         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
87267         * lib/getopt*: copy from libc/posix.
87268         * lib/gettext.h: copy from gettext.
87269         * lib/.cppi-disable: add strdup.c, gettext.h.
87270
87271 2002-09-25  Karl Berry  <karl@gnu.org>
87272
87273         * config/srclist.txt: enable gettext.h check.
87274         * config/config.{guess,sub}: update from prep.
87275         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
87276                 from automake 1.6.3.
87277         See srclist*.
87278
87279 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
87280
87281         * regex.c (PATFETCH): Remove the translating fetch.
87282         (PATFETCH_RAW): Rename to PATFETCH.
87283         (set_image_of_range): New fun.
87284         (SET_RANGE_TABLE_WORK_AREA): Use it.
87285         (regex_compile): Don't translate the pattern chars so eagerly.
87286         Only do it when inserting an `exactn' bytecode or when handling
87287         a char-range.
87288         (mutually_exclusive_p): Avoid empty statement.
87289
87290 2002-07-06  Jim Meyering  <meyering@lucent.com>
87291
87292         * m4/README: Don't mention Makefile.am.in.
87293         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
87294
87295 2002-07-01  Jim Meyering  <meyering@lucent.com>
87296
87297         * lib/c-stack.c: Include sys/time.h.
87298         From Volker Borchert.
87299
87300 2002-06-26  Paul Eggert  <eggert@twinsun.com>
87301
87302         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
87303
87304 2002-06-26  Paul Eggert  <eggert@twinsun.com>
87305
87306         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
87307         New macro.  Use it uniformly instead of
87308         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
87309         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
87310         reported by Vin Shelton.
87311
87312 2002-06-22  Paul Eggert  <eggert@twinsun.com>
87313
87314         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
87315         Do not assume SA_SIGINFO behavior.
87316         Bug reported by Jim Meyering on NetBSD 1.5.2.
87317
87318 2002-06-22  Jim Meyering  <meyering@lucent.com>
87319
87320         * m4/c-stack.m4: New file, from diffutils-2.8.2.
87321         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
87322
87323         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
87324         now that configure.ac uses AC_GNU_SOURCE.
87325         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
87326         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
87327
87328         Update to latest tools.  Suggestions from Paul Eggert.
87329         * m4/stdbool.m4: New file, from diffutils-2.8.2.
87330         * m4/gnu-source.m4: Update from diffutils-2.8.2.
87331         * m4/fnmatch.m4: Likewise.
87332         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
87333         to AC_HEADER_STDBOOL
87334
87335 2002-06-22  Jim Meyering  <meyering@lucent.com>
87336
87337         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
87338         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
87339
87340 2002-06-22  Jim Meyering  <meyering@lucent.com>
87341
87342         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
87343
87344         * lib/exitfail.c, exitfail.h: Likewise.
87345         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
87346
87347         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
87348         of fnmatch.h.
87349         (EXTRA_DIST): Add fnmatch_loop.c.
87350         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
87351
87352         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
87353         * lib/fnmatch.c: Update from diffutils-2.8.2.
87354         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
87355         * lib/fnmatch.h: Remove file.
87356
87357 2002-06-21  Jim Meyering  <meyering@lucent.com>
87358
87359         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
87360         * m4/mbrtowc.m4: Likewise.
87361
87362         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
87363         * m4/mbswidth.m4: Reflect name change:
87364         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
87365         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87366
87367         * m4/lib-link.m4: Update from gettext-0.11.2.
87368         * m4/gettext.m4: Likewise.
87369
87370         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
87371         From Alfred M. Szmidt.
87372
87373 2002-06-18  Paul Eggert  <eggert@twinsun.com>
87374
87375         * lib/file-type.h: Report an error if neither S_ISREG nor
87376         S_IFREG is defined, instead of using a test specific to glibc
87377         2.2.  This should be safe, since POSIX requires S_ISREG and
87378         Unix Version 7 had S_IFREG.  We don't need to check for
87379         <sys/types.h> since we don't use any symbols that it defines.
87380
87381 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
87382
87383         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
87384         $@-t, so that each temporary file name is unique and valid in the first
87385         8 characters, for operation under DOS.
87386
87387 2002-06-15  Paul Eggert  <eggert@twinsun.com>
87388
87389         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
87390
87391 2002-06-15  Jim Meyering  <meyering@lucent.com>
87392
87393         Work even with DJGPP 2.03, which lacks support for symlinks.
87394         From Richard Dawe.
87395         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
87396         is defined.
87397         * lib/lchown.c (S_ISLNK): Likewise.
87398
87399 2002-06-15  Jim Meyering  <meyering@lucent.com>
87400
87401         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
87402         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
87403         have been included before this file.
87404
87405 2002-06-14  Jim Meyering  <meyering@lucent.com>
87406
87407         * lib/file-type.h: Use the version from diffutils-2.8.2.
87408         * lib/file-type.c: Likewise.
87409
87410 2002-06-07  Jim Meyering  <meyering@lucent.com>
87411
87412         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
87413         They're needed at least for NetBSD 1.5.2.
87414         ($statxfs_includes): Include those same headers.
87415         ($statxfs_includes): Include sys/vfs.h if available.
87416         ($statxfs_includes): Likewise for sys/statvfs.h.
87417         Check for the following members in both structs statfs and statvfs:
87418         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
87419
87420 2002-06-01  Jim Meyering  <meyering@lucent.com>
87421
87422         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
87423         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
87424
87425 2002-05-28  Jim Meyering  <meyering@lucent.com>
87426
87427         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
87428         Reported by Volker Borchert.
87429
87430 2002-05-27  Jim Meyering  <meyering@lucent.com>
87431
87432         Fix a problem seen only on nonconforming systems whereby ls.c's
87433         use of localtime, and then of gettimeofday would cause trouble:
87434         the localtime call used to initialize rpl_gettimeofday's save
87435         mechanism would clobber ls's current local time information so
87436         that in any long listing the first file would always be listed
87437         with date 1970-01-01.  Analysis by Volker Borchert.
87438
87439         * lib/gettimeofday.c (localtime): Undefine.
87440         (rpl_localtime): New function.
87441
87442 2002-05-27  Jim Meyering  <meyering@lucent.com>
87443
87444         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
87445         localtime.
87446
87447         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
87448         use the replacement function; it wouldn't resolve at link time.
87449         Reported by Volker Borchert.
87450
87451 2002-05-22  Jim Meyering  <meyering@lucent.com>
87452
87453         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
87454         file-type.h.
87455         * lib/file-type.h: New file.
87456         * lib/file-type.c (file_type): New file/function.  Extracted from
87457         diffutils.
87458
87459 2002-04-30  Jim Meyering  <meyering@lucent.com>
87460
87461         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
87462
87463 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87464
87465         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
87466
87467 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87468
87469         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
87470         Do not check for alloca.h (no longer used) or stdbool.h (was never
87471         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
87472
87473 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87474
87475         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
87476
87477 2002-04-29  Jim Meyering  <meyering@lucent.com>
87478
87479         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
87480         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
87481         Use AC_FUNC_STRNLEN here instead.
87482
87483         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
87484         With autoconf-2.53a, it's part of AC_PROG_CC.
87485
87486 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87487
87488         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
87489         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
87490
87491 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87492
87493         * lib/sig2str.h, lib/sig2str.c: New files.
87494         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
87495
87496 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87497
87498         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
87499         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
87500         of 127, since 64 is the largest conceivable number for ancient
87501         nonstandard hosts.
87502         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
87503
87504 2002-04-28  Jim Meyering  <meyering@lucent.com>
87505
87506         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
87507
87508 2002-04-24  Jim Meyering  <meyering@lucent.com>
87509
87510         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
87511         (jm_PREREQ): Use it.
87512
87513         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
87514         mach/mach.h fcntl.h.
87515         Check for this function: setlocale.
87516
87517 2002-04-24  Jim Meyering  <meyering@lucent.com>
87518
87519         * lib/gettext.h: New file, from Gettext.
87520         * lib/Makefile.am (INCLUDES): Remove -I../intl.
87521         (libfetish_a_SOURCES): Add gettext.h.
87522
87523 2002-04-16  Jim Meyering  <meyering@lucent.com>
87524
87525         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
87526         ut_pid, ut_id, ut_exit.
87527
87528 2002-04-16  Jim Meyering  <meyering@lucent.com>
87529
87530         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
87531         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
87532         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
87533
87534 2002-04-12  Jim Meyering  <meyering@lucent.com>
87535
87536         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
87537         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
87538         existence of the getmntinfo function.  Needed for Darwin 5.3.
87539
87540         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
87541         This is necessary at least on Darwin 5.3.
87542
87543         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
87544         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
87545         strnlen.o in the library, and that makes some versions of ranlib
87546         object.
87547
87548 2002-04-12  Jim Meyering  <meyering@lucent.com>
87549
87550         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
87551
87552 2002-04-09  Jim Meyering  <meyering@lucent.com>
87553
87554         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
87555         to be more precise.  Rather than saying we're checking whether the
87556         function `works', say what we're testing.
87557         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
87558         Reported by Bruno Haible.
87559
87560 2002-03-10  Jim Meyering  <meyering@lucent.com>
87561
87562         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
87563         Suggestion from Santiago Vila.
87564
87565 2002-03-08  Jim Meyering  <meyering@lucent.com>
87566
87567         * lib/rename.c: Mention that this wrapper is needed also on
87568         mips-dec-ultrix4.4 systems.
87569
87570 2002-03-02  Jim Meyering  <meyering@lucent.com>
87571
87572         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
87573         not HAVE_CLOCK_SETTIME.
87574
87575 2002-02-27  Paul Eggert  <eggert@twinsun.com>
87576
87577         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
87578         Check for clock_settime.
87579
87580 2002-02-27  Paul Eggert  <eggert@twinsun.com>
87581
87582         * lib/nanosleep.h: Rename to....
87583         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
87584
87585         * lib/gettime.c: New file.
87586         * lib/settime.c: New file.
87587         * lib/stime.c: Remove.
87588
87589         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
87590         timespec.h.  Remove nanosleep.h.
87591
87592 2002-02-25  Paul Eggert  <eggert@twinsun.com>
87593
87594         * m4/acl.m4: New file.
87595         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
87596         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
87597
87598 2002-02-25  Paul Eggert  <eggert@twinsun.com>
87599
87600         * lib/acl.c, lib/acl.h: New files.
87601         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
87602
87603 2002-02-24  Jim Meyering  <meyering@lucent.com>
87604
87605         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
87606         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
87607         cause trouble.  Reported by Nelson Beebe.
87608
87609 2002-02-23  Paul Eggert  <eggert@twinsun.com>
87610
87611         * lib/path-concat.c (xpath_concat): Reorder code to pacify
87612         compilers that don't know that xalloc_die never returns.
87613
87614 2002-02-20  Jim Meyering  <meyering@lucent.com>
87615
87616         * lib/getdate.c: Regenerate using bison-1.33.
87617
87618 2002-02-17  Jim Meyering  <meyering@lucent.com>
87619
87620         * config/config.guess (main): Don't use `head -1'; it's no longer
87621         portable. Use `sed 1q' instead.
87622
87623 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
87624
87625         * m4/codeset.m4: Upgrade to gettext-0.11.
87626         * m4/gettext.m4: Upgrade to gettext-0.11.
87627         * m4/glibc21.m4: Upgrade to gettext-0.11.
87628         * m4/iconv.m4: Upgrade to gettext-0.11.
87629         * m4/isc-posix.m4: Upgrade to gettext-0.11.
87630         * m4/lcmessage.m4: Upgrade to gettext-0.11.
87631         * m4/lib-ld.m4: New file, from gettext-0.11.
87632         * m4/lib-link.m4: New file, from gettext-0.11.
87633         * m4/lib-prefix.m4: New file, from gettext-0.11.
87634         * m4/progtest.m4: Upgrade to gettext-0.11.
87635
87636 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87637
87638         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
87639         (jm_PREREQ): Use it.
87640
87641 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87642
87643         * lib/posixver.c, lib/posixver.h: New files.
87644         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87645
87646 2002-02-02  Paul Eggert  <eggert@twinsun.com>
87647             Bruno Haible  <bruno@clisp.org>
87648
87649         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
87650         (fwrite_success_callback): New declaration.
87651         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
87652         print_unicode_char. Call failure callback instead of error.
87653         (fwrite_success_callback): New function.
87654         (exit_failure_callback): New function.
87655         (fallback_failure_callback): New function.
87656         (print_unicode_char): Call unicode_to_mb.
87657
87658 2002-01-26  Jim Meyering  <meyering@lucent.com>
87659
87660         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
87661         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
87662
87663 2002-01-26  Jim Meyering  <meyering@lucent.com>
87664
87665         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
87666
87667 2002-01-22  Paul Eggert  <eggert@twinsun.com>
87668
87669         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
87670
87671 2002-01-22  Jim Meyering  <meyering@lucent.com>
87672
87673         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
87674         Otherwise, some versions of automake would omit the rule that makes
87675         Makefile from Makefile.in.
87676
87677 2002-01-21  Paul Eggert  <eggert@twinsun.com>
87678
87679         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
87680         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87681         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
87682         (memcoll): Set errno to zero if there is no error.
87683
87684         * lib/quotearg.c (quotearg_buffer_restyled):
87685         Fix bug with quoting buffers containing NUL when backslashing escapes.
87686         This bug was exposed by the other changes in this patch.
87687         (quotearg_n_options): New arg ARGSIZE.
87688         All callers changed.
87689         (quoting_options_from_style): New function.
87690         (quotearg_n_style): Use it.
87691         (quotearg_n_style_mem): New function.
87692
87693         * lib/quotearg.h (quotearg_n_style_mem): New function.
87694
87695 2002-01-19  Jim Meyering  <meyering@lucent.com>
87696
87697         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
87698         Remove useless quotes: DF_PROG="df".
87699         * m4/strnlen.m4: New file.
87700
87701 2002-01-16  Paul Eggert  <eggert@twinsun.com>
87702
87703         * lib/backupfile.c (ISDIGIT): Comment fix.
87704         * lib/getdate.y (ISDIGIT): Likewise.
87705         * lib/posixtm.c (ISDIGIT, year): Likewise.
87706         * lib/strverscmp.c (ISDIGIT): Likewise.
87707         * lib/userspec.c (ISDIGIT): Likewise.
87708
87709 2002-01-16  Jim Meyering  <meyering@lucent.com>
87710
87711         * lib/getdate.y: Add three semicolons, each just before a closing
87712         brace. Bison (as of version 1.31) no longer papers over that mistake.
87713
87714 2002-01-05  Jim Meyering  <meyering@lucent.com>
87715
87716         * lib/version-etc.c (version_etc_copyright): Update copyright year.
87717
87718 2001-12-19  Paul Eggert  <eggert@twinsun.com>
87719
87720         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
87721         not silently exit merely because the output buffer happens to
87722         have nothing pending.
87723
87724 2001-12-18  Paul Eggert  <eggert@twinsun.com>
87725
87726         See the big note in ../ChangeLog.
87727         * lib/human.c (suffixes): Prefer K to k for 1024.
87728         (generate_suffix_backwards): New function.
87729         (human_readable_inexact): Use it.
87730         * lib/xstrtol.c (__xstrtol): If there is no number but there
87731         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
87732         Accept 'K' as well as 'k'.
87733
87734 2001-12-15  Jim Meyering  <meyering@lucent.com>
87735
87736         * lib/regex.h (__restrict_arr): Update from libc.
87737
87738         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
87739         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
87740         (STREQ): Define.
87741
87742 2001-12-14  Jim Meyering  <meyering@lucent.com>
87743
87744         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
87745         Suggestion from Bruno Haible.
87746
87747 2001-12-10  Jim Meyering  <meyering@lucent.com>
87748
87749         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
87750         xrealloc, Instead, include "xalloc.h".
87751         (initbuffer): Don't cast xmalloc return value to char*.
87752         (readline): Reword comment.
87753         Don't cast xrealloc return value to char*
87754         Return NULL, not 0.
87755
87756 2001-12-09  Jim Meyering  <meyering@lucent.com>
87757
87758         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
87759         about `signed and unsigned type in conditional expression'.
87760         * lib/posixtm.c (posix_time_parse): Likewise.
87761
87762         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
87763
87764         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
87765         to avoid a pedantic warning.
87766
87767         * lib/getstr.c: Don't include assert.h.
87768         (getstr): Remove warning-evoking assertions.
87769         Return -1 if offset parameter is out of bounds.
87770         Change the type of a local from int to size_t.
87771
87772         * lib/strftime.c (my_strftime_localtime_r): Include this function
87773         definition in the `#if ! HAVE_TM_GMTOFF' block.
87774
87775         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
87776         Include xalloc.h instead.
87777
87778 2001-12-02  Jim Meyering  <meyering@lucent.com>
87779
87780         * lib/tempname.c: Don't declare getenv, thus reverting the change of
87781         2001-11-18.  It's no longer necessary, now that stdlib.h is always
87782         included.
87783
87784         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
87785         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
87786
87787 2001-11-30  Akim Demaille  <akim@epita.fr>
87788
87789         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
87790         before being defined.
87791
87792 2001-11-27  Paul Eggert  <eggert@twinsun.com>
87793
87794         * lib/quotearg.h (quotearg_n, quotearg_n_style):
87795         First arg is int, not unsigned.
87796         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
87797         (SIZE_MAX, UINT_MAX): New macros.
87798         (quotearg_n_options): Abort if N is negative.
87799         Avoid overflow check on hosts where size_t is 64 bits and int
87800         is 32 bits, as overflow is impossible there.
87801         Fix off-by-one typo that caused unnecessary reallocation.
87802
87803 2001-11-27  Jim Meyering  <meyering@lucent.com>
87804
87805         * lib/tempname.c: Merge with version from libc.
87806         * lib/regex.c: Likewise.
87807
87808         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
87809         systems for which STDC_HEADERS is 0, it was not included, resulting in
87810         a warning about an integer-to-pointer conversion problem with getenv.
87811         Reported by Volker Borchert.
87812
87813 2001-11-26  Jim Meyering  <meyering@lucent.com>
87814
87815         * lib/gtod.h: Remove file.
87816         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
87817         * lib/gettimeofday.c: Don't include gtod.h.
87818         (GTOD_init): Remove function.
87819         (rpl_gettimeofday): Do its job here instead, rather than aborting.
87820         Suggestion from Volker Borchert.
87821
87822 2001-11-23  Jim Meyering  <meyering@lucent.com>
87823
87824         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
87825         it.
87826         * lib/hash.c (struct hash_table): Define it here instead.
87827
87828 2001-11-22  Jim Meyering  <meyering@lucent.com>
87829
87830         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
87831
87832 2001-11-20  Jim Meyering  <meyering@lucent.com>
87833
87834         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
87835         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
87836
87837 2001-11-19  Jim Meyering  <meyering@lucent.com>
87838
87839         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
87840         directory.  Use "conftestXXXXXX" as the template.
87841         Suggestion from Paul Eggert.
87842
87843         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
87844         immediately, so the test doesn't mistakenly hit the max-open-files
87845         limit.
87846
87847 2001-11-18  Paul Eggert  <eggert@twinsun.com>
87848
87849         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
87850         (TEMPORARIES): New macro.
87851         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
87852         removes an artificial limitation (e.g. HP-UX 10.20, where
87853         TMP_MAX is 17576).
87854
87855 2001-11-18  Jim Meyering  <meyering@lucent.com>
87856
87857         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
87858
87859 2001-11-18  Jim Meyering  <meyering@lucent.com>
87860
87861         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
87862         on SunOS 4.
87863
87864         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
87865         files will be created before anything else.
87866
87867 2001-11-17  Paul Eggert  <eggert@twinsun.com>
87868
87869         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
87870         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
87871
87872 2001-11-17  Jim Meyering  <meyering@lucent.com>
87873
87874         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
87875         Prompted by a report from Bob Proulx.
87876
87877         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
87878         Instead, require UTILS_FUNC_MKSTEMP.
87879
87880 2001-11-17  Jim Meyering  <meyering@lucent.com>
87881
87882         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
87883         Now, that's done as part of AC_FUNC_STRTOD.
87884
87885 2001-11-17  Jim Meyering  <meyering@lucent.com>
87886
87887         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
87888         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
87889         rather than group writable.  Patch by Juan F. Codagnone.
87890
87891         * lib/readtokens.c: Remove explicit declarations of xmalloc and
87892         xrealloc, Instead, include "xalloc.h".
87893
87894         * lib/mountlist.c: Include unlocked-io.h after all system headers.
87895         Remove explicit declarations of xmalloc, xrealloc,
87896         and xstrdup.  Instead, include "xalloc.h".
87897
87898         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
87899         unlocked-io.h.
87900         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
87901         Likewise.
87902         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
87903
87904         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
87905         Reported by Padraig Brady.
87906
87907         * lib/mkstemp.c: #undef mkstemp.
87908         Include config.h.
87909         (rpl_mkstemp): Rename from mkstemp.
87910         Protoize.
87911
87912 2001-11-16  Jim Meyering  <meyering@lucent.com>
87913
87914         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
87915         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
87916         determine the amount of total physical memory, use pstat_getstatic.
87917         HPUX-11 doesn't define _SC_PHYS_PAGES.
87918         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
87919         If sysconf couldn't be used to determine the amount of available
87920         physical memory, use both pstat_getstatic and pstat_getdynamic.
87921         Based on a patch from Bob Proulx.
87922
87923 2001-11-10  Jim Meyering  <meyering@lucent.com>
87924
87925         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
87926         (jm_PREREQ): Use it.
87927
87928 2001-11-09  Jim Meyering  <meyering@lucent.com>
87929
87930         * m4/jm-macros.m4: Require autoconf-2.52f.
87931         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
87932         Use these AC_-prefixed names, not the AM_-prefixed ones.
87933
87934         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
87935
87936 2001-11-05  Jim Meyering  <meyering@lucent.com>
87937
87938         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
87939
87940 2001-11-04  Jim Meyering  <meyering@lucent.com>
87941
87942         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
87943         $DEFS.
87944
87945 2001-11-03  Jim Meyering  <meyering@lucent.com>
87946
87947         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
87948         of AC_DEFUN.
87949
87950         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
87951         know the name of the variable in the macro definition.
87952
87953 2001-11-03  Jim Meyering  <meyering@lucent.com>
87954
87955         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
87956         in argmatch_to_argument call.
87957
87958         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
87959         argument.
87960
87961         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
87962         e.g., a fault due to an attempt to free a NULL pointer.
87963
87964 2001-11-01  Jim Meyering  <meyering@lucent.com>
87965
87966         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
87967         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
87968
87969 2001-11-01  Jim Meyering  <meyering@lucent.com>
87970
87971         * lib/dirfd.c, lib/dirfd.h: New files.
87972         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
87973
87974         * lib/hash.c (hash_print) [TESTING]: Clean up.
87975
87976 2001-10-22  Paul Eggert  <eggert@twinsun.com>
87977
87978         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
87979         to avoid a warning if -Wall.
87980
87981 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
87982
87983         * README: New file
87984         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
87985         (per RMS's instructions, this is now the canonical source)
87986         * lgpl/, gpl/: New directories.
87987
87988 2001-10-21  Paul Eggert  <eggert@twinsun.com>
87989
87990         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
87991
87992 2001-10-21  Jim Meyering  <meyering@lucent.com>
87993
87994         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
87995         this code would end up calling gettext even in packages built
87996         with --disable-nls.
87997         * lib/getopt.c (_): Likewise.
87998         * lib/regex.c (_): Likewise.
87999
88000 2001-10-20  Paul Eggert  <eggert@twinsun.com>
88001
88002         * m4/error.m4 (jm_PREREQ_ERROR):
88003         Do not invoke AC_CHECK_FUNCS with strerror_r, as
88004         AC_FUNC_STRERROR_R does that.
88005         Check for strerror declaration.
88006
88007         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
88008         are supposed to have them these days.
88009         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
88010         Merge changes from latest Autoconf CVS.
88011         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
88012         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
88013         POSIX decided to standardize on the int flavor of strerror_r.
88014
88015 2001-10-20  Paul Eggert  <eggert@twinsun.com>
88016
88017         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
88018         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
88019         Use strerror_r that is only a macro, even if it is not a function.
88020         (strerror): Check for HAVE_DECL_STRERROR before declaring.
88021         (private_strerror): Use prototypes, not old-style function definition.
88022         (print_errno_message): New function.
88023         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
88024         char*-flavored one.
88025         (error_tail, error, error_at_line): Use it.
88026
88027 2001-10-11  Jim Meyering  <meyering@lucent.com>
88028
88029         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
88030         and quote_n (1, ... to avoid clobbering a buffer.
88031
88032 2001-10-05  Jim Meyering  <meyering@lucent.com>
88033
88034         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
88035         hash-pjw.h.
88036         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
88037         * lib/hash-pjw.h: New file.
88038
88039 2001-09-30  Jim Meyering  <meyering@lucent.com>
88040
88041         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
88042         `struct fsstat' has the `f_fstypename' member.
88043         Use that to define FS_TYPE, which is now used to make
88044         the getfsstat link test tighter.
88045
88046 2001-09-30  Jim Meyering  <meyering@lucent.com>
88047
88048         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
88049         Include <sys/ucred.h>, for Apple Darwin.
88050         Include sys/mount.h and sys/fs_types.h only if available.
88051         (FS_TYPE): Define.
88052         (read_filesystem_list): Use FS_TYPE.
88053
88054 2001-09-29  Paul Eggert  <eggert@twinsun.com>
88055
88056         * lib/exclude.c (excluded_filename): 0 -> false, since it's
88057         a boolean context.
88058
88059 2001-09-29  Jim Meyering  <meyering@lucent.com>
88060
88061         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
88062         [one-argument getmntent function]): Include stdio.h before mntent.h.
88063         SunOS 4.1.x needs it for the declaration of `FILE'.
88064         Patch by Volker Borchert.
88065
88066         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
88067         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
88068         sys/fs_types.h, and make the link-test for getfsstat guard #include
88069         directives with appropriate #if HAVE_*_H tests so that we can
88070         detect getfsstat on Apple Darwin1.3.7 systems.
88071         Reported by Nelson Beebe.
88072         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
88073
88074 2001-09-28  Paul Eggert  <eggert@twinsun.com>
88075
88076         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
88077         #defines strtoimax.  Also treat the other strto* functions
88078         like strtoimax.
88079
88080         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
88081         Check for strtoul and strtoumax,
88082         as those declarations are made even in the signed case.
88083         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
88084         Likewise, for strtol and strtoimax.
88085
88086 2001-09-28  Paul Eggert  <eggert@twinsun.com>
88087
88088         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
88089         #defines strtoimax.  Also treat the other strto* functions
88090         like strtoimax.
88091
88092         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
88093         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
88094         (strtoimax, strtoumax): Do not declare if already defined as a macro.
88095
88096 2001-09-26  Jim Meyering  <meyering@lucent.com>
88097
88098         Most macros in unlocked-io.h had the wrong number of arguments.
88099         * lib/gen-uio: New script.
88100         (USE_UNLOCKED_IO): Define to 1 if not already defined.
88101         * lib/unlocked-io.hin: Remove file.
88102         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
88103         rather than trying to embed it here.
88104         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
88105         Reported by Padraig Brady.
88106
88107 2001-09-25  Volker Borchert  <bt@teknon.de>
88108
88109         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
88110         `result'.
88111
88112 2001-09-24  Jim Meyering  <meyering@lucent.com>
88113
88114         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
88115
88116 2001-09-23  Jim Meyering  <meyering@lucent.com>
88117
88118         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
88119         instead of the mere test for existence of mntent.h.  The latter
88120         would get a false-positive on AIX 3.4 systems.
88121         In the outer getmntent if-block, don't die if neither of the getmntent
88122         tests succeeds.  Instead, just fall through and continue with the
88123         remaining tests.
88124
88125 2001-09-23  Jim Meyering  <meyering@lucent.com>
88126
88127         * lib/mountlist.c: Remove useless parentheses in #if directives.
88128         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
88129         the deprecated MOUNTED symbol is no longer defined in mntent.h.
88130
88131 2001-09-22  Jim Meyering  <meyering@lucent.com>
88132
88133         * m4/gettext.m4: New file.  From gettext.
88134         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
88135         * m4/progtest.m4: Likewise
88136         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
88137         * m4/glibc21.m4: Likewise.
88138
88139         * m4/libintl.m4: Remove.  No longer used.
88140
88141 2001-09-22  Jim Meyering  <meyering@lucent.com>
88142
88143         * lib/localcharset.c: Update from latest gettext.
88144         * lib/config.charset: Likewise.
88145
88146 2001-09-20  Jim Meyering  <meyering@lucent.com>
88147
88148         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
88149         strtoimax.
88150         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
88151         strtoumax.
88152
88153 2001-09-20  Jim Meyering  <meyering@lucent.com>
88154
88155         * lib/xstrtol.c (strtoimax): Guard declaration with
88156         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
88157         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
88158         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
88159         (strtoumax): Likewise, for completeness (it wasn't necessary).
88160
88161 2001-09-17  Paul Eggert  <eggert@twinsun.com>
88162
88163         * lib/strtoimax.c (HAVE_LONG_LONG):
88164         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
88165         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
88166         to work around bug in IBM C compiler.
88167
88168 2001-09-17  Jim Meyering  <meyering@lucent.com>
88169
88170         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
88171         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
88172         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
88173         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
88174         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
88175         whenever the right hand side need not be expanded by the shell.
88176
88177 2001-09-16  Paul Eggert  <eggert@twinsun.com>
88178
88179         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
88180         library.  It's not correct, as some older glibcs are buggy.
88181         fnmatch wasn't fixed until glibc 2.2.
88182
88183         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
88184         special shell magic here.
88185
88186 2001-09-16  Jim Meyering  <meyering@lucent.com>
88187
88188         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
88189         * m4/jm-macros.m4: Require it.
88190
88191 2001-09-16  Jim Meyering  <meyering@lucent.com>
88192
88193         * lib/mkdir.c: New file.
88194
88195 2001-09-15  Jim Meyering  <meyering@lucent.com>
88196
88197         * m4/jm-macros.m4: Check for help2man.
88198
88199 2001-09-11  Jim Meyering  <meyering@lucent.com>
88200
88201         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
88202         The body, by Paul Eggert, was moved here from configure.in.
88203         * m4/jm-macros.m4: Require UTILS_HOST_OS.
88204
88205 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88206
88207         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
88208         (jm_PREREQ): Use it.
88209
88210 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88211
88212         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
88213         Use ssize_t, not int, to store result of readlink.
88214         Check for ssize_t overflow as well as size_t overflow,
88215         as POSIX says the result of readlink is implementation-defined
88216         when ssize_t overflows.
88217         Remove unnecessary cast to char*.
88218         Use free+malloc instead of realloc, as the storage doesn't need
88219         to be preserved and it's clearer and can be more efficient that way.
88220         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
88221         * lib/xreadlink.h (xreadlink): Update prototype.
88222
88223 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88224
88225         * lib/xgetcwd.c: Revert some of the previous change; intead,
88226         fix the HAVE_GETCWD_NULL code to behave more like the
88227         !HAVE_GETCWD_NULL code used to.
88228
88229         Include "xalloc.h".
88230         (xgetcwd): Do not return NULL when memory is exhausted; instead,
88231         invoke xalloc_die.
88232
88233 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88234
88235         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
88236         sys/param.h, as pathmax.h includes them.
88237
88238 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88239
88240         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
88241         (jm_PREREQ_XGETCWD): New macro.
88242
88243         * m4/getcwd.m4: New file.
88244
88245 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88246
88247         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
88248         like the HAVE_GETCWD_NULL code.
88249         Include pathmax.h if not HAVE_GETCWD.
88250         Do not include xalloc.h.
88251         (INITIAL_BUFFER_SIZE): New symbol.
88252         Do not use xmalloc / xrealloc, since the caller is responsible for
88253         handling errors.  Preserve errno around `free' during failure.
88254         Do not overrun buffer when using getwd.
88255
88256 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88257
88258         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
88259         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
88260         getcwd (NULL, 0).
88261
88262 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88263
88264         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
88265         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
88266         spotted by Jim Meyering.
88267
88268 2001-09-03  Jim Meyering  <meyering@lucent.com>
88269
88270         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
88271         failure.
88272
88273 2001-09-02  Jim Meyering  <meyering@lucent.com>
88274
88275         * lib/error.c: Update from GNU libc.
88276
88277 2001-09-01  Jim Meyering  <meyering@lucent.com>
88278
88279         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
88280         Used by df.
88281
88282 2001-09-01  Jim Meyering  <meyering@lucent.com>
88283
88284         * lib/xreadlink.c: New file.
88285         * lib/xreadlink.h: New file.
88286         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
88287         xreadlink.h.
88288
88289         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
88290         doesn't conflict with sparc Solaris 7's definition in
88291         /usr/include/sys/int_types.h.
88292
88293         * lib/exclude.c: Use `""', not `<>' to #include non-system header
88294         files.
88295         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
88296         and strncasecmp as r-values.  Unixware didn't have declarations.
88297
88298 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88299
88300         * lib/xstrtol.h: Add copyright notice.
88301         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
88302         LONGINT_INVALID_SUFFIX_CHAR.
88303
88304 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88305
88306         * lib/xstrtol.c (strtoimax): New decl.
88307
88308 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88309
88310         * lib/xgetcwd.c: Don't include pathmax.h.
88311         Include stdlib.h and unistd.h if available.
88312         Include xalloc.h.
88313         (xmalloc, xstrdup, free): Remove decls.
88314         (xgetcwd): Don't assume sizes fit in unsigned.
88315         Check for overflow when computing sizes.
88316         Simplify reallocation code.
88317
88318 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88319
88320         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
88321         a directory's st_size can have an arbitrary value, so the old
88322         usage could waste an arbitrary amount of memory.  All uses
88323         changed.
88324         * lib/savedir.h: Update prototype.
88325
88326 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88327
88328         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
88329
88330         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
88331         old strtoimax.c.
88332
88333         Also, make the following further changes to make this file's
88334         configuration more similar to that of strtol.c:
88335         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
88336         (strtoumax, uintmax_t, strtoull, strtol): Remove.
88337         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
88338         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
88339         changed to signed values.
88340
88341         And make the following changes as well:
88342         Fix copyright notice, as 1999 was missing.
88343         (verify): New macro.
88344         (strtoimax): Check sizes at compile-time, not run-time.
88345         Prefer strtol to strtoll if both work.
88346         (main): Remove; it was not that useful and was a pain to maintain.
88347
88348         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
88349
88350 2001-08-31  Jim Meyering  <meyering@lucent.com>
88351
88352         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
88353         Use an initial, malloc'd, buffer of length 128 rather than
88354         a statically allocated one of length 1024.
88355
88356 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88357
88358         Simplify code, partly by assuming autoconf 2.52 semantics.
88359
88360         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
88361
88362         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
88363         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
88364         All uses removed.
88365         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
88366         Move AC_REQUIRE to next-to-top level, to avoid confusion.
88367         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
88368         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
88369         jm_AC_HEADER_INTTYPES_H.
88370         * m4/jm-macros.m4 (jm_MACROS): Likewise.
88371
88372         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
88373
88374         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
88375         Quote first arg of AC_DEFUN.
88376         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
88377         since they are needed to parse the include file even if we need
88378         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
88379         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
88380         but with opposite signedness.
88381
88382 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88383
88384         Merge 'exclude' changes from tar 1.13.22.
88385         This fixes one or two unlikely storage allocation overflow bugs,
88386         but doesn't change user-visible behavior otherwise.
88387
88388 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88389
88390         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
88391         (jm_PREREQ_EXCLUDE): New macro.
88392
88393 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88394
88395         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
88396         tm to be declared.
88397
88398 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88399
88400         * lib/hash.c: Remove '2001' from copyright notice.
88401
88402 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88403
88404         * lib/full-write.h: New file.
88405         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
88406         * lib/full-write.c: Correct credits, as cccp.c no longer
88407         exists and anyway it was so heavily changed from the old cccp
88408         code as to be unrecognizable.  Include full-write.h.
88409         (full_write): Return size_t, with short writes meaning failure.
88410         All callers changed.  This fixes a bug with large buffers
88411         on 64-bit hosts.
88412         * lib/utime.c: Include full-write.h.
88413
88414 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88415
88416         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
88417         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
88418         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
88419         Include if available.
88420         (<xalloc.h>): Include
88421         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
88422         (verify): New macro.  Use it to verify that EXCLUDE macros do not
88423         collide with FNM macros.
88424         (struct patopts): New struct.
88425         (struct exclude): Use it, as exclude patterns now come with options.
88426         (new_exclude): Support above changes.
88427         (new_exclude, add_exclude_file):
88428         Initial size must now be a power of two to simplify overflow checking.
88429         (free_exclude, fnmatch_no_wildcards): New function.
88430         (excluded_filename): No longer requires options arg, as the options
88431         are determined by add_exclude.  Now returns bool, not int.
88432         (excluded_filename, add_exclude):
88433         Add support for the fancy new exclusion options.
88434         (add_exclude, add_exclude_file): Now takes int options arg.
88435         Check for arithmetic overflow when computing sizes.
88436         (add_exclude_file): xrealloc might modify errno, so don't
88437         realloc until after errno might be used.
88438
88439         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
88440         New macros.
88441         (free_exclude): New decl.
88442         (add_exclude, add_exclude_file): Now takes int options arg.
88443         (excluded_filename): No longer requires options arg, as the options
88444         are determined by add_exclude.  Now returns bool, not int.
88445
88446 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88447
88448         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
88449
88450 2001-08-27  Jim Meyering  <meyering@lucent.com>
88451
88452         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
88453
88454         * lib/version-etc.c (N_): Remove definition.
88455         Revert most of last change.
88456         Instead, simply don't mark the `Copyright...' string for translation.
88457         Based on advice from Paul Eggert.
88458
88459         * lib/strtoxmax.c: Tweak comment.
88460
88461 2001-08-26  Jim Meyering  <meyering@lucent.com>
88462
88463         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
88464
88465         * m4/xstrtoimax.m4: New file.
88466         * m4/xstrtoumax.m4: Add comments explaining why we
88467         AC_REPLACE_FUNCS(strtol).
88468
88469 2001-08-26  Jim Meyering  <meyering@lucent.com>
88470
88471         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
88472         of copyright with `%s' so translators don't get an untranslated
88473         message in 2002.
88474         (COPYRIGHT_YEAR): Define.
88475         (version_etc): Use fprintf rather than fputs.
88476         Suggestion from Ulrich Drepper.
88477
88478         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
88479
88480         * lib/strtoll.c: New file, from GNU libc.
88481         * lib/xstrtoimax.c: New file.
88482
88483         * lib/xstrtol.h: Add xstrtoimax.
88484         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
88485         * lib/strtoimax.c: New file.  Likewise, but first define
88486         STRTOUXMAX_SIGNED.
88487
88488         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
88489         ...
88490         * lib/strtoxmax.c: ... then renamed to this.
88491
88492 2001-08-18  Paul Eggert  <eggert@twinsun.com>
88493
88494         * m4/inttypes.m4: Add AC_PREREQ(2.13).
88495         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
88496         (jm_AC_TYPE_INTMAX_T): New macro.
88497         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
88498
88499         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
88500
88501         * m4/longlong.m4: Renamed from ulonglong.m4.
88502         * m4/inttypes.m4: Renamed from inttypes_h.m4.
88503         * m4/uintmax_t.m4: Removed.
88504
88505 2001-08-13  Paul Eggert  <eggert@twinsun.com>
88506
88507         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
88508         Port to Solaris 8, where 'sed' requires a space after the 'r'
88509         command, and where sh dislikes "$/".  Clean up the spacing a bit.
88510         Redirect output to $tmp just once.
88511
88512 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
88513
88514         * lib/addext.c (<errno.h>): Include.
88515         (errno): Declare if not defined.
88516         (addext): Work correctly when pathconf returns -1 and leaves
88517         errno alone because there is no limit.  Also, work even if
88518         pathconf returns a value greater than SIZE_MAX.
88519
88520 2001-08-12  Jim Meyering  <meyering@lucent.com>
88521
88522         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
88523         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
88524         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
88525         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
88526         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
88527         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
88528         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
88529         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
88530         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
88531         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
88532         utime.m4, utimes.m4, xstrtoumax.m4:
88533         Quote the first argument in each use of AC_DEFUN.
88534
88535 2001-08-12  Jim Meyering  <meyering@lucent.com>
88536
88537         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
88538         Simply `return getcwd (NULL, 0);'.
88539         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
88540         Use 1300 as initial value for length, not PATH_MAX.
88541
88542         * lib/pathmax.h: Clean up cpp syntax.
88543
88544 2001-08-12  Jim Meyering  <meyering@lucent.com>
88545
88546         * lib/gettimeofday.c: New file.
88547         * lib/gtod.h: New file.
88548         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
88549
88550 2001-08-05  Jim Meyering  <meyering@lucent.com>
88551
88552         * m4/jm-macros.m4: Require autoconf-2.52.
88553
88554 2001-08-04  Jim Meyering  <meyering@lucent.com>
88555
88556         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
88557         stmt, to get in sync with glibc.
88558
88559 2001-08-03  Paul Eggert  <eggert@twinsun.com>
88560
88561         The following changes are from gettext 0.10.39 as maintained by
88562         Bruno Haible.
88563
88564         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
88565         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
88566         with inverted sense.  All uses changed.
88567
88568         * lib/mbswidth.c: Don't include <limits.h>.
88569         Include <stdlib.h> and <string.h> unconditionally.
88570         (iswcntrl, mbsinit, ISCNTRL): New macros.
88571         (mbsnwidth): Use K&R style function declarations.
88572         Don't bother checking for MB_LEN_MAX == 1, since the compiler
88573         can optimize it when MB_CUR_MAX == 1.
88574         The width of control characters is zero, not 1.
88575
88576 2001-08-03  Paul Eggert  <eggert@twinsun.com>
88577
88578         The following changes are from gettext 0.10.39 as maintained by
88579         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
88580
88581         * m4/codeset.m4: Upgrade to serial AM1.
88582         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
88583         all uses changed.  Quote first arg of AC_DEFUN.
88584         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
88585
88586         * m4/iconv.m4: Upgrade to serial AM2.
88587         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
88588         Add --with-libconv-prefix.
88589         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
88590         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
88591         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
88592         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
88593         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
88594
88595         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
88596         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
88597         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
88598         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
88599         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
88600         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
88601         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
88602         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
88603         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
88604
88605         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
88606         string.h any more.
88607
88608         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
88609         not the default value.
88610
88611         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
88612         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
88613         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
88614         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
88615         Also check for iswcntrl, used for wcwidth fallback.
88616         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
88617         to Autoconf 2.13.
88618
88619 2001-08-03  Jim Meyering  <meyering@lucent.com>
88620
88621         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
88622         as it was in the original.  Reported by Paul Eggert.
88623
88624 2001-07-16  Jim Meyering  <meyering@lucent.com>
88625
88626         * m4/gettimeofday.m4: New file.
88627         Prompted by a report from Bernhard Baehr.
88628
88629 2001-07-15  Jim Meyering  <meyering@lucent.com>
88630
88631         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
88632         stuff. Now it's in ../Makefile.cfg.
88633
88634 2001-07-15  Jim Meyering  <meyering@lucent.com>
88635
88636         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
88637         (BUILT_SOURCES): Add unlocked-io.h.
88638         (io_functions): Define.
88639         (unlocked-io.h): New rule.
88640         (DISTCLEANFILES): Add unlocked-io.h.
88641         (all-local): Depend on unlocked-io.h, to ensure it is created.
88642
88643         * lib/unlocked-io.hin: New file
88644
88645         * lib/regex.c: Update from glibc.
88646
88647 2001-07-05  Jim Meyering  <meyering@lucent.com>
88648
88649         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
88650         recommendation.
88651         (libfetish_a_SOURCES): Put all .h files here instead.
88652         Remove a thus-exposed (better checks in automake) duplicate and
88653         two unnecessary .h files.
88654
88655 2001-07-04  Jim Meyering  <meyering@lucent.com>
88656
88657         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
88658         that generates jm-glibc-io.m4 so that it doesn't trigger any make
88659         distcheck failure.
88660
88661 2001-07-02  Jim Meyering  <meyering@lucent.com>
88662
88663         The following changes were prompted by suggestions from Bruno Haible.
88664
88665         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
88666         is now generated.
88667         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
88668         definition of EXTRA_DIST.
88669         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
88670         ensure that the generated file is created/updated whenever the list
88671         of $(unlocked_functions) is changed.
88672         (jm-glibc-io.m4): New rule.
88673         (unlocked-io.h): New rule -- currently unused.
88674
88675 2001-06-24  Jim Meyering  <meyering@lucent.com>
88676
88677         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
88678         unmatched right bracket, rather than kludging it with an extra,
88679         falsely-matching quote in a comment.  Patch by Akim Demaille.
88680
88681 2001-06-11  Jim Meyering  <meyering@lucent.com>
88682
88683         * lib/regex.c: Update from GNU libc.
88684
88685 2001-05-27  Jim Meyering  <meyering@lucent.com>
88686
88687         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
88688         Check for ut_type in struct utmp.
88689
88690 2001-05-27  Jim Meyering  <meyering@lucent.com>
88691
88692         * lib/readutmp.h (UT_TYPE): Define.
88693
88694 2001-05-24  Jim Meyering  <meyering@lucent.com>
88695
88696         * lib/argmatch.c: Include "quote.h".
88697         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
88698         quote function.  Reported by Göran Uddeborg.
88699
88700 2001-05-22  Jim Meyering  <meyering@lucent.com>
88701
88702         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
88703         now that we use the package-supplied version unconditionally.
88704         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
88705
88706 2001-05-21  Jim Meyering  <meyering@lucent.com>
88707
88708         * m4/regex.m4: Change a couple backticks to single quotes to avoid
88709         shell syntax errors.
88710
88711 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88712
88713         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
88714
88715 2001-05-20  Paul Eggert  <eggert@twinsun.com>
88716
88717         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
88718         Don't bother to check library strftime, since
88719         we'll be using our own my_strftime function anyway.
88720         Define my_strftime instead of strftime.
88721
88722 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
88723
88724         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
88725         which is not yet declared.
88726
88727 2001-05-15  Jim Meyering  <meyering@lucent.com>
88728
88729         * m4/regex.m4: Use proper quoting so brackets appear in the test
88730         program.
88731         Reported by, and with help from, Bruno Haible.
88732
88733 2001-05-13  Jim Meyering  <meyering@lucent.com>
88734
88735         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
88736         undefined.
88737
88738 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88739
88740         dirname code cleanup.  base_name now behaves more compatibly
88741         with POSIX basename when given file names that have trailing
88742         slashes, and similarly for dir_name.  Add new primitives
88743         base_len and dir_len.  Put the directory-name-related decls
88744         into dirname.h.
88745
88746         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
88747         * lib/backupfile.c (base_name): Likewise.
88748         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
88749         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
88750         * lib/makepath.c (strip_trailing_slashes): Likewise.
88751         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
88752         ISSLASH): Likewise.
88753         * lib/rename.c (strip_trailing_slashes): Likewise.
88754         * lib/same.c (base_name): Likewise.
88755         * lib/stripslash.c (ISSLASH): Likewise.
88756
88757         * lib/addext.c: Include <dirname.h> after size_t is defined.
88758         * lib/backupfile.c: Likewise.
88759
88760         * lib/addext.c (addext): Use base_len to trim redundant
88761         trailing slashes instead of doing it ourselves.
88762         But do not trim the last slash if it is not redundant.
88763
88764         * lib/backupfile.c (find_backup_file_name,
88765         max_backup_version): Use base_len instead of rolling it ourselves.
88766         Handle the case of "" and (on DOS) "C:" correctly.
88767
88768         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
88769         needed. Include <string.h>, <dirname.h>.
88770         (base_name): Allow file names ending in slashes, other than names
88771         that are all slashes.  In this case, return the basename followed
88772         by the slashes.  This is more general, and can be used in places
88773         where the original base_name purposely had an assertion failure.
88774         (base_len): New function.
88775
88776         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
88777         Do not include <assert.h>; no longer needed.
88778         Include xalloc.h.
88779         (memrchr): Remove decl.
88780         (dir_name_r): Remove.
88781         (dir_len): Renamed from dirlen.  All callers changed.
88782         Rewrite in terms of base_name, for simplicity and consistency.
88783         (dir_name): Never return NULL.  All callers changed.
88784         Do not include <stdlib.h> in test program; no longer needed.
88785         return 0; is fine for test program.
88786
88787         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
88788         New macros.
88789         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
88790
88791         * lib/path-concat.c (path_concat): Use base_len to compute
88792         base length, not strlen; this means we cannot rely on memcpy
88793         to null-terminate.
88794
88795         * lib/same.c (STREQ): Remove.
88796         (same_name): Handle the case where the basename ends in trailing '/'.
88797
88798         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
88799         a slash was stripped.  Do not strip the last slash after a
88800         file system prefix.
88801
88802 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88803
88804         * lib/Makefile.am (libfetish_a_SOURCES):
88805         Add strftime.c, since we now compile it on all hosts.
88806
88807         * lib/strftime.c (my_strftime):
88808         Define to nstrftime if emacs, but only if my_strftime is not defined.
88809         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
88810         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
88811         Add one more extra argument: a nanoseconds value.
88812         All uses changed.
88813         (ns): New macro.
88814         (my_strftime function): Add %N format.
88815         (emacs_strftimeu): Renamed from emacs_strftime,
88816         with extra ut argument.
88817
88818 2001-05-09  Paul Eggert  <eggert@twinsun.com>
88819
88820         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
88821
88822 2001-04-21  Jim Meyering  <meyering@lucent.com>
88823
88824         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
88825         doesn't interfere.
88826
88827 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88828
88829         * m4/ftruncate.m4: Check for chsize.
88830         Link with ftruncate.o unconditionally if ftruncate is missing.
88831         This was required when cross-compiling to i586-mingw32msvc.
88832
88833 2001-04-08  Jim Meyering  <meyering@lucent.com>
88834
88835         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
88836         recomputed; that's necessary when the offset spans a DST transition.
88837         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
88838
88839 2001-04-02  Jim Meyering  <meyering@lucent.com>
88840
88841         * lib/regex.h, regex.c: Update from GNU libc.
88842
88843 2001-03-24  Jim Meyering  <meyering@lucent.com>
88844
88845         * m4/jm-macros.m4: Require autoconf-2.49d.
88846
88847 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
88848
88849         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
88850
88851 2001-03-19  Paul Eggert  <eggert@twinsun.com>
88852
88853         * lib/version-etc.c (version_etc_copyright): Update to 2001.
88854
88855 2001-03-17  Jim Meyering  <meyering@lucent.com>
88856
88857         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
88858         now that the version in autoconf is equivalent.
88859         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
88860
88861         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
88862         Suggestion from Akim Demaille.
88863
88864         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
88865         (jm_PREREQ_TEMPNAME): New function.
88866
88867 2001-03-16  Paul Eggert  <eggert@twinsun.com>
88868
88869         * lib/tempname.c (uint64_t): Define to uintmax_t if
88870         not defined, and if UINT64_MAX is not defined.
88871         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
88872         Reported by John David Anglin.
88873
88874 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
88875
88876         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
88877         resolve alias if codeset is empty.
88878         * lib/config.charset (BeOS): Use wildcard syntax.
88879
88880 2001-03-13  Jim Meyering  <meyering@lucent.com>
88881
88882         * lib/path-concat.c (path_concat)
88883         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
88884         concatenating e.g., `C:' and `foo'.
88885         From Bruno Haible.
88886
88887 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88888
88889         * lib/localcharset.c (locale_charset): Don't use
88890         setlocale(LC_CTYPE,NULL). Don't return NULL.
88891         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
88892
88893 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88894
88895         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
88896         support for DOS/DJGPP.
88897
88898 2001-03-01  Paul Eggert  <eggert@twinsun.com>
88899
88900         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
88901         lacks mkstemp.  Compile our own tempname.c if we compile our own
88902         mkstemp.c, as mkstemp relies on tempname.
88903
88904 2001-03-01  Jim Meyering  <meyering@lucent.com>
88905
88906         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
88907         AH_VERBATIM really does output its argument verbatim.
88908
88909 2001-02-28  Paul Eggert  <eggert@twinsun.com>
88910
88911         * lib/Makefile.am (libfetish_a_SOURCES):
88912         Add dup-safer.c, fopen-safer.c.
88913         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
88914
88915         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
88916         * lib/unistd-safer.h: New files.
88917
88918 2001-02-25  Paul Eggert  <eggert@twinsun.com>
88919
88920         The mkstemp replacement is taken from glibc 2.2.2, with some
88921         portability fixes for use outside glibc, as follows:
88922
88923         * lib/tempname.c (struct_stat64): New macro.
88924         (direxists, __gen_tempname): Use it.
88925         This avoids a portability problem with Solaris 8.
88926
88927         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
88928         (<stddef.h>, <stdint.h>, <string.h>):
88929         Include only if STDC_HEADERS || _LIBC.
88930         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
88931         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
88932         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
88933         (__set_errno): Define this macro if <errno.h> doesn't.
88934         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
88935         Define these macros if <stdio.h> doesn't.
88936         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
88937         Define these macros if <sys/stat.h>
88938         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
88939         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
88940         __xstat64): Define if not _LIBC.
88941         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
88942         (__gen_tempname): Invoke gettimeofday only if
88943         HAVE_GETTIMEOFDAY || _LIBC;
88944         otherwise, fall back on plain "time".
88945         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
88946
88947         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
88948
88949         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
88950
88951 2001-02-18  Paul Eggert  <eggert@twinsun.com>
88952
88953         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
88954
88955 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88956
88957         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
88958         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
88959         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
88960         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88961
88962 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88963
88964         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
88965         Remove workaround macros for hosts that have mbrtowc but not
88966         mbstate_t, as we now insist on proper declarations for both
88967         before using mbrtowc.
88968
88969 2001-02-17  Jim Meyering  <meyering@lucent.com>
88970
88971         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
88972         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
88973         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
88974         UnixWare 7.1.1.
88975
88976         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
88977         rather than AC_CACHE_VAL.
88978
88979 2001-02-17  Jim Meyering  <meyering@lucent.com>
88980
88981         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
88982         around included file name.
88983
88984         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
88985
88986         * lib/strftime.c: Update from GNU libc (the only changes were to
88987         comments).
88988
88989 2001-02-17  Jim Meyering  <meyering@lucent.com>
88990
88991         * lib/regex.c: Update from libc.
88992
88993 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
88994
88995         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
88996         clash.
88997
88998 2001-02-16  Paul Eggert  <eggert@twinsun.com>
88999
89000         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
89001         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
89002         Reported by Mark Hounschell via Paul Eggert.
89003
89004 2001-02-07  Jim Meyering  <meyering@lucent.com>
89005
89006         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
89007
89008 2001-02-05  Jim Meyering  <meyering@lucent.com>
89009
89010         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
89011         it includes the patch required for `large file' support with at least
89012         HP-UX's 10.20 /bin/cc.
89013
89014 2001-02-03  Jim Meyering  <meyering@lucent.com>
89015
89016         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
89017         AS_IF, now that it works once again (mysteriously).
89018         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
89019
89020 2001-01-30  Jim Meyering  <meyering@lucent.com>
89021
89022         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
89023         * m4/chown.m4: Rename conftestchown to conftest.chown.
89024         * m4/rename.m4: s/conftestdir/conftest.d1/ and
89025         s/conftestdir2/conftest.d2/.
89026         * m4/utimes.m4: s/conftestdata/conftest.data/
89027         Inspired by Pavel Roskin's change in autoconf.
89028
89029 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
89030
89031         * lib/config.charset: Update for FreeBSD 4.2.
89032
89033 2001-01-27  Jim Meyering  <meyering@lucent.com>
89034
89035         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
89036         a use of AS_IF.
89037         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
89038
89039 2001-01-26  Jim Meyering  <meyering@lucent.com>
89040
89041         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
89042         quotearg.c includes it.
89043
89044 2001-01-26  Jim Meyering  <meyering@lucent.com>
89045
89046         * lib/quotearg.c: Include stddef.h.
89047         * lib/quote.c: Include stddef.h.
89048         Reported by Axel Kittenberger.
89049
89050         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
89051         line in double quotes so that it evokes a better diagnostic.
89052         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
89053         Reported by Axel Kittenberger.
89054
89055 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
89056
89057         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
89058         as if it was a `charset'.
89059
89060 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
89061
89062         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
89063         has const.
89064
89065 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
89066
89067         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
89068         to avoid a warning.  Add back 'const' to inptr.
89069
89070 2001-01-20  Jim Meyering  <meyering@lucent.com>
89071
89072         Be sure that headers are checked before used in code compiled
89073         for the type checks.
89074         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
89075         In place of that, invoke jm_CHECK_ALL_TYPES.
89076         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
89077         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
89078         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
89079         The check for ssize_t was mistakenly run before the test for unistd.h.
89080
89081         The configure-time check for stdbool.h was missing.
89082         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
89083         (jm_PREREQ_HASH): New function.
89084
89085 2001-01-17  Jim Meyering  <meyering@lucent.com>
89086
89087         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
89088         for autoconf-2.49c.
89089         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
89090
89091 2001-01-16  Jim Meyering  <meyering@lucent.com>
89092
89093         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
89094         From Bruno Haible.
89095
89096 2001-01-14  Jim Meyering  <meyering@lucent.com>
89097
89098         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
89099         foo and bar.  Create conftestdir/ in the script, not in the C code.
89100         Remove directories in the script, not in the C code.
89101         Remove conftestdir{,2} before trying to create the directory.
89102         Make the entire configure script fail if the mkdir fails.
89103
89104 2001-01-14  Jim Meyering  <meyering@lucent.com>
89105
89106         * lib/rename.c: New file.  From Volker Borchert.
89107         Include stdlib.h, string.h or strings.h, and xalloc.h.
89108         Use strip_trailing_slashes rather than open-coding it.
89109
89110 2001-01-03  Paul Eggert  <eggert@twinsun.com>
89111
89112         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
89113
89114 2001-01-03  Jim Meyering  <meyering@lucent.com>
89115
89116         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
89117         of local `inptr' to avoid warning with some system declarations of
89118         iconv.
89119
89120 2001-01-02  Volker Borchert  <bt@teknon.de>
89121
89122         * m4/rename.m4: New file.
89123         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
89124
89125 2001-01-01  Jim Meyering  <meyering@lucent.com>
89126
89127         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
89128         even on systems with utmpx.h.  It's necessary for the declaration of
89129         utmp's ut_user member.  Reported by Andreas Jaeger.
89130
89131         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
89132         available. They are required for the declarations of getgrgid and
89133         getpwuid resp.
89134         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
89135         Reported by Andreas Jaeger.
89136
89137 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
89138
89139         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
89140         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
89141         so `make install' also works in VPATH builds.
89142
89143 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
89144
89145         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
89146         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
89147         can be used in subdirectories.
89148
89149 2000-12-29  Paul Eggert  <eggert@twinsun.com>
89150
89151         * lib/modechange.c: Do not assume that mode_t uses the
89152         traditional octal encoding.  E.g. "chmod 1 FOO" should set
89153         the other-execute bit of FOO even if S_IXOTH != 1.
89154
89155         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
89156         WOTH, XOTH, ALLM): New macros.
89157         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
89158          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
89159         Use them.
89160         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
89161         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
89162         (mode_compile):
89163         No need to use uintmax_t; unsigned long is long enough.
89164         Don't bother to get suffix since we don't use it.
89165
89166 2000-12-26  Jim Meyering  <meyering@lucent.com>
89167
89168         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
89169         better with autoheader.
89170
89171 2000-12-24  Jim Meyering  <meyering@lucent.com>
89172
89173         * lib/hash.c (is_prime): Return explicit boolean values.
89174         (hash_get_first): Return NULL to appease Irix5.6's 89.
89175         Reported by Nelson Beebe.
89176
89177 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
89178
89179         * lib/localcharset.c (locale_charset): Add support for Win32.
89180
89181 2000-12-18  Paul Eggert  <eggert@twinsun.com>
89182
89183         * lib/physmem.h, lib/physmem.c: New files.
89184
89185         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
89186         (noinst_HEADERS): Add physmem.h.
89187
89188         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
89189         't' for compatibility with Solaris 8 sort.
89190
89191 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
89192
89193         * lib/config.charset: Add support for BeOS.
89194
89195 2000-12-17  Jim Meyering  <meyering@lucent.com>
89196
89197         * m4/dos.m4 (jm_AC_DOS): New file and macro.
89198         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
89199
89200 2000-12-16  Jim Meyering  <meyering@lucent.com>
89201
89202         This bug had a serious impact on chown: `chown N:M FILE' (for integer
89203         N and M) would have treated it like `chown N:N FILE'.
89204
89205         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
89206
89207 2000-12-16  Jim Meyering  <meyering@lucent.com>
89208
89209         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
89210         SHELLS_FILE to a file name that's useful on djgpp systems.
89211         Include stdlib.h.
89212         (ADDITIONAL_DEFAULT_SHELLS): Define.
89213         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
89214         Based mostly on a patch from Prashant TR.
89215
89216 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
89217
89218         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
89219         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
89220         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
89221
89222 2000-12-08  Andreas Schwab  <schwab@suse.de>
89223
89224         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
89225         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
89226
89227 2000-12-07  Jim Meyering  <meyering@lucent.com>
89228
89229         * lib/stripslash.c (ISSLASH): Define.
89230         (strip_trailing_slashes): Use ISSLASH rather than comparing against
89231         `/'.
89232         From Prashant TR.
89233
89234         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
89235         (dir_name_r): Declare this function as static.
89236         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
89237         manifest itself on a name containing a mix of slashes and
89238         backslashes.
89239         Make this function work with names starting with a DOS-style
89240         drive letter and colon prefix.
89241         (dir_name): Append `.' if necessary.
89242         Based mostly on patches from Prashant TR and Eli Zaretskii.
89243
89244         * lib/dirname.h (dir_name_r): Remove prototype.
89245
89246 2000-12-06  Paul Eggert  <eggert@twinsun.com>
89247
89248         * m4/off_t-format.m4: Remove this file.
89249         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
89250
89251 2000-12-06  Jim Meyering  <meyering@lucent.com>
89252
89253         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
89254         replacement strtoull, we may well need the replacement strtoul, too.
89255         Check for declarations of strtoul and strtoull.
89256         Check for strtol.  Mainly as a cue to cause automake to include
89257         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
89258         Check for limits.h -- strtol.c needs it.
89259
89260 2000-12-05  Jim Meyering  <meyering@lucent.com>
89261
89262         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
89263
89264 2000-12-04  Jim Meyering  <meyering@lucent.com>
89265
89266         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
89267         Also include memory.h, stdlib.h, unistd.h if appropriate.
89268         Reported by Andreas Jaeger (conflicting declaration of malloc).
89269
89270 2000-12-02  Jim Meyering  <meyering@lucent.com>
89271
89272         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
89273         * m4/jm-macros.m4 (jm_MACROS): require it.
89274
89275 2000-12-02  Jim Meyering  <meyering@lucent.com>
89276
89277         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
89278
89279 2000-12-01  Paul Eggert  <eggert@twinsun.com>
89280
89281         * lib/memrchr.c: Include <config.h> before any system include file.
89282
89283 2000-11-30  Jim Meyering  <meyering@lucent.com>
89284
89285         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
89286
89287 2000-11-30  Jim Meyering  <meyering@lucent.com>
89288
89289         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
89290
89291 2000-11-29  Paul Eggert  <eggert@twinsun.com>
89292
89293         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
89294
89295 2000-11-26  Jim Meyering  <meyering@lucent.com>
89296
89297         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
89298
89299 2000-11-22  Paul Eggert  <eggert@twinsun.com>
89300
89301         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
89302         size of (size_t) -1; it's not portable.
89303
89304 2000-11-17  Jim Meyering  <meyering@lucent.com>
89305
89306         * lib/strstr.c: Update from GNU libc.
89307
89308 2000-11-17  Akim Demaille  <akim@epita.fr>
89309
89310         * lib/obstack.h: Formatting changes.
89311         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
89312         prevent type checking.
89313         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
89314         cast the value to (void *): assigning a `foo *' to a `void *'
89315         variable is valid.
89316         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
89317
89318 2000-11-16  Jim Meyering  <meyering@lucent.com>
89319
89320         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
89321
89322 2000-11-11  Jim Meyering  <meyering@lucent.com>
89323
89324         * lib/error.c: Add a couple #includes, merging from GNU libc version.
89325
89326 2000-11-10  Jim Meyering  <meyering@lucent.com>
89327
89328         * lib/obstack.h: Update from GNU libc.
89329         * lib/obstack.c: Likewise.
89330
89331 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
89332
89333         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
89334
89335 2000-11-06  Paul Eggert  <eggert@twinsun.com>
89336
89337         * lib/getusershell.c (setusershell): Use rewind rather than
89338         fseek/fseeko, to avoid configuration hassles with fseeko.
89339         Don't bother opening SHELLS_FILE if shellstream is NULL;
89340         it's not necessary.
89341
89342 2000-11-05  Jim Meyering  <meyering@lucent.com>
89343
89344         * lib/makepath.h (make_dir): Declare.
89345         * lib/makepath.c (make_dir): Remove `static' attribute.
89346         Tweak a comment.
89347
89348 2000-11-04  Jim Meyering  <meyering@lucent.com>
89349
89350         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
89351
89352 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
89353
89354         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
89355         last one in a bucket, advance to the next bucket.
89356
89357 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
89358
89359         * lib/fnmatch.c: Do not comment out all the code if we are using
89360         the GNU C library, because in some cases we are replacing buggy
89361         code in the GNU C library itself.
89362
89363 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
89364
89365         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
89366         (regex_compile): Catch bogus \(\1\).
89367
89368 2000-10-30  Paul Eggert  <eggert@twinsun.com>
89369
89370         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
89371         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
89372         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
89373
89374 2000-10-30  Paul Eggert  <eggert@twinsun.com>
89375
89376         * lib/error.h, getline.h, modechange.h:
89377         Remove "2000" from Copyright line, as the file hasn't been
89378         changed this year other than in the copyright notice.
89379
89380         * lib/xalloc.h: Add "2000" to Copyright line, as this file
89381         was changed this year.
89382
89383 2000-10-29  Jim Meyering  <meyering@lucent.com>
89384
89385         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
89386         renaming.
89387         * m4/ls-mntd-fs.m4: Likewise
89388
89389 2000-10-29  Jim Meyering  <meyering@lucent.com>
89390
89391         * lib/xstat.in: Fix grammar in comment.
89392
89393 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
89394
89395         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
89396         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
89397         doesn't define __restrict_arr.
89398
89399 2000-10-28  Jim Meyering  <meyering@lucent.com>
89400
89401         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
89402         (jm_PREREQ_MEMCHR): New function.
89403
89404 2000-10-28  Jim Meyering  <meyering@lucent.com>
89405
89406         * lib/memchr.c: Update from libc.
89407         Adjust for portability:
89408         [HAVE_STDLIB_H]: Include stdlib.h.
89409         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
89410         Undef __memchr, too.
89411         [!weak_alias]: Define __memchr to memchr.
89412
89413         * lib/regex.c: Update from libc.
89414         * lib/regex.h: Likewise.
89415         * lib/getopt1.c: Likewise.
89416         * lib/memcmp.c: Likewise.
89417
89418         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
89419         Avoid using fseek, when possible -- it's broken by design.
89420         Patch by Ulrich Drepper.
89421
89422 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
89423
89424         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
89425         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
89426         Giving in to popular pressure to shut up the compiler with casts.
89427
89428 2000-10-26  Jim Meyering  <meyering@lucent.com>
89429
89430         * lib/strftime.c: Update from libc.
89431
89432 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
89433
89434         * regex.c: More `unsigned char' -> `re_char' changes.
89435         Also change several `int' into `re_wchar_t'.
89436         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
89437         (PUSH_FAILURE_POINTER): Don't cast any more.
89438         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
89439         We want GCC to complain, since this piece of code makes
89440         re_match non-reentrant, which *should* be fixed.
89441         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
89442         (EXTEND_BUFFER): Use RETALLOC.
89443         (SET_LIST_BIT): Don't cast.
89444         (re_wchar_t): New type.
89445         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
89446         that those two functions will always properly return.
89447         (IMMEDIATE_QUIT_CHECK): Cast to void.
89448         (analyse_first): Use recursion rather than an explicit stack.
89449         (re_compile_fastmap): Can't fail anymore.
89450         (re_search_2): Don't check re_compile_fastmap for failure.
89451         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
89452         Now also sets the new value (passed in a new argument).
89453         (re_match_2_internal): Use it.
89454         Also, use a new var `reg' of type size_t when looping through regs
89455         rather than reuse the inappropriate `mcnt'.
89456
89457 2000-10-25  Jim Meyering  <meyering@lucent.com>
89458
89459         * lib/obstack.c: Update from libc.
89460
89461 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
89462
89463         * regex.c (regex_compile): Change the way of handling a range from
89464         a char less than 256 to a char not less than 256.
89465
89466 2000-10-24  Andrew Innes  <andrewi@gnu.org>
89467
89468         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
89469         NT-Emacs only.
89470         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
89471         so that re_search functions only quit when callers expect them to.
89472
89473 2000-10-23  Jim Meyering  <meyering@lucent.com>
89474
89475         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
89476         wrong.  That set_locale call must not have any side effects.
89477         From Paul Eggert.
89478
89479 2000-10-22  Jim Meyering  <meyering@lucent.com>
89480
89481         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
89482         [CYCLIC]: Remove now-unused definition.
89483
89484         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
89485         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
89486         Suggestion from Ulrich Drepper.
89487
89488 2000-10-21  Jim Meyering  <meyering@lucent.com>
89489
89490         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
89491         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
89492         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
89493
89494 2000-10-21  Jim Meyering  <meyering@lucent.com>
89495
89496         * lib/dirname.c (memrchr): Declare if necessary.
89497         (dir_name): Remove the restriction that there be no
89498         trailing slashes.  Now, this code skips past them, effectively
89499         ignoring them.
89500         [TEST_DIRNAME] (main): New unit tests.
89501
89502         * lib/memrchr.c: New file from GNU libc.
89503         Undef __memrchr, too.
89504         [!weak_alias]: Define __memrchr to memrchr.
89505         Guard weak_alias use with `#ifdef weak_alias'.
89506
89507 2000-10-21  Jim Meyering  <meyering@lucent.com>
89508
89509         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
89510         (dir_name): Use dir_name_r.
89511         * lib/dirname.h (dir_name_r): Declare it.
89512
89513 2000-10-17  Jim Meyering  <meyering@lucent.com>
89514
89515         * lib/quote.h (PARAMS): Define and use.
89516         Reported by Akim Demaille.
89517
89518         * lib/getopt.c: Update from libc.
89519
89520 2000-10-16  Jim Meyering  <meyering@lucent.com>
89521
89522         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
89523         setlocale.
89524         From Jan Fedak.
89525
89526 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
89527
89528         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
89529
89530 2000-09-25  Jim Meyering  <meyering@lucent.com>
89531
89532         * lib/md5.h (rol): Define (from GnuPG).
89533
89534         * lib/sha.c: Give credit (GnuPG) where due.
89535         (M): Use rol rather than open-coding it.
89536         Add a FIXME comment.
89537
89538 2000-09-21  Jim Meyering  <meyering@lucent.com>
89539
89540         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
89541         Reported by Michael Stone.
89542
89543 2000-09-20  Jim Meyering  <meyering@lucent.com>
89544
89545         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
89546         (noinst_HEADERS): Add sha.h.
89547         Based on code from Scott G. Miller and from GnuPG.
89548
89549 2000-09-18  Jim Meyering  <meyering@lucent.com>
89550
89551         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
89552         LIBS. Otherwise, everyone ends up linking with -lelf for some
89553         configurations.
89554         Reported by Mike Stone.
89555
89556 2000-09-15  Jim Meyering  <meyering@lucent.com>
89557
89558         * lib/regex.c: Update from libc.
89559
89560 2000-09-10  Jim Meyering  <meyering@lucent.com>
89561
89562         * lib/getopt.c (_getopt_internal): Update from glibc.
89563
89564 2000-09-09  Jim Meyering  <meyering@lucent.com>
89565
89566         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
89567         think it should be used as a general replacement for isascii.
89568         * lib/fnmatch.c: Likewise.
89569         * lib/mbswidth.c: Likewise
89570         * lib/regex.c: Likewise.
89571
89572         Don't use atoi.
89573         * lib/userspec.c: Include sys/param.h and limits.h.
89574         Include xstrtol.h.
89575         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
89576         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
89577         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
89578         UID, GID.  Check range.
89579
89580 2000-09-06  Jim Meyering  <meyering@lucent.com>
89581
89582         * lib/getopt.c (_getopt_internal): Update from glibc.
89583
89584 2000-08-30  Jim Meyering  <meyering@lucent.com>
89585
89586         * lib/strftime.c: Merge in changes from GNU libc.
89587
89588 2000-08-26  Jim Meyering  <meyering@lucent.com>
89589
89590         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
89591         * m4/fpending.m4: New file.
89592
89593 2000-08-26  Jim Meyering  <meyering@lucent.com>
89594
89595         * lib/closeout.c: Include "__fpending.h".
89596         (close_stdout_status): Return right away if there's nothing to flush.
89597
89598         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
89599         * lib/__fpending.c: New file.
89600         * lib/__fpending.h: New file.
89601
89602 2000-08-20  Jim Meyering  <meyering@lucent.com>
89603
89604         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
89605         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
89606         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
89607
89608 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
89609
89610         Improve fileutils installation on systems where running
89611         programs (like install) can't be unlinked.
89612         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
89613         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
89614
89615 2000-08-07  Paul Eggert  <eggert@twinsun.com>
89616
89617         Standardize on "memory exhausted" instead of "Memory exhausted"
89618         or "virtual memory exhausted".
89619         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
89620         "virtual memory exhausted".
89621         * lib/same.c (same_name): Invoke xalloc_die instead of printing
89622         our own message.
89623         * lib/userspec.c (parse_user_spec): Likewise.
89624         * lib/bumpalloc.h: comment fix
89625         * lib/same.c, userspec.c: Include xalloc.h.
89626
89627         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
89628         not char *const and pointing to a constant array.
89629         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
89630         (xrealloc): Comment fix.
89631
89632         * lib/userspec.c (parse_user_spec):
89633         Don't translate a message until just before returning,
89634         to avoid unnecessary translation.
89635
89636 2000-08-07  Jim Meyering  <meyering@lucent.com>
89637
89638         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
89639         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
89640         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
89641         getgroups.c, gethostname.c, getopt.h, group-member.c,
89642         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
89643         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
89644         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
89645         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
89646         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
89647         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
89648         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
89649         yesno.c: Back out Copyright date changes for each file with no change
89650         this year.  This eases coordination with other programs using the same
89651         source code modules.  From Paul Eggert.
89652
89653 2000-08-06  Paul Eggert  <eggert@twinsun.com>
89654
89655         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
89656         not char, for compatibility with glibc 2.1.3 strftime.c.
89657
89658 2000-08-03  Greg McGary  <greg@mcgary.org>
89659
89660         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
89661         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
89662         (EXTEND_BUFFER): Use them.
89663
89664 2000-08-01  Jim Meyering  <meyering@lucent.com>
89665
89666         * lib/dirname.c (ISSLASH): Define.
89667         (BACKSLASH_IS_PATH_SEPARATOR): Define.
89668         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
89669         both `\' and `/' may be use as path separators.
89670         Based on a patch from Prashant TR.
89671
89672 2000-07-31  Paul Eggert  <eggert@twinsun.com>
89673
89674         * lib/quotearg.c (quotearg_n_options): Don't make the initial
89675         slot vector a constant, since it might get modified.
89676
89677 2000-07-31  Jim Meyering  <meyering@lucent.com>
89678
89679         * lib/xmalloc.c: Use `virtual memory exhausted', not
89680         `Memory exhausted'.
89681         * lib/obstack.c (print_and_abort): Likewise.
89682
89683 2000-07-30  Paul Eggert  <eggert@twinsun.com>
89684
89685         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
89686         buffer, so that the caller can always quote one small
89687         component of a "memory exhausted" message in slot 0.
89688         From a suggestion by Jim Meyering.
89689
89690 2000-07-30  Jim Meyering  <meyering@lucent.com>
89691
89692         * lib/makepath.c (make_path): Quote the other instance, too.
89693
89694         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
89695         (STATIC_BUF_SIZE): Define.
89696         (quotearg_n_options): Use only statically allocated storage when
89697         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
89698         than STATIC_BUF_SIZE.
89699
89700 2000-07-29  Jim Meyering  <meyering@lucent.com>
89701
89702         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
89703         * lib/dirname.c (dir_name): Likewise.
89704
89705         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
89706         `/'.
89707
89708         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
89709         (dir_name): Assert that there are no trailing slashes.
89710
89711 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
89712
89713         * lib/mbswidth.h (mbswidth): Add a flags argument.
89714         (mbswidth): New declaration.
89715         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
89716         * lib/mbswidth.c (mbswidth): Add a flags argument.
89717         (mbsnwidth): New function.
89718
89719 2000-07-24  Jim Meyering  <meyering@lucent.com>
89720
89721         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
89722
89723 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89724
89725         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
89726
89727 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89728
89729         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
89730         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
89731         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
89732         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
89733         invoke multibyte primitives.
89734
89735 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89736
89737         * lib/quotearg.c:
89738         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
89739         so that mbstate_t is always defined.
89740
89741         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
89742         be 1 in at least one GCC installation, and this configuration
89743         error is likely to be common.  Ignoring MB_LEN_MAX hurts
89744         performance on hosts that have mbrtowc but have only unibyte
89745         locales, but I assume these hosts are rare.
89746
89747 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89748
89749         * lib/mbswidth.c (_XOPEN_SOURCE):
89750         Don't define; this causes problems on Solaris 7.
89751         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
89752
89753 2000-07-23  Jim Meyering  <meyering@lucent.com>
89754
89755         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
89756         too: getgrgid, getpwuid, getuid.
89757
89758 2000-07-23  Jim Meyering  <meyering@lucent.com>
89759
89760         * lib/basename.c (base_name): Add an assertion.
89761
89762 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
89763
89764         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
89765         shadow its mbsinit function.
89766
89767 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89768
89769         * lib/mbswidth.h: New file.
89770         * lib/mbswidth.c: New file.
89771         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
89772         (noinst_HEADERS): Add mbswidth.h.
89773
89774 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89775
89776         * lib/config.charset: Add support for FreeBSD. Improve support for
89777         HP-UX and IRIX 6.
89778
89779 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
89780
89781         * m4/mbswidth.m4: New file.
89782         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
89783
89784 2000-07-15  Jim Meyering  <meyering@lucent.com>
89785
89786         * lib/makepath.c: Include quote.h.
89787         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
89788         corresponding argument in a `quote (...)' call.
89789         Give better diagnostics.
89790
89791         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
89792         (noinst_HEADERS): Add quote.h.
89793
89794         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
89795         from tar's src/misc.c.
89796         * lib/quote.h: New file.  Prototypes for same.
89797
89798 2000-07-14  Paul Eggert  <eggert@twinsun.com>
89799
89800         From a suggestion by Bruno Haible.
89801         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
89802         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
89803         to decide whether to define the BeOS workaround macro;
89804         this adjusts to the change to AC_MBSTATE_T.
89805
89806 2000-07-14  Jim Meyering  <meyering@lucent.com>
89807
89808         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
89809         jm_AC_TYPE_UINTMAX_T.
89810
89811 2000-07-13  Paul Eggert  <eggert@twinsun.com>
89812
89813         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
89814
89815         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
89816         quotearg_buffer_restyled): Add support for
89817         clocale_quoting_style.  Undo previous change to
89818         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
89819         and "{RIGHT QUOTATION MARK}" msgids.
89820
89821 2000-07-10  Paul Eggert  <eggert@twinsun.com>
89822
89823         From a suggestion by Bruno Haible.
89824         * m4/mbstate_t.m4 (AC_MBSTATE_T):
89825         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
89826         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
89827         and mbstate_t, to a single-part test that simply defines mbstate_t.
89828         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
89829         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
89830
89831 2000-07-10  Jim Meyering  <meyering@lucent.com>
89832
89833         * m4/strerror_r.m4: Mirror the correction made in autoconf.
89834
89835         * m4/gnu-source.m4: Output to confdefs.h directly.
89836         Suggestion from Akim Demaille.
89837
89838 2000-07-09  Paul Eggert  <eggert@twinsun.com>
89839
89840         The old behavior of quoting `like this' doesn't look good with
89841         newer, ISO-style fonts.  See:
89842         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
89843
89844         Instead, quote "like this" by default.  Let the translator
89845         tailor the locale-specific quoting behavior by providing
89846         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
89847
89848         * lib/quotearg.c (N_): New macro.
89849         (gettext_default): New function.
89850         (quotearg_buffer_restyled): Use
89851         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
89852         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
89853
89854 2000-07-09  Jim Meyering  <meyering@lucent.com>
89855
89856         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
89857         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
89858
89859         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
89860         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
89861
89862 2000-07-09  Jim Meyering  <meyering@lucent.com>
89863
89864         * lib/Most files: Update copyright dates to include 2000.
89865
89866 2000-07-08  Jim Meyering  <meyering@lucent.com>
89867
89868         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
89869         if not defined.
89870         (xgethostname): Remove now-unnecessary #ifdef.
89871         Move declaration of `err' into loop where it's used.
89872
89873 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89874         and Bruno Haible  <haible@clisp.cons.org>
89875
89876         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
89877         only if the test for an object-type mbstate_t fails.  This
89878         prevents us from mistakenly reporting that mbstate_t is a
89879         system object type after we "#define mbstate_t int" to work
89880         around its lack.
89881
89882 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89883         and Bruno Haible  <haible@clisp.cons.org>
89884
89885         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
89886
89887 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89888
89889         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
89890         to strerror_r.
89891         Include <ctype.h> for use of isalpha.
89892
89893 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89894
89895         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
89896         by allocating a larger buffer. Test the gethostname return value for
89897         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
89898         returns an error and ENAMETOOLONG isn't defined.
89899
89900 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89901
89902         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
89903         dimension.
89904
89905 2000-07-04  Jim Meyering  <meyering@lucent.com>
89906
89907         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
89908         of the deprecated AC_CHECKING.
89909
89910 2000-07-04  Jim Meyering  <meyering@lucent.com>
89911
89912         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
89913         Reported by Bruno Haible.
89914
89915 2000-07-04  Jim Meyering  <meyering@lucent.com>
89916
89917         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
89918         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
89919         lacks mbrtowc.
89920
89921 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89922
89923         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
89924         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
89925
89926 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89927         and Bruno Haible  <haible@clisp.cons.org>
89928
89929         * lib/quotearg.c (mbrtowc):
89930         Assign to *pwc, and return 1 only if result is nonzero.
89931         (iswprint): Use ISPRINT when substituting our own mbrtowc.
89932
89933 2000-07-03  Jim Meyering  <meyering@lucent.com>
89934
89935         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
89936
89937 2000-07-03  Jim Meyering  <meyering@lucent.com>
89938
89939         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
89940         This is necessary to get a definition of e.g., UTMP_FILE on
89941         HP-UX 10.20.
89942         From Bob Proulx.
89943
89944 2000-07-02  Jim Meyering  <meyering@lucent.com>
89945
89946         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
89947
89948         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
89949         AC_LIBOBJ(function_name).
89950         * m4/chown.m4: Likewise.
89951         * m4/fnmatch.m4: Likewise.
89952         * m4/ftruncate.m4: Likewise.
89953         * m4/getgroups.m4: Likewise.
89954         * m4/getline.m4: Likewise.
89955         * m4/group-member.m4: Likewise.
89956         * m4/jm-macros.m4: Likewise.
89957         * m4/lstat.m4: Likewise.
89958         * m4/malloc.m4: Likewise.
89959         * m4/memcmp.m4: Likewise.
89960         * m4/nanosleep.m4: Likewise.
89961         * m4/putenv.m4: Likewise.
89962         * m4/realloc.m4: Likewise.
89963         * m4/regex.m4: Likewise.
89964         * m4/stat.m4: Likewise.
89965         * m4/strftime.m4: Likewise.
89966
89967 2000-07-02  Jim Meyering  <meyering@lucent.com>
89968
89969         * lib/quotearg.c (mbstate_t): Don't define here.
89970
89971 2000-07-02  Jim Meyering  <meyering@lucent.com>
89972
89973         * lib/nanosleep.c (SIGCONT): Define if not already defined.
89974
89975 2000-07-01  Jim Meyering  <meyering@lucent.com>
89976
89977         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
89978
89979 2000-07-01  Jim Meyering  <meyering@lucent.com>
89980
89981         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
89982         problem.
89983
89984 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89985
89986         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
89987         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
89988
89989 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89990
89991         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
89992         per change in ../m4/ls-mntd-fs.m4.
89993         (read_filesystem_list): Ignore symbolic links.
89994
89995 2000-06-29  Jim Meyering  <meyering@lucent.com>
89996
89997         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
89998         for declaration of strcmp.
89999
90000         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
90001
90002         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
90003         Avoid warning by casting result to `char *' to remove `const'.
90004
90005 2000-06-28  Jim Meyering  <meyering@lucent.com>
90006
90007         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
90008         included by quotearg.c, for which we perform this test.  From
90009         Bruno Haible.
90010
90011 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
90012
90013         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
90014         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
90015         <utmpx.h> exists, put readutmp.o into LIBOBJS.
90016
90017 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
90018
90019         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
90020
90021 2000-06-26  Paul Eggert  <eggert@twinsun.com>
90022
90023         savedir now sets errno on failure and invokes xmalloc to get memory.
90024         Fix a couple of other minor bugs while we're at it.
90025
90026         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
90027         (NAMLEN): Remove macro.
90028         (malloc, realloc): Remove decls.
90029         (stpcpy): Likewise.
90030         ("xalloc.h"): Include.
90031         (NAME_SIZE_DEFAULT): New macro.
90032         (savedir): Use xmalloc / xrealloc to allocate memory.
90033         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
90034         Skip "" directory entries.
90035         Use strlen to calculate directory entry length, since the old method
90036         is rarely used these days and isn't worth supporting.
90037         Don't use a pointer after freeing it.
90038         Check for integer overflow when calculating allocation size.
90039         Use memcpy to copy entries, instead of stpcpy.
90040         Set errno properly when returning NULL.
90041         Check for readdir error.
90042
90043 2000-06-26  Jim Meyering  <meyering@lucent.com>
90044
90045         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
90046
90047 2000-06-25  Jim Meyering  <meyering@lucent.com>
90048
90049         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
90050         Linux header bug when _XOPEN_SOURCE is defined to 500.
90051
90052 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
90053
90054         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
90055         deficiency.
90056
90057 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
90058
90059         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
90060         Include xalloc.h.
90061         Don't include <stdlib.h>.  Don't declare malloc, realloc.
90062
90063 2000-06-24  Jim Meyering  <meyering@lucent.com>
90064
90065         * m4/strerror_r.m4: Revive this file -- to try out an experimental
90066         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
90067         for which strerror does return char*, but which lacks a conveniently
90068         accessible declaration of the function.  If the compile-test says
90069         strerror_r doesn't work, then resort to a `run'-test that works on
90070         BeOS and segfaults on DEC Unix.
90071
90072 2000-06-24  Jim Meyering  <meyering@lucent.com>
90073
90074         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
90075
90076 2000-06-23  Paul Eggert  <eggert@twinsun.com>
90077
90078         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
90079         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
90080
90081 2000-06-23  Paul Eggert  <eggert@twinsun.com>
90082
90083         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
90084         (mbrtowc, mbstate_t): Define substitutes if
90085         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
90086         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
90087         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
90088
90089 2000-06-23  Jim Meyering  <meyering@lucent.com>
90090
90091         * m4/afs.m4: Add missing AC_MSG_RESULT.
90092         Reported by Bruno Haible.
90093
90094         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
90095         Suggestion from Bruno Haible.
90096
90097 2000-06-23  Jim Meyering  <meyering@lucent.com>
90098
90099         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
90100
90101 2000-06-21  Jim Meyering  <meyering@lucent.com>
90102
90103         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
90104
90105 2000-06-21  Jim Meyering  <meyering@lucent.com>
90106
90107         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
90108         (noinst_HEADERS): Add getstr.h.
90109
90110         * lib/getline.c (getstr): Move into a separate file.
90111         * lib/getstr.c (getstr): New file, extracted from getline.c, with
90112         the following changes: new parameter, delim2; both delim[12]
90113         parameters have type `int', not `char'.  The latter would lose
90114         with 8-bit delimiters.
90115         * lib/getstr.h: New file.
90116
90117 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90118
90119         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
90120         than 1024, return a memory chunk of least possible size, instead
90121         of size PATH_MAX + 2. In the loop, increment the size proportionally.
90122         Use free/xmalloc instead of xrealloc to avoid copying for very long
90123         paths.
90124
90125 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90126
90127         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
90128         the empty string.
90129
90130 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90131
90132         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
90133         address, not strdup.  Include <stdlib.h> and don't declare free().
90134
90135 2000-06-19  Jim Meyering  <meyering@lucent.com>
90136
90137         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
90138
90139 2000-06-18  Jim Meyering  <meyering@lucent.com>
90140
90141         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
90142
90143         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
90144         `checking whether...' message to be consistent with that of the
90145         lstat test.
90146
90147 2000-06-18  Jim Meyering  <meyering@lucent.com>
90148
90149         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
90150         Besides, these days every porting target provides a mkdir function.
90151
90152         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
90153         needed. (this snippet comes from src/system.h).
90154
90155 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
90156
90157         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
90158
90159 2000-06-15  Paul Eggert  <eggert@twinsun.com>
90160
90161         * lib/human.c (adjust_value): New function.
90162         (human_readable_inexact): Apply rounding style even when
90163         printing approximate values.
90164
90165 2000-06-14  Paul Eggert  <eggert@twinsun.com>
90166
90167         * lib/human.c (human_readable_inexact): Allow an input block
90168         size that is not a multiple of the output block size, and vice versa.
90169         Reported by Piergiorgio Sartor.
90170
90171 2000-06-14  Paul Eggert  <eggert@twinsun.com>
90172
90173         * lib/getdate.y (get_date): Apply relative times after time
90174         zone indicator, not before.  Reported by Todd A. Jacobs.
90175
90176 2000-06-13  Jim Meyering  <meyering@lucent.com>
90177
90178         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
90179
90180         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
90181
90182 2000-06-12  Paul Eggert  <eggert@twinsun.com>
90183
90184         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
90185
90186 2000-06-12  Jim Meyering  <meyering@lucent.com>
90187
90188         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
90189         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
90190         optional argument.
90191         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
90192         the optional argument, `lib'.
90193
90194 2000-06-08  Jim Meyering  <meyering@lucent.com>
90195
90196         * m4/largefile.m4: Remove file (now that it's part of autoconf).
90197
90198 2000-06-04  Paul Eggert  <eggert@twinsun.com>
90199
90200         Rewrite largefile configuration so that we don't need to run
90201         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
90202         AC_CANONICAL_HOST in configure.in -- jmm]
90203
90204         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
90205         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
90206         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
90207         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
90208         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
90209         All uses changed.
90210         Instead of inspecting the output of getconf, try to compile the
90211         test program without and with the macro definition.
90212         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
90213         for getconf.  Instead, check for the needed flags by compiling
90214         test programs.
90215
90216 2000-06-04  Paul Eggert  <eggert@twinsun.com>
90217
90218         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
90219
90220 2000-06-04  Jim Meyering  <meyering@lucent.com>
90221
90222         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
90223         SunOS 4.1.4 for which gid_t is an unsigned type.
90224
90225 2000-06-03  Jim Meyering  <meyering@lucent.com>
90226
90227         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
90228         now that autoconf requires that.
90229
90230         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
90231         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
90232         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
90233
90234 2000-06-03  Jim Meyering  <meyering@lucent.com>
90235
90236         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
90237
90238 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
90239
90240         * m4/glibc21.m4: New file.
90241         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
90242
90243 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
90244
90245         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
90246         newer, don't install charset.alias.
90247         * lib/config.charset: Change the Linux/glibc rules so they become empty
90248         on glibc-2.1 or newer.
90249
90250 2000-06-02  Jim Meyering  <meyering@lucent.com>
90251
90252         * lib/mountlist.c: Back out last change.  Instead, do this...
90253         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
90254         me_dummy member using the same `ignore'-testing code.
90255         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
90256         fs_type strings.
90257         From Mark D. Roth.
90258
90259 2000-05-29  Jim Meyering  <meyering@lucent.com>
90260
90261         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
90262         mounts with the `ignore' attribute.  Based on a patch from
90263         Mark D. Roth.
90264
90265 2000-05-28  Jim Meyering  <meyering@lucent.com>
90266
90267         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
90268         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90269         * m4/stat.m4: Likewise.
90270         * m4/lstat.m4: Likewise.
90271         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
90272
90273         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
90274         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
90275
90276 2000-05-26  Jim Meyering  <meyering@lucent.com>
90277
90278         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
90279
90280 2000-05-24  Jim Meyering  <meyering@lucent.com>
90281
90282         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
90283         autoconf requires that.
90284         * m4/lib-check.m4: Likewise.
90285         * m4/jm-macros.m4: Likewise.
90286         * m4/strftime.m4: Likewise.
90287
90288         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
90289         AC_CHECK_DECLS, now that autoconf requires that.
90290
90291 2000-05-22  Jim Meyering  <meyering@lucent.com>
90292
90293         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90294         * m4/lstat.m4: Likewise.
90295
90296 2000-05-22  Jim Meyering  <meyering@lucent.com>
90297
90298         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
90299
90300 2000-05-20  Jim Meyering  <meyering@lucent.com>
90301
90302         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
90303         (jm_PREREQ): Use it.
90304
90305 2000-05-18  Jim Meyering  <meyering@lucent.com>
90306
90307         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
90308         back, too, since it may have been modified by allocate_entry.
90309         (hash_delete): Rewrite to use neither the assignment operator
90310         nor the comma operator in an if-expression.
90311
90312 2000-05-15  Paul Eggert  <eggert@twinsun.com>
90313
90314         * lib/closeout.c:
90315         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
90316         Remove; no longer needed.
90317         "quotearg.h": Add include.
90318         (file_name): Do not bother to explicitly initialize to NULL; it's less
90319         efficient on some hosts.
90320         (close_stdout_status): Remove test as to whether stdout was already
90321         closed; it breaks for the case "echo x | sort >&-".
90322         Quote file name colons.
90323         Do not assume that _("write error") lacks format strings.
90324
90325 2000-05-15  Jim Meyering  <meyering@lucent.com>
90326
90327         * lib/version-etc.c (version_etc_copyright): Update the copyright
90328         string used in all --version output.
90329
90330 2000-05-14  Jim Meyering  <meyering@lucent.com>
90331
90332         * lib/closeout.c (close_stdout_set_file_name): New function.
90333         (close_stdout_status): Use new file-scoped global.
90334         Return right away if fstat says the stdout file descriptor is invalid.
90335         * lib/closeout.h (close_stdout_set_file_name): Declare.
90336
90337 2000-05-10  Jim Meyering  <meyering@lucent.com>
90338
90339         * lib/closeout.c [default_exit_status]: New file-scoped variable.
90340         (close_stdout_set_status): New function.
90341         * lib/closeout.h (close_stdout_set_status): Declare.
90342
90343 2000-05-09  Jim Meyering  <meyering@lucent.com>
90344
90345         * m4/gettext.m4: Rename this...
90346         * m4/libintl.m4: ...to this.
90347
90348 2000-05-08  Jim Meyering  <meyering@lucent.com>
90349
90350         * lib/long-options.c: Don't include closeout.h.
90351         (parse_long_options): Don't call close_stdout for --version.
90352
90353 2000-05-06  Paul Eggert  <eggert@twinsun.com>
90354
90355         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
90356         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
90357         2.1.3 bug.  This avoids a clash when files like regex.c define
90358         _GNU_SOURCE.
90359
90360 2000-05-06  Jim Meyering  <meyering@lucent.com>
90361
90362         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
90363         (AC_REPLACE_FUNCS): Add strnlen.
90364
90365         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
90366         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
90367
90368         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
90369         AC_SEARCH_LIBS call for nanosleep.
90370         (LIB_NANOSLEEP): Set and AC_SUBST.
90371
90372 2000-05-06  Jim Meyering  <meyering@lucent.com>
90373
90374         * lib/strnlen.c: Undefine __strnlen and strnlen.
90375         [!weak_alias]: Define __strnlen to strnlen.
90376
90377         * lib/atexit.c: New file, from libiberty.
90378
90379 2000-05-06  Jim Meyering  <meyering@lucent.com>
90380
90381         * lib/closeout.c (close_stdout_status): Also check for errors on the
90382         stderr stream.
90383
90384 2000-05-05  Jim Meyering  <meyering@lucent.com>
90385
90386         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
90387         AC_SEARCH_LIBS call for clock_gettime.
90388         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
90389
90390         * m4/search-libs.m4: Update from autoconf.
90391
90392         su doesn't work on Solaris 2.6.
90393         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
90394         <shadow.h>.  Reported by Dragos Harabor.
90395
90396 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
90397
90398         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
90399         memcpy instead of xmalloc, xrealloc, path_concat.
90400         (locale_charset): Treat empty environment variables as absent.
90401         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
90402
90403 2000-05-04  Jim Meyering  <meyering@lucent.com>
90404
90405         * lib/getopt.c: Update from glibc.
90406         * lib/obstack.c: Likewise.
90407         * lib/obstack.h: Likewise.
90408         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
90409         file
90410
90411         * lib/regex.h: Likewise.
90412         * lib/strndup.c: Likewise.
90413         * lib/strnlen.c: New file, from glibc.
90414
90415 2000-05-03  Jim Meyering  <meyering@lucent.com>
90416
90417         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
90418
90419 2000-05-02  Paul Eggert  <eggert@twinsun.com>
90420
90421         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
90422         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
90423         compile-time test, rather than inspecting host and OS, to
90424         decide whether to define _LARGEFILE_SOURCE.
90425
90426 2000-05-01  Jim Meyering  <meyering@lucent.com>
90427
90428         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
90429
90430         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
90431         Based on a patch from Bruno Haible.
90432
90433 2000-05-01  Jim Meyering  <meyering@lucent.com>
90434
90435         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
90436
90437 2000-04-29  Jim Meyering  <meyering@lucent.com>
90438
90439         * lib/path-concat.c: Declare strdup only if it's not defined.
90440         * lib/canon-host.c: Likewise.
90441
90442 2000-04-28  Jim Meyering  <meyering@lucent.com>
90443
90444         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
90445         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
90446         is included first, then limits.h is included by locale.h by libintl.h.
90447         From John David Anglin.
90448
90449 2000-04-25  Jim Meyering  <meyering@lucent.com>
90450
90451         * lib/makepath.c (S_IRWXUGO): Define.
90452         (make_path): Always perform explicit chmod if MODE specifies any
90453         of the `special' permission bits.  Prompted by a bug report against
90454         install from Mate Wierdl and Joost van Baal.
90455
90456 2000-04-18  Jim Meyering  <meyering@lucent.com>
90457
90458         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
90459         (jm_PREREQ): Use it.
90460
90461 2000-04-18  Jim Meyering  <meyering@lucent.com>
90462
90463         * lib/README: New file.
90464
90465         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
90466         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
90467
90468 2000-04-17  Jim Meyering  <meyering@lucent.com>
90469
90470         Get it right :-)
90471         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
90472         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
90473         Suggestion from Akim Demaille.
90474
90475 2000-04-17  Jim Meyering  <meyering@lucent.com>
90476
90477         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
90478         the definition of it to rpl_strftime also defined-away the system's
90479         declaration.
90480
90481 2000-04-15  Jim Meyering  <meyering@lucent.com>
90482
90483         Use `C' to denote so-called `contiguous' files, the same way
90484         that tar does.
90485         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
90486         (ftypelet): Use S_ISCTG.
90487         From Michael Deutschmann.
90488
90489 2000-04-14  Jim Meyering  <meyering@lucent.com>
90490
90491         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
90492         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
90493         clobbered.
90494
90495 2000-04-14  Jim Meyering  <meyering@lucent.com>
90496
90497         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
90498
90499 2000-04-13  Jim Meyering  <meyering@lucent.com>
90500
90501         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
90502         AH_VERBATIM to insert required #ifndef into config.h.in.
90503         Suggestion from Akim Demaille.
90504
90505 2000-04-12  Jim Meyering  <meyering@lucent.com>
90506
90507         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
90508         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
90509         Christian Krackowizer.
90510
90511         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
90512         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
90513         (AC_SYS_LARGEFILE): Require.
90514         (AM_C_PROTOTYPES): Require.
90515
90516 2000-04-08  Jim Meyering  <meyering@lucent.com>
90517
90518         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
90519         names don't conflict.  Reported by Eli Zaretskii.
90520
90521 2000-04-07  Jim Meyering  <meyering@lucent.com>
90522
90523         * lib/putenv.c: Move inclusion of errno.h so it follows that of
90524         sys/types.h, to work around system header problems on AIX 3.2.5.
90525         From Bruno Haible.
90526
90527 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
90528
90529         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
90530         bug.  Deal with the different error behavior of Irix iconv.
90531
90532 2000-04-05  Paul Eggert  <eggert@twinsun.com>
90533
90534         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
90535         IRIX if the installer said otherwise.
90536
90537 2000-04-05  Jim Meyering  <meyering@lucent.com>
90538
90539         Portability tweaks required for ultrix4.3.
90540         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
90541         (jm_CHECK_DECLS): Add getutent to the list of functions.
90542         (_jm_DECL_HEADERS): Add utmpx.h.
90543         From John David Anglin.
90544
90545         * m4/strftime.m4: Back out the 2000-04-02 change.
90546         Instead of that change, simply undefine putenv in the test program.
90547
90548 2000-04-05  Jim Meyering  <meyering@lucent.com>
90549
90550         Portability tweaks required for ultrix4.3.
90551         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
90552         getutent.
90553         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
90554         * lib/canon-host.c: Declare strdup.
90555         * lib/path-concat.c: Likewise.
90556         From John David Anglin.
90557
90558 2000-04-04  Jim Meyering  <meyering@lucent.com>
90559
90560         Be more DOS 8.3-friendly.
90561         * lib/ref-add.sin: Renamed from ref-add.sed.in.
90562         * lib/ref-del.sin: Renamed from ref-del.sed.in.
90563         * lib/Makefile.am: Reflect renaming.
90564         Reported by Eli Zaretskii.
90565
90566         Use a temporary file name that won't clash with `charset.alias'
90567         in the DOS 8.3 name space.
90568         * lib/Makefile.am (charset_tmp): Define.
90569         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
90570         (uninstall-local): Likewise.
90571         Reported by Eli Zaretskii.
90572
90573 2000-04-03  Jim Meyering  <meyering@lucent.com>
90574
90575         * m4/gettext.m4: Fix typo in comment.
90576
90577         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
90578         textutils/configure.in).  Suggestion from Paul Eggert.
90579         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
90580
90581 2000-04-02  Paul Eggert  <eggert@twinsun.com>
90582
90583         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
90584         variable in the shell rather than using putenv, which isn't
90585         portable.  This avoids the configure-time inter-test dependency
90586         on the potentially-renamed putenv function.
90587
90588 2000-03-30  Paul Eggert  <eggert@twinsun.com>
90589
90590         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
90591         before checking struct stat.st_blksize, so that
90592         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
90593
90594 2000-03-29  Paul Eggert  <eggert@twinsun.com>
90595
90596         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
90597         since strftime.c uses HAVE_STRFTIME to decide whether to use
90598         the underlying strftime.
90599
90600 2000-03-29  Paul Eggert  <eggert@twinsun.com>
90601
90602         * lib/time/strftime.c (my_strftime): Make sure we call the system
90603         strftime, not ourselves, when invoking the underlying strftime.
90604
90605 2000-03-24  Jim Meyering  <meyering@lucent.com>
90606
90607         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
90608         (charset_alias): Define.
90609         (install-exec-local): Factor out common code.
90610         (uninstall-local): Split lines longer than 80.
90611         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
90612         (SUFFIXES): Define.
90613         (.sed.in.sed): New rule.  Don't redirect directly to $@.
90614         (CLEANFILES): Add ref-add.sed and ref-del.sed.
90615
90616 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
90617
90618         * lib/config.charset: Output a line containing "Packages using this
90619         file".
90620         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
90621         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
90622         ref-del.sed): New rules.
90623
90624 2000-03-17  Jim Meyering  <meyering@lucent.com>
90625
90626         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
90627         Otherwise, include <strings.h>
90628
90629 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
90630
90631         * lib/unicodeio.c (utf8_wctomb): New function.
90632         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
90633         format instead of in UCS-4 with platform dependent endianness.
90634
90635 2000-03-10  Jim Meyering  <meyering@lucent.com>
90636
90637         * m4/lib-check.m4: Look for getspnam in -lgen, too.
90638         From Marco Franzen.
90639
90640 2000-03-07  Paul Eggert  <eggert@twinsun.com>
90641
90642         * lib/savedir.c (savedir): Work even if directory size is
90643         negative; this can happen with some screwy NFS configurations.
90644
90645 2000-03-06  Jim Meyering  <meyering@lucent.com>
90646
90647         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
90648         if it's NULL (because we ran out of memory).  From Bruno Haible.
90649
90650 2000-03-05  Jim Meyering  <meyering@lucent.com>
90651
90652         * lib/localcharset.c ("path-concat.h"): Include.
90653         (get_charset_aliases): Use path_concat instead of ANSI string
90654         concatenation.
90655
90656         * lib/unicodeio.h (PARAMS): Define.
90657         Use it to guard prototype.
90658
90659 2000-03-04  Jim Meyering  <meyering@lucent.com>
90660
90661         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
90662         for lib/localcharset.c.
90663
90664 2000-03-04  Jim Meyering  <meyering@lucent.com>
90665
90666         * lib/Makefile.am (install-exec-local): Create $(libdir) before
90667         installing into it.
90668         (uninstall-local): Uncomment this rule so `make distcheck' works
90669         once again.
90670
90671         * lib/unicodeio.c (<errno.h>): Include it.
90672         (errno): Declare if not defined.
90673
90674         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
90675
90676         * lib/config.charset: New version, incorporating remarks from a linux
90677         i18n mailing list.  From Bruno Haible.
90678
90679 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
90680
90681         * m4/codeset.m4: New file.
90682         * m4/iconv.m4: New file.
90683         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
90684
90685 2000-03-03  Jim Meyering  <meyering@lucent.com>
90686
90687         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
90688
90689 2000-03-02  Jim Meyering  <meyering@lucent.com>
90690
90691         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
90692         the messages come out on separate lines.
90693
90694         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
90695         rather than jm_CHECK_DECLARATIONS.
90696         * m4/decl.m4: Remove now-unused file.
90697
90698         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
90699         geteuid.
90700
90701 2000-03-02  Jim Meyering  <meyering@lucent.com>
90702
90703         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
90704
90705 2000-03-01  Jim Meyering  <meyering@lucent.com>
90706
90707         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
90708         * lib/unicodeio.c: Likewise.
90709
90710 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
90711
90712         * lib/config.charset: New file.
90713         * lib/localcharset.c: New file.
90714         * lib/unicodeio.h, lib/unicodeio.c: New files.
90715         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
90716         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
90717         (noinst_HEADERS): Add unicodeio.h.
90718         (all-local, install-exec-local, charset.alias): New targets.
90719
90720 2000-02-28  Paul Eggert  <eggert@twinsun.com>
90721
90722         * lib/quotearg.c (ALERT_CHAR): New macro.
90723         (quotearg_buffer_restyled): Use it.
90724
90725 2000-02-27  Jim Meyering  <meyering@lucent.com>
90726
90727         * m4/check-decl.m4: Add getenv to the list.
90728
90729 2000-02-27  Jim Meyering  <meyering@lucent.com>
90730
90731         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
90732         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
90733
90734         * lib/backupfile.c: Guard inclusion of stdlib.h with
90735         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
90736         Declare malloc if needed.
90737
90738         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
90739         `#ifndef HAVE_DECL..'
90740         now that autoconf always defines the HAVE_DECL_ symbols.
90741         * lib/human.c: Likewise.
90742         * lib/same.c: Likewise.
90743         * lib/strtoumax.c: Likewise.
90744
90745         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
90746         declaration check was not run.
90747         * lib/hash.c: Likewise.
90748         * lib/human.c: Likewise.
90749         * lib/same.c: Likewise.
90750         * lib/strtoumax.c: Likewise.
90751
90752         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
90753         `.', then first look up the entire `.'-containing string as a login
90754         name.
90755
90756 2000-02-23  Jim Meyering  <meyering@lucent.com>
90757
90758         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
90759         in place of my hack.
90760
90761 2000-02-18  Paul Eggert  <eggert@twinsun.com>
90762
90763         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
90764         (textint): New typedef.
90765         (parser_control): Member year changed from int to textint.
90766         All uses changed.
90767         (YYSTYPE): Removed; replaced by %union with int and textint members.
90768         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
90769         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
90770         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
90771         (tSNUMBER, tUNUMBER): Now of type <textintval>.
90772         (date, number, to_year): Use width of number in digits, not its value,
90773         to determine whether it's a 2-digit year, or a 2-digit time.
90774         (yylex): Store number of digits of numeric tokens.
90775         Reported by John Kendall.
90776
90777         (parser_control): Changed from struct parser_control to typedef (for
90778         consistency).  All uses changed.
90779
90780         (tID): Removed; not used.
90781         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
90782
90783 2000-02-14  Paul Eggert  <eggert@twinsun.com>
90784
90785         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
90786         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
90787
90788 2000-02-12  Jim Meyering  <meyering@lucent.com>
90789
90790         * lib/userspec.c (ISDIGIT): Define it.
90791         (isdigit): Remove definition.
90792         (is_number): Use ISDIGIT, not isdigit.
90793         <libintl.h>: Include.
90794         (_ and N_): Define.
90795         (parse_user_spec): Mark translatable strings.
90796
90797 2000-02-10  Jim Meyering  <meyering@lucent.com>
90798
90799         With these changes, nanosleep.[ch] are finally enough like the other
90800         lib/* replacement files to compile on a few more losing systems.
90801
90802         * lib/nanosleep.h: Don't include config.h.
90803         Remove prototype from declaration of nanosleep.
90804         (PARAMS): Remove now-unneeded definition.
90805         * lib/nanosleep.c: #undef nanosleep.
90806         (rpl_nanosleep): Rename from nanosleep.
90807
90808 2000-02-10  Jim Meyering  <meyering@lucent.com>
90809
90810         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
90811         gnu_nanosleep to rpl_nanosleep.
90812
90813 2000-02-09  Jim Meyering  <meyering@lucent.com>
90814
90815         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
90816         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
90817
90818 2000-02-08  Akim Demaille  <akim@epita.fr>
90819
90820         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
90821         `[' and `]' and remove uses of `changequote'.
90822         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
90823         (AC_SYS_LARGEFILE): Likewise.
90824         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
90825         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
90826         of changequote.
90827         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
90828         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
90829         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
90830         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
90831
90832 2000-02-05  Jim Meyering  <meyering@lucent.com>
90833
90834         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
90835         Remove explicit use of AC_HEADER_TIME.  It is required by
90836         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
90837         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
90838         in autoconf whereby the expansion of the latter ended up preceding
90839         the expansion of its prerequisite, AC_HEADER_TIME.
90840         Reported by Volker Borchert.
90841
90842 2000-02-03  Jim Meyering  <meyering@lucent.com>
90843
90844         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
90845
90846 2000-02-03  Jim Meyering  <meyering@lucent.com>
90847
90848         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
90849         rather than with `#if HAVE_UTMPNAME'.
90850
90851 2000-02-02  Jim Meyering  <meyering@lucent.com>
90852
90853         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
90854         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
90855         Reported by Eli Zaretskii.
90856
90857 2000-02-01  Jim Meyering  <meyering@lucent.com>
90858
90859         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
90860
90861 2000-01-31  Jim Meyering  <meyering@lucent.com>
90862
90863         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
90864         functions.  Add the time.h and sys/time.h headers along with the
90865         AC_REQUIRE'ment of AC_HEADER_TIME.
90866
90867 2000-01-31  Jim Meyering  <meyering@lucent.com>
90868
90869         * lib/nanosleep.h (nanosleep): Guard declaration with
90870         `#if ! HAVE_DECL_NANOSLEEP'.
90871         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
90872         the declaration in that vendor's sys/timers.h.
90873         Reported by Christian Krackowizer.
90874
90875         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
90876         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
90877         (ISPRINT): Likewise.
90878         Reported by Tom Tromey.
90879
90880 2000-01-30  Jim Meyering  <meyering@lucent.com>
90881
90882         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
90883
90884         * m4/prereq.m4 (utmp_includes): Define.
90885         Check for ut_user and ut_name members in both struct utmpx
90886         and struct utmp.
90887
90888 2000-01-30  Jim Meyering  <meyering@lucent.com>
90889
90890         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
90891         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
90892         header files where only utmpx.ut_user is declared.
90893
90894         * lib/readutmp.h (UT_USER): Define.
90895
90896 2000-01-29  Jim Meyering  <meyering@lucent.com>
90897
90898         * m4/lib-check.m4: New file containing library-related checks from
90899         fileutils and sh-utils (textutils had none).
90900
90901 2000-01-28  Jim Meyering  <meyering@lucent.com>
90902
90903         * m4/perl.m4: Change format of warning message to look more like that
90904         from the missing script.  Suggestion from François Pinard.
90905
90906 2000-01-25  Jim Meyering  <meyering@lucent.com>
90907
90908         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
90909         well as time.h in the compile check.
90910         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
90911         Fix typo in cross-compiling case: s/yes/no/.
90912
90913 2000-01-23  Jim Meyering  <meyering@lucent.com>
90914
90915         * m4/jm-macros.m4: Move df-related tests here from
90916         fileutils/configure.in
90917
90918         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
90919         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
90920
90921         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
90922         s/space/ac_fsusage_space/.
90923         (jm_FILE_SYSTEM_USAGE): Take two parameters.
90924
90925         * m4/ftruncate.m4: New file (derived from part of
90926         fileutils/configure.in).
90927         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
90928         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
90929
90930         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
90931         AC_SUBST these here, rather than just in sh-util/configure.in, so
90932         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
90933         all the same.
90934         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
90935         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
90936         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
90937         (AC_SUBST(POW_LIBM)): Likewise.
90938         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
90939
90940 2000-01-23  Jim Meyering  <meyering@lucent.com>
90941
90942         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
90943         obstack.c.
90944
90945 2000-01-22  Jim Meyering  <meyering@lucent.com>
90946
90947         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
90948
90949         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
90950
90951         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
90952         configure.in
90953         (AC_CHECK_HEADERS): Likewise for sh-utils.
90954         (AC_CHECK_HEADERS): Likewise for textutils.
90955         Merge the three lists of headers.
90956
90957         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
90958         from fileutils' configure.in.
90959
90960         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
90961         code. Moved tests into their own function (_jm_DECL_HEADERS) in
90962         check-decl.m4.
90963
90964         * m4/check-decl.m4: Use #if rather than #ifdef.
90965         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
90966         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
90967         (_jm_DECL_HEADERS): Define new function.
90968         (jm_CHECK_DECLARATIONS): Require it.
90969
90970 2000-01-22  Jim Meyering  <meyering@lucent.com>
90971
90972         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
90973         [! HAVE_DECL_STRTOULL]: Declare strtoull.
90974         Required for some AIX systems.  Reported by Christian Krackowizer.
90975         [TESTING] (main): New function.
90976
90977         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
90978         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
90979         letters.
90980
90981         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
90982         iswprint.
90983
90984         * lib/strverscmp.c (ISDIGIT): Define.
90985         (strverscmp): Use ISDIGIT, not isdigit.
90986
90987 2000-01-19  Jim Meyering  <meyering@lucent.com>
90988
90989         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
90990         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
90991         defines `struct timespec' in <sys/time.h>
90992
90993         * m4/c-bs-a.m4: Remove uses of changequote altogether.
90994         Thanks to Akim for explaining.
90995
90996 2000-01-17  Paul Eggert  <eggert@twinsun.com>
90997
90998         * lib/nanosleep.c (nanosleep):
90999         Don't use SA_INTERRUPT to decide whether to call sigaction, as
91000         POSIX.1 doesn't require SA_INTERRUPT and some systems
91001         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
91002         it's been part of POSIX.1 since day 1 (in 1988).
91003
91004 2000-01-17  Jim Meyering  <meyering@lucent.com>
91005
91006         * lib/interlock: Remove unused file.  Reported by François Pinard.
91007
91008 2000-01-16  Paul Eggert  <eggert@twinsun.com>
91009
91010         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
91011         alert, backslash, formfeed, and vertical tab unnecessarily in
91012         shell quoting style.
91013
91014 2000-01-16  Jim Meyering  <meyering@lucent.com>
91015
91016         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
91017         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
91018         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
91019         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
91020
91021 2000-01-16  Jim Meyering  <meyering@lucent.com>
91022
91023         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
91024         because the latter didn't work.
91025
91026 2000-01-15  Jim Meyering  <meyering@lucent.com>
91027
91028         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
91029         (AC_REPLACE_FUNCS): Add memcpy and memset.
91030         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
91031         Add strpbrk.
91032         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
91033
91034 2000-01-12  Jim Meyering  <meyering@lucent.com>
91035
91036         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
91037         (jm_PREREQ): Use it.
91038         (jm_PREREQ_READUTMP): New macro.
91039         (jm_PREREQ): Use it.
91040
91041 2000-01-11  Paul Eggert  <eggert@twinsun.com>
91042
91043         Quote multibyte characters correctly.
91044         * m4/c-bs-a.m4: New file.
91045         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
91046         (jm_PREREQ): Use it.
91047
91048 2000-01-11  Paul Eggert  <eggert@twinsun.com>
91049
91050         * m4/uintmax_t.m4: Port to autoconf 2.13.
91051
91052 2000-01-08  Jim Meyering  <meyering@ascend.com>
91053
91054         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
91055         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
91056
91057 2000-01-04  Jim Meyering  <meyering@ascend.com>
91058
91059         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
91060         jm_STRUCT_DIRENT_D_TYPE.
91061         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
91062         jm_STRUCT_DIRENT_D_INO.
91063         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
91064         jm_STRUCT_UTIMBUF.
91065         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
91066         renamings.
91067         * m4/utime.m4: Likewise.
91068
91069         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
91070         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
91071
91072 2000-01-03  Paul Eggert  <eggert@twinsun.com>
91073
91074         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
91075         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
91076
91077 2000-01-02  Jim Meyering  <meyering@ascend.com>
91078
91079         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
91080         remember if this is necessary.
91081
91082 1999-12-26  Jim Meyering  <meyering@ascend.com>
91083
91084         * m4/jm-macros.m4: Use it here.
91085         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
91086
91087 1999-12-23  Jim Meyering  <meyering@ascend.com>
91088
91089         * m4/jm-macros.m4: Check for clock_gettime (moved from
91090         fileutils/configure.in)
91091         Check for gettimeofday.
91092
91093 1999-12-20  Jim Meyering  <meyering@ascend.com>
91094
91095         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
91096         autoconf-2.14a-1999-12-20.
91097
91098 1999-12-19  Jim Meyering  <meyering@ascend.com>
91099
91100         * m4/lstat-slash.m4: New file.
91101         * m4/jm-macros.m4: Use the new macro:
91102         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91103
91104 1999-12-07  Jim Meyering  <meyering@ascend.com>
91105
91106         * m4/perl.m4: Require that File::Compare be available, too.
91107         Too many systems seem to lack it.
91108
91109         * m4/strftime.m4: Add checks for most of the cpp macros tested in
91110         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
91111
91112 1999-11-18  Paul Eggert  <eggert@twinsun.com>
91113
91114         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
91115         problem with the QNX 4.25 shell, which doesn't propagate exit
91116         status of failed commands inside shell assignments.
91117
91118 1999-11-17  Jim Meyering  <meyering@ascend.com>
91119
91120         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
91121
91122 1999-11-07  Jim Meyering  <meyering@ascend.com>
91123
91124         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
91125
91126 1999-11-06  Jim Meyering  <meyering@ascend.com>
91127
91128         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
91129         * m4/jm-macros.m4 (jm_MACROS): Use it here.
91130
91131 1999-11-05  Jim Meyering  <meyering@ascend.com>
91132
91133         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
91134         configure.in of textutils, fileutils, and sh-utils into this one
91135         (shared between those packages) file.
91136         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
91137         AC_STRUCT_ST_BLKSIZE.
91138
91139 1999-11-03  Jim Meyering  <meyering@ascend.com>
91140
91141         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
91142         of AC_CHECK_TYPE checks includes unistd.h.
91143         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
91144         Suggestion from Akim Demaille.
91145
91146 1999-10-30  Jim Meyering  <meyering@ascend.com>
91147
91148         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
91149         m4-quoted string.
91150         * m4/ls-mntd-fs.m4: Likewise.
91151         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
91152         * m4/jm-winsz1.m4: Likewise.
91153
91154         * m4/const.m4: Remove file, since the fix made it into the experimental
91155         version of autoconf.
91156         * m4/mktime.m4: Likewise.
91157
91158         * m4/check-type.m4: Remove file, now that the latest version of
91159         AC_CHECK_TYPE takes a third arg to specify additional #includes.
91160
91161         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
91162         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
91163         AC_CHECK_TYPE.
91164
91165 1999-10-04  Jim Meyering  <meyering@ascend.com>
91166
91167         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
91168
91169 1999-09-22  Paul Eggert  <eggert@twinsun.com>
91170
91171         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
91172         2.95.1 bug with HP-UX 10.20.
91173
91174 1999-09-17  Jim Meyering  <meyering@ascend.com>
91175
91176         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
91177         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
91178         due to missing strdup (against sh-utils-2.0).
91179
91180 1999-08-29  Jim Meyering  <meyering@ascend.com>
91181
91182         * m4/jm-macros.m4: Require jm_BISON.
91183         * m4/bison.m4: New file.
91184
91185 1999-08-17  Paul Eggert  <eggert@twinsun.com>
91186
91187         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
91188         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
91189
91190 1999-08-05  Jim Meyering  <meyering@ascend.com>
91191
91192         * m4/getline.m4: Rename test file from conftestdata to conftest.data
91193         to avoid conflicts with `conftest' on 8+3 filesystems.
91194         Suggestion from Eli Zaretskii.
91195
91196 1999-08-04  Jim Meyering  <meyering@ascend.com>
91197
91198         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
91199         fileutils and sh-utils (textutils's getline test was inadequate).
91200         (AM_FUNC_GETLINE): Run this test.
91201         (AC_CHECK_FUNCS): Check for getdelim.
91202         Reported by Bob Proulx.
91203
91204 1999-08-02  Jim Meyering  <meyering@ascend.com>
91205
91206         * m4/jm-macros.m4: Add a comment.
91207
91208 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91209
91210         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
91211         <inttypes.h> defines strtoumax as a macro (and not as a
91212         function).
91213
91214 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91215
91216         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
91217         that we can shift, multiply and divide unsigned long long
91218         values; Ultrix cc can't do it.
91219
91220 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91221
91222         * m4/mktime.m4: New file, which is a preview of what should appear
91223         in the next public autoconf release.
91224
91225 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91226
91227         * m4/lfs.m4: Remove this file.
91228         * m4/largefile.m4: New file.  It contains the old contents of
91229         lfs.m4, except that all names with prefix AC_LFS have been
91230         changed to use the prefix AC_SYS_LARGEFILE instead, to be
91231         compatible with future autoconf versions.  Also, some minor m4
91232         quoting problems have been fixed.
91233
91234 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91235
91236         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
91237         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
91238         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
91239         and simplify the shell code.
91240
91241 1999-08-01  Jim Meyering  <meyering@ascend.com>
91242
91243         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
91244         m4.
91245
91246 1999-07-20  Jim Meyering  <meyering@ascend.com>
91247
91248         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
91249
91250 1999-07-15  Jim Meyering  <meyering@ascend.com>
91251
91252         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
91253
91254 1999-05-22  Jim Meyering  <meyering@ascend.com>
91255
91256         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
91257
91258 1999-05-20  Jim Meyering  <meyering@ascend.com>
91259
91260         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
91261         Add a colon after each `then' in case $4 is empty.
91262
91263 1999-05-16  Jim Meyering  <meyering@ascend.com>
91264
91265         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
91266
91267 1999-05-10  Jim Meyering  <meyering@ascend.com>
91268
91269         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
91270
91271         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
91272         AC_FUNC_MKTIME.
91273
91274 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
91275
91276         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
91277
91278 1999-05-04  Paul Eggert  <eggert@twinsun.com>
91279
91280         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
91281         not CPPFLAGS, so that linking works correctly in IRIX.
91282
91283 1999-04-30  Paul Eggert  <eggert@twinsun.com>
91284
91285         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
91286
91287 1999-04-20  Paul Eggert  <eggert@twinsun.com>
91288
91289         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
91290         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
91291         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
91292         jm_AC_TYPE_UNSIGNED_LONG_LONG.
91293         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
91294
91295         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
91296
91297 1999-04-20  Jim Meyering  <meyering@ascend.com>
91298
91299         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
91300         AC_REPLACE xstroull if necessary.  From Paul Eggert.
91301         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
91302
91303 1999-04-18  Jim Meyering  <meyering@ascend.com>
91304
91305         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
91306         * m4/jm-macros.m4: Use it.
91307
91308 1999-04-06  Jim Meyering  <meyering@ascend.com>
91309
91310         * m4/strftime.m4: Remove test for %f.
91311
91312 1999-03-29  Jim Meyering  <meyering@ascend.com>
91313
91314         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
91315         superset of the AC_TYPE_* checks in the textutils, fileutils,
91316         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
91317         AC_TYPE_PID_T.
91318
91319 1999-03-28  Jim Meyering  <meyering@ascend.com>
91320
91321         * m4/jm-macros.m4: Define GNU_PACKAGE here.
91322         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
91323         replaced e.g., in the *.sh files of the sh-utils.
91324
91325 1999-03-20  Jim Meyering  <meyering@ascend.com>
91326
91327         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
91328         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
91329         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
91330
91331 1999-03-19  Jim Meyering  <meyering@ascend.com>
91332
91333         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
91334
91335 1999-03-12  Jim Meyering  <meyering@ascend.com>
91336
91337         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
91338
91339 1999-03-07  Jim Meyering  <meyering@ascend.com>
91340
91341         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
91342         declared.
91343
91344 1999-02-17  Jim Meyering  <meyering@ascend.com>
91345
91346         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
91347         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
91348
91349 1999-02-07  Jim Meyering  <meyering@ascend.com>
91350
91351         * m4/group-member.m4: New file -- extracted from sh-utils'
91352         configure.in.
91353
91354         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
91355         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
91356
91357 1999-02-06  Jim Meyering  <meyering@ascend.com>
91358
91359         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
91360         * m4/fnmatch.m4: Likewise.
91361         * m4/getgroups.m4: Likewise.
91362         * m4/lstat.m4: Likewise.
91363         * m4/malloc.m4: Likewise.
91364         * m4/putenv.m4: Likewise.
91365         * m4/realloc.m4: Likewise.
91366         * m4/regex.m4: Likewise.
91367         * m4/stat.m4: Likewise.
91368         * m4/strftime.m4: Likewise.
91369         Suggestion from Alain Magloire.
91370
91371         * m4/chown.m4: Use `.$ac_objext', not `.o'.
91372         * m4/fnmatch.m4: Likewise.
91373         * m4/getgroups.m4: Likewise.
91374         * m4/getline.m4: Likewise.
91375         * m4/lstat.m4: Likewise.
91376         * m4/malloc.m4: Likewise.
91377         * m4/memcmp.m4: Likewise.
91378         * m4/putenv.m4: Likewise.
91379         * m4/realloc.m4: Likewise.
91380         * m4/regex.m4: Likewise.
91381         * m4/stat.m4: Likewise.
91382         * m4/strftime.m4: Likewise.
91383         Suggestion from Alain Magloire.
91384
91385         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
91386         an argument.
91387
91388         * m4/regex.m4: Add a run-time Test for proper operation of
91389         re_compile_pattern.
91390
91391 1999-01-31  Jim Meyering  <meyering@ascend.com>
91392
91393         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
91394
91395 1999-01-30  Jim Meyering  <meyering@ascend.com>
91396
91397         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
91398
91399         * m4/jm-mktime.m4: Make this a wrapper around the official
91400         AM_FUNC_MKTIME rather than my private copy, now that the official one
91401         is up to date.
91402         * m4/mktime.m4: Remove file.
91403
91404         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
91405         * m4/uptime.m4: Likewise.
91406         * m4/uintmax_t.m4: Likewise.
91407
91408 1999-01-28  Jim Meyering  <meyering@ascend.com>
91409
91410         * m4/jm-macros.m4: Use jm_AFS.
91411         * m4/afs.m4: New file (from fileutils' configure.in).
91412
91413         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
91414         * m4/chown.m4: Likewise.
91415         * m4/d-ino.m4: Likewise.
91416         * m4/d-type.m4: Likewise.
91417         * m4/fnmatch.m4: Likewise.
91418         * m4/getgroups.m4: Likewise.
91419         * m4/gettext.m4: Likewise.
91420         * m4/jm-mktime.m4: Likewise.
91421         * m4/jm-winsz2.m4: Likewise.
91422         * m4/lcmessage.m4: Likewise.
91423         * m4/ls-mntd-fs.m4: Likewise.
91424         * m4/malloc.m4: Likewise.
91425         * m4/memcmp.m4: Likewise.
91426         * m4/putenv.m4: Likewise.
91427         * m4/realloc.m4: Likewise.
91428         * m4/st_mtim.m4: Likewise.
91429         * m4/strftime.m4: Likewise.
91430
91431 1999-01-16  Jim Meyering  <meyering@ascend.com>
91432
91433         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
91434         (ARGMATCH_DIE_DECL): Define.
91435
91436 1999-01-12  Jim Meyering  <meyering@ascend.com>
91437
91438         * m4/Makefile.am.in: Rewrite to avoid using fmt.
91439         Reported by Lars Hecking.
91440
91441 1999-01-10  Jim Meyering  <meyering@ascend.com>
91442
91443         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
91444         gross kludge.
91445         * m4/inttypes_h.m4: Likewise.
91446         * m4/lstat.m4: Likewise.
91447         * m4/malloc.m4: Likewise.
91448         * m4/readdir.m4: Likewise.
91449         * m4/realloc.m4: Likewise.
91450         * m4/st_dm_mode.m4: Likewise.
91451         * m4/stat.m4: Likewise.
91452         * m4/utimbuf.m4: Likewise.
91453         * m4/utimes.m4: Likewise.
91454
91455         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
91456         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
91457         comments in config.h.in are meaningful.
91458
91459         * m4/jm-macros.m4: Require autoconf-2.13 here.
91460
91461         * m4/regex.m4: By default, don't use the included regex.c on systems
91462         with glibc 2.  Suggestion from Uli Drepper.
91463
91464 1999-01-02  Jim Meyering  <meyering@ascend.com>
91465
91466         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
91467
91468 1998-12-18  Jim Meyering  <meyering@ascend.com>
91469
91470         * m4/Makefile.am.in (Makefile.am): Simplify rule.
91471         Based on a suggestion from Lars Hecking.
91472
91473 1998-11-16  Paul Eggert  <eggert@twinsun.com>
91474
91475         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
91476
91477 1998-11-16  Jim Meyering  <meyering@ascend.com>
91478
91479         * m4/lfs.m4: Double-quote the `uname...` expression.
91480
91481 1998-11-14  Jim Meyering  <meyering@ascend.com>
91482
91483         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
91484         * m4/stat.m4: Likewise.
91485
91486 1998-11-03  Jim Meyering  <meyering@ascend.com>
91487
91488         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
91489         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
91490
91491 1998-10-18  Jim Meyering  <meyering@ascend.com>
91492
91493         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
91494
91495 1998-10-17  Jim Meyering  <meyering@ascend.com>
91496
91497         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
91498         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
91499         calls for those previously hard-coded headers.  Instead, take a new
91500         parameter.
91501         (jm_CHECK_DECLARATIONS): Reflect interface change.
91502         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
91503         (jm_CHECK_DECL_LOCALTIME_R): New macro.
91504
91505         * m4/mktime.m4: Test for spring-forward gap before long-running test.
91506
91507 1998-10-14  Jim Meyering  <meyering@ascend.com>
91508
91509         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
91510         instead of "TZ=America/Vancouver".  From Paul Eggert.
91511
91512 1998-10-11  Jim Meyering  <meyering@ascend.com>
91513
91514         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
91515         This adds a test for a recently added compatibility fix for mktime.c.
91516         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
91517
91518 1998-09-27  Jim Meyering  <meyering@ascend.com>
91519
91520         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
91521
91522         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
91523         ../configure.in, including a change from Gordon Matzigkeit to allow
91524         cross-compiling for the Hurd.
91525
91526         * m4/glibc.m4: New file/macro to test for the GNU C Library
91527         versions 1 and 2.  From Gordon Matzigkeit.
91528         Indent.
91529
91530 1998-09-21  Jim Meyering  <meyering@ascend.com>
91531
91532         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
91533
91534 1998-08-18  Paul Eggert  <eggert@twinsun.com>
91535
91536         Port nanosecond-resolution times to UnixWare 2.1.2 and
91537         pedantic Solaris 2.6.
91538
91539         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
91540         AC_STRUCT_ST_MTIM.
91541         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
91542         Generate name of ns member, instead of just 1 or undef.
91543         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
91544
91545 1998-08-15  Jim Meyering  <meyering@ascend.com>
91546
91547         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
91548         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
91549         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
91550         instead of jm_TYPE_SSIZE_T.
91551
91552 1998-08-12  Jim Meyering  <meyering@ascend.com>
91553
91554         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
91555
91556 1998-08-02  Jim Meyering  <meyering@ascend.com>
91557
91558         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
91559         in acconfig.h manually.
91560
91561 1998-07-31  Paul Eggert  <eggert@twinsun.com>
91562
91563         * m4/st_mtim.m4: New file.
91564
91565 1998-07-28  Jim Meyering  <meyering@ascend.com>
91566
91567         * m4/utimes.m4: Undef stat.
91568
91569 1998-07-25  Jim Meyering  <meyering@ascend.com>
91570
91571         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
91572         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
91573
91574 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
91575
91576         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
91577         uid and gid actually remain unchanged.
91578
91579 1998-07-07  Jim Meyering  <meyering@ascend.com>
91580
91581         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
91582
91583 1998-07-04  Jim Meyering  <meyering@ascend.com>
91584
91585         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
91586         to prove that this macro can be used in packages without regex.c.
91587
91588 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
91589
91590         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
91591         is to be used.
91592
91593 1998-07-03  Jim Meyering  <meyering@ascend.com>
91594
91595         * m4/gettext.m4: Add -lintl if it's found to be necessary.
91596
91597         * m4/gettext.m4: New file -- from gettext-0.10.35.
91598         * m4/lcmessage.m4: Likewise.
91599         * m4/progtest.m4: Likewise.
91600
91601         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
91602         * m4/jm-macros.m4: Require the new macro.
91603
91604 1998-06-29  Jim Meyering  <meyering@ascend.com>
91605
91606         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
91607         for the definition of NGROUPS (used in a system header included
91608         by sys/mount.h).
91609
91610 1998-06-28  Jim Meyering  <meyering@ascend.com>
91611
91612         * m4/ls-mntd-fs.m4: New file.
91613         * m4/fstypename.m4: New file.
91614
91615         * m4/jm-macros.m4: Require the new macro.
91616         * m4/jm-glibc-io.m4: New file.
91617
91618 1998-05-19  Jim Meyering  <meyering@ascend.com>
91619
91620         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
91621         * m4/lchown.m4: New file.
91622
91623         * m4/Makefile.am.in: New file.
91624         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
91625
91626 1998-05-14  Jim Meyering  <meyering@ascend.com>
91627
91628         * m4/Makefile.am (EXTRA_DIST): Add them.
91629         * m4/jm-macros.m4: New file.
91630         * m4/utimbuf.m4: New file.
91631
91632 1998-05-12  Jim Meyering  <meyering@ascend.com>
91633
91634         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
91635
91636 1998-05-11  Jim Meyering  <meyering@ascend.com>
91637
91638         * m4/isc-posix.m4: New file.
91639
91640 1998-05-10  Jim Meyering  <meyering@ascend.com>
91641
91642         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
91643
91644 1998-05-09  Jim Meyering  <meyering@ascend.com>
91645
91646         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
91647         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
91648         with automake.
91649
91650         * m4/ssize_t.m4: New file.
91651         * m4/mktime.m4: Remove file -- the new automake has this now.
91652
91653 1998-04-26  Jim Meyering  <meyering@ascend.com>
91654
91655         * m4/assert.m4: New file.
91656         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
91657
91658 1998-04-05  Jim Meyering  <meyering@ascend.com>
91659
91660         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
91661         (jm_PREREQ): Use it here.
91662
91663 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
91664
91665         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
91666         in acconfig.h.
91667
91668 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
91669
91670         * m4/prereq.m4: New file.
91671         * m4/error.m4: New file.
91672         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
91673
91674 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
91675
91676         * m4/getline.m4: Don't set am_cv_func_working_getline before the
91677         cache-check for the same variable -- that defeated the purpose of
91678         the test; the test program was never run.  This was a problem only
91679         on systems with losing getline functions -- HP-UX 10.20 is one.
91680         Reported by Bjorn Helgaas.
91681
91682 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
91683
91684         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
91685
91686 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
91687
91688         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
91689
91690         * m4/const.m4: New file.  Use an initializer in this declaration
91691         typedef int charset[2]; const charset x;
91692         Reported by Bob Glickstein.
91693
91694 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
91695
91696         * m4/chown.m4: Fix reversed types on -1 args to chown.
91697         From Kaveh Ghazi.
91698
91699 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
91700
91701         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
91702         Add lseek and memchr.
91703
91704         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
91705         T.E.Dickey <dickey@clark.net> said that some older preprocessors
91706         have a 20-character limit on names.
91707
91708 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
91709
91710         * m4/inttypes_h.m4: New file.
91711         * m4/uintmax_t.m4: New file.
91712         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
91713
91714
91715         -----
91716
91717         Local Variables:
91718         coding: utf-8
91719         End:
91720
91721         Copyright (C) 1997-2012 Free Software Foundation, Inc.
91722
91723         Copying and distribution of this file, with or without
91724         modification, are permitted provided the copyright notice
91725         and this notice are preserved.